/* ---------- Fonts: General Sans (self-hosted, Fontshare — free for commercial use) ---------- */
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans/GeneralSans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans/GeneralSans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans/GeneralSans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("/assets/fonts/general-sans/GeneralSans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f4f5;
  --bg-elev: #fafafa;
  --surface: #ffffff;
  --surface-muted: #ededef;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-muted: #52525b;
  --text-soft: #71717a;
  --accent: #0a0a0a; /* off-black, not pure #000 */
  --accent-contrast: #fafafa;
  --accent-tone: #5d7a6b; /* desaturated sage, single muted accent */
  --ring: rgba(24, 24, 27, 0.10);
  /* tinted shadows toward the bg hue, never pure black */
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.04),
    0 1px 3px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 18px 38px -22px rgba(24, 24, 27, 0.22),
    0 6px 14px -8px rgba(24, 24, 27, 0.07);
  --shadow-diffuse: 0 24px 60px -28px rgba(24, 24, 27, 0.18);
  --inset-refraction: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(24, 24, 27, 0.04);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-brand: "Hanken Grotesk", var(--font-sans);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(
      1000px 600px at 85% -10%,
      rgba(24, 24, 27, 0.04),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 10%,
      rgba(24, 24, 27, 0.03),
      transparent 55%
    );
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}
p {
  margin: 0;
  color: var(--text-muted);
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--border-strong);
  display: inline-block;
}

/* Editorial chapter label — "(0N) NAME" with an underline rule */
.eyebrow--chapter {
  align-self: flex-start;
  gap: 0.55rem;
  color: var(--text);
  margin-bottom: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-strong);
}
.eyebrow--chapter::before {
  display: none;
}
.eyebrow__num {
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.eyebrow--status {
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  background: rgba(24, 24, 27, 0.94);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #d4d4d8;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero .eyebrow--status,
.cs-hero .eyebrow--status {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 10, 10, 0.72);
  color: #e4e4e7;
}
/* Home pages with video hero: keep nav transparent at top so video is continuous */
body.home-video .nav,
body.case-studies-video .nav {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home-video .nav.is-scrolled,
body.case-studies-video .nav.is-scrolled {
  background: rgba(10, 10, 10, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
body.home-video .brand,
body.home-video .brand__name,
body.home-video .nav__links a,
body.case-studies-video .brand,
body.case-studies-video .brand__name,
body.case-studies-video .nav__links a {
  color: #f4f4f5;
}
body.home-video .nav__links a::after,
body.case-studies-video .nav__links a::after {
  background: #f4f4f5;
}
body.home-video .lang__trigger,
body.case-studies-video .lang__trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f4f4f5;
}
body.home-video .lang__trigger:hover,
body.case-studies-video .lang__trigger:hover {
  background: rgba(255, 255, 255, 0.14);
}
body.home-video .lang__chevron,
body.case-studies-video .lang__chevron {
  color: #d4d4d8;
}
body.home-video .nav__toggle,
body.case-studies-video .nav__toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}
body.home-video .nav__toggle span,
body.case-studies-video .nav__toggle span {
  background: #f4f4f5;
}
body.home-video .nav.is-open .nav__links,
body.case-studies-video .nav.is-open .nav__links {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.home-video .nav.is-open .nav__links a,
body.case-studies-video .nav.is-open .nav__links a {
  color: #f4f4f5;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.home-video .nav.is-open .nav__links a:hover,
body.home-video .nav.is-open .nav__links a.is-active,
body.case-studies-video .nav.is-open .nav__links a:hover,
body.case-studies-video .nav.is-open .nav__links a.is-active {
  color: #ffffff;
}
body.home-video .hero .btn--ghost {
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 10, 10, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body.home-video .hero .btn--primary,
body.home-video .nav__cta .btn--primary,
body.case-studies-video .nav__cta .btn--primary {
  color: #fafafa;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 10, 10, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
body.home-video .hero .btn--ghost:hover {
  background: rgba(10, 10, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.88);
  color: #ffffff;
}
body.home-video .hero .btn--primary:hover,
body.home-video .nav__cta .btn--primary:hover,
body.case-studies-video .nav__cta .btn--primary:hover {
  background: rgba(10, 10, 10, 0.72);
  border-color: rgba(255, 255, 255, 0.88);
  color: #ffffff;
}
.eyebrow--status::before {
  width: 7px;
  height: 7px;
  background: var(--accent-tone);
  box-shadow: 0 0 0 0 rgba(93, 122, 107, 0.5);
  animation: plate-pulse 2.4s var(--ease) infinite;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.4rem, 3vw, 2.5rem);
  max-width: none;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}
/* Editorial restyle: every section header is left-aligned, even former --center ones */
.section__head--center {
  margin-inline: 0;
  text-align: left;
  align-items: flex-start;
}
.section__title {
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.section__sub {
  align-self: flex-end;
  margin-top: 0;
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38rem;
  text-align: left;
}
.section__head--center .section__sub {
  margin-inline: 0;
}
/* Keep the chapter label clear of the sticky nav on anchor jumps */
main > section[id] {
  scroll-margin-top: 88px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.25rem;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
  will-change: transform;
}
.btn:active {
  transform: scale(0.98) translateY(1px);
}
.btn__arrow {
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(2px);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.08); /* refraction inner edge */
}
.btn--primary:hover {
  background: #161616; /* off-black, never #000 */
  box-shadow: var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--full {
  width: 100%;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.nav__inner {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand__name,
.footer__brand span:last-child {
  font-family: var(--font-brand);
  text-transform: lowercase;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: inline-block;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: var(--inset-refraction), 0 1px 2px rgba(24, 24, 27, 0.06);
}
.footer__brand .brand__mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.nav__links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav__cta {
  display: flex;
}
/* ---------- Language dropdown ---------- */
.lang {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 0.65rem 0 0.85rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 99px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.lang__trigger:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.lang__trigger:active {
  transform: scale(0.98);
}
.lang__current {
  line-height: 1;
}
.lang__chevron {
  color: var(--text-soft);
  transition: transform 0.25s var(--ease);
}
.lang.is-open .lang__chevron {
  transform: rotate(180deg);
  color: var(--text);
}
.lang.is-open .lang__trigger {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.4rem;
  box-shadow: var(--inset-refraction), var(--shadow-md);
  display: grid;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease);
  z-index: 60;
}
.lang.is-open .lang__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lang__option:hover,
.lang__option:focus-visible {
  background: var(--surface-muted);
  color: var(--text);
  outline: none;
}
.lang__option.is-active {
  background: var(--surface-muted);
  color: var(--text);
}
.lang__option-name {
  letter-spacing: -0.005em;
}
.lang__option-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav.is-open .nav__toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav__toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Hero (left-aligned split, viewport-stable) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  margin-top: -68px;
  padding: calc(68px + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: #0f1012;
}
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1) brightness(0.72);
  opacity: 0.7;
}
.hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      108deg,
      rgba(10, 10, 10, 0.76) 0%,
      rgba(10, 10, 10, 0.68) 36%,
      rgba(10, 10, 10, 0.48) 58%,
      rgba(10, 10, 10, 0.22) 78%,
      rgba(10, 10, 10, 0.14) 100%
    ),
    radial-gradient(
      900px 460px at 70% 8%,
      rgba(0, 0, 0, 0.34),
      transparent 76%
    );
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
/* When the hero plate / asset is absent (homepage variant without the
   live-status card), let the copy column own the full width. */
.hero__grid:not(:has(.hero__asset)) {
  grid-template-columns: 1fr;
  max-width: 56rem;
}
.hero__copy {
  max-width: 38rem;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: #fafafa;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-tone);
  letter-spacing: -0.01em;
}
.hero__sub {
  margin: 1.5rem 0 2.25rem;
  max-width: 50ch;
  font-size: 1.08rem;
  color: #d4d4d8;
}
.hero__cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero__meta {
  margin: 3rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hero__meta div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hero__meta dt {
  font-size: 0.74rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: #fafafa;
  letter-spacing: -0.01em;
}

/* Hero asset (right column) */
.hero__asset {
  position: relative;
  aspect-ratio: 5 / 4;
  max-height: 460px;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(244, 244, 245, 0.65)
  );
  box-shadow: var(--inset-refraction), var(--shadow-diffuse);
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.hero__asset .dot-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 45%, transparent 88%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 45%, transparent 88%);
}
.hero__plate {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(228, 228, 231, 0.7);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--inset-refraction), 0 18px 40px -22px rgba(24, 24, 27, 0.22);
}
.plate__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.plate__row--head {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.plate__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.plate__dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent-tone);
  box-shadow: 0 0 0 0 rgba(93, 122, 107, 0.45);
  animation: plate-pulse 2.4s var(--ease) infinite;
}
.plate__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.plate__divider {
  margin: 0.85rem 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong) 20%,
    var(--border-strong) 80%,
    transparent
  );
}
.plate__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.plate__lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}
.plate__label {
  color: var(--text-muted);
}
.plate__value {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.plate__value--accent {
  color: var(--accent-tone);
  font-weight: 500;
}
@keyframes plate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 122, 107, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(93, 122, 107, 0); }
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-top: calc(68px + clamp(3rem, 8vw, 5rem));
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__asset {
    aspect-ratio: 5 / 4;
    max-height: 360px;
  }
  .hero__meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 560px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hero__meta div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  /* Hero asset: drop the fixed aspect ratio on phones so the panel
     hugs the plate inside it instead of leaving large empty bands.   */
  .hero__asset {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    padding: 1.25rem;
  }
  .hero__plate {
    max-width: 100%;
    padding: 1rem 1.1rem 1.1rem;
  }
  .plate__row--head {
    font-size: 0.78rem;
  }
  .plate__lines li {
    font-size: 0.82rem;
  }
}
@media (max-width: 380px) {
  .hero__asset {
    padding: 1rem;
    border-radius: var(--radius);
  }
  .hero__plate {
    padding: 0.9rem 1rem 1rem;
  }
}

.logos {
  margin-top: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

/* "What we do" + "How it works" + Team + Pricing + worked example + Contact — green pulsating eyebrow dot */
.features > .container > .section__head > .eyebrow::before,
.process > .container > .section__head > .eyebrow::before,
.aboutp-founders > .container > .section__head > .eyebrow::before,
.pricing > .container > .section__head > .eyebrow::before,
.pricing__example--calc > .eyebrow::before,
.contact > .container > .section__head > .eyebrow::before {
  background: var(--accent-tone);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent-tone) 55%, transparent);
  animation: features-eyebrow-pulse 2.4s var(--ease) infinite;
}
@keyframes features-eyebrow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent-tone) 50%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-tone) 0%, transparent);
  }
}

/* Tuck "How it works" / Discover–Build–Scale under the last service row */
.features {
  padding-bottom: clamp(0.75rem, 1.8vw, 1.35rem);
}
.features + .process {
  padding-top: clamp(0.85rem, 2vw, 1.45rem);
}

/* Tuck Team block under "How it works" on the home locales */
.process:has(+ .aboutp-founders) {
  padding-bottom: clamp(0.75rem, 1.8vw, 1.35rem);
}
.process + .aboutp-founders {
  padding-top: clamp(0.85rem, 2vw, 1.45rem);
}

/* Tuck Pricing under Team (last founder card) on home locales */
.aboutp-founders:has(+ .pricing) {
  padding-bottom: clamp(0.75rem, 1.8vw, 1.35rem);
}
.aboutp-founders + .pricing {
  padding-top: clamp(0.85rem, 2vw, 1.45rem);
}

/* Tuck Contact under Pricing (home locales) */
.pricing:has(+ .contact) {
  padding-bottom: clamp(0.75rem, 1.8vw, 1.35rem);
}
.pricing + .contact {
  padding-top: clamp(0.85rem, 2vw, 1.45rem);
}

/* Contact fallback line → footer: less dead space (home locales: main ends with #contact) */
main:has(> #contact) > #contact {
  padding-bottom: clamp(0.75rem, 2vw, 1.5rem);
}
main:has(> #contact) + .site-footer {
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  padding-top: clamp(2rem, 4.5vw, 3.5rem);
}

/* ---------- Services (divided list, anti-3-equal-card) ---------- */
.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  counter-reset: service;
}
.service {
  display: grid;
  grid-template-columns: 84px 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.4s var(--ease);
}
.service:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0)
  );
}
.service__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  padding-top: 0.4rem;
}
.service__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: var(--inset-refraction);
}
.service__body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.service__body p {
  font-size: 1rem;
  max-width: 60ch;
}
.service__outcome {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.service__outcome-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-tone);
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
}
@media (max-width: 720px) {
  .service {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }
  .service__num {
    grid-column: 1 / -1;
    padding-top: 0;
  }
}

/* Generic card primitives kept for legacy contexts (process steps, plans, etc.) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Pitch (problem + solution) ---------- */
.pitch {
  padding-top: clamp(0.9rem, 2.2vw, 1.75rem);
  padding-bottom: clamp(0.35rem, 1vw, 0.75rem);
}
.pitch + .features {
  padding-top: clamp(1rem, 2.4vw, 1.65rem);
}
.pitch__problem {
  padding: clamp(1.05rem, 1.9vw, 1.55rem) 0 0;
  border-top: 0;
}
.pitch__problem .eyebrow::before {
  background: #c85a5a;
  box-shadow: 0 0 0 0 rgba(200, 90, 90, 0.45);
  animation: pitch-problem-pulse 2.4s var(--ease) infinite;
}
@keyframes pitch-problem-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 90, 90, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(200, 90, 90, 0); }
}
.pitch__problem .section__title {
  max-width: 20ch;
  line-height: 1.14;
}
.pitch__stat {
  font-weight: 500;
  color: var(--text);
}
.pitch__subline {
  margin: 1rem 0 0;
  font-size: 1.01rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 56ch;
}
.pitch__cards {
  list-style: none;
  padding: 0;
  margin: 1.65rem 0 0;
  display: block;
  perspective: 1000px;
}
.pitch__card {
  position: sticky;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--text) 11%, transparent);
  border-radius: 24px;
  padding: 0.95rem 1.1rem 1rem;
  margin: 0 0 0.72rem;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
  color: var(--text);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform-origin: top center;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}
.pitch__card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 46px -28px rgba(24, 24, 27, 0.26), var(--shadow-sm);
}
.pitch__card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.75rem;
  min-width: 2.2rem;
  padding: 0 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  color: var(--accent-tone);
  line-height: 1;
  margin-top: 0.05rem;
}
.pitch__card-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.42;
  color: var(--text-muted);
  letter-spacing: -0.006em;
}
.pitch__card:nth-child(1) {
  top: 88px;
  z-index: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}
.pitch__card:nth-child(2) {
  top: 100px;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(0.975) rotate(-0.25deg);
}
.pitch__card:nth-child(3) {
  top: 112px;
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(0.95) rotate(0.2deg);
}
.pitch__card:nth-child(4) {
  top: 124px;
  z-index: 4;
  margin-bottom: 0;
  transform: translate3d(0, 0, 0) scale(0.925) rotate(-0.2deg);
}

/* DE/ES: two-column pitch (problem + solution aside) */
.pitch__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: start;
}
.pitch__solution {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--inset-refraction), var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.pitch__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-style: italic;
  line-height: 1.33;
  color: var(--text);
  margin: 0.65rem 0 1.05rem;
  letter-spacing: -0.01em;
}

/* ---------- Problem — editorial numbered list ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.25rem, 6vw, 6.5rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2.75rem) 0 clamp(0.5rem, 2vw, 1.75rem);
}
.problem__intro {
  padding-top: 0;
}
.problem__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0.9rem 0 0;
  max-width: 14ch;
  text-wrap: balance;
}
.problem__lede {
  margin: 1.45rem 0 0;
  font-size: 1.04rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 40ch;
}
.problem__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.problem__item {
  display: grid;
  grid-template-columns: clamp(3.4rem, 6vw, 5.5rem) 1fr;
  column-gap: clamp(1rem, 2.6vw, 2.5rem);
  align-items: start;
  padding: clamp(1.55rem, 2.6vw, 2.35rem) 0;
  border-top: 1px solid var(--border);
}
.problem__index {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.3;
  color: var(--border-strong);
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.problem__body {
  min-width: 0;
}
.problem__item-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.22rem, 1.9vw, 1.6rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}
.problem__item-text {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}
@media (max-width: 860px) {
  .problem__grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.5rem);
  }
  .problem__title {
    max-width: 18ch;
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
  .problem__lede {
    max-width: 60ch;
  }
}
@media (max-width: 520px) {
  .problem__item {
    grid-template-columns: 2.7rem 1fr;
    column-gap: 0.9rem;
    padding: 1.4rem 0;
  }
  .problem__index {
    font-size: 0.95rem;
  }
}

/* ---------- Service card outcome ---------- */
.card__outcome {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.card__outcome strong {
  color: var(--text);
}
.cards--services {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ---------- Process (How it works) ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-tone);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elev);
}
.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.step p {
  font-size: 0.95rem;
}

/* ---------- Closing CTA ---------- */
.cta {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cta__inner {
  background: var(--text);
  color: var(--accent-contrast);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-md);
  background-image: radial-gradient(
      600px 260px at 10% 0%,
      rgba(255, 255, 255, 0.06),
      transparent 60%
    ),
    radial-gradient(
      500px 240px at 100% 100%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    );
}
.cta .eyebrow {
  color: rgba(250, 250, 250, 0.6);
}
.cta .eyebrow::before {
  background: rgba(250, 250, 250, 0.3);
}
.cta .section__title {
  color: var(--accent-contrast);
  margin-inline: auto;
  max-width: 22ch;
}
.cta .section__sub {
  color: rgba(250, 250, 250, 0.75);
  margin-inline: auto;
}
.cta__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: var(--accent-contrast);
  color: var(--text);
}
.cta .btn--primary:hover {
  background: #fff;
}
.cta .btn--ghost {
  color: var(--accent-contrast);
  border-color: rgba(250, 250, 250, 0.25);
}
.cta .btn--ghost:hover {
  border-color: var(--accent-contrast);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- About ---------- */
.about__grid {
  max-width: 760px;
}
/* ---------- Commitments (divided list, anti-card-overuse) ---------- */
.commitments {
  margin: 2.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.commit {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 2fr;
  gap: 1.5rem 2rem;
  padding: 1.4rem 0.25rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.commit dt {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}
.commit dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
}
@media (max-width: 720px) {
  .commit {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 1.25rem 0;
  }
}
.about__more {
  margin: 1.75rem 0 0;
  font-size: 0.98rem;
}
.link-arrow {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link-arrow:hover {
  color: var(--accent, var(--text));
  border-bottom-color: currentColor;
}

/* ---------- Pricing (outcome-based) ---------- */
.pricing__example {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
/* Exploratory-call pricing panel (replaces the calculator) */
.pricing__how {
  text-align: left;
  max-width: 640px;
}
.pricing__how-lede {
  margin: 0 0 1.5rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 34ch;
}
.pricing__how-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.pricing__how-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.pricing__how-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.pricing__example--calc {
  position: relative;
  background-image: radial-gradient(
    520px 180px at 50% -20%,
    color-mix(in oklab, var(--accent-tone) 14%, transparent),
    transparent 65%
  );
}
.pricing__example h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0.4rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.pricing__example--calc h3.pricing-calc__article-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 36rem;
}
.pricing-calc {
  max-width: 52rem;
  margin: 0 auto 1.65rem;
  text-align: left;
}
.pricing-calc__layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .pricing-calc__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.15rem;
  }
}
.pricing-calc__panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.3rem 1.35rem;
  background: linear-gradient(
    165deg,
    color-mix(in oklab, var(--surface-muted) 88%, var(--surface)),
    var(--surface) 55%
  );
  box-shadow: var(--inset-refraction);
}
.pricing-calc__panel--inputs {
  border-left: 3px solid color-mix(in oklab, var(--accent-tone) 55%, var(--border));
}
.pricing-calc__panel--results {
  border-color: color-mix(in oklab, var(--accent-tone) 22%, var(--border));
  background: linear-gradient(
    175deg,
    color-mix(in oklab, var(--accent-tone) 7%, var(--surface)),
    var(--surface) 50%
  );
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-height: 9rem;
}
.pricing-calc__panel--results > .pricing-calc__panel-title {
  align-self: flex-start;
  width: 100%;
}
.pricing-calc__panel--results > .pricing-calc__outputs {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.pricing-calc__panel-title {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.pricing-calc__fields {
  display: grid;
  gap: 1rem;
}
@media (min-width: 480px) {
  .pricing-calc__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }
}
.pricing-calc__row.field {
  gap: 0.45rem;
}
.pricing-calc__row.field label {
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.35;
}
.pricing-calc__row.field input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  padding: 0.72rem 0.5rem;
}
.pricing-calc__row.field input::-webkit-outer-spin-button,
.pricing-calc__row.field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.pricing-calc__row.field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.pricing-calc__outputs {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.pricing-calc__stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: end;
  padding: 1rem 0;
  border-bottom: 1px dashed color-mix(in oklab, var(--border) 85%, transparent);
}
.pricing-calc__panel--results .pricing-calc__stat {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
  border: none;
}
.pricing-calc__stat:first-child {
  padding-top: 0;
}
.pricing-calc__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pricing-calc__stat:only-child {
  border-bottom: none;
  padding: 0;
}
.pricing-calc__stat-value {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  text-align: right;
}
.pricing-calc__panel--results .pricing-calc__stat-value {
  grid-column: auto;
  text-align: center;
}
.pricing-calc__stat-value--fee {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
}
/* Savings EUR: high-contrast pill so it reads as “the number” */
.pricing-calc__stat-value--fee:not(.is-placeholder) {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.38em 0.7em 0.42em;
  border-radius: 12px;
  color: #0f3d24;
  background: linear-gradient(
    165deg,
    color-mix(in oklab, #22c55e 32%, var(--surface)),
    color-mix(in oklab, var(--accent-tone) 38%, var(--surface)) 100%
  );
  border: 1px solid color-mix(in oklab, #16a34a 45%, var(--border));
  box-shadow: 0 2px 10px color-mix(in oklab, #16a34a 22%, transparent),
    var(--inset-refraction);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.pricing-calc__stat-value--fee.is-placeholder {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
  font-family: var(--font-sans);
  letter-spacing: 0;
  line-height: 1.35;
  max-width: 16rem;
  margin-top: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-shadow: none;
  text-align: center;
}
@keyframes pricing-calc-euro-pop {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  38% {
    transform: scale(1.07);
    filter: brightness(1.1);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}
.pricing-calc__stat-value--fee.is-euro-pop:not(.is-placeholder) {
  animation: pricing-calc-euro-pop 0.58s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .pricing-calc__stat-value--fee.is-euro-pop:not(.is-placeholder) {
    animation: none;
  }
}
@media (max-width: 479px) {
  .pricing-calc__fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .pricing-calc__stat {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .pricing-calc__stat-value {
    grid-column: 1;
    text-align: left;
  }
  .pricing-calc__panel--results .pricing-calc__stat-value {
    text-align: center;
  }
}
.pricing__example--calc > .btn {
  margin-top: 1.5rem;
}
.pricing__note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.pricing__note a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.pricing__note a:hover {
  border-color: var(--text);
}

/* ---------- Legacy plans (retained) ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.plan:hover {
  border-color: var(--border-strong);
}
.plan--featured {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}
.plan__tag {
  position: absolute;
  top: -12px;
  left: 2rem;
  background: var(--text);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
}
.plan h3 {
  font-size: 1.1rem;
  font-weight: 600;
}
.plan__desc {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.price {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.period {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.plan__list li {
  position: relative;
  padding-left: 1.4rem;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--text);
}
.plan .btn {
  margin-top: auto;
}

/* ---------- Contact ---------- */
.form {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.field__hint {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}
.field input,
.field textarea {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    background 0.15s var(--ease);
  width: 100%;
  font-family: inherit;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--surface);
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form__note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0.55;
  display: none;
}
.form__note.is-ok,
.form__note.is-err {
  color: var(--text);
}
.form__note.is-ok::before,
.form__note.is-err::before {
  display: inline-block;
}
.form__note.is-ok::before {
  background: var(--accent-tone);
  opacity: 0.85;
}
.form__note.is-err::before {
  background: #b6553a; /* desaturated terracotta, < 80% saturation */
  opacity: 0.85;
}
.contact__fallback {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.contact__fallback a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
}
.contact__fallback a:hover {
  border-color: var(--text);
}

/* =================================================== */
/* ---------- Case Studies page                ------- */
/* =================================================== */

.cs-hero {
  position: relative;
  min-height: min(100dvh, 52rem);
  display: flex;
  align-items: center;
  margin-top: -68px;
  padding: calc(68px + clamp(3rem, 8vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  background: #0f1012;
}
.cs-hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cs-hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1) brightness(0.72);
  opacity: 0.7;
}
.cs-hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      108deg,
      rgba(10, 10, 10, 0.76) 0%,
      rgba(10, 10, 10, 0.68) 36%,
      rgba(10, 10, 10, 0.48) 58%,
      rgba(10, 10, 10, 0.22) 78%,
      rgba(10, 10, 10, 0.14) 100%
    ),
    radial-gradient(
      900px 460px at 70% 8%,
      rgba(0, 0, 0, 0.34),
      transparent 76%
    );
}
.cs-hero .container {
  position: relative;
  z-index: 1;
}
/* Tighter plate for four KPI rows (same glass + inner card as home hero) */
.cs-hero .plate__lines {
  gap: 0.48rem;
}
.cs-hero .plate__lines li {
  align-items: flex-start;
  gap: 0.65rem;
}
.cs-hero .plate__label {
  max-width: 62%;
  line-height: 1.35;
}

/* ---------- About page (founders + LinkedIn wireframe hero) -- */
.aboutp-hero {
  --about-hero-bg: #0a0a0a;
  --about-nav-h: 68px;
  position: relative;
  isolation: isolate;
  /* Sit under sticky nav so the banner (not the light body bg) reads as one panel */
  margin-top: calc(-1 * var(--about-nav-h));
  padding: calc(var(--about-nav-h) + clamp(4rem, 10vw, 7rem)) 0
    clamp(5rem, 14vw, 9rem);
  min-height: min(100dvh, 52rem);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background-color: var(--about-hero-bg);
}
.aboutp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/images/backgrounds/mountain-banner.png?v=1") no-repeat center bottom /
    min(1240px, 104vw) auto;
  opacity: 0.92;
  pointer-events: none;
}
/* Dot grid + soft vignette: upper zone stays tied to the banner (no flat paint-over) */
.aboutp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.055) 0.65px,
      transparent 0.75px
    ),
    linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.2) 0%,
      rgba(10, 10, 10, 0.42) 36%,
      rgba(10, 10, 10, 0.1) 68%,
      transparent 100%
    );
  background-size: 14px 14px, 100% 100%;
}
.aboutp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 40rem;
}
.aboutp-hero__title {
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: #fafafa;
  margin: 0;
  max-width: 15ch;
}
.aboutp-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #8faa9e;
  letter-spacing: -0.01em;
}
.aboutp-hero__lede {
  margin: 1.35rem 0 0;
  max-width: 52ch;
  font-size: 1.06rem;
  line-height: 1.55;
  color: #a1a1aa;
}
.aboutp-hero__note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: #71717a;
}
.aboutp-hero__note a {
  color: #d4d4d8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.aboutp-hero__note a:hover {
  color: #fafafa;
}
.aboutp-hero__note-sep {
  margin: 0 0.5rem;
  opacity: 0.45;
}
body.about-page .aboutp-hero .eyebrow {
  color: #a1a1aa;
}
body.about-page .aboutp-hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.28);
}

/* About page: nav on dark hero (off-black, not pure #000) */
body.about-page .nav {
  background: rgba(10, 10, 10, 0.52);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
body.about-page .nav.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.about-page .brand,
body.about-page .brand__name {
  color: #fafafa;
}
body.about-page .nav__links {
  color: #a1a1aa;
}
body.about-page .nav__links a:hover,
body.about-page .nav__links a.is-active {
  color: #fafafa;
}
body.about-page .nav__links a.is-active::after {
  background: #fafafa;
}
body.about-page .lang__trigger {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
}
body.about-page .lang__trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}
body.about-page .lang__chevron {
  color: #a1a1aa;
}
body.about-page .lang.is-open .lang__chevron {
  color: #e4e4e7;
}
body.about-page .nav__toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
body.about-page .nav__toggle span {
  background: #e4e4e7;
}
body.about-page .nav .btn--primary {
  background: #fafafa;
  color: #0a0a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.25);
}
body.about-page .nav .btn--primary:hover {
  background: #ffffff;
  color: #0a0a0a;
}
body.about-page .nav.is-open .nav__links {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.about-page .nav.is-open .nav__links a {
  color: #d4d4d8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.about-page .nav.is-open .nav__links a:hover,
body.about-page .nav.is-open .nav__links a.is-active {
  color: #fafafa;
}
.aboutp-manifesto {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}
.aboutp-manifesto__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.38;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 38ch;
  margin: 0;
  padding-left: clamp(0rem, 3vw, 1.5rem);
  border-left: 3px solid var(--accent-tone);
}
.aboutp-founders {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.founder-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.founder-panel:first-of-type {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: none;
  padding-top: 0;
}
.founder-panel--reverse {
  grid-template-columns: 1.05fr 1fr;
}
.founder-panel--reverse .founder-panel__figure {
  order: 2;
}
.founder-panel--reverse .founder-panel__body {
  order: 1;
}
.founder-panel__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 4 / 5;
  max-height: min(520px, 70vw);
  box-shadow: var(--inset-refraction), var(--shadow-md);
}
.founder-panel__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
.js-tilted-card {
  transform-style: preserve-3d;
  will-change: transform;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) scale(1);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.js-tilted-card img {
  transform: translateZ(0);
  transition: transform 260ms var(--ease), filter 260ms var(--ease);
}
.js-tilted-card .founder-panel__loc {
  transform: translateZ(12px);
}
.js-tilted-card .founder-panel__tooltip {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(220, 220, 224, 0.9);
  color: #262626;
  padding: 0.32rem 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translate(-50%, -135%);
  transition: opacity 180ms var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.js-tilted-card.is-tilt-active .founder-panel__tooltip {
  opacity: 1;
}
.js-tilted-card.is-tilt-active img {
  transform: translateZ(20px) scale(1.02);
}
.founder-panel__figcap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
}
.founder-panel__loc {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(228, 228, 231, 0.65);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  box-shadow: var(--inset-refraction);
}
.founder-panel__body {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.founder-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}
.founder-panel__name {
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
  color: var(--text);
}
.founder-panel__hook {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.founder-panel__body > p:last-of-type {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
}
.founder-panel__divider {
  height: 1px;
  background: var(--border);
  width: min(100%, 8rem);
  margin: 0.25rem 0;
}
.aboutp-beliefs {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
}
.aboutp-beliefs__list {
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.aboutp-belief {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
}
.aboutp-belief:last-child {
  border-bottom: 1px solid var(--border);
}
.aboutp-belief dt {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.aboutp-belief dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}
@media (max-width: 900px) {
  .aboutp-hero {
    min-height: min(100dvh, 44rem);
    padding-bottom: clamp(4rem, 18vw, 7rem);
  }
  .aboutp-hero::before {
    background-size: min(200vw, 900px) auto;
    background-position: center bottom;
  }
  .aboutp-hero__grid,
  .founder-panel,
  .founder-panel--reverse {
    grid-template-columns: 1fr;
  }
  .founder-panel--reverse .founder-panel__figure,
  .founder-panel--reverse .founder-panel__body {
    order: unset;
  }
  .founder-panel__figure {
    max-height: none;
    aspect-ratio: 16 / 11;
  }
}
@media (hover: none), (pointer: coarse) {
  .js-tilted-card {
    transform: none !important;
  }
  .js-tilted-card img {
    transform: none !important;
  }
  .js-tilted-card .founder-panel__tooltip {
    display: none;
  }
}

/* Featured case ----------------------------------- */
.cs-featured {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem);
}

/* Filter row sits above the case grid. Hairline-rule label + pill chips.
   No SaaS-pill background on the chips; uses the same editorial tone
   as eyebrows elsewhere on the site. */
.cs-filter {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}
.cs-filter__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cs-filter__chips {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.cs-filter__chip {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease), transform 0.18s var(--ease);
}
.cs-filter__chip:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.cs-filter__chip:active {
  transform: scale(0.96);
}
.cs-filter__chip.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}
.cs-filter__empty {
  margin: clamp(2rem, 4vw, 3rem) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.cs-filter__empty a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* When a non-"all" filter is active, hide non-matching cases AND collapse
   the top-border / margin on the first visible case so spacing stays right. */
.cs-featured[data-cs-filterable] .featured.is-hidden {
  display: none;
}
.cs-featured[data-cs-filterable] .featured:not(.is-hidden):first-of-type,
.cs-featured[data-cs-filterable] .featured:not(.is-hidden).is-first-visible {
  margin-top: 0;
  padding-top: clamp(0.5rem, 1vw, 1rem);
  border-top: 0;
}
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-areas:
    "head head"
    "media body";
  gap: clamp(2rem, 4vw, 3.5rem);
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: start;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.featured:first-of-type {
  margin-top: 0;
}

/* Reverse: image goes right, body left. Visual rhythm beats four identical
   layouts in a row. */
.featured--reverse {
  grid-template-columns: 1fr 1.05fr;
  grid-template-areas:
    "head head"
    "body media";
}

.featured__head {
  grid-area: head;
  display: grid;
  gap: 0.85rem;
  max-width: 56ch;
}
.featured__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--text);
  margin: 0;
  max-width: 18ch;
}
/* green/italic purged — emphasis reads as part of the headline */
.featured__title em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  letter-spacing: inherit;
}
.featured__id {
  font-family: var(--font-mono);
  color: var(--text);
  letter-spacing: 0.12em;
  font-weight: 500;
}
/* Case-study eyebrows ("CS · 0N") become underlined chapter labels */
.cs-featured .featured__head > .eyebrow {
  color: var(--text);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border-strong);
}
.cs-featured .featured__head > .eyebrow::before {
  display: none;
}
/* Closing CTA sits on a dark plate — chapter label + sub in on-dark tones */
.cta .eyebrow {
  color: var(--accent-contrast);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.cta .eyebrow::before {
  display: none;
}
.cta .section__title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  max-width: 20ch;
}
.cta .section__sub {
  color: rgba(250, 250, 250, 0.74);
}
/* Defensive: kill the sage italic-serif emphasis device anywhere else it renders */
.hero__title em,
.sh-sub em {
  font-family: inherit;
  font-style: normal;
  color: inherit;
}

/* ===== Header reveal — the label, heading and sub rise into place in sequence
   as the section scrolls into view (reuses the .is-visible scroll observer) ===== */
/* Neutralize the block-level reveal on these containers; their children animate instead */
.section__head.reveal,
.problem__intro.reveal,
.cta__inner.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .section__head.reveal > *,
  .problem__intro.reveal > *,
  .cta__inner.reveal > *,
  .featured.reveal .featured__head > * {
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 0.82s var(--ease), transform 0.82s var(--ease);
    will-change: transform, opacity;
  }
  .section__head.is-visible > *,
  .problem__intro.is-visible > *,
  .cta__inner.is-visible > *,
  .featured.is-visible .featured__head > * {
    opacity: 1;
    transform: none;
  }
  /* stagger: label → heading → sub → actions */
  .section__head.is-visible > :nth-child(2),
  .problem__intro.is-visible > :nth-child(2),
  .cta__inner.is-visible > :nth-child(2),
  .featured.is-visible .featured__head > :nth-child(2) {
    transition-delay: 0.1s;
  }
  .section__head.is-visible > :nth-child(3),
  .problem__intro.is-visible > :nth-child(3),
  .cta__inner.is-visible > :nth-child(3) {
    transition-delay: 0.2s;
  }
  .section__head.is-visible > :nth-child(n + 4),
  .cta__inner.is-visible > :nth-child(n + 4) {
    transition-delay: 0.3s;
  }
}
.featured__media {
  grid-area: media;
}
.featured__body {
  grid-area: body;
}
.featured__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 4 / 3;
  box-shadow: var(--inset-refraction), var(--shadow-diffuse);
}
.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.02);
}
/* Logo art: fill the rounded frame (same clip as photo cases) */
.featured__media--logo img {
  object-fit: cover;
  object-position: center;
  padding: 0;
  filter: none;
}

/* Placeholder media: typographic "pipeline diagram" inside the same
   rounded frame, for cases without a photo asset yet. */
.featured__media--placeholder {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(31, 61, 46, 0.06), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--surface-muted));
}
.featured__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1.1rem;
  padding: clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.featured__placeholder-stack {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}
.featured__placeholder-step {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}
.featured__placeholder-step--accent {
  background: rgba(31, 61, 46, 0.94);
  border-color: rgba(31, 61, 46, 0.94);
  color: #fafafa;
}
.featured__placeholder-arrow {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1;
}
.featured__placeholder-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.featured__caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(228, 228, 231, 0.6);
  border-radius: 99px;
  font-size: 0.78rem;
  color: var(--text);
  letter-spacing: -0.005em;
  box-shadow: var(--inset-refraction);
}
.featured__caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent-tone);
}
.featured__body {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}
.featured__facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.featured__facts div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.featured__facts dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.featured__facts dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.featured__lede {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
}
.featured__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.featured__metrics li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.featured__metrics li:last-child {
  border-bottom: 1px solid var(--border);
}
.metric__value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.metric__label {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.featured__quote {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--inset-refraction), var(--shadow-sm);
}
.featured__quote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 1rem;
}
.featured__quote cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cite__name {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
}
.cite__role {
  font-size: 0.85rem;
  color: var(--text-soft);
}
.cs-featured__note {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 56ch;
}
@media (max-width: 900px) {
  .featured,
  .featured--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body";
  }
}

/* List of cases ----------------------------------- */
.cs-list {
  padding-top: clamp(2rem, 4vw, 3rem);
}
.cases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.case {
  display: grid;
  grid-template-columns: 110px 1.2fr 2fr;
  gap: 1.5rem 2.5rem;
  align-items: start;
  padding: 2.25rem 0.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.5s var(--ease);
}
.case:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0)
  );
}
.case__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-tone);
  letter-spacing: 0.08em;
  padding-top: 0.4rem;
}
.case__head h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.case__meta {
  font-size: 0.85rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.case__brief {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 1.25rem;
  grid-column: 3;
  grid-row: 1;
}
.case__metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  grid-column: 3;
  grid-row: 2;
}
.case__metrics li {
  position: relative;
  padding-left: 1.25rem;
}
.case__metrics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1.5px;
  background: var(--accent-tone);
  border-radius: 2px;
  opacity: 0.7;
}
.case__metrics strong {
  color: var(--text);
  font-weight: 600;
  font-feature-settings: "tnum";
}
.cs-list__note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
}
@media (max-width: 900px) {
  .case {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.75rem 0;
  }
  .case__num {
    padding-top: 0;
  }
  .case__brief,
  .case__metrics {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Active nav state for sub-pages ------------------- */
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}
.footer__copy {
  color: var(--text-soft);
  font-size: 0.9rem;
}
.footer__links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__links a:hover {
  color: var(--text);
}

/* =================================================== */
/* ---------- Site Footer (dark, full-section) ------- */
/* =================================================== */
.site-footer {
  --sf-bg: #0a0a0a;
  --sf-border: rgba(255, 255, 255, 0.08);
  --sf-text: #e4e4e7;
  --sf-text-strong: #fafafa;
  --sf-text-muted: #a1a1aa;
  --sf-text-soft: #71717a;
  background: var(--sf-bg);
  color: var(--sf-text);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  /* subtle radial wash for premium depth, no neon */
  background-image: radial-gradient(
      900px 480px at 12% 0%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 88% 100%,
      rgba(93, 122, 107, 0.06),
      transparent 60%
    );
}
.site-footer__inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* Top row: lede + sitemap columns */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.site-footer__intro {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 34ch;
}
.site-footer__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.35;
  color: var(--sf-text);
  max-width: 32ch;
  margin: 0;
  letter-spacing: -0.005em;
}
.site-footer__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.site-footer__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.site-footer__trust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--sf-border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.site-footer__trust-icon--eu {
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
}
.site-footer__trust-icon--eu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.site-footer__trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.1rem;
}
.site-footer__trust-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--sf-text-strong);
}
.site-footer__trust-sub {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--sf-text-soft);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  justify-self: end;
  width: 100%;
  max-width: 400px;
}
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-text-soft);
  margin: 0 0 1.1rem;
}
.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.site-footer__col a {
  font-size: 0.92rem;
  color: var(--sf-text);
  letter-spacing: -0.005em;
  transition: color 0.2s var(--ease);
}
.site-footer__col a:hover {
  color: var(--sf-text-strong);
}

/* Big wordmark band */
.site-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 1.8vw, 1.6rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  /* shared sizing token: mark and wordmark scale together */
  --sf-brand-size: clamp(3.5rem, 9vw, 7rem);
}
.site-footer__mark {
  width: var(--sf-brand-size);
  height: var(--sf-brand-size);
  border-radius: clamp(14px, 1.8vw, 22px);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.site-footer__wordmark {
  font-family: var(--font-brand);
  font-size: var(--sf-brand-size);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--sf-text-strong);
  line-height: 1;
  text-transform: lowercase;
}

/* Bottom row */
.site-footer__bottom {
  display: grid;
  grid-template-columns: 1.3fr auto auto auto;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--sf-border);
}
.site-footer__cluster {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-footer__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sf-text-soft);
  margin: 0;
}
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.site-footer__social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--sf-text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.site-footer__social a:hover {
  color: var(--sf-text-strong);
  background: rgba(255, 255, 255, 0.06);
}
.site-footer__social a:active {
  transform: scale(0.94);
}
/* "Copied" feedback bubble on the email icon (and any other clipboard
   link in the footer social row). Triggered by JS adding .is-copied
   and a data-copied="<label>" attribute. */
.site-footer__social a.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(24, 24, 27, 0.92);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  animation: footer-copied 1.8s var(--ease) forwards;
}
@keyframes footer-copied {
  0% { opacity: 0; transform: translate(-50%, 4px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -2px); }
}
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--sf-text-soft);
  margin: 0;
}
.site-footer__clocks {
  display: inline-flex;
  gap: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--sf-text-soft);
  text-transform: uppercase;
}
.site-footer__clocks span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.site-footer__clocks strong {
  color: var(--sf-text-strong);
  font-weight: 500;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}
.site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.7rem;
  border: 1px solid var(--sf-border);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4d4d8;
  white-space: nowrap;
  justify-self: end;
}
.site-footer__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent-tone);
  box-shadow: 0 0 0 0 rgba(93, 122, 107, 0.5);
  animation: plate-pulse 2.4s var(--ease) infinite;
}

/* Responsive collapse */
@media (max-width: 1000px) {
  .site-footer__bottom {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
  }
  .site-footer__cluster--social {
    grid-column: 1 / -1;
  }
  .site-footer__status {
    justify-self: start;
  }
}
@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
  .site-footer__cols {
    justify-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Reveal on scroll (transform + opacity only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--index, 0) * 80ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.pitch .reveal {
  transition-duration: 0.28s;
}

/* Stagger inside common sibling containers */
.cards > *,
.steps > *,
.plans > *,
.services > *,
.commitments > .commit,
.aboutp-beliefs__list > .aboutp-belief,
.pitch__list > li,
.hero__meta > div { --staggered: 1; }

.cards > *:nth-child(1),
.steps > *:nth-child(1),
.plans > *:nth-child(1),
.services > *:nth-child(1),
.commitments > .commit:nth-child(1),
.aboutp-beliefs__list > .aboutp-belief:nth-child(1),
.pitch__list > li:nth-child(1),
.hero__meta > div:nth-child(1) { --index: 0; }

.cards > *:nth-child(2),
.steps > *:nth-child(2),
.plans > *:nth-child(2),
.services > *:nth-child(2),
.commitments > .commit:nth-child(2),
.aboutp-beliefs__list > .aboutp-belief:nth-child(2),
.pitch__list > li:nth-child(2),
.hero__meta > div:nth-child(2) { --index: 1; }

.cards > *:nth-child(3),
.steps > *:nth-child(3),
.plans > *:nth-child(3),
.services > *:nth-child(3),
.commitments > .commit:nth-child(3),
.aboutp-beliefs__list > .aboutp-belief:nth-child(3),
.pitch__list > li:nth-child(3),
.hero__meta > div:nth-child(3) { --index: 2; }

.hero__meta > div:nth-child(4) { --index: 3; }

.commitments > .commit:nth-child(4),
.pitch__list > li:nth-child(4),
.cards > *:nth-child(4) { --index: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .pitch__grid {
    grid-template-columns: 1fr;
  }
  .pitch__solution {
    position: static;
  }
  .pitch__card {
    position: static;
    margin-bottom: 0.8rem;
    min-height: 0;
    transform: none !important;
  }
  .plans,
  .steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__right {
    gap: 0.5rem;
  }
  .lang {
    font-size: 0.72rem;
  }
  .lang__trigger {
    height: 30px;
    padding: 0 0.5rem 0 0.7rem;
  }
  .lang__menu {
    min-width: 180px;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav.is-open .nav__links a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav__links a:last-child {
    border-bottom: 0;
  }
  /* Hide scroll-spy active underline inside mobile drawer */
  .nav.is-open .nav__links a.is-active::after {
    display: none;
  }
  /* Group divider: stronger line after Contact (before Case studies) */
  .nav.is-open .nav__links a:nth-child(4) {
    border-bottom-width: 2px;
    border-bottom-color: var(--text);
  }
  body.home-video .nav.is-open .nav__links a:nth-child(4),
  body.case-studies-video .nav.is-open .nav__links a:nth-child(4),
  body.about-page .nav.is-open .nav__links a:nth-child(4) {
    border-bottom-color: rgba(255, 255, 255, 0.55);
  }
  .stats {
    gap: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .aboutp-hero::before {
    opacity: 0.75;
  }
}

/* Calendly floating badge — match site pill CTAs (Geist, off-black, subtle edge) */
.calendly-badge-widget {
  font-family: var(--font-sans);
}
.calendly-badge-widget .calendly-badge-content,
.calendly-badge-widget a.calendly-badge-content {
  border-radius: 999px !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  letter-spacing: -0.006em !important;
  padding-inline: 1.2rem !important;
  min-height: 46px !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* ---------------------------------------------------------------------
   Legal pages (privacy, imprint) — simple article layout.
   Editorial: 720px max column, serif H1, generous leading. No hero,
   so we pad the main element to clear the fixed nav.
--------------------------------------------------------------------- */
body.legal-page main {
  padding-top: calc(68px + clamp(2rem, 5vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
}
.legal-page__article {
  max-width: 760px;
}
.legal-page__head {
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.legal-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0.6rem 0 0;
  color: var(--text);
}
.legal-page__meta {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.legal-page__lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 2.5rem;
  max-width: 64ch;
}
.legal-page__body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
  color: var(--text);
}
.legal-page__body h3 {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}
.legal-page__body p,
.legal-page__body li {
  font-size: 0.985rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.legal-page__body p {
  margin: 0 0 1rem;
  max-width: 64ch;
}
.legal-page__body ul {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}
.legal-page__body li {
  margin-bottom: 0.35rem;
}
.legal-page__body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.18s var(--ease);
}
.legal-page__body a:hover {
  text-decoration-color: var(--text);
}
.legal-page__body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-muted);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--text);
}
.legal-page__body strong {
  color: var(--text);
  font-weight: 600;
}
.legal-page__body em {
  font-style: italic;
  color: var(--text);
}
/* "To complete before publication" note — visually distinct so we don't
   ship it accidentally. */
.legal-page__todo {
  padding: 1rem 1.1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background: rgba(196, 90, 47, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0.5rem 0 1.5rem;
}
.legal-page__table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2rem;
}
.legal-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}
.legal-page__table th,
.legal-page__table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal-page__table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
}

/* =================================================================
   RIDGELINE — scroll-driven EXPLORE → DISCOVER hero (home)
   One rAF-set custom prop --p (0→1) drives every layer via CSS
   calc()/clamp() windows. Transform/opacity only. No blend modes
   (composites clean on #0a0a0a). Safari-safe. Reduced-motion → static.
   ================================================================= */
.scrollhero {
  position: relative;
  height: 320vh;               /* pin scroll length */
  margin-top: -68px;           /* slide under the transparent nav */
  padding: 0;                  /* override generic section padding (was pushing the pin down 96px) */
  background: #0a0a0a;
}
.scrollhero__pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;          /* scoped stacking context (like about-hero) */
  background: #0a0a0a;
}

/* --- background layers ------------------------------------------- */
.sh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 90% at 50% 18%, #14181c 0%, #0d0f11 46%, #0a0a0a 78%);
}
.sh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.055) 0.65px, transparent 0.75px);
  background-size: 14px 14px;
  opacity: 0.9;
}

/* real Swiss-Alps footage "develops" in across p .34 → .78 */
.sh-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: clamp(0, (var(--p, 0) - 0.34) / 0.44, 1);
  filter:
    brightness(calc(0.34 + 0.38 * clamp(0, (var(--p, 0) - 0.34) / 0.44, 1)))
    saturate(calc(0.8 + 0.2 * clamp(0, (var(--p, 0) - 0.34) / 0.44, 1)))
    blur(calc(6px * (1 - clamp(0, (var(--p, 0) - 0.34) / 0.44, 1))));
  will-change: opacity, filter;
}
.sh-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.08 - 0.08 * clamp(0, (var(--p, 0) - 0.34) / 0.44, 1)));
}

/* single warm ember bloom — triangular pulse peaking at the p=.5 seam */
.sh-ember {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(680px 220px at 50% 60%, rgba(170, 116, 78, 0.22) 0%, rgba(124, 110, 86, 0.10) 40%, transparent 72%);
  opacity: calc(0.16 + 0.20 * (1 - min(1, abs(var(--p, 0) - 0.5) * 2)));
}

/* white wireframe ridge — 3 parallax layers, fade out into the photo */
.sh-wire {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("/assets/images/backgrounds/mountain-banner.png?v=1") no-repeat center bottom / min(1280px, 108vw) auto;
  pointer-events: none;
  will-change: transform, opacity;
}
.sh-wire--back {
  transform: translateY(calc(var(--p, 0) * -14px)) scale(1.04);
  opacity: calc(0.45 * (1 - clamp(0, (var(--p, 0) - 0.30) / 0.32, 1)));
}
.sh-wire--mid {
  transform: translateY(calc(var(--p, 0) * 26px));
  opacity: calc(0.92 * (1 - clamp(0, (var(--p, 0) - 0.30) / 0.28, 1)));
}
.sh-wire--front {
  background-size: min(1480px, 124vw) auto;
  transform: translateY(calc(var(--p, 0) * 70px)) scale(1.12);
  opacity: calc(0.85 * (1 - clamp(0, (var(--p, 0) - 0.25) / 0.25, 1)));
}

/* legibility scrims fade in over the footage p .40 → .70 */
.sh-scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: clamp(0, (var(--p, 0) - 0.40) / 0.30, 1);
}
.sh-scrim--v {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.30) 0%, rgba(10, 10, 10, 0.12) 40%, rgba(10, 10, 10, 0.62) 100%);
}
.sh-scrim--l {
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.34) 46%, transparent 72%);
}

/* --- EXPLORE group (centered) ----------------------------------- */
.sh-explore {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  /* whole group fades as DISCOVER takes over */
  opacity: calc(1 - clamp(0, (var(--p, 0) - 0.20) / 0.22, 1));
  pointer-events: none;
}
.sh-word {
  font-family: var(--font-sans);   /* General Sans, matches the site's headings */
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.92;
  color: #faf6f0;
  text-shadow: 0 2px 48px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity;
  margin: 0;
}
.sh-word--explore {
  font-size: clamp(2.6rem, 14vw, 12rem);
  letter-spacing: 0.005em;
  max-width: 100%;
  transform: translateY(calc(var(--p, 0) * -24px)) scale(calc(1 - 0.05 * clamp(0, var(--p, 0) / 0.3, 1)));
}
.sh-sub {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  letter-spacing: 0.01em;
  color: #e8e2d8;
  margin: 1.4rem 0 0;
  max-width: 44ch;
}
.sh-sub em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-tone);
}
.sh-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vh, 44px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: calc(1 - clamp(0, var(--p, 0) / 0.12, 1));
}
.sh-cue__mouse {
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(250, 246, 240, 0.45);
  border-radius: 22px;
  position: relative;
}
.sh-cue__mouse i {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: #8faa9e;
  transform: translateX(-50%);
  animation: sh-cue 1.6s ease-in-out infinite;
}
@keyframes sh-cue {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 12px); opacity: 0; }
  100% { opacity: 0; }
}
.sh-cue__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #71717a;
}

/* --- DISCOVER group (left-anchored) ----------------------------- */
.sh-discover {
  position: absolute;
  z-index: 6;
  left: clamp(1.25rem, 9vw, 9rem);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(52ch, 48vw);
  /* fades + rises in p .45 → .72 */
  opacity: clamp(0, (var(--p, 0) - 0.45) / 0.24, 1);
}
.sh-word--discover {
  display: block;
  font-size: clamp(2.6rem, 8.5vw, 7rem);
  letter-spacing: 0.005em;            /* match AUTOMATE tracking */
  /* inherits color #faf6f0 + text-shadow from .sh-word — identical shade to AUTOMATE */
  transform: translateY(calc(30px * (1 - clamp(0, (var(--p, 0) - 0.45) / 0.24, 1))));
}
.sh-discover__lede {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  line-height: 1.6;
  color: #d4d4d8;
  max-width: 50ch;
  margin: 1.25rem 0 0;
}
.sh-discover__cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.sh-discover .btn--primary {
  background: #fafafa;
  color: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.6);
}
.sh-discover .btn--primary:hover {
  background: #fff;
}
.sh-discover__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8faa9e;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-underline-offset: 4px;
}
.sh-discover__link:hover { text-decoration: underline; }
.sh-discover__link .btn__arrow { transition: transform 0.25s var(--ease); }
.sh-discover__link:hover .btn__arrow { transform: translateX(3px); }

/* --- 3 service cards, staggered rise (bottom) ------------------- */
.sh-cards {
  position: absolute;
  z-index: 6;
  left: clamp(1.25rem, 9vw, 9rem);
  right: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(2rem, 6vh, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.sh-card {
  --start: calc(0.66 + var(--i) * 0.05);
  position: relative;
  padding: 1.2rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(16, 17, 19, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(93, 122, 107, 0.55);
  opacity: clamp(0, (var(--p, 0) - var(--start)) / 0.14, 1);
  transform: translateY(calc(64px * (1 - clamp(0, (var(--p, 0) - var(--start)) / 0.14, 1)))) scale(calc(0.97 + 0.03 * clamp(0, (var(--p, 0) - var(--start)) / 0.14, 1)));
  will-change: transform, opacity;
}
.sh-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-tone);
}
.sh-card__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fafafa;
  margin: 0.5rem 0 0.35rem;
  letter-spacing: -0.01em;
}
.sh-card__blurb {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #a1a1aa;
  margin: 0 0 0.7rem;
}
.sh-card__link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8faa9e;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.sh-card__link .btn__arrow { transition: transform 0.25s var(--ease); }
.sh-card__link:hover .btn__arrow { transform: translateX(3px); }

/* --- left progress-nav + social --------------------------------- */
.sh-nav {
  position: absolute;
  z-index: 7;
  left: clamp(1rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-left: 1rem;
}
.sh-nav__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.30);
}
.sh-nav__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-tone);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.sh-nav__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: color 0.3s var(--ease);
}
.sh-nav__tick {
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.sh-nav__item.is-active { color: #ffffff; }
.sh-nav__item.is-active .sh-nav__tick { width: 32px; background: #9cc0ad; }
.sh-social {
  position: absolute;
  z-index: 7;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: flex;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.55);
}
.sh-social a { color: inherit; transition: color 0.2s var(--ease); }
.sh-social a:hover { color: #fafafa; }

@media (max-width: 900px) {
  .scrollhero { height: 260vh; }
  .sh-nav { display: none; }
  .sh-discover { left: 1.25rem; max-width: 86vw; }
  .sh-cards {
    left: 1rem;
    right: 1rem;
    bottom: 1.25rem;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .sh-card:nth-child(3) { display: none; }
}

/* --- reduced-motion: clean static stacked hero, no pin ----------- */
@media (prefers-reduced-motion: reduce) {
  .scrollhero, .scrollhero.sh-static { height: auto; margin-top: -68px; }
  .scrollhero__pin {
    position: static;
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: clamp(6rem, 14vw, 9rem) clamp(1.25rem, 9vw, 9rem) clamp(3rem, 6vw, 5rem);
  }
  .sh-cue { display: none; }
  .sh-ember { opacity: 0.16; }
  .sh-video { position: absolute; opacity: 1; filter: brightness(0.72) saturate(0.95); }
  .sh-video video { transform: none; }
  .sh-wire--back { opacity: 0.45; transform: none; }
  .sh-wire--mid { opacity: 0.92; transform: none; }
  .sh-wire--front { opacity: 0.5; transform: none; }
  .sh-scrim { opacity: 1; }
  .sh-explore { position: static; opacity: 1; align-items: flex-start; text-align: left; padding: 0; }
  .sh-word--explore { display: none; }
  .sh-discover { position: static; transform: none; opacity: 1; max-width: 60ch; }
  .sh-word--discover { transform: none; }
  .sh-cards { position: static; grid-template-columns: repeat(3, 1fr); }
  .sh-card { opacity: 1 !important; transform: none !important; }
  .sh-card:nth-child(3) { display: block; }
  .sh-nav { display: none; }
}

/* =================================================================
   RIDGELINE v2 — scroll-SCRUBBED terrain video.
   Replaces the wireframe-banner + autoplay footage with ONE video whose
   currentTime is driven by scroll (line-drawing → full-colour photo).
   TOC moved to the right. Cards removed. Scrims tuned for a video that
   is light at BOTH ends, so white text stays legible throughout.
   ================================================================= */
.sh-scrub {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sh-scrub video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(1.02) contrast(1.03);
  background: #0a0a0a;
}

/* constant base legibility; per-state darkening via --c / --l */
.sh-scrim { opacity: 1; }
.sh-scrim--v {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.58) 0%,
    rgba(10, 10, 10, 0.10) 22%,
    rgba(10, 10, 10, 0.06) 58%,
    rgba(10, 10, 10, 0.32) 100%
  );
}
/* centred bloom behind EXPLORE — fades out as DISCOVER takes over */
.sh-scrim--c {
  z-index: 4;
  background: radial-gradient(
    62% 54% at 50% 46%,
    rgba(10, 10, 10, 0.70) 0%,
    rgba(10, 10, 10, 0.22) 56%,
    transparent 78%
  );
  opacity: calc(1 - clamp(0, (var(--p, 0) - 0.22) / 0.26, 1));
}
/* left scrim for DISCOVER text — fades in */
.sh-scrim--l {
  z-index: 5;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 10, 0.86) 0%,
    rgba(10, 10, 10, 0.42) 40%,
    transparent 72%
  );
  opacity: clamp(0, (var(--p, 0) - 0.38) / 0.26, 1);
}

/* stronger text-shadow now the backdrop can be bright */
.sh-word {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.55);
}
.sh-sub,
.sh-discover__lede {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

/* visually-hidden but kept for SEO/screen-readers (the real <h1>) */
.sh-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* TOC → right edge (rail on the right, ticks extend left) */
.sh-nav {
  left: auto;
  right: clamp(1rem, 3vw, 2.5rem);
  padding-left: 0;
  padding-right: 1rem;
  align-items: flex-end;
}
.sh-nav__rail {
  left: auto;
  right: 0;
}
.sh-nav__item {
  flex-direction: row-reverse;
}
@media (max-width: 900px) {
  .sh-nav { display: none; }
}

/* =================================================================
   CASE-STUDIES scroll-scrubbed hero (reuses the .scrollhero engine)
   ================================================================= */
.scrollhero--short { height: 240vh; }

/* intro (centered) — fades out as the video scrubs */
.cs-intro {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  opacity: calc(1 - clamp(0, (var(--p, 0) - 0.18) / 0.22, 1));
  pointer-events: none;
}
.cs-intro__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9d2cb;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  margin: 0 0 1.2rem;
}
.cs-intro__title {
  font-family: var(--font-sans);   /* General Sans, same as the AUTOMATE word */
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 11vw, 8.5rem);
  letter-spacing: 0.005em;
  line-height: 0.94;
  color: #faf6f0;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.55);
}
.cs-intro__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #9cc0ad;
}
.cs-intro__sub {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #d8dcd8;
  margin: 1.3rem 0 0;
  max-width: 46ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

/* portfolio summary — rises in near the end (the photo) */
.cs-portfolio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(3rem, 11vh, 7rem);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  opacity: clamp(0, (var(--p, 0) - 0.55) / 0.25, 1);
  transform: translateY(calc(26px * (1 - clamp(0, (var(--p, 0) - 0.55) / 0.25, 1))));
}
.cs-portfolio__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 5vw, 4rem);
  margin: 0;
}
.cs-portfolio__stats div { text-align: center; }
.cs-portfolio__stats dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bcc4bd;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.cs-portfolio__stats dd {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: #fafafa;
  margin: 0.3rem 0 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.cs-portfolio__note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #9cc0ad;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* case-study articles "pop up" on scroll (stronger than the base reveal) */
.cs-featured .featured.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.cs-featured .featured.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .scrollhero--short { height: 220vh; }
  .cs-portfolio__stats { gap: 1.25rem; }
  .cs-portfolio__stats dt { font-size: 0.62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-intro { position: static; opacity: 1; padding: clamp(6rem, 14vw, 9rem) 1.25rem 2rem; }
  .cs-portfolio { position: static; opacity: 1; transform: none; margin-top: 1.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
  .cs-featured .featured.reveal { opacity: 1 !important; transform: none !important; }
}

/* Diagram media (invoice-flow case study): show the FULL wide diagram
   (contain, not cropped) on a light frame matching the image's own
   background. Restores styling that was lost when the WIP was stashed. */
.featured__media--diagram {
  background: #f0f0ee;
}
.featured__media--diagram img {
  object-fit: contain;
  object-position: center;
  filter: none;
}


/* ===== Service icon rotation (auto-cycle variants; green tile on hover) ===== */
.service__icon {
  position: relative;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.service__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.service__glyph.is-active {
  opacity: 1;
}
.service:hover .service__icon {
  background: #1f3a2e;
  border-color: transparent;
  color: #fff;
}


/* ===== Built to integrate with (dark band + running logo marquee) ===== */
.integrate {
  background: #0a0a0a;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  overflow: hidden;
}
.integrate__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.integrate__label {
  flex: none;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b8b92;
  white-space: nowrap;
}
.integrate__marquee {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.integrate__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.75rem);
  width: max-content;
  animation: integrate-scroll 34s linear infinite;
}
.integrate__marquee:hover .integrate__track {
  animation-play-state: paused;
}
.integrate__logo {
  height: 26px;
  width: auto;
  flex: none;
  opacity: 0.72;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s var(--ease);
}
.integrate__logo:hover {
  opacity: 1;
}
@keyframes integrate-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .integrate__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    gap: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  }
}
@media (max-width: 720px) {
  .integrate__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
  .integrate__marquee {
    width: 100%;
  }
}

/* Optical size balancing for the integrate marquee (per-logo) */
.integrate__logo[src*="n8n"] { height: 30px; }
.integrate__logo[src*="holded"] { height: 34px; }
.integrate__logo[src*="anthropic"] { height: 28px; }
.integrate__logo[src*="openai"] { height: 24px; }
.integrate__logo[src*="supabase"] { height: 23px; }

/* ---------- Keyboard focus ring (a11y, was missing site-wide) ---------- */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.scrollhero :focus-visible,
.sh-nav :focus-visible,
.integrate :focus-visible,
.site-footer :focus-visible,
.cta :focus-visible {
  outline-color: var(--accent-contrast);
}

/* ---------- Lenis smooth scroll ---------- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}
