/* ==========================================================================
   PRIMOBA — design system
   Art direction: "Monochrome + Signal". Warm paper + deep ink, one
   electric signal colour. Confident, premium, business-focused.
   ========================================================================== */

:root {
  /* Colour — oklch for perceptual consistency */
  --paper: oklch(0.975 0.006 85);
  --paper-2: oklch(0.948 0.008 85);
  --paper-3: oklch(0.915 0.01 85);
  --ink: oklch(0.18 0.012 265);
  --ink-2: oklch(0.23 0.014 265);
  --ink-3: oklch(0.29 0.016 265);
  --text: oklch(0.2 0.012 265);
  --text-2: oklch(0.42 0.01 265);
  --text-3: oklch(0.56 0.008 265);
  --on-ink: oklch(0.96 0.006 85);
  --on-ink-2: oklch(0.78 0.01 265);
  --on-ink-3: oklch(0.62 0.012 265);
  --signal: oklch(0.67 0.215 38);       /* electric vermilion */
  --signal-ink: oklch(0.55 0.2 35);     /* AA on paper for small text */
  --signal-soft: oklch(0.67 0.215 38 / 0.12);
  --line: oklch(0.2 0.012 265 / 0.1);
  --line-strong: oklch(0.2 0.012 265 / 0.2);
  --line-ink: oklch(0.96 0.006 85 / 0.12);

  /* Type */
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  /* One typeface across the whole site. */
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);

  --t-display: clamp(3.1rem, 9.2vw + 0.5rem, 11.5rem);
  --t-h1: clamp(2.6rem, 5.6vw + 0.6rem, 6.4rem);
  --t-h2: clamp(2rem, 3.4vw + 0.6rem, 4rem);
  --t-h3: clamp(1.3rem, 1.2vw + 0.8rem, 1.85rem);
  --t-lead: clamp(1.15rem, 0.7vw + 0.9rem, 1.55rem);
  --t-body: clamp(1.02rem, 0.25vw + 0.95rem, 1.15rem);
  --t-small: 0.9rem;
  --t-label: 0.74rem;

  /* Space */
  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  --max: 1440px;
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2.5rem;
  --s-5: clamp(3rem, 6vw, 5rem);
  --s-6: clamp(4.5rem, 10vw, 9rem);
  --s-7: clamp(6rem, 14vw, 13rem);

  --radius: 4px;
  --radius-lg: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --d-micro: 150ms;
  --d-small: 250ms;
  --d-med: 400ms;
  --d-large: 700ms;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--signal); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem;
  background: var(--ink); color: var(--on-ink); border-radius: var(--radius);
  transition: top var(--d-small) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ─── Layout primitives ─────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.section { padding-block: var(--s-6); }
.section--tight { padding-block: var(--s-5); }
.section--loose { padding-block: var(--s-7); }

.ink {
  background: var(--ink);
  color: var(--on-ink);
  --text: var(--on-ink);
  --text-2: var(--on-ink-2);
  --text-3: var(--on-ink-3);
  --line: var(--line-ink);
  --line-strong: oklch(0.96 0.006 85 / 0.24);
}
.paper-2 { background: var(--paper-2); }

/* ─── Type ─────────────────────────────────────────────────────── */

.display {
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.h1 { font-size: var(--t-h1); font-weight: 600; line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; }
.h2 { font-size: var(--t-h2); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -0.015em; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: var(--t-small); }

.em {
  font: inherit;
  color: var(--signal);
}

.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.2;
}
.label--signal { color: var(--signal-ink); }
.ink .label--signal { color: var(--signal); }

.index {
  font-size: 0.85rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ─── Buttons & links ──────────────────────────────────────────── */

.btn {
  --bg: var(--ink);
  --fg: var(--on-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--d-med) var(--ease-out), border-color var(--d-med) var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal);
  transform: translateY(101%);
  transition: transform var(--d-med) var(--ease-out);
}
.btn .arrow { transition: transform var(--d-med) var(--ease-out); }
@media (hover: hover) {
  .btn:hover { border-color: var(--signal); color: var(--paper); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .arrow { transform: translateX(4px); }
}
.btn--signal { --bg: var(--signal); --fg: var(--paper); }
.btn--signal::before { background: var(--ink); }
@media (hover: hover) { .btn--signal:hover { border-color: var(--ink); } }
.btn--ghost { --bg: transparent; --fg: var(--text); border-color: var(--line-strong); }
.ink .btn { --bg: var(--paper); --fg: var(--ink); }
.ink .btn--ghost { --bg: transparent; --fg: var(--on-ink); border-color: var(--line-strong); }
.ink .btn--signal { --bg: var(--signal); --fg: var(--paper); }
.ink .btn--signal::before { background: var(--paper); }
@media (hover: hover) { .ink .btn--signal:hover { color: var(--ink); border-color: var(--paper); } }

.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--d-med) var(--ease-out);
  padding-bottom: 2px;
}
@media (hover: hover) { .link:hover { background-size: 100% 1px; } }
.link--under { background-size: 100% 1px; }
@media (hover: hover) { .link--under:hover { background-position: 100% 100%; background-size: 0 1px; } }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text-2);
  transition: background var(--d-small) var(--ease-out), color var(--d-small) var(--ease-out), border-color var(--d-small);
}
a.chip:hover, button.chip:hover, .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ink a.chip:hover, .ink button.chip:hover, .ink .chip[aria-current="page"] { background: var(--paper); color: var(--ink); }

/* ─── Header ───────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--d-med) var(--ease-out), box-shadow var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
}
.header[data-scrolled="true"] {
  background: oklch(0.975 0.006 85 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header[data-hidden="true"] { transform: translateY(-100%); }
.header__bar { display: flex; align-items: center; gap: var(--s-3); height: 5rem; }
.logo { display: inline-flex; align-items: baseline; gap: 0.1rem; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; }
.logo__dot { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--signal); display: inline-block; transform: translateY(-0.02em); }
.logo img { height: 1.75rem; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 0.25rem; align-items: center; }
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color var(--d-small), background var(--d-small);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); background: oklch(0.2 0.012 265 / 0.06); }
.header__cta { margin-left: var(--s-2); min-height: 2.75rem; font-size: 0.95rem; padding: 0 1.15rem; }

.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  width: min(760px, 80vw);
  translate: -50% 0;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px oklch(0.2 0.012 265 / 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--d-small) var(--ease-out), transform var(--d-small) var(--ease-out), visibility var(--d-small);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a {
  display: flex; gap: 0.75rem; align-items: baseline;
  padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.95rem;
}
.mega a:hover { background: var(--paper-2); }
.mega a span:first-child { display: none; }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 0.5rem; padding-top: 0.5rem; }

.burger {
  display: none;
  margin-left: auto;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  place-items: center;
}
.burger > span { display: block; }
.burger > span > span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform var(--d-med) var(--ease-out); }
.burger > span > span + span { margin-top: 5px; }
.burger[aria-expanded="true"] > span > span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] > span > span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  color: var(--on-ink);
  padding: 6.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--d-large) var(--ease-in-out), visibility 0s linear var(--d-large);
}
.drawer[data-open="true"] { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--d-large) var(--ease-in-out); }
.drawer__list a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line-ink);
  font-size: clamp(1.9rem, 8vw, 3rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1;
}
.drawer__list a small { display: none; }
.drawer__foot { margin-top: auto; padding-top: var(--s-4); display: grid; gap: var(--s-2); }
.drawer__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.drawer__quick a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; border-radius: 999px; border: 1px solid var(--line-ink); font-size: 0.95rem;
}
.header[data-menu="true"] { background: transparent; box-shadow: none; backdrop-filter: none; color: var(--on-ink); }
.header[data-menu="true"] .burger { border-color: var(--line-ink); }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: grid; }
}

/* Mobile sticky contact bar — thumb zone */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 0.35rem;
  gap: 0.35rem;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 18px 40px -12px oklch(0.2 0.012 265 / 0.45);
}
.mobile-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 3rem; border-radius: 999px; color: var(--on-ink); font-size: 0.9rem; font-weight: 500;
}
.mobile-bar a:last-child { background: var(--signal); color: var(--paper); flex: 1.4; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 5rem; }
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero { position: relative; padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: var(--s-5); overflow: hidden; }
.hero__eyebrow { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--s-4); }
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: end;
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.hero__foot .lead { max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 760px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 100ms); }
  .hero__fade { animation: fade 1s var(--ease-out) both; animation-delay: 600ms; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }


/* ─── Section heads ────────────────────────────────────────────── */

.shead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.shead__title { max-width: 22ch; }
.shead__body { flex-basis: 100%; max-width: 52ch; }

/* ─── Intro statement ──────────────────────────────────────────── */

.statement { font-size: clamp(1.6rem, 3.1vw + 0.4rem, 3.4rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; text-wrap: pretty; }
.statement .dim { color: var(--text-3); }

/* ─── Service index (home + /services) ─────────────────────────── */

.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3rem;
  gap: var(--gutter);
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--ink); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--d-med) var(--ease-out);
}
.svc-row__title { font-size: clamp(1.5rem, 2.6vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; transition: transform var(--d-med) var(--ease-out); }
.svc-row__excerpt { color: var(--text-2); font-size: 0.98rem; }
.svc-row__go { justify-self: end; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background var(--d-med), border-color var(--d-med), transform var(--d-med) var(--ease-out); }
@media (hover: hover) {
  .svc-row:hover { color: var(--on-ink); }
  .svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc-row:hover .svc-row__excerpt, .svc-row:hover .index { color: var(--on-ink-2); }
  .svc-row:hover .svc-row__title { transform: translateX(0.5rem); }
  .svc-row:hover .svc-row__go { background: var(--signal); border-color: var(--signal); color: var(--paper); transform: rotate(-45deg); }
}
.ink .svc-row::before { background: var(--paper); }
@media (hover: hover) {
  .ink .svc-row:hover { color: var(--ink); }
  .ink .svc-row:hover .svc-row__excerpt, .ink .svc-row:hover .index { color: var(--text-3); }
}
@media (max-width: 760px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) 2.75rem; row-gap: 0.35rem; }
  .svc-row__excerpt { grid-column: 1; grid-row: 2; }
  .svc-row__go { grid-row: 1 / span 2; grid-column: 2; }
}

/* ─── Why / feature grid ───────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border-top: 1px solid var(--line); }
.feature { padding: var(--s-3) var(--s-3) var(--s-4) 0; border-bottom: 1px solid var(--line); }
.feature + .feature { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.feature h3 { margin: 0.25rem 0 0.6rem; }
.feature p { color: var(--text-2); max-width: 34ch; }
@media (max-width: 760px) {
  .feature + .feature { padding-left: 0; border-left: 0; }
}

/* ─── Stats band ───────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--s-4) var(--gutter); }
.stat { border-top: 1px solid var(--line-strong); padding-top: var(--s-2); }
.stat__value { font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 0.6rem; color: var(--text-2); font-size: 0.95rem; }
.stats--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.stats--compact .stat__value { font-size: clamp(2rem, 3.6vw, 3.25rem); }

/* ─── Cards: work & case studies ───────────────────────────────── */

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); }
.work-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .work-grid, .work-grid--even { grid-template-columns: 1fr; } }
.work-grid > [data-tags][hidden] { display: none; }

.card { display: block; }
.card__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--paper-3); }
.card__media > * { transition: transform 1s var(--ease-out); }
@media (hover: hover) { .card:hover .card__media > * { transform: scale(1.035); } }
.card__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.card__title { margin-top: 0.5rem; font-size: clamp(1.25rem, 1.6vw, 1.65rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 32ch; }
.card__excerpt { margin-top: 0.4rem; color: var(--text-2); max-width: 46ch; }
.card__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.9rem; }
.card__results { display: flex; gap: 1.5rem; margin-top: 0.9rem; }
.card__results b { display: block; font-size: 1.35rem; letter-spacing: -0.03em; }
.card__results span { font-size: 0.82rem; color: var(--text-3); }

/* Case study row */
.cs-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-4) var(--gutter);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
  align-items: center;
}
.cs-row:nth-child(even) .cs-row__media { order: 2; }
.cs-row__media { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; }
.cs-row__media > * { transition: transform 1s var(--ease-out); }
@media (hover: hover) { .cs-row:hover .cs-row__media > * { transform: scale(1.03); } }
.cs-row__title { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; margin: 0.75rem 0; max-width: 24ch; }
@media (max-width: 900px) {
  .cs-row { grid-template-columns: 1fr; }
  .cs-row:nth-child(even) .cs-row__media { order: 0; }
}

/* ─── Poster (generative placeholder for missing imagery) ─────── */

.poster { position: absolute; inset: 0; display: grid; place-items: end start; padding: 1.25rem; background: var(--paper-3); color: var(--text-3); }
.poster__word { font-size: 0.85rem; font-weight: 500; }
.media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ─── Clients ──────────────────────────────────────────────────── */

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell {
  display: grid; place-items: center; text-align: center;
  min-height: 9rem; padding: 1.25rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background var(--d-med) var(--ease-out);
}
.logo-cell img { max-height: 3rem; width: auto; filter: grayscale(1); opacity: 0.75; transition: filter var(--d-med), opacity var(--d-med); }
.logo-cell__name { font-weight: 600; letter-spacing: -0.03em; font-size: 1.2rem; line-height: 1.1; }
.logo-cell__ind { display: block; margin-top: 0.4rem; }
@media (hover: hover) {
  .logo-cell:hover { background: var(--paper-2); }
  .logo-cell:hover img { filter: none; opacity: 1; }
}
.ink .logo-cell:hover { background: var(--ink-2); }

/* ─── Testimonials ─────────────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: var(--gutter); }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-3) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.quote blockquote { font-size: clamp(1.15rem, 1.1vw + 0.8rem, 1.45rem); line-height: 1.35; letter-spacing: -0.02em; }
.quote figcaption { display: flex; align-items: center; gap: 0.85rem; }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--ink-3); color: var(--on-ink); display: grid; place-items: center; font-weight: 600; font-size: 0.95rem; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ─── CTA band ─────────────────────────────────────────────────── */

.cta-band { position: relative; overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); align-items: end; }
.cta-band__title { grid-column: 1 / span 9; }
.cta-band__side { grid-column: 1 / span 6; }
.cta-band__actions { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
@media (max-width: 900px) {
  .cta-band__title, .cta-band__side, .cta-band__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ─── Page heads ───────────────────────────────────────────────── */

.phead { padding-top: clamp(2rem, 6vw, 5rem); padding-bottom: var(--s-5); }
.phead__crumbs { margin-bottom: var(--s-4); }
.phead__title { max-width: 18ch; }
.phead__lead { margin-top: var(--s-3); max-width: 46ch; }
.phead__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: end; }
@media (max-width: 760px) { .phead__row { grid-template-columns: 1fr; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-3); }

/* ─── Detail templates ─────────────────────────────────────────── */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: var(--s-3) var(--gutter); border-top: 1px solid var(--line); padding-top: var(--s-3); }
.facts dt { margin-bottom: 0.4rem; }
.facts dd { font-weight: 500; }
.facts dd a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3) var(--gutter); }
.split__side { grid-column: 1 / span 3; }
.split__main { grid-column: 4 / span 8; }
.split__main--wide { grid-column: 4 / -1; }
.sticky { position: sticky; top: 6.5rem; }
@media (max-width: 900px) {
  .split__side, .split__main, .split__main--wide { grid-column: 1 / -1; }
  .sticky { position: static; }
}

.chapter { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.chapter__num { display: none; }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.gallery figure { grid-column: span 6; }
.gallery figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.gallery__img { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.gallery figcaption { margin-top: 0.6rem; font-size: 0.88rem; color: var(--text-3); }
@media (max-width: 760px) { .gallery figure { grid-column: 1 / -1; } }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.deliverables { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.deliverables li { padding: 0.65rem 1.1rem; border-radius: 999px; background: var(--paper-2); font-size: 0.98rem; }
.ink .deliverables li { background: var(--ink-2); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--gutter); }
.steps li { counter-increment: step; padding-top: var(--s-2); border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(step) "."; font-size: 0.95rem; font-weight: 600; color: var(--signal); }
.steps h3 { margin: 1.5rem 0 0.5rem; }
.steps p { color: var(--text-2); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.35rem 0; font-size: clamp(1.1rem, 1vw + 0.8rem, 1.35rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; transition: transform var(--d-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.35rem; color: var(--text-2); max-width: 64ch; }

/* ─── Prose (CMS rich text) ────────────────────────────────────── */

.prose { max-width: 68ch; font-size: clamp(1.05rem, 0.3vw + 1rem, 1.2rem); line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.6rem, 2vw + 0.8rem, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; margin-top: 2.2em; font-weight: 600; }
.prose h3 { font-size: clamp(1.25rem, 1vw + 0.9rem, 1.6rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.8em; font-weight: 600; }
.prose a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--signal); }
.prose blockquote { margin-block: 2em; padding-left: 1.25em; border-left: 2px solid var(--signal); font-size: 1.3em; font-weight: 500; line-height: 1.35; letter-spacing: -0.02em; }
.prose img, .prose video, .prose iframe { border-radius: var(--radius); height: auto; }
.prose figure { margin-block: 2em; }
.prose figcaption, .prose .wp-element-caption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--text-3); }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16/9; }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6em 0.4em; text-align: left; }
.prose code { font-family: ui-monospace, monospace; font-size: 0.88em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose .alignwide, .prose .alignfull { max-width: none; }

/* ─── Article ──────────────────────────────────────────────────── */

.article-head { padding-top: clamp(2rem, 5vw, 4rem); }
.article-head__title { max-width: 20ch; margin-top: var(--s-3); }
.article-hero { margin-top: var(--s-4); position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .article-hero { aspect-ratio: 4 / 3; } }
.byline { display: flex; align-items: center; gap: 0.85rem; }
.share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share a, .share button {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; background: transparent;
  transition: background var(--d-small), color var(--d-small), border-color var(--d-small);
}
.share a:hover, .share button:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: var(--s-5) var(--gutter); }
.post-card .card__media { aspect-ratio: 3 / 2; }
.post-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; padding-bottom: var(--s-5); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.post-feature .card__media { aspect-ratio: 16 / 10; }
@media (max-width: 900px) { .post-feature { grid-template-columns: 1fr; } }

.filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); }

/* ─── Team ─────────────────────────────────────────────────────── */

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: var(--s-4) var(--gutter); }
.member__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.member h3 { margin-top: 1rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }

/* ─── Contact ──────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5) var(--gutter); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem var(--gutter); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field label .opt { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.1rem;
  transition: border-color var(--d-small);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); box-shadow: 0 1px 0 var(--signal); }
.field [aria-invalid="true"] { border-bottom-color: oklch(0.58 0.2 25); }
.field__err { font-size: 0.85rem; color: oklch(0.52 0.2 25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--paper-2); }
.form-status--ok { background: oklch(0.93 0.06 150); color: oklch(0.3 0.08 150); }
.form-status--err { background: oklch(0.93 0.05 25); color: oklch(0.4 0.15 25); }

.channels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.channel { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.channel a { font-weight: 500; overflow-wrap: anywhere; }
.map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ─── Social ───────────────────────────────────────────────────── */

.social { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social a {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: background var(--d-small), color var(--d-small), border-color var(--d-small), transform var(--d-med) var(--ease-out);
}
.social a:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); transform: translateY(-2px); }
.social svg { width: 1.05rem; height: 1.05rem; }

/* ─── Footer ───────────────────────────────────────────────────── */

.footer { padding-top: var(--s-6); padding-bottom: var(--s-3); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand p { margin-top: 1rem; max-width: 34ch; color: var(--text-2); }
.footer__col { grid-column: span 2; }
.footer__col:last-child { grid-column: span 4; }
.footer__col h2 { margin-bottom: 1rem; }
.footer__col li + li { margin-top: 0.45rem; }
.footer__col a { color: var(--text-2); transition: color var(--d-small); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: var(--s-5) !important; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-top: var(--s-3); margin-top: var(--s-3); border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-3); }
.footer__bottom nav { display: flex; gap: 1.5rem; }
@media (max-width: 900px) {
  .footer__brand, .footer__col, .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col { grid-column: span 6; }
}

/* ─── Reveal on scroll (CSS scroll-driven, no JS) ──────────────── */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .reveal-stagger > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ─── Misc ─────────────────────────────────────────────────────── */

.empty { padding: var(--s-5) 0; border-top: 1px solid var(--line); color: var(--text-2); }
.stack > * + * { margin-top: var(--s-3); }
.stack-sm > * + * { margin-top: var(--s-2); }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.between { justify-content: space-between; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }

.nf { min-height: 70vh; display: grid; align-content: center; }
button.chip { background: transparent; }
.logos > div { display: grid; } .logos > div > .logo-cell { height: 100%; }

/* ─── Demo / CMS imagery ──────────────────────────────────────── */
.hero-media { position: relative; aspect-ratio: 21 / 9; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); margin-bottom: var(--s-5); }
@media (max-width: 760px) { .hero-media { aspect-ratio: 4 / 3; } }

/* Service row: image preview on hover (desktop) */
.svc-row__thumb {
  position: absolute; left: 40%; top: 50%; z-index: 2;
  width: 11rem; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  opacity: 0; transform: translateY(-50%) scale(0.96);
  transition: opacity var(--d-med) var(--ease-out), transform var(--d-med) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (min-width: 1200px) {
  .svc-row:hover .svc-row__thumb { opacity: 1; transform: translateY(-50%); }
}
@media (max-width: 1199px) { .svc-row__thumb { display: none; } }

/* ─── WordPress specifics ─────────────────────────────────────── */
.admin-bar .header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: 0.4em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0.4em 0 1em 1.5em; max-width: 50%; }
.prose .wp-block-image img, .prose img { width: auto; max-width: 100%; height: auto; }
.prose .wp-block-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: var(--on-ink); text-decoration: none; }
.prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
.prose .wp-block-pullquote { border: 0; padding: 0; }
.media-fill { object-fit: cover; }
.hero .hero-media { margin-top: var(--s-5); margin-bottom: 0; }

/* ==========================================================================
   v1.2 — orange glow, page heroes, services preview, section variants
   ========================================================================== */

/* Orange glow behind the homepage hero (follows the pointer on desktop) */
.hero { position: relative; isolation: isolate; }
.hero__orb {
  position: absolute; z-index: -1; right: -12vw; top: -10vw; width: 55vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(0.75 0.19 45 / 0.55), oklch(0.67 0.215 38 / 0.18) 45%, transparent 70%);
  filter: blur(30px); translate: var(--mx, 0) var(--my, 0); transition: translate 1.2s var(--ease-out); pointer-events: none;
}
@media (max-width: 760px) { .hero__orb { width: 110vw; right: -50vw; top: -30vw; } }

/* Call to action: rings + glow, clipped inside the band so it never reaches the footer */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band__ring {
  position: absolute; z-index: -1; right: -8vw; top: 50%; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  translate: 0 -50%; border: 1px solid oklch(0.96 0.006 85 / 0.14); pointer-events: none;
  box-shadow: 0 0 0 5vw oklch(0.96 0.006 85 / 0.025), 0 0 0 10vw oklch(0.96 0.006 85 / 0.02);
}
.cta-band__glow {
  position: absolute; z-index: -1; right: 4vw; top: 50%; width: 30vw; aspect-ratio: 1; border-radius: 50%; translate: 0 -50%;
  background: radial-gradient(circle, oklch(0.67 0.215 38 / 0.55), oklch(0.67 0.215 38 / 0.12) 45%, transparent 70%);
  filter: blur(24px); pointer-events: none;
}
@media (max-width: 900px) { .cta-band__ring { width: 90vw; right: -45vw; } .cta-band__glow { width: 70vw; right: -25vw; } }

/* Inner page hero: title + photo, orange glow behind */
.phero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--s-5); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-4) var(--gutter); align-items: center; }
.phero__title { margin-top: var(--s-3); max-width: 14ch; }
.phero__lead { margin-top: var(--s-3); max-width: 44ch; }
.phero__meta { margin-top: var(--s-4); }
.phero__figure { position: relative; }
.phero__media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.phero__glow {
  position: absolute; z-index: -1; right: -14vw; top: -14vw; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, oklch(0.75 0.19 45 / 0.5), oklch(0.67 0.215 38 / 0.14) 45%, transparent 70%);
  filter: blur(30px); pointer-events: none;
}
.phero__badge { position: absolute; left: -1rem; bottom: -1rem; width: 4.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--signal); }
.phero--plain .phero__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) {
  .phero__grid { grid-template-columns: 1fr; }
  .phero__media { aspect-ratio: 4 / 3; }
  .phero__badge { width: 3rem; left: -0.5rem; bottom: -0.5rem; }
  .phero__glow { width: 100vw; right: -50vw; top: -30vw; }
}

/* Services: list + sticky photo panel that follows the hovered service */
.svc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5); align-items: start; }
.svc .svc-list { border-top: 1px solid var(--line); }
.svc .svc-row { grid-template-columns: minmax(0, 1fr) 3rem; padding: 1.25rem 0; row-gap: 0.3rem; }
.svc .svc-row::before { display: none; }
.svc .svc-row__title { transition: color var(--d-small), transform var(--d-med) var(--ease-out); }
.svc .svc-row__excerpt { grid-column: 1; grid-row: 2; font-size: 0.95rem; max-width: 52ch; }
.svc .svc-row__go { grid-row: 1 / span 2; grid-column: 2; }
@media (min-width: 1081px) {
  .svc .svc-row.is-active .svc-row__title { color: var(--signal); transform: translateX(0.4rem); }
  .svc .svc-row.is-active .svc-row__go { background: var(--signal); border-color: var(--signal); color: var(--paper); transform: rotate(-45deg); }
}
.svc .svc-row:hover { color: inherit; }
.svc .svc-row:hover .svc-row__excerpt { color: var(--text-2); }
.svc__panel { position: sticky; top: 6.5rem; }
.svc__frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.svc__frame .svc__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 600ms var(--ease-out), transform 1.2s var(--ease-out); }
.svc__frame .svc__img.is-active { opacity: 1; transform: none; }
.svc__frame .svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--signal); color: var(--paper); font-size: 0.8rem; font-weight: 600; }
.svc__caption { margin-top: 1rem; color: var(--text-2); min-height: 3em; }
.svc-row__thumb { display: none !important; }
@media (max-width: 1080px) {
  .svc { grid-template-columns: 1fr; }
  .svc__panel { display: none; }
}

/* Key numbers: label/value order, orange band variant */
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat__value { font-variant-numeric: tabular-nums; }
.stats-band { background: var(--signal); color: var(--paper); --text-2: oklch(0.98 0.01 85 / 0.88); --line-strong: oklch(0.98 0.01 85 / 0.4); }
.stats-band .stat__label { color: var(--text-2); }

/* Reasons / values as cards */
.features--cards { border-top: 0; gap: var(--gutter); }
.features--cards .feature, .features--cards .feature + .feature {
  padding: var(--s-4) var(--s-3); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: var(--radius-lg); background: var(--paper);
}
.features--cards .feature h3 { margin-top: 0; }
.paper-2 .features--cards .feature { background: var(--paper); }

/* Intro statement with a photo (About) */
.story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5) var(--gutter); align-items: center; }
.story__title { font-size: var(--t-h2); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.story__text { margin-top: var(--s-3); max-width: 52ch; }
.story__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .story__media { aspect-ratio: 4 / 3; } }

/* Client logos: centred, even cells, same visual size */
.logo-cell { min-height: 10rem; padding: 1.5rem 1rem; }
.logo-cell > div { display: grid; justify-items: center; gap: 0.6rem; width: 100%; }
.logo-cell img { display: block; width: auto; height: auto; max-width: min(78%, 11rem); max-height: 3.4rem; object-fit: contain; filter: grayscale(1); opacity: 0.78; }
.ink .logo-cell img { filter: grayscale(1) invert(1); opacity: 0.85; }
@media (hover: hover) { .logo-cell:hover img { opacity: 1; } }
.logo-cell__ind { margin-top: 0; }

/* Logo wall v2: centred rows of even cards */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; border: 0; }
.logos > .logo-cell, .logos > div { flex: 0 1 calc((100% - 4 * 0.75rem) / 5); min-width: 10.5rem; }
.logo-cell { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); min-height: 9.5rem; transition: border-color var(--d-med), transform var(--d-med) var(--ease-out); }
.logos > div > .logo-cell { border-right: 1px solid var(--line); }
.logo-cell img { height: 3rem; max-height: none; max-width: 82%; width: auto; }
@media (hover: hover) { .logo-cell:hover { border-color: var(--signal); transform: translateY(-2px); background: var(--paper); } }
.ink .logo-cell { background: var(--ink-2); border-color: var(--line-ink); }
@media (max-width: 640px) { .logos > .logo-cell, .logos > div { flex-basis: calc(50% - 0.375rem); min-width: 0; } .logo-cell img { height: 2.4rem; } }
/* Team: 3 per row */
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Homepage hero v2: headline sized to the screen (width AND height) so the
   intro and buttons are visible on arrival; descenders never clipped. */
.hero { padding-top: clamp(1.5rem, 4.5vh, 4rem); }
.hero .hero__title {
  font-size: clamp(2.6rem, min(6.6vw, 10.5vh), 8rem);
  line-height: 0.98;
  max-width: 15ch;
}
.hero__title .line { padding-bottom: 0.16em; margin-bottom: -0.16em; padding-top: 0.04em; margin-top: -0.04em; }
.hero .hero__foot { margin-top: clamp(1.25rem, 4vh, 3rem); padding-top: clamp(1rem, 2.5vh, 1.5rem); }
@media (max-width: 760px) {
  .hero .hero__title { font-size: clamp(2.4rem, 11.5vw, 3.6rem); }
  .hero .hero__ctas .btn { min-height: 3rem; }
}
