/* ==========================================================================
   Kuzmanko — Business Optimization with AI
   Design system: confident editorial-corporate. See DESIGN.md.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --bg: oklch(0.985 0.004 70);
  --surface: oklch(0.965 0.006 70);
  --ink: oklch(0.22 0.012 55);
  --ink-muted: oklch(0.46 0.012 55);
  --line: oklch(0.89 0.006 70);
  --line-strong: oklch(0.82 0.008 70);
  --dark: oklch(0.165 0.014 55);
  --dark-2: oklch(0.225 0.014 55);
  --on-dark: oklch(0.95 0.004 70);
  --on-dark-muted: oklch(0.70 0.008 70);
  --on-dark-line: oklch(1 0 0 / 0.12);
  --accent: #E35106;
  --accent-press: oklch(0.55 0.19 42);
  --accent-tint: oklch(0.62 0.2 42 / 0.10);

  --font-display: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, sans-serif;
  --font-mono: 'Rubik', system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

/* ---- Typography -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 4.75rem); font-weight: 700; overflow-wrap: break-word; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent);
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-muted); max-width: 60ch; line-height: 1.5; }
.measure { max-width: 65ch; }

/* ---- Layout primitives ------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5rem); }
.dark-section { background: var(--dark); color: var(--on-dark); }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--on-dark); }
.surface-section { background: var(--surface); }

.section-head { max-width: 70ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head p { margin-top: 1.25rem; color: var(--ink-muted); font-size: 1.1rem; }
.dark-section .section-head p { color: var(--on-dark-muted); }

/* ---- Buttons (rectangular, uppercase, arrow) --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem 1.5rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn .arr { transition: transform 0.3s var(--ease); flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-press); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
/* dark buttons (used on the orange CTA band) */
.btn--dark { background: var(--dark); color: var(--on-dark); }
.btn--dark:hover { background: oklch(0.1 0.012 55); }
.btn--outline-dark { border-color: oklch(0.2 0.02 55 / 0.55); color: var(--dark); background: transparent; }
.btn--outline-dark:hover { border-color: var(--dark); background: oklch(0.13 0.014 55 / 0.06); }
.btn--ghost:hover { border-color: var(--ink); }
.dark-section .btn--ghost, .site-header--dark .btn--ghost, .hero .btn--ghost, .svc-hero .btn--ghost, .page-hero .btn--ghost { border-color: oklch(1 0 0 / 0.45); color: var(--on-dark); background: oklch(1 0 0 / 0.03); }
.dark-section .btn--ghost:hover, .site-header--dark .btn--ghost:hover, .hero .btn--ghost:hover, .svc-hero .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: var(--on-dark); background: oklch(1 0 0 / 0.08); }

/* underline link */
.link-arrow { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink); position: relative; }
.dark-section .link-arrow { color: var(--on-dark); }
.link-arrow::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .arr { transition: transform 0.3s var(--ease); }
.link-arrow:hover .arr { transform: translateX(3px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 78px; }
.site-header__logo img { height: 48px; width: auto; transition: height 0.35s var(--ease); }
.site-header.is-scrolled .site-header__logo img { height: 40px; }
.site-header.is-scrolled { background: oklch(0.985 0.004 70 / 0.85); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }
/* dark variant (over dark hero): keep light text in BOTH scrolled and unscrolled states */
.site-header--dark { color: var(--on-dark); }
.site-header--dark.is-scrolled { background: oklch(0.13 0.014 55 / 0.86); backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--on-dark-line); }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.nav a { font-size: 0.95rem; font-weight: 500; color: inherit; opacity: 0.82; position: relative; transition: opacity 0.2s ease; }
.nav a:hover { opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions .btn { padding: 0.72rem 1.05rem; gap: 1rem; font-size: 0.72rem; }
.header-actions .btn .arr { width: 14px; height: 14px; }

/* ---- Services dropdown ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-caret { transition: transform 0.3s var(--ease); opacity: 0.7; flex: none; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 248px; background: var(--dark); border: 1px solid var(--on-dark-line);
  border-radius: 12px; padding: 0.5rem; display: flex; flex-direction: column;
  box-shadow: 0 26px 55px -26px oklch(0.05 0.01 55 / 0.95);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 120;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.subnav a { padding: 0.65rem 0.8rem; border-radius: 8px; font-size: 0.98rem; font-weight: 600; color: var(--on-dark); opacity: 0.9; width: 100%; transition: background-color 0.2s, opacity 0.2s; }
.subnav a:hover { background: var(--dark-2); opacity: 1; }
.subnav a[aria-current="page"] { color: var(--accent); }
.subnav a[aria-current="page"]::after { display: none; }
.subnav a .s { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 0.2rem; font-weight: 500; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; }
.nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

/* mobile menu */
@media (max-width: 880px) {
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--dark); color: var(--on-dark);
    padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--on-dark-line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--on-dark-line); font-size: 1.15rem; opacity: 0.92; }
  .site-header.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.nav-open { background: var(--dark); color: var(--on-dark); }
  /* Services dropdown → static, expanded, indented list on mobile */
  .nav-item { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-item > a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--on-dark-line); justify-content: space-between; }
  .nav-caret { display: none; }
  .subnav { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; width: 100%; background: transparent; border: 0; box-shadow: none; border-radius: 0;
    padding: 0.25rem 0 0.5rem 0.9rem; }
  .subnav::before { display: none; }
  .subnav a { padding: 0.85rem 0; border-bottom: 1px solid var(--on-dark-line); border-radius: 0; font-size: 1.05rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.qa .hero { min-height: 820px; }
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  filter: grayscale(1) contrast(1.03) brightness(1.02);
  transform: scale(1.04); transform-origin: 58% 42%;
  animation: heroZoom 14s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.22) translate3d(-1.5%, -1%, 0); } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.13 0.014 55 / 0.42) 0%, oklch(0.13 0.014 55 / 0.1) 24%, oklch(0.12 0.014 55 / 0.4) 56%, oklch(0.11 0.014 55 / 0.93) 100%),
    linear-gradient(90deg, oklch(0.1 0.012 55 / 0.9) 0%, oklch(0.11 0.012 55 / 0.55) 36%, oklch(0.13 0.014 55 / 0.14) 64%, transparent 88%),
    radial-gradient(125% 95% at 5% 98%, oklch(0.09 0.012 55 / 0.85) 0%, transparent 54%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(7rem, 13vh, 9.5rem) clamp(1.75rem, 3.5vh, 2.75rem); }
.hero__eyebrow { color: var(--accent); margin-bottom: 1.75rem; }
.hero h1 { max-width: 16ch; color: var(--on-dark); text-shadow: 0 1px 2px oklch(0.1 0.012 55 / 0.85), 0 4px 30px oklch(0.1 0.012 55 / 0.7); }
.hero h1 .accent { color: var(--accent); }
.hero__sub { margin-top: 1.75rem; max-width: min(54ch, 100%); color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; text-shadow: 0 1px 20px oklch(0.13 0.014 55 / 0.5); }
.hero__actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 2.2rem; z-index: 1; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.8rem; }
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--on-dark-muted), transparent); animation: scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }
@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ==========================================================================
   Stat ribbon (compact, integrated — overlays the hero image)
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: clamp(1.1rem, 1.8vw, 1.6rem) clamp(0.9rem, 1.4vw, 1.4rem); border-left: 1px solid var(--on-dark-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1; letter-spacing: -0.02em; color: var(--on-dark); display: flex; align-items: baseline; }
.stat__num .pre, .stat__num .unit { color: var(--accent); }
.stat__num .pre { margin-right: 0.04em; }
.stat__label { margin-top: 0.55rem; font-size: 0.78rem; color: var(--on-dark-muted); line-height: 1.35; max-width: 20ch; }
@media (max-width: 1040px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); row-gap: 0.5rem; }
  .stat { border-left: 1px solid var(--on-dark-line); padding-left: clamp(0.9rem, 1.4vw, 1.4rem); }
  .stat:first-child, .stat:nth-child(3n+1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3n+1) { border-left: 1px solid var(--on-dark-line); padding-left: clamp(0.9rem,3vw,1.4rem); }
  .stat:nth-child(2n+1) { border-left: 0; padding-left: 0; }
}

/* hero-integrated stat ribbon */
.hero__stats { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(1.5rem, 3.5vh, 2.75rem); }
.hero__stats .stat-grid { border-top: 1px solid var(--on-dark-line); padding-top: clamp(1.2rem, 2.5vw, 2rem); }
.hero__stats .stat { padding-bottom: 0; }
/* about-page stat section */
.stat-section { background: var(--dark); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ==========================================================================
   Intro / positioning split
   ========================================================================== */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split__aside .eyebrow { margin-bottom: 1.25rem; }
.split__aside h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.prose p { font-size: 1.12rem; color: var(--ink-muted); line-height: 1.65; max-width: 62ch; }
.prose p + p { margin-top: 1.25rem; }
.prose strong { color: var(--ink); font-weight: 600; }

/* pillars (operator / researcher / builder) */
.pillars { margin-top: 2.5rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pillar__k { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; padding-top: 0.35rem; }
.pillar h3 { font-size: 1.25rem; }
.pillar p { margin-top: 0.4rem; color: var(--ink-muted); font-size: 1rem; max-width: 56ch; }

/* ==========================================================================
   Services (zig-zag editorial rows, no card grid)
   ========================================================================== */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 5rem 1fr minmax(auto, 30ch); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.25rem, 4vw, 3.25rem) 0; border-bottom: 1px solid var(--line); align-items: start; transition: background-color 0.4s var(--ease); }
.service-row:hover { background: var(--surface); }
.service-row__idx { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-muted); padding-top: 0.5rem; }
.service-row__head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.service-row__head .tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.3rem 0.7rem; }
.service-row__desc { color: var(--ink-muted); font-size: 1.02rem; line-height: 1.6; }
@media (max-width: 820px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; }
  .service-row__idx { padding-top: 0; }
}

/* ==========================================================================
   Industries (chips / inline)
   ========================================================================== */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.industry { padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem,2vw,1.75rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; transition: background-color 0.4s var(--ease); }
.industry:hover { background: var(--bg); }
.industry__n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.industry h3 { font-size: 1.1rem; font-weight: 500; font-family: var(--font-body); color: var(--ink); letter-spacing: 0; }
.industry:nth-child(3n) { border-right: 0; }
@media (max-width: 820px) { .industries { grid-template-columns: 1fr 1fr; } .industry:nth-child(3n){border-right:1px solid var(--line);} .industry:nth-child(2n){border-right:0;} }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } .industry { border-right: 0 !important; } }

/* ==========================================================================
   Programme (20-week engagement — four phases)
   ========================================================================== */
.programme-head { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 860px) { .programme-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; } }
.programme-head .eyebrow { margin-bottom: 1.25rem; }
.programme-head h2 { max-width: 14ch; }
.programme-head p { color: var(--on-dark-muted); font-size: 1.05rem; line-height: 1.6; max-width: 52ch; }

.programme { border-top: 1px solid var(--on-dark-line); }
.phase {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1.15fr) minmax(0, 1.35fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.9rem, 3.2vw, 2.6rem) 0;
  border-bottom: 1px solid var(--on-dark-line);
  align-items: start;
  transition: background-color 0.4s var(--ease);
}
.phase:hover { background: var(--dark-2); }
.phase__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 0.9; color: var(--accent); letter-spacing: -0.02em; }
.phase__head h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--on-dark); }
.phase__head .tags { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.65rem; }
.phase__head .tags span { font-size: 0.78rem; color: var(--on-dark-muted); position: relative; }
.phase__head .tags span:not(:last-child)::after { content: "·"; margin-left: 0.65rem; color: var(--accent); }
.phase__desc { color: var(--on-dark-muted); font-size: 0.98rem; line-height: 1.55; }
.phase__meta { text-align: right; min-width: 8rem; }
.phase__weeks { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.phase__price { margin-top: 0.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--on-dark); letter-spacing: -0.01em; }
/* services — same editorial rows, made more prominent and interactive */
.services-list { border-top: 2px solid var(--accent); }
.services-list .phase { grid-template-columns: 6rem minmax(0, 0.8fr) minmax(0, 1.45fr) 2.5rem; padding-block: clamp(2.1rem, 3.6vw, 3rem); align-items: center; color: inherit; }
.services-list .phase__num { font-size: clamp(2.4rem, 4vw, 3.4rem); transition: color 0.3s var(--ease); }
.services-list .phase__head h3 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); transition: color 0.3s var(--ease); }
.services-list .phase__desc { font-size: 1.04rem; }
.phase__arrow { justify-self: end; color: var(--on-dark-muted); transition: color 0.3s var(--ease), transform 0.35s var(--ease); }
.services-list .phase:hover { background: var(--dark-2); }
.services-list .phase:hover .phase__arrow { color: var(--accent); transform: translateX(6px); }
.services-list .phase:hover .phase__head h3 { color: #fff; }
@media (max-width: 860px) { .phase__arrow { display: none; } }
@media (max-width: 860px) {
  .phase { grid-template-columns: 3.5rem 1fr; gap: 0.6rem 1.25rem; row-gap: 0.9rem; }
  .phase__num { grid-row: span 1; }
  .phase__head { grid-column: 2; }
  .phase__desc { grid-column: 2; }
  .phase__meta { grid-column: 2; text-align: left; display: flex; gap: 1.25rem; align-items: baseline; }
  .phase__price { margin-top: 0; }
}

/* ==========================================================================
   Founder feature
   ========================================================================== */
.founder { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.founder__media { position: relative; }
.founder__media-img { position: relative; overflow: hidden; border-radius: var(--radius); line-height: 0; }
.founder__media-img img { width: 100%; filter: grayscale(0.15); border-radius: var(--radius); }
.founder__media figcaption { margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink-muted); text-transform: uppercase; }
.founder__badge { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em; padding: 0.65rem 1rem; border-radius: 0 var(--radius) 0 var(--radius); line-height: 1; }
.founder blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); }
.founder blockquote .accent { color: var(--accent); }
.founder__name { margin-top: 1.75rem; }
.founder__name strong { display: block; font-size: 1.1rem; font-family: var(--font-display); }
.founder__name span { color: var(--ink-muted); font-size: 0.98rem; }
.founder__cta { margin-top: 2rem; }

/* ==========================================================================
   Insights / research
   ========================================================================== */
.insight-list { border-top: 1px solid var(--line); }
.insight { display: grid; grid-template-columns: 9rem 1fr auto; gap: clamp(1rem,3vw,2.5rem); padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: center; transition: background-color 0.3s var(--ease); }
.insight:hover { background: var(--surface); }
.insight__kind { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.insight h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; }
.insight__meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }
@media (max-width: 760px) { .insight { grid-template-columns: 1fr; gap: 0.5rem; } .insight__meta { display: none; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { background: var(--accent); color: var(--dark); position: relative; overflow: hidden; }
.cta-band__mark { position: absolute; right: -2%; bottom: -22%; height: 168%; width: auto; opacity: 0.14; pointer-events: none; user-select: none; }
@media (max-width: 820px) { .cta-band__mark { height: auto; width: 62%; right: -10%; bottom: -6%; opacity: 0.12; } }
.cta-band__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--dark); max-width: 20ch; }
.cta-band p { color: oklch(0.18 0.02 55 / 0.82); margin-top: 1.1rem; max-width: 46ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.9rem; align-items: stretch; }
.cta-band__actions .btn { width: 100%; }

/* ==========================================================================
   Contact (intro + form) + Footer
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact-intro h2 { margin-top: 1.25rem; }
.contact-intro > p { margin-top: 1.25rem; color: var(--on-dark-muted); max-width: 38ch; font-size: 1.05rem; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--on-dark-line); }
.contact-details a { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.9rem 0; border-bottom: 1px solid var(--on-dark-line); color: var(--on-dark); font-size: 1.02rem; transition: color 0.2s; }
.contact-details a:hover { color: var(--accent); }
.contact-details .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); min-width: 4.5rem; }

/* ---- Form ---- */
.contact-form { position: relative; }
.form-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field textarea {
  font: inherit; font-size: 1rem; color: var(--on-dark);
  background: oklch(1 0 0 / 0.04); border: 1px solid var(--on-dark-line);
  border-radius: 2px; padding: 0.85rem 0.95rem; width: 100%;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-field textarea { resize: vertical; min-height: 7rem; }
.form-field input::placeholder, .form-field textarea::placeholder { color: oklch(0.7 0.008 70 / 0.5); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); background: oklch(1 0 0 / 0.07); }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: oklch(0.62 0.2 28); }
.form-field .field-error { font-size: 0.78rem; color: oklch(0.72 0.17 28); min-height: 0; }
.form-foot { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.contact-form button[type="submit"] { min-width: 16rem; }
.contact-form button[type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.form-note { font-size: 0.82rem; color: var(--on-dark-muted); max-width: 28ch; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.92rem; }
.form-status.is-error { color: oklch(0.74 0.16 28); }
/* success state */
.form-success { display: none; }
.contact-form.is-sent .form-body, .contact-form.is-sent .form-foot { display: none; }
.contact-form.is-sent .form-success { display: block; }
.form-success__badge { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 1.25rem; }
.form-success h3 { color: var(--on-dark); }
.form-success p { margin-top: 0.75rem; color: var(--on-dark-muted); max-width: 42ch; }
@media (max-width: 520px) { .form-body { grid-template-columns: 1fr; } .contact-form button[type="submit"] { min-width: 0; width: 100%; } }

.site-footer { background: var(--dark); color: var(--on-dark-muted); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-block: clamp(3rem,6vw,4.5rem); flex-wrap: wrap; }
.site-footer__brand img { height: 28px; }
.site-footer__brand p { margin-top: 1.25rem; max-width: 32ch; font-size: 0.95rem; color: var(--on-dark-muted); }
.footer-nav { display: flex; gap: clamp(2rem,5vw,4rem); flex-wrap: wrap; }
.footer-nav h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); font-weight: 500; margin-bottom: 1rem; }
.footer-nav a { display: block; color: var(--on-dark); font-size: 0.98rem; padding: 0.3rem 0; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer-nav a:hover { opacity: 1; color: var(--accent); }
.site-footer__bottom { border-top: 1px solid var(--on-dark-line); padding-block: 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ==========================================================================
   About page specifics
   ========================================================================== */
.page-hero { background: var(--dark); color: var(--on-dark); padding-block: clamp(9rem, 16vh, 12rem) clamp(3.5rem,7vw,5.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -30%; right: -10%; width: 50vw; height: 120%; background: radial-gradient(circle, var(--accent-tint), transparent 65%); pointer-events: none; }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 { max-width: 18ch; position: relative; color: var(--on-dark); }
.page-hero p { margin-top: 1.75rem; max-width: 56ch; color: var(--on-dark-muted); font-size: clamp(1.05rem,1.5vw,1.25rem); }

.bio-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-grid__media { position: sticky; top: 100px; }
.bio-grid__media img { border-radius: var(--radius); filter: grayscale(0.1); }
.bio-grid__media .meta { margin-top: 1.25rem; }
.bio-grid__media .meta .name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.bio-grid__media .meta .role { color: var(--ink-muted); }
.credentials { margin-top: 2rem; border-top: 1px solid var(--line); }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.cred__icon { color: var(--accent); font-family: var(--font-mono); font-size: 0.78rem; padding-top: 0.2rem; }
.cred p { font-size: 1.02rem; color: var(--ink-muted); }
.cred p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .bio-grid__media { position: static; } }

/* values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.value { padding: clamp(1.75rem,3.5vw,2.75rem) clamp(1.5rem,3vw,2.5rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.value:nth-child(2n) { border-right: 0; }
.value--wide { grid-column: 1 / -1; border-right: 0; }
.value--wide p { max-width: 70ch; }
.value__n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.08em; }
.value h3 { margin-top: 0.85rem; font-size: 1.4rem; }
.value p { margin-top: 0.85rem; color: var(--ink-muted); max-width: 48ch; }
@media (max-width: 700px) { .values { grid-template-columns: 1fr; } .value { border-right: 0; } }

.vision-quote { max-width: 24ch; }
.vision-quote h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.vision-wrap { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 820px) { .vision-wrap { grid-template-columns: 1fr; } }
.vision-wrap .prose p { font-size: 1.25rem; color: var(--ink); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .hero__scroll::after { animation: none; }
  .hero__media img { animation: none; transform: scale(1.02); }
  .btn:hover, .link-arrow:hover .arr, .btn:hover .arr { transform: none; }
}
/* pause the hero zoom for clean QA captures */
.qa .hero__media img { animation: none; transform: scale(1.04); }

/* ==========================================================================
   SERVICE PAGES (consulting / development / training)
   Built on the same tokens + components. See DESIGN.md.
   ========================================================================== */

/* ---- Breadcrumbs ------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--on-dark-muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }

/* ---- Service hero (text left, full-height image bleeding off the right) - */
.svc-hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; padding-block: clamp(8rem, 15vh, 10.5rem) clamp(3.5rem, 7vw, 5rem); }
.svc-hero__media { position: absolute; inset: 0 0 0 auto; width: clamp(38%, 43vw, 47%); margin: 0; line-height: 0; z-index: 0; }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.16) contrast(1.02) brightness(0.94); }
.svc-hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--dark) 0%, oklch(0.165 0.014 55 / 0.55) 16%, transparent 46%),
  linear-gradient(0deg, oklch(0.12 0.014 55 / 0.55), transparent 30%); }
.svc-hero__media figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; padding: 0.55rem 0.9rem; border-radius: 0 var(--radius) 0 0; line-height: 1.1; }
.svc-hero > .container { position: relative; z-index: 1; }
.svc-hero__text { max-width: 40rem; }
.svc-hero .eyebrow { color: var(--accent); margin-bottom: 1.5rem; }
.svc-hero h1 { max-width: 15ch; color: var(--on-dark); }
.svc-hero h1 .accent { color: var(--accent); }
.svc-hero__sub { margin-top: 1.6rem; max-width: 46ch; color: var(--on-dark-muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; }
.svc-hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 1080px) { .svc-hero__media { width: 39%; } .svc-hero__text { max-width: 33rem; } }
@media (max-width: 940px) {
  .svc-hero { display: flex; flex-direction: column; padding-bottom: 0; }
  .svc-hero > .container { order: 1; }
  .svc-hero__text { max-width: none; }
  .svc-hero__media { position: static; order: 2; width: 100%; margin-top: clamp(2rem, 6vw, 2.75rem); }
  .svc-hero__media img { aspect-ratio: 16 / 10; height: auto; filter: grayscale(0.12) contrast(1.02); }
  .svc-hero__media::after { background: linear-gradient(0deg, oklch(0.12 0.014 55 / 0.35), transparent 38%); }
}

/* quick stat row beneath the hero text */
.svc-hero__stats { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 2.75rem); border-top: 1px solid var(--on-dark-line); padding-top: 1.5rem; }
.qs__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1; letter-spacing: -0.02em; color: var(--on-dark); }
.qs__n .u { color: var(--accent); }
.qs__l { margin-top: 0.4rem; font-size: 0.78rem; color: var(--on-dark-muted); max-width: 18ch; line-height: 1.35; }

/* ---- Intro lede band --------------------------------------------------- */
.lede { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .lede { grid-template-columns: 1fr; gap: 1.75rem; } }
.lede__big { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.28; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.lede__big .accent { color: var(--accent); }

/* ---- Tiers (the three advisory levels — large editorial blocks) -------- */
.tiers { border-top: 1px solid var(--line); }
.tier { display: grid; grid-template-columns: 4.5rem 0.9fr 1.4fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
.tier__k { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.85; color: var(--accent); letter-spacing: -0.02em; }
.tier__level { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.9rem; }
.tier__head h3 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.tier__head p { margin-top: 1rem; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; max-width: 42ch; }
.tier__caps { display: grid; gap: 0; }
.cap { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.cap:first-child { border-top: 0; padding-top: 0.2rem; }
.cap__dot { width: 7px; height: 7px; margin-top: 0.55rem; background: var(--accent); border-radius: 50%; flex: none; }
.cap h4 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.cap p { margin-top: 0.3rem; color: var(--ink-muted); font-size: 0.98rem; line-height: 1.55; max-width: 56ch; }
@media (max-width: 860px) {
  .tier { grid-template-columns: 3rem 1fr; gap: 1rem 1.25rem; }
  .tier__body { grid-column: 2; }
  .tier__caps { grid-column: 1 / -1; margin-top: 0.5rem; }
}

/* ---- Feature grid (capabilities / sub-services, 2-up cells) ------------ */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { padding: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background-color 0.35s var(--ease); }
.feature:hover { background: var(--surface); }
.feature__k { font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; }
.feature h3 { margin-top: 0.85rem; font-size: 1.3rem; }
.feature p { margin-top: 0.7rem; color: var(--ink-muted); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.dark-section .feature-grid { border-color: var(--on-dark-line); }
.dark-section .feature { border-color: var(--on-dark-line); }
.dark-section .feature:hover { background: var(--dark-2); }
.dark-section .feature h3 { color: var(--on-dark); }
.dark-section .feature p { color: var(--on-dark-muted); }
.feature--wide { grid-column: 1 / -1; }
.feature--wide p { max-width: 80ch; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .feature-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid, .feature-grid--3 { grid-template-columns: 1fr; } }

/* ---- Media row (zig-zag image + text storytelling) -------------------- */
.media-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.media-row + .media-row { margin-top: clamp(3.5rem, 7vw, 6rem); }
.media-row--rev .media-row__media { order: 2; }
@media (max-width: 860px) { .media-row { grid-template-columns: 1fr; gap: 1.75rem; } .media-row--rev .media-row__media { order: 0; } }
.media-row__media { position: relative; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.media-row__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(0.1); }
.media-row__media .tagchip { position: absolute; left: 0; bottom: 0; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; padding: 0.5rem 0.85rem; border-radius: 0 var(--radius) 0 var(--radius); line-height: 1.1; }
.media-row__body .eyebrow { margin-bottom: 1.1rem; }
.media-row__body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.media-row__body .prose { margin-top: 1.1rem; }
.media-row__list { margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.media-row__list li { position: relative; padding-left: 1.6rem; color: var(--ink-muted); font-size: 1rem; line-height: 1.5; }
.media-row__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.dark-section .media-row__list li { color: var(--on-dark-muted); }

/* ---- Logo wall (trusted tools / partners) ----------------------------- */
.logos-band .section-head { text-align: center; margin-inline: auto; }
.logos-band .section-head .eyebrow { justify-content: center; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell { display: flex; align-items: center; justify-content: center; padding: clamp(1.4rem, 2.5vw, 2.1rem) clamp(1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 96px; transition: background-color 0.3s var(--ease); }
.logo-cell:hover { background: var(--surface); }
.logo-cell img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; opacity: 0.78; filter: grayscale(1); transition: opacity 0.3s var(--ease), filter 0.3s var(--ease); }
.logo-cell:hover img { opacity: 1; filter: grayscale(0); }
.logo-wall--tools { grid-template-columns: repeat(7, 1fr); }
.logo-wall--partners { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .logo-wall--tools { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .logo-wall, .logo-wall--partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .logo-wall--tools { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .logo-wall, .logo-wall--tools, .logo-wall--partners { grid-template-columns: repeat(2, 1fr); } }

/* ---- FAQ (native details/summary — great for AEO/SEO) ------------------ */
.faq { border-top: 1px solid var(--line); max-width: 60rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.08rem, 1.7vw, 1.3rem); letter-spacing: -0.01em; color: var(--ink); transition: color 0.2s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary .ic { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.3s var(--ease); }
.faq__item summary .ic::before, .faq__item summary .ic::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__item summary .ic::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq__item summary .ic::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform 0.3s var(--ease); }
.faq__item[open] summary .ic::after { transform: scaleY(0); }
.faq__item__a { padding: 0 0 1.5rem; color: var(--ink-muted); font-size: 1.02rem; line-height: 1.65; max-width: 62ch; }
.faq__item__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Related services (light cross-link row) -------------------------- */
.svc-cross { border-top: 2px solid var(--accent); }
.svc-cross .phase { color: inherit; }
.svc-cross .phase__num { color: var(--accent); }
.svc-cross .phase__head h3 { color: var(--ink); }
.svc-cross .phase__desc { color: var(--ink-muted); }
.svc-cross .phase { border-bottom: 1px solid var(--line); grid-template-columns: 6rem minmax(0, 0.8fr) minmax(0, 1.45fr) 2.5rem; align-items: center; }
.svc-cross .phase:hover { background: var(--surface); }
.svc-cross .phase__arrow { color: var(--ink-muted); }
.svc-cross .phase:hover .phase__arrow { color: var(--accent); transform: translateX(6px); }
.svc-cross .phase:hover .phase__head h3 { color: var(--accent); }

/* ---- Outcomes / process steps (numbered horizontal) ------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--on-dark-line); }
.step { padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem) clamp(1.6rem, 3vw, 2.4rem) 0; border-right: 1px solid var(--on-dark-line); }
.step:last-child { border-right: 0; }
.step__k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.step h3 { margin-top: 0.9rem; font-size: 1.2rem; color: var(--on-dark); }
.step p { margin-top: 0.6rem; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2n) { border-right: 0; } .step { border-bottom: 1px solid var(--on-dark-line); padding-left: 0; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; } }

/* ==========================================================================
   INSIGHTS (blog) — listing + article. Data from Supabase (client-side).
   ========================================================================== */
/* async states */
.posts-state { padding: clamp(2.5rem, 6vw, 4.5rem) 0; color: var(--ink-muted); font-size: 1.05rem; }
.posts-state__spin { display: inline-block; width: 1.1rem; height: 1.1rem; margin-right: 0.6rem; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; vertical-align: -2px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.posts-state a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* featured post */
.feat-card { display: grid; grid-template-columns: 1.12fr 0.88fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.feat-card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -38px oklch(0.2 0.02 55 / 0.45); transform: translateY(-3px); }
.feat-card__media { line-height: 0; overflow: hidden; }
.feat-card__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.06); transition: transform 0.6s var(--ease); }
.feat-card:hover .feat-card__media img { transform: scale(1.04); }
.feat-card__body { padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.feat-card h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 1rem; }
.feat-card p { margin-top: 1rem; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; max-width: 52ch; }
@media (max-width: 820px) { .feat-card { grid-template-columns: 1fr; } .feat-card__media img { aspect-ratio: 16 / 9; } }

/* post kicker (category · date) */
.post-kicker { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-muted); }
.post-kicker .cat { color: var(--accent); }
.post-kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

/* grid of posts */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 920px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .posts-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: border-color 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.post-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 46px -32px oklch(0.2 0.02 55 / 0.4); transform: translateY(-3px); }
.post-card__media { line-height: 0; overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(0.06); transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: clamp(1.25rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-card h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
.post-card p { color: var(--ink-muted); font-size: 0.98rem; line-height: 1.55; }
.post-card__foot { margin-top: auto; padding-top: 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.post-tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.22rem 0.6rem; }
.post-read { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-muted); }

/* ---- Article ---------------------------------------------------------- */
.article { max-width: 50rem; margin-inline: auto; }
.article__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.article__head h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-top: 1.1rem; }
.article__meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); }
.article__meta .author { color: var(--ink); font-weight: 600; }
.article__cover { margin: clamp(1.75rem, 4vw, 2.75rem) 0; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.article__cover img { width: 100%; max-height: 30rem; object-fit: cover; }
.article__lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.55; color: var(--ink); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }

/* article body (rendered markdown) */
.article-body { font-size: 1.12rem; line-height: 1.7; color: var(--ink-muted); }
.article-body > * + * { margin-top: 1.35rem; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); margin-top: 2.75rem; letter-spacing: -0.015em; }
.article-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); margin-top: 2rem; }
.article-body p { max-width: 100%; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin-left: 1.25rem; display: grid; gap: 0.5rem; }
.article-body ul { list-style: none; margin-left: 0; }
.article-body ul li { position: relative; padding-left: 1.6rem; }
.article-body ul li::before { content: ""; position: absolute; left: 0.1rem; top: 0.66em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.article-body ol { list-style: decimal; }
.article-body ol li::marker { color: var(--accent); font-family: var(--font-mono); font-size: 0.9em; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.4rem; margin-left: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.4; color: var(--ink); letter-spacing: -0.01em; }
.article-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.12em 0.4em; color: var(--ink); }
.article-body pre { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 1.2rem 1.4rem; overflow-x: auto; }
.article-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 0.88rem; }
.article-body img { border-radius: var(--radius); margin: 1.75rem 0; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-foot { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.article-foot .post-kicker .cat { color: var(--ink-muted); }

/* ===================== Legal / policy prose ===================== */
.prose--legal { max-width: 78ch; }
.prose--legal .muted { color: var(--ink-muted); font-size: 0.95rem; }
.prose--legal h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin-top: 2.5rem; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal ul { list-style: none; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.prose--legal li { position: relative; padding-left: 1.6rem; font-size: 1.08rem; color: var(--ink-muted); line-height: 1.6; max-width: 70ch; }
.prose--legal li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.prose--legal li strong { color: var(--ink); font-weight: 600; }
.prose--legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== 404 ===================== */
.error-hero { text-align: center; }
.error-hero .code { font-family: var(--font-mono, monospace); color: var(--accent); font-size: 1rem; letter-spacing: 0.12em; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }
