/* Satoshi by Indian Type Foundry (Fontshare, free licence). Geist Mono by Vercel (OFL). */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ================= Tokens ================= */

:root {
  --bg: #fafafc;
  --surface: #ffffff;
  --tint: #f3f3f8;
  --ink: #12131c;
  --body: #474b5f;
  --muted: #646982;
  --line: #e8e8f0;
  --line-2: #d8d8e5;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --primary-ink: #3730a3;

  --success: #0f8a5f;
  --danger: #c0262d;
  --danger-soft: #fdeeee;
  --warning-soft: #fff6e5;

  /* Soft tones for icon tiles, marks and bento cells: background / foreground. */
  --indigo-bg: #eef0ff; --indigo-fg: #4338ca;
  --sky-bg: #e7f4fc;    --sky-fg: #0369a1;
  --mint-bg: #e4f6ec;   --mint-fg: #047857;
  --peach-bg: #fff0e4;  --peach-fg: #c2410c;
  --lilac-bg: #f3ecff;  --lilac-fg: #7e22ce;
  --plain-bg: #f3f3f8;  --plain-fg: #12131c;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Shape rule: containers 20px, inner tiles 12px, everything interactive is a pill. */
  --r-card: 20px;
  --r-tile: 12px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(24 24 60 / .05), 0 1px 1px rgb(24 24 60 / .03);
  --shadow-md: 0 12px 28px -12px rgb(40 38 110 / .16), 0 2px 6px rgb(24 24 60 / .04);
  --shadow-lg: 0 40px 80px -32px rgb(55 48 163 / .30), 0 8px 20px -8px rgb(24 24 60 / .08);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --section: clamp(72px, 9vw, 120px);
}

/* ================= Base ================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; text-wrap: balance; line-height: 1.15; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--line-2) var(--bg); }

.container { width: min(var(--container), 100% - 2 * var(--pad)); margin-inline: auto; }
.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; }

.icon { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ================= Tones ================= */

.tone-indigo { background: var(--indigo-bg); color: var(--indigo-fg); }
.tone-sky    { background: var(--sky-bg);    color: var(--sky-fg); }
.tone-mint   { background: var(--mint-bg);   color: var(--mint-fg); }
.tone-peach  { background: var(--peach-bg);  color: var(--peach-fg); }
.tone-lilac  { background: var(--lilac-bg);  color: var(--lilac-fg); }
.tone-plain  { background: var(--plain-bg);  color: var(--plain-fg); }

.icon-tile {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-tile);
  font-size: 1.25rem; flex: none;
}
.icon-tile-lg { width: 56px; height: 56px; font-size: 1.5rem; border-radius: 16px; }

.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-tile);
  font-weight: 900; font-size: .9375rem; letter-spacing: -.02em;
}
.mark-indigo { background: var(--indigo-fg); color: #fff; }
.mark-sky    { background: var(--sky-fg);    color: #fff; }
.mark-mint   { background: var(--mint-fg);   color: #fff; }
.mark-peach  { background: var(--peach-fg);  color: #fff; }
.mark-lilac  { background: var(--lilac-fg);  color: #fff; }
.mark-sm { width: 30px; height: 30px; border-radius: 9px; font-size: .75rem; }
.mark-lg { width: 52px; height: 52px; border-radius: 14px; font-size: 1.125rem; }

/* ================= Buttons & small parts ================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9375rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgb(79 70 229 / .55), inset 0 1px 0 rgb(255 255 255 / .18); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--primary-ink); }
.btn-light:hover { background: var(--primary-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .6); }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, transform .4s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); transform: rotate(-60deg); }
.icon-btn[disabled] { opacity: .45; cursor: default; transform: none; }

.pill {
  display: inline-flex; align-items: center; padding: 4px 12px;
  font-size: .8125rem; font-weight: 500; color: var(--body);
  background: var(--tint); border-radius: var(--r-pill); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; font-size: .875rem; font-weight: 500; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.chips-sm li { padding: 4px 10px; font-size: .8125rem; background: var(--tint); border-color: transparent; color: var(--body); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon, .card:hover .link-arrow .icon { transform: translateX(3px); }

.round-arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-pill); background: var(--tint); color: var(--ink); font-size: 1.125rem;
  transition: background-color .25s var(--ease), color .25s, transform .3s var(--ease);
}
.card:hover .round-arrow { background: var(--primary); color: #fff; transform: rotate(-8deg); }

.status-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px;
  font-size: .875rem; font-weight: 500; color: var(--body);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: #16a34a;
  box-shadow: 0 0 0 4px rgb(22 163 74 / .16);
}

.text-btn { padding: 0; background: none; border: 0; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ================= Cards ================= */

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
a.card:hover, .card:has(> .card-link:hover) { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }

/* ================= Header ================= */

.site-header { position: sticky; top: 12px; z-index: 50; padding-inline: 16px; }

.header-bar {
  width: min(var(--container) + 16px, 100%);
  margin: 12px auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 8px 8px 8px 12px;
  background: rgb(255 255 255 / .94);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled .header-bar { box-shadow: var(--shadow-md); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; justify-self: start; }
/* Brand lockup: K mark on the indigo tile, wordmark, indigo rule, tracked "ENGINEERING". */
.brand-mark {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 12px -4px rgb(79 70 229 / .55), inset 0 1px 0 rgb(255 255 255 / .2);
  transition: transform .4s var(--ease);
}
.brand-mark svg { width: 56%; height: 56%; margin-left: 1px; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: grid; line-height: 1; }
.brand-name { position: relative; font-size: 1.0625rem; font-weight: 900; letter-spacing: -.03em; color: var(--ink); padding-bottom: 5px; }
.brand-name::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 24px; height: 2px; border-radius: 2px; background: var(--primary); transition: width .4s var(--ease); }
.brand:hover .brand-name::after { width: 100%; }
.brand-sub { margin-top: 4px; font-size: .5625rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.brand-lg .brand-mark { width: 48px; height: 48px; border-radius: 13px; }
.brand-lg .brand-name { font-size: 1.375rem; }
.brand-lg .brand-sub { font-size: .625rem; }

.site-nav { display: flex; gap: 2px; }
.site-nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; color: var(--body);
  transition: color .2s, background-color .2s;
}
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--primary-ink); background: var(--primary-soft); }

.header-cta { justify-self: end; }

.menu-toggle {
  display: none; justify-self: end; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface);
  font-size: 1.25rem; cursor: pointer;
}
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

.mobile-menu {
  width: min(var(--container) + 16px, 100%); margin: 8px auto 0; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.mobile-menu nav { display: grid; margin-bottom: 12px; }
.mobile-menu nav a { padding: 14px 16px; border-radius: 14px; font-size: 1.125rem; font-weight: 500; }
.mobile-menu nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); }
.mobile-menu .btn { width: 100%; }

/* ================= Section scaffolding ================= */

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.section-tint { background: var(--tint); }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); letter-spacing: -.03em; max-width: 20ch; }
.section-head .lead { margin-top: 12px; max-width: 56ch; color: var(--body); font-size: 1.125rem; }

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--body); }

/* ================= Hero ================= */

.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 88px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 6vw, 88px); align-items: center; }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.75rem, 5.2vw, 4.375rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -.04em;
  max-width: 13ch;
}
.hero-lead { margin-top: 24px; max-width: 46ch; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px;
  padding: 28px; border-radius: 32px;
  background:
    radial-gradient(60% 60% at 80% 10%, #e9e4ff 0%, transparent 70%),
    radial-gradient(55% 55% at 10% 90%, #e2f1fb 0%, transparent 70%),
    var(--tint);
}
.shot {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot-main { grid-column: 1 / -1; aspect-ratio: 16 / 8.4; }
.shot-side, .shot-low { aspect-ratio: 4 / 3; }
.shot-label {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px;
  font-size: .8125rem; font-weight: 700; color: var(--ink);
  background: rgb(255 255 255 / .94); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.cert-chip {
  position: absolute; right: -14px; top: -22px; display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); box-shadow: var(--shadow-md); font-size: .875rem; color: var(--body);
}
.cert-chip strong { color: var(--ink); margin-right: 4px; }
.cert-chip .badge-row { gap: 0; flex-wrap: nowrap; }
.cert-chip .badge-row img { width: 40px; height: 40px; margin-left: -6px; }
.cert-chip .badge-row li:first-child img { margin-left: 0; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-row img { display: block; width: 64px; height: 64px; object-fit: contain; }

/* ================= Logos ================= */

.logos { padding-block: 8px clamp(48px, 6vw, 72px); }
.logos-title { text-align: center; font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; margin-top: 24px; }
.logo-row { align-items: center; }
.logo-row a {
  display: inline-flex; align-items: center; height: 40px;
  font-size: 1.1875rem; font-weight: 900; letter-spacing: -.03em; color: var(--body);
  filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s, color .3s;
}
.logo-row a.is-logo img { height: 26px; width: auto; display: block; }
.logo-row a:hover { filter: none; opacity: 1; color: var(--ink); }

/* ================= Bento ================= */

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "a a b c" "e e b d";
}
.bento-cell {
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 200px; padding: 28px; border-radius: var(--r-card);
  border: 1px solid rgb(18 19 28 / .04);
}
.bento-cell:nth-child(1) { grid-area: a; }
.bento-cell:nth-child(2) { grid-area: b; }
.bento-cell:nth-child(3) { grid-area: c; }
.bento-cell:nth-child(4) { grid-area: d; }
.bento-cell:nth-child(5) { grid-area: e; }
.bento-cell.tone-plain { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.bento-value { font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 900; line-height: .95; letter-spacing: -.05em; }
.bento-tall .bento-value { font-size: clamp(3.5rem, 7vw, 6rem); }
.bento-label { max-width: 30ch; font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.bento-cell .chips li { background: rgb(255 255 255 / .75); border-color: transparent; }

/* ================= Services preview ================= */

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.service-card h3 { margin-top: 8px; font-size: 1.375rem; }
.service-card p { color: var(--body); }
.service-card .chips { margin-top: auto; padding-top: 8px; }

/* ================= Work cards ================= */

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.work-card .card-link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; }
.work-card-top { display: flex; align-items: center; gap: 12px; }
.work-card-company { display: grid; flex: 1; line-height: 1.3; }
.work-card-company strong { font-size: 1rem; }
.work-card-company span { font-size: .875rem; color: var(--muted); }
.work-card h3 { margin-top: 8px; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.work-card p { color: var(--body); }
.work-card .link-arrow { margin-top: auto; padding-top: 8px; }

.work-card-feature { grid-column: 1 / -1; }
.work-card-feature .card-link { padding: clamp(28px, 4vw, 44px); }
.work-card-feature h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); max-width: 22ch; }
.work-card-feature p { max-width: 60ch; font-size: 1.125rem; }

.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.outcomes li { display: grid; gap: 4px; padding: 20px; border-radius: 16px; }
.outcomes strong { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.outcomes span { font-size: .9375rem; color: var(--ink); opacity: .85; }
.outcomes-inline { margin-block: 8px; }
.outcomes-inline li { background: var(--tint); }
.outcomes-inline li:nth-child(1) strong { color: var(--indigo-fg); }
.outcomes-inline li:nth-child(2) strong { color: var(--mint-fg); }
.outcomes-inline li:nth-child(3) strong { color: var(--sky-fg); }

/* ================= Process ================= */

.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.process-step { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.process-step h3 { margin-top: 20px; font-size: 1.25rem; }
.process-step p { margin-top: 8px; color: var(--body); }
.process-numbered .process-step::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; right: 28px;
  font-size: 2.5rem; font-weight: 900; line-height: 1; color: var(--line-2);
}

/* ================= CTA ================= */

.cta-section { padding-block: var(--section); }
.cta-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px;
  padding: clamp(36px, 6vw, 72px);
  color: #fff; border-radius: 28px;
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(167 139 250 / .55) 0%, transparent 70%),
    radial-gradient(40% 70% at 0% 100%, rgb(56 189 248 / .25) 0%, transparent 70%),
    var(--primary);
  box-shadow: var(--shadow-lg);
}
.cta-copy h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; letter-spacing: -.035em; max-width: 16ch; }
.cta-copy p { margin-top: 16px; max-width: 52ch; color: rgb(255 255 255 / .82); font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card :focus-visible { outline-color: rgb(255 255 255 / .7); }

/* ================= Page heads ================= */

.page-head { padding-top: clamp(32px, 5vw, 56px); }
.page-head-card {
  position: relative; overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 28px;
  background:
    radial-gradient(50% 90% at 100% 0%, #ebe6ff 0%, transparent 70%),
    radial-gradient(40% 80% at 0% 100%, #e5f2fb 0%, transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.page-head-card h1 { font-size: clamp(2.375rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; max-width: 18ch; }
.page-head-card .lead { margin-top: 20px; max-width: 60ch; }
.page-head-extra { margin-top: 32px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 500; color: var(--body); }
.back-link:hover { color: var(--primary); }

/* ================= Work page ================= */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px; padding: 0 18px; font-weight: 500; font-size: .9375rem;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.work-list { display: grid; gap: 16px; }
.work-row[hidden] { display: none; }
.work-row-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 24px 40px;
  padding: clamp(24px, 3vw, 36px);
}
.work-row-meta { display: flex; align-items: flex-start; gap: 14px; }
.work-row-meta div { display: grid; line-height: 1.35; }
.work-row-meta div span { font-size: .875rem; color: var(--muted); }
.work-row-role { font-size: .9375rem; font-weight: 500; color: var(--primary); }
.work-row-role span { margin-left: 8px; color: var(--muted); font-weight: 400; }
.work-row-body h2 { margin-top: 6px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); max-width: 30ch; }
.work-row-body > p:not(.work-row-role) { margin-block: 10px 18px; max-width: 64ch; color: var(--body); }
.work-row-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; }

.empty-state {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
  padding: 40px; color: var(--body);
  border: 1px dashed var(--line-2); border-radius: var(--r-card); background: var(--surface);
}
.empty-state[hidden] { display: none; }

/* ================= Case study ================= */

.case-company { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.case-company div { display: grid; line-height: 1.35; }
.case-company div span { font-size: .9375rem; color: var(--muted); }
.case-head h1 { max-width: 24ch; }

.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.case-meta div { padding: 16px 18px; background: rgb(255 255 255 / .8); border: 1px solid var(--line); border-radius: 16px; }
.case-meta dt { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.case-meta dd { margin-top: 4px; font-weight: 700; line-height: 1.35; }

.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.case-main { display: grid; gap: clamp(40px, 5vw, 56px); }
.case-h { font-size: 1.5rem; margin-bottom: 16px; }
.case-overview { font-size: 1.1875rem; line-height: 1.65; color: var(--body); max-width: 64ch; }

.checklist { display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--body); }
.check { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-fg); font-size: .8rem; }
.checklist-compact { gap: 10px; }
.checklist-compact li { grid-template-columns: 22px 1fr; gap: 10px; font-size: 1rem; }
.checklist-compact .check { width: 22px; height: 22px; font-size: .7rem; }

.case-side { position: sticky; top: 104px; display: grid; gap: 16px; }
.side-card { padding: 24px; display: grid; gap: 14px; }
.side-title { font-size: 1.0625rem; }
.side-card p { color: var(--body); font-size: 1rem; }

.next-card { display: flex; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 40px); }
.next-label { flex: none; font-size: .875rem; font-weight: 500; color: var(--muted); }
.next-body { display: flex; align-items: center; gap: 16px; flex: 1; }
.next-body strong { font-size: .9375rem; color: var(--muted); font-weight: 500; }
.next-body h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }

/* ================= Services page ================= */

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  font-size: .9375rem; font-weight: 500;
  background: rgb(255 255 255 / .85); border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .2s, color .2s;
}
.jump-links a:hover { border-color: var(--primary); color: var(--primary-ink); }
.jump-links .icon { color: var(--primary); }

.service-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-detail { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 110px; }
.service-detail h2 { margin-top: 8px; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.service-summary { color: var(--body); }
.mini-title { margin-top: 8px; font-size: .9375rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.service-detail .chips { margin-top: auto; padding-top: 12px; }

.engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.engage-card { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.engage-card h3 { margin-top: 8px; font-size: 1.5rem; }
.engage-card p { color: var(--body); }
.engage-card .engage-fit { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9375rem; font-weight: 500; color: var(--ink); }
.engage-fit .icon { color: var(--success); margin-top: 3px; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s var(--ease); }
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none;
  border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--tint); }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: var(--ink); translate: -50% -50%; transition: rotate .3s var(--ease);
}
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-item p { padding: 0 24px 22px; color: var(--body); max-width: 60ch; }

/* ================= Clients page ================= */

.head-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.head-stats li { display: flex; align-items: baseline; gap: 8px; padding: 12px 18px; background: rgb(255 255 255 / .85); border: 1px solid var(--line); border-radius: 16px; }
.head-stats strong { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; }
.head-stats span { font-size: .9375rem; color: var(--body); }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.client-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.client-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.client-card h2 { font-size: 1.5rem; }
.client-kind { color: var(--muted); }
.client-meta { display: grid; gap: 6px; margin-top: 6px; padding-block: 14px; border-block: 1px solid var(--line); }
.client-meta div { display: flex; align-items: center; gap: 10px; font-size: .9375rem; }
.client-meta dt { color: var(--primary); display: inline-flex; }
.client-summary { color: var(--body); }
.client-card .link-arrow { margin-top: auto; padding-top: 8px; }

.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-card { display: flex; gap: 18px; align-items: flex-start; padding: 28px; }
.platform-card h3 { font-size: 1.25rem; }
.platform-card p { margin-top: 4px; color: var(--body); }

/* ================= Toolbox ================= */

.search-field {
  position: relative; display: flex; align-items: center; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / .14); }
.search-icon { position: absolute; left: 20px; color: var(--muted); font-size: 1.1rem; display: inline-flex; }
.search-field input {
  flex: 1; min-width: 0; height: 56px; padding: 0 16px 0 52px;
  font: inherit; color: var(--ink); background: transparent; border: 0; outline: 0;
}
.search-field input::placeholder { color: var(--muted); }
.search-count { padding-right: 20px; font-size: .875rem; color: var(--muted); white-space: nowrap; }

.toolbox-grid { columns: 3 320px; column-gap: 16px; }
.tool-group { break-inside: avoid; margin-bottom: 16px; padding: 24px; }
.tool-group[hidden] { display: none; }
.tool-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tool-group-head h2 { flex: 1; font-size: 1.1875rem; }
.tool-count { font-size: .875rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips li.is-match { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips li.is-dim { opacity: .35; }

/* ================= About ================= */

.about-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.about-text { margin-top: 16px; max-width: 62ch; color: var(--body); }

.profile-card { padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.avatar {
  display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 14px; border-radius: 50%;
  background: var(--primary);
  color: #fff; font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em;
  box-shadow: 0 12px 30px -10px rgb(79 70 229 / .5);
}
.profile-card h2 { font-size: 1.5rem; }
.profile-role { color: var(--muted); }
.profile-facts { display: grid; gap: 12px; margin-block: 20px 24px; }
.profile-facts li { display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--body); }
.profile-facts .icon { color: var(--primary); }
.side-card .profile-facts { margin: 0; }
.profile-card .btn { margin-top: auto; }

.journey { position: relative; display: grid; gap: 8px; }
.journey-item { display: grid; grid-template-columns: 72px 28px minmax(0, 1fr); gap: 20px; align-items: start; position: relative; padding-bottom: 28px; }
.journey-item::before { content: ""; position: absolute; left: calc(72px + 20px + 13px); top: 30px; bottom: -6px; width: 2px; background: var(--line); }
.journey-item:last-child::before { display: none; }
.journey-year { padding-top: 2px; font-weight: 900; font-size: 1.125rem; color: var(--primary); font-variant-numeric: tabular-nums; }
.journey-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 6px var(--surface); position: relative; z-index: 1; }
.journey-item:last-child .journey-dot { background: var(--primary); }
.journey-body { padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.journey-body h3 { font-size: 1.1875rem; }
.journey-body p { margin-top: 4px; color: var(--body); }

.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.cert-issuer { margin-top: 12px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.cert-card h3 { font-size: 1.3125rem; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.edu-list { display: grid; gap: 12px; }
.edu-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; }
.edu-card h3 { font-size: 1.0625rem; }
.edu-card p { font-size: .9375rem; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lang-card { display: grid; gap: 2px; padding: 22px; }
.lang-card strong { font-size: 1.25rem; }
.lang-card span { color: var(--muted); font-size: .9375rem; }

/* ================= Contact ================= */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; padding-bottom: var(--section); }
.form-card { padding: clamp(28px, 5vw, 56px); }
.form-card h1 { font-size: clamp(2.125rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.035em; }
.form-card > .lead { margin-top: 12px; }

.form { display: grid; gap: 22px; margin-top: 32px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field legend { margin-bottom: 10px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-tile);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: #b9b9cc; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / .14); }
.field-help { font-size: .875rem; color: var(--muted); }
.field-error { font-size: .875rem; font-weight: 500; color: var(--danger); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.has-error input:focus, .has-error textarea:focus { box-shadow: 0 0 0 4px rgb(192 38 45 / .14); }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  font-size: .9375rem; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface);
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgb(79 70 229 / .2); }
.has-error .choice span { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.notice { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-tile); font-size: .9375rem; font-weight: 500; }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-warning { background: var(--warning-soft); color: #8a4b00; }

.success-state { display: grid; justify-items: start; gap: 16px; padding-block: 24px; }
.success-state h1 { margin-top: 8px; }
.success-state p { color: var(--body); max-width: 52ch; }

.contact-side { display: grid; gap: 16px; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary-ink); overflow-wrap: anywhere; }
.contact-side .btn { justify-self: start; }
.next-steps { display: grid; gap: 12px; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .9375rem; color: var(--body); }
.next-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: .8125rem; }

/* ================= 404 ================= */

.not-found { display: grid; justify-items: start; gap: 4px; margin-bottom: var(--section); }
.not-found h1 { margin-top: 20px; }

/* ================= Footer ================= */

.site-footer { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.footer-brand p { margin-top: 16px; max-width: 40ch; color: var(--body); }
.footer-title { font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; margin-top: 16px; font-size: .9375rem; }
.footer-links a { transition: color .2s; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

/* ================= Motion ================= */

@media (prefers-reduced-motion: no-preference) {
  .js .enter { animation: enter .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
  .js .reveal { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
  .js .reveal.is-visible { opacity: 1; translate: none; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s; }
}

@keyframes enter { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================= Real logos & media ================= */

.chips li.has-logo { display: inline-flex; align-items: center; gap: 6px; }
.chips li img { width: 16px; height: 16px; object-fit: contain; flex: none; }

/* Logo tiles grow sideways so wordmarks stay legible. */
.org-logo {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 40px; max-width: 128px; height: 40px; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden;
}
.org-logo img { height: 100%; width: auto; max-width: 108px; object-fit: contain; }
.org-logo-lg { width: auto; min-width: 52px; max-width: 160px; height: 52px; padding: 8px 12px; border-radius: 14px; }
.org-logo-lg img { width: auto; max-width: 136px; height: 34px; }
.org-logo-sm { width: 30px; height: 30px; }

.service-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card .link-arrow { margin-top: auto; padding-top: 6px; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-grid > [hidden] { display: none; }
.project-card { display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 110px; }
.project-card:target { border-color: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / .15), var(--shadow-md); }
.project-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.035); }
.project-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.project-body h3 { font-size: 1.1875rem; line-height: 1.25; }
.project-body p { font-size: .96875rem; color: var(--body); }
.project-body .chips { margin-top: auto; padding-top: 6px; }

.service-list { display: grid; gap: 20px; }
.service-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(28px, 4vw, 44px); scroll-margin-top: 110px; }
.service-row-main { display: flex; flex-direction: column; gap: 16px; }
.service-row h2 { margin-top: 6px; font-size: clamp(1.625rem, 2.6vw, 2.125rem); }
.why-box { padding: 20px 22px; background: var(--tint); border-radius: 16px; }
.why-box h3 { font-size: .9375rem; color: var(--primary-ink); }
.why-box p { margin-top: 6px; color: var(--body); font-size: 1rem; }
.why-box .sources { font-size: .875rem; color: var(--muted); }
.sources a { color: var(--primary-ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(79 70 229 / .3); text-underline-offset: 3px; }
.sources a:hover { text-decoration-color: currentColor; }
.sources .icon { width: .9em; height: .9em; }
.service-proof { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; align-self: start; }
.service-proof .mini-title { margin-top: 0; }
.proof-list { display: grid; gap: 8px; }
.proof-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9375rem; font-weight: 500; line-height: 1.3; transition: border-color .2s, transform .3s var(--ease); }
.proof-item:hover { border-color: var(--primary); transform: translateX(2px); }
.proof-item img { width: 56px; height: 40px; object-fit: cover; object-position: top; border-radius: 8px; }
.proof-icon { display: grid; place-items: center; width: 56px; height: 40px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); }
.proof-item > .icon { color: var(--muted); }

.client-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 8px; }
.link-quiet { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 500; color: var(--body); }
.link-quiet:hover { color: var(--primary); }
.case-company .link-quiet { margin-left: 8px; }
.platform-card { align-items: center; }
.platform-logo { display: grid; place-items: center; width: 120px; height: 64px; padding: 10px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.platform-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.platform-card h3 { display: flex; align-items: center; gap: 6px; }
.platform-card h3 .icon { width: .8em; height: .8em; color: var(--muted); }

.cert-card { align-items: flex-start; }
.cert-badge { width: 112px; height: 112px; object-fit: contain; }
.edu-logo { display: grid; place-items: center; width: 64px; height: 44px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-tile); }
.edu-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.profile-card .badge-row { margin-bottom: 20px; }
.profile-card .badge-row img { width: 56px; height: 56px; }
.profile-actions { display: grid; gap: 8px; margin-top: auto; }
.footer-links .icon { color: var(--primary); }

/* ================= Responsive ================= */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-bar { grid-template-columns: 1fr auto auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; }
  .case-grid, .about-head, .contact-grid, .faq-wrap { grid-template-columns: 1fr; }
  .case-side { position: static; }
  .work-row-card { grid-template-columns: 1fr; }
  .work-row-side { flex-direction: row; align-items: center; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .project-grid, .service-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-chip { right: 12px; }
}

@media (max-width: 860px) {
  .hero { padding-block: clamp(36px, 8vw, 56px) clamp(48px, 8vw, 72px); }
  .hero-copy { max-width: 46rem; }
  .hero h1 { max-width: 12ch; }
  .hero-visual { margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "b d" "e e"; }
  .project-grid, .service-grid-3, .service-grid, .work-grid, .service-detail-grid, .engage-grid, .process, .cert-grid, .platform-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-cta { display: none; }
  .header-bar { grid-template-columns: 1fr auto; }
  .site-header { padding-inline: 12px; }

  .hero { padding-top: 40px; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 12.5vw, 3.35rem); line-height: 1.06; }
  .hero-lead { margin-top: 18px; font-size: 1.0625rem; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { padding: 14px; gap: 8px; margin-top: 18px; border-radius: 24px; }
  .shot { border-radius: 13px; }
  .shot-label { left: 7px; bottom: 7px; max-width: calc(100% - 14px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
  .cert-chip { top: -22px; right: 6px; max-width: calc(100% - 12px); padding-right: 10px; font-size: .75rem; }
  .cert-chip .badge-row img { width: 32px; height: 32px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e"; }
  .bento-cell { min-height: 0; }
  .outcomes { grid-template-columns: 1fr; }
  .form-row, .lang-grid, .case-meta { grid-template-columns: 1fr; }
  .edu-card { grid-template-columns: auto minmax(0, 1fr); }
  .edu-card .pill { grid-column: 2; justify-self: start; }
  .journey-item { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 16px; }
  .journey-year { grid-column: 2; padding: 0; }
  .journey-dot { grid-row: 1 / span 2; grid-column: 1; }
  .journey-body { grid-column: 2; }
  .journey-item::before { left: 13px; }
  .next-card { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { flex: 1 1 100%; }
}

/* Let grid and flex children shrink below their content width on small screens. */
.work-grid > *, .project-grid > *, .service-grid > *, .client-grid > * { min-width: 0; }
.work-card-company { min-width: 0; }
.work-card-top .pill { flex: none; }

/* ================= Portfolio assistant ================= */

.ask-card {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 52px); border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(60% 90% at 0% 0%, #efe9ff 0%, transparent 70%),
    radial-gradient(50% 80% at 100% 100%, #e6f3fc 0%, transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 110px;
}
.ask-intro h2 { margin-top: 18px; font-size: clamp(1.875rem, 3.4vw, 2.625rem); letter-spacing: -.03em; }
.ask-intro p { margin-top: 12px; color: var(--body); max-width: 46ch; }
.ask-intro .ask-mode { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; color: var(--muted); }
.ask-panel { display: flex; flex-direction: column; gap: 14px; align-self: center; }
.ask-form { display: flex; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.ask-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgb(79 70 229 / .14); }
.ask-form input { flex: 1; min-width: 0; padding: 0 16px; font: inherit; color: var(--ink); background: transparent; border: 0; outline: 0; }
.ask-form input::placeholder { color: var(--muted); }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-examples button {
  padding: 7px 14px; font-size: .875rem; font-weight: 500; color: var(--body); cursor: pointer;
  background: rgb(255 255 255 / .8); border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: border-color .2s, color .2s;
}
.ask-examples button:hover { border-color: var(--primary); color: var(--primary-ink); }
.ask-output { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.ask-output[hidden] { display: none; }
.ask-answer { font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
.ask-cite {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin: 0 2px 0 3px; padding: 0 5px;
  font-size: .75rem; font-weight: 700; color: var(--primary-ink); background: var(--primary-soft);
  border-radius: var(--r-pill); vertical-align: 2px; text-decoration: none;
}
.ask-cite:hover { background: var(--primary); color: #fff; }
.ask-sources { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); counter-reset: src; }
.ask-sources li { display: grid; gap: 2px; font-size: .9375rem; counter-increment: src; }
.ask-sources li::before { content: counter(src); font-size: .75rem; font-weight: 700; color: var(--muted); }
.ask-sources li { grid-template-columns: 18px minmax(0, 1fr); }
.ask-sources li > * { grid-column: 2; }
.ask-sources a { font-weight: 700; color: var(--primary-ink); }
.ask-sources span { color: var(--muted); font-size: .875rem; }
.ask-note { font-size: .9375rem; color: var(--muted); }
.ask-note + .ask-sources { margin-top: 8px; padding-top: 0; border-top: 0; }
.ask-loading { color: var(--muted); }
.ask-loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid var(--primary); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.ask-error { color: var(--danger); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Project cards without a screenshot: icon plus the real tool logos used */
.project-media-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background:
    radial-gradient(60% 80% at 100% 0%, #ebe6ff 0%, transparent 70%),
    radial-gradient(50% 70% at 0% 100%, #e5f2fb 0%, transparent 70%),
    var(--tint);
}
.panel-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.panel-logos li { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.panel-logos img { width: 100%; height: 100%; object-fit: contain; }
.project-body .link-arrow { margin-top: 4px; }

@media (max-width: 860px) {
  .ask-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ask-form { flex-direction: column; border-radius: 18px; }
  .ask-form input { height: 48px; }
}
.logo-row a.is-tall img { height: 40px; }

/* ================= Solutions ================= */

.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.solution-grid > * { min-width: 0; }
.solution-card { display: flex; flex-direction: column; overflow: hidden; }
.solution-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.04); }
.solution-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.solution-body .icon-tile { margin-top: -44px; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }
.solution-body h3 { font-size: 1.25rem; }
.solution-for { font-size: .9375rem; color: var(--muted); }
.solution-body .link-arrow { margin-top: auto; padding-top: 6px; }

.solution-list { display: grid; gap: 24px; }
.solution-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); overflow: hidden; scroll-margin-top: 110px; }
.solution-row-media { margin: 0; display: flex; flex-direction: column; background: var(--tint); border-right: 1px solid var(--line); }
.solution-row-media img { width: 100%; flex: 1; min-height: 260px; object-fit: cover; }
.solution-row-media figcaption { padding: 8px 14px; }
.solution-row-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 4vw, 44px); }
.solution-row-body h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-top: 4px; }
.solution-row-body .btn { align-self: flex-start; }
.solution-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.solution-pair p { margin-top: 6px; color: var(--body); font-size: 1rem; }
.solution-pair .mini-title, .solution-proof .mini-title { margin-top: 0; }
.solution-steps { display: grid; gap: 8px; margin-top: 8px; counter-reset: st; }
.solution-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 1rem; color: var(--body); counter-increment: st; }
.solution-steps li::before { content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: .75rem; font-weight: 700; }
.solution-pair .checklist { margin-top: 8px; }
.solution-proof { padding-top: 16px; border-top: 1px solid var(--line); }
.proof-list-inline { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-top: 10px; }

.photo-credit { font-size: .75rem !important; color: var(--muted) !important; margin: 0; }
.photo-credit a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.photo-credit a:hover { color: var(--primary); }

@media (max-width: 1080px) {
  .solution-row { grid-template-columns: 1fr; }
  .solution-row-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .solution-row-media img { aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 860px) {
  .solution-grid, .solution-pair { grid-template-columns: 1fr; }
}

/* ================= Agency partners ================= */

.agency-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.agency-grid > * { min-width: 0; }
.agency-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.agency-logo { display: grid; place-items: center; height: 72px; margin-bottom: 10px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.agency-logo img { max-width: 100%; max-height: 44px; object-fit: contain; }
.agency-card strong { display: flex; align-items: center; gap: 6px; font-size: 1.0625rem; }
.agency-card strong .icon { width: .8em; height: .8em; color: var(--muted); }
.agency-city { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--body); }
.agency-city .icon { color: var(--primary); }
.agency-focus { font-size: .875rem; color: var(--muted); }
@media (max-width: 1080px) { .agency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .agency-grid { grid-template-columns: 1fr; } }
.logo-row a.is-logo img { max-width: 140px; object-fit: contain; }

/* ================= AI training ================= */

.ai-train-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4.5vw, 52px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(60% 90% at 0% 0%, #efe9ff 0%, transparent 70%), var(--surface);
  box-shadow: var(--shadow-sm); scroll-margin-top: 110px;
}
.ai-train-copy h2 { margin-top: 18px; font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -.03em; }
.ai-train-copy p { margin-top: 12px; color: var(--body); max-width: 52ch; }
.ai-train-copy .ai-train-note { font-size: .9375rem; color: var(--muted); }
.ai-train-logos { display: grid; gap: 12px; }
.ai-train-logos a { display: grid; grid-template-columns: 170px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .3s var(--ease); }
.ai-train-logos a:hover { border-color: var(--primary); transform: translateX(3px); }
.ai-train-logos .agency-logo { grid-row: 1 / span 2; margin: 0; height: 64px; }
.ai-train-logos strong { display: flex; align-items: center; gap: 6px; align-self: end; }
.ai-train-logos strong .icon { width: .8em; height: .8em; color: var(--muted); }
.ai-train-logos span:last-child { font-size: .875rem; color: var(--muted); align-self: start; }
@media (max-width: 860px) { .ai-train-card { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ai-train-logos a { grid-template-columns: 1fr; row-gap: 8px; } .ai-train-logos .agency-logo { grid-row: auto; } }
.logo-row img[alt="Outlier"] { height: 19px; }

/* ================= Image credits ================= */

.credit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.credit-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; }
.credit-item img { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; }
.credit-item p { font-size: .9375rem; color: var(--body); }
.credit-item .credit-used { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.credit-item a { color: var(--primary-ink); text-decoration: underline; text-decoration-color: rgb(79 70 229 / .3); text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--primary); }
@media (max-width: 860px) { .credit-list { grid-template-columns: 1fr; } }

/* ================= Education path ================= */

.edu-path { position: relative; display: grid; gap: 12px; }
.edu-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; }
/* Rail joining each step to the next. */
.edu-step:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: calc(50% + 16px); height: calc(100% - 20px);
  width: 2px; background: var(--line-2);
}
.edu-node {
  position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: .8125rem; font-weight: 700; color: var(--primary-ink); background: var(--surface); border: 2px solid var(--primary);
}
.edu-step.is-top .edu-node { background: var(--primary); color: #fff; }
.edu-step.is-top .edu-card { border-color: rgb(79 70 229 / .35); box-shadow: var(--shadow-md); }
.edu-level { display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
@media (max-width: 600px) {
  .edu-step { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
  .edu-node { width: 26px; height: 26px; font-size: .75rem; }
  .edu-step:not(:last-child)::before { left: 12px; }
}

/* ================= Client wall ================= */

.client-wall { display: grid; gap: 14px; }
.client-wall-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.client-wall-group h3 { font-size: .9375rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.client-wall-group ul { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.client-wall-group a { display: grid; place-items: center; height: 56px; min-width: 96px; padding: 10px 16px; border-radius: 14px; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.client-wall-group a:hover { border-color: var(--line); background: var(--bg); }
.client-wall-group img { max-height: 30px; max-width: 132px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.client-wall-group a:hover img { filter: none; opacity: 1; }
.client-wall-name { font-size: 1rem; font-weight: 900; letter-spacing: -.02em; color: var(--body); white-space: nowrap; }
@media (max-width: 860px) {
  .client-wall-group { grid-template-columns: 1fr; gap: 10px; }
}
.client-wall-group img[alt="Outlier"] { max-height: 22px; }

/* ================= Positioning: pillars, industries, KPIs, status ================= */

.pillars-section { padding-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pillars > * { min-width: 0; }
.pillar { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; }
.pillar .icon-tile { margin-bottom: 8px; }
.pillar strong { font-size: 1.0625rem; }
.pillar span:last-child { font-size: .9375rem; color: var(--muted); }

.industry-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); transition: border-color .2s, color .2s; }
.industry-chips a:hover { border-color: var(--primary); color: var(--primary-ink); }
.industry-chips .icon { color: var(--primary); }

.industries-note { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--body); }
.industries-note .icon { color: var(--primary); }
.industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.industry-grid > * { min-width: 0; }
.industry-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.industry-card h2 { margin-top: 8px; font-size: 1.3125rem; }
.industry-card p { color: var(--body); }
.industry-links { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; }
.industry-links .link-quiet { font-size: .875rem; }
.industry-links .link-quiet .icon { color: var(--success); }

.kpi-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kpi-list li { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--ink); }
.kpi-list .icon { color: var(--primary); }
.solution-kpis .kpi-list { margin-top: 8px; }
.works-with { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; font-size: .9375rem; color: var(--body); background: var(--tint); border-radius: 14px; }
.works-with .icon { color: var(--primary); margin-top: 3px; }
.solution-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.status-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; font-size: .75rem; font-weight: 700; color: #8a4b00; background: var(--warning-soft); border-radius: var(--r-pill); }
.status-flagship { color: var(--primary-ink); background: var(--primary-soft); }

@media (max-width: 1080px) { .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .industry-grid, .pillars { grid-template-columns: 1fr; } }
