/* ============================================================
   Components  nav, footer, sections, cards, 404
   All values via var(--cd-*)  no literal hex/font names.
   ============================================================ */

/* ---- Skip navigation link (accessibility) ---------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--cd-ink);
  color: var(--cd-on-dark);
  text-decoration: none;
  font-family: var(--cd-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  border-radius: 0 0 var(--cd-radius-sm) var(--cd-radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---- Site Header ----------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cd-canvas);
  /* Hairline appears only after scroll (premium, less chrome at top) */
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--cd-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo  animated bar mark + wordmark image */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cd-ink);
}
.nav-logo--on-dark { color: var(--cd-on-dark); }
.nav-logo:hover { opacity: 1; }

.nav-logo__word {
  height: 22px;
  width: auto;
  display: block;
}
/* Footer sits on the dark block  render the black wordmark white */
.nav-logo--on-dark .nav-logo__word { filter: brightness(0) invert(1); }

/* Bar mark  rebuilt from the brand mark so it can render/animate.
   Bars inherit colour (ink on header, warm-white on footer). */
.nav-logo__mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}
.nav-logo__mark i {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
}
.nav-logo__mark i:nth-child(1) { height: 51%;  --d: 0.72s; animation-delay: 0s;    }
.nav-logo__mark i:nth-child(2) { height: 97%;  --d: 1.02s; animation-delay: 0.12s; }
.nav-logo__mark i:nth-child(3) { height: 74%;  --d: 0.86s; animation-delay: 0.26s; }
.nav-logo__mark i:nth-child(4) { height: 100%; margin-left: 4px; --d: 1.16s; animation-delay: 0.06s; }

/* Hover/focus: the mark "renders" like an equalizer */
.nav-logo:hover .nav-logo__mark i,
.nav-logo:focus-visible .nav-logo__mark i {
  animation: logo-eq var(--d) ease-in-out infinite;
}

@keyframes logo-eq {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo:hover .nav-logo__mark i,
  .nav-logo:focus-visible .nav-logo__mark i { animation: none; }
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links > li {
  position: relative;
}

.nav-links a,
.nav-btn-ghost {
  font-family: var(--cd-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--cd-ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: opacity 0.15s ease;
}
.nav-links a:hover,
.nav-btn-ghost:hover { opacity: 0.6; }

/* Dropdown trigger arrow */
.nav-btn-ghost::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform 0.2s ease;
}
.nav-btn-ghost[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;          /* flush to button bottom  gap handled by padding-top */
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  box-shadow: 0 8px 32px rgba(26,26,24,0.10);
  padding: 16px 0 8px; /* extra top padding replaces the gap visually */
  z-index: 200;
}

/* Invisible bridge: fills the space between button and visible menu border
   so moving the mouse downward never leaves the dropdown container */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px; /* covers the padding-top gap */
}

.nav-dropdown__menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--cd-body);
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-dropdown__menu a:hover {
  background: var(--cd-soft);
  opacity: 1;
}

/* Show menu when open */
.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

/* CTA button in nav */
.nav-cta {
  margin-left: 1rem;
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--cd-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--cd-canvas);
  padding: 2rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--cd-border);
  overflow-y: auto;
}
.nav-mobile-overlay.is-open { display: flex; }

.nav-mobile-overlay a,
.nav-mobile-overlay .nav-btn-ghost {
  font-size: 1.125rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cd-border);
  width: 100%;
  justify-content: space-between;
}

.nav-mobile-submenu {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}
.nav-mobile-submenu.is-open { display: flex; }

.nav-mobile-submenu a {
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  color: var(--cd-body);
  border-bottom: none;
}

.nav-mobile-overlay .nav-mobile-cta {
  margin-top: 1rem;
  justify-content: center;
}

/* ---- Section (reusable) ---------------------------------- */

.section {
  padding-block: 96px;
  scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.section--soft { background: var(--cd-soft); }
.section--dark { background: var(--cd-ink-block); }

.section__eyebrow {
  font-family: var(--cd-font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--cd-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section__heading {
  font-family: var(--cd-font-display);
  color: var(--cd-ink);
  margin-bottom: 1.25rem;
}

.section--dark .section__eyebrow { color: var(--cd-on-dark-soft); }
.section--dark .section__heading { color: var(--cd-on-dark); }

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section__lead {
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
  color: var(--cd-body);
  line-height: 1.65;
  max-width: 620px;
  margin-top: 1rem;
}

/* ---- Site Footer ----------------------------------------- */

.site-footer {
  background: var(--cd-ink-block);
  color: var(--cd-on-dark-soft);
}

.site-footer__inner {
  padding-block: 64px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 3rem;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,245,240,0.1);
}

.footer-brand .nav-logo {
  color: var(--cd-on-dark);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--cd-on-dark-soft);
  max-width: 28ch;
}

.footer-col h3 {
  font-family: var(--cd-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cd-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--cd-on-dark-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--cd-on-dark);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--cd-muted);
}

/* ---- Hero (home)  one full screen ----------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
}

/* Signature point-cloud rendering  full-bleed within the hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Gradient at hero bottom  fades particle rendering into the canvas
   so the eye flows naturally into the next section on scroll */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--cd-canvas));
  pointer-events: none;
  z-index: 1;
}

/* Text sits above the rendering, weighted to the left */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 36rem;
}

.hero__eyebrow {
  font-family: var(--cd-font-mono);
  font-size: 0.75rem;
  color: var(--cd-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: 1.06;
  margin-bottom: 1.5rem;
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
  color: var(--cd-body);
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ─── Scroll-snap: one section per scroll ────────────────── */
html {
  scroll-snap-type: y mandatory;
}
@media (max-width: 768px) {
  /* Disable mandatory snap on small screens  content may not fit 100vh */
  html { scroll-snap-type: y proximity; }
}

/* Interior-page hero  full-screen, two-column, flex-centered */
.hero--page {
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 0;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
}

.hero--page .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero--page .hero__content {
  max-width: none;
}

/* Agent animation panel (right column) */
.hero--anim {
  position: relative;
  border-radius: var(--cd-radius);
  border: 1px solid var(--cd-border);
  background: var(--cd-surface);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.hero__anim-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1023px) {
  .hero--page .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero--anim { aspect-ratio: 16 / 7; }
}

@media (max-width: 639px) {
  .hero--page { padding-block: 72px; }
  .hero--anim { aspect-ratio: 4 / 3; }
}

/* Scroll cue, bottom-left of the screen */
.hero__cue {
  position: absolute;
  left: clamp(1.25rem, 4vw, 2.5rem); /* aligned with .container padding */
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 2;
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cd-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__cue::after {
  content: "";
  width: 1px;
  height: 28px;
  background: var(--cd-border-strong);
  animation: hero-cue 2.4s ease-in-out infinite;
  transform-origin: top;
}

@keyframes hero-cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cue::after { animation: none; }
}

/* Narrow screens  typography leads, canvas is hidden */
@media (max-width: 820px) {
  .hero {
    min-height: calc(100vh - 64px);
    /* Subtle dot field: echoes the "from pixels" narrative without the globe */
    background-image: radial-gradient(circle, rgba(26,26,24,0.10) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
  }
  /* The animated canvas globe overlaps text on mobile  hide it */
  .hero__canvas { display: none; }
  /* Fade the dot pattern out at the bottom before the next section */
  .hero::after { height: 100px; }
  .hero__content { max-width: 100%; text-align: center; margin-inline: auto; }
  .hero__lede { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__cue { display: none; }
}

/* ---- Capabilities section -------------------------------- */

.capabilities {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cd-soft);
  padding-block: clamp(4rem, 8vh, 6.5rem);
  scroll-snap-align: start;
}

/* Header: heading block left, "see all" link bottom-right */
.capabilities__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4.5vh, 3.5rem);
}

.capabilities__sub {
  font-family: var(--cd-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--cd-ink);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.75rem;
  max-width: 24ch;
}

.capabilities__lede {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: var(--cd-body);
  line-height: 1.6;
  max-width: 44ch;
  margin-top: 0.9rem;
}

.capabilities__all {
  font-family: var(--cd-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;   /* underline only on hover */
  white-space: nowrap;
}
.capabilities__all:hover { opacity: 1; border-bottom-color: var(--cd-ink); }
.capabilities__all svg { transition: transform 0.2s ease; }
.capabilities__all:hover svg { transform: translateX(3px); }

/* Editorial row list  one row per capability, hairlines between */
.cap-list {
  list-style: none;
  border-top: 1px solid var(--cd-border);
  margin-top: clamp(2rem, 4vh, 3rem);
  width: 100%;
}

.cap-row {
  border-bottom: 1px solid var(--cd-border);
  overflow: hidden; /* contains the padding-left slide */
}

.cap-row__link {
  display: grid;
  grid-template-columns: 52px 1fr 1.6fr 20px;
  column-gap: clamp(1.5rem, 2.5vw, 3rem);
  align-items: center;
  padding: clamp(1.125rem, 2.2vh, 1.625rem) 0;
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease;
}
.cap-row__link:hover    { padding-left: 0.625rem; opacity: 1; }
.cap-row__link:focus-visible { outline-offset: 2px; }

.cap-row__num {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-muted);
  line-height: 1;
  transition: color 0.22s ease;
}
.cap-row__link:hover .cap-row__num { color: var(--cd-ink); }

.cap-row__name {
  font-family: var(--cd-font-display);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--cd-ink);
  line-height: 1.2;
  font-weight: 400;
}

.cap-row__desc {
  font-size: clamp(0.875rem, 0.95vw, 0.9375rem);
  color: var(--cd-body);
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
}

.cap-row__arrow {
  color: var(--cd-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
  justify-self: end;
  flex-shrink: 0;
}
.cap-row__link:hover .cap-row__arrow,
.cap-row__link:focus-visible .cap-row__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--cd-ink);
}

/* Tablet: collapse description under the name */
@media (max-width: 860px) {
  .cap-row__link {
    grid-template-columns: 40px 1fr 20px;
    grid-template-rows: auto auto;
    row-gap: 0.375rem;
    column-gap: 1.25rem;
  }
  .cap-row__desc {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    font-size: 0.875rem;
  }
  .cap-row__arrow {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .cap-row__link {
    column-gap: 1rem;
    padding: 1rem 0;
  }
}

/* ---- Agents section  one full screen, 2×2 grid --------- */

.agents {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 8vh, 6.5rem);
  scroll-snap-align: start;
}

.agents__header {
  margin-bottom: clamp(2rem, 4.5vh, 3.5rem);
}

.agents__heading {
  font-family: var(--cd-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--cd-ink);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.75rem;
  max-width: 22ch;
}

.agents__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.agent-card {
  position: relative;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: clamp(2rem, 3.2vh, 3rem) clamp(1.75rem, 2.4vw, 2.5rem);
  min-height: clamp(240px, 32vh, 360px);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.agent-card:hover {
  background: var(--cd-canvas);
  border-color: var(--cd-border-strong);
  opacity: 1;
}
.agent-card:focus-visible { outline-offset: -2px; }

.agent-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--cd-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-muted);
  margin-bottom: 1.3rem;
  transition: color 0.2s ease;
}
.agent-card:hover .agent-card__label { color: var(--cd-ink); }

.agent-card__arrow {
  color: var(--cd-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.agent-card:hover .agent-card__arrow,
.agent-card:focus-visible .agent-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--cd-ink);
}

.agent-card__icon {
  margin-top: auto;
  margin-bottom: 1.75rem;
  color: var(--cd-muted);
  transition: color 0.22s ease;
  flex-shrink: 0;
}
.agent-card__icon svg { display: block; }
.agent-card:hover .agent-card__icon { color: var(--cd-body); }

.agent-card__title {
  font-family: var(--cd-font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 400;
  color: var(--cd-ink);
  line-height: 1.2;
  margin: 0 0 0.8rem;
  max-width: 26ch;
}

.agent-card__body {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: var(--cd-body);
  line-height: 1.6;
  max-width: 44ch;
  margin: 0;
}

@media (max-width: 760px) {
  .agents__grid { grid-template-columns: 1fr; }
  .agent-card { min-height: 0; }
  .agent-card__arrow { opacity: 1; transform: none; }
}

/* ---- Mission statement  one full screen ----------------- */

.mission {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(4rem, 8vh, 6rem);
  scroll-snap-align: start;
}

.mission__text {
  font-family: var(--cd-font-display);
  font-weight: 400;
  color: var(--cd-ink);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin-inline: auto;
}

.mission__text em {
  font-style: italic;
}

/* Quiet the closing clause so the key idea leads */
.mission__text .mission__tail {
  color: var(--cd-muted);
}

/* ---- 404 Error Page -------------------------------------- */

/* Full-viewport canvas sits behind all content */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 64px);
  position: relative;
  z-index: 1;
}

/* SVG 4-face-4 display */
.error-display {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1rem);
  color: var(--cd-ink);
  margin-bottom: 2.5rem;
}

.error-digit {
  height: clamp(130px, 22vw, 220px);
  width: auto;
  display: block;
  overflow: visible;
}

.error-display .face {
  height: clamp(130px, 22vw, 220px);
  width: auto;
  display: block;
  overflow: visible;
}

/* Face animation  original by preet_7613 (uiverse.io) */
.error-display .face__eyes,
.error-display .face__eye-lid,
.error-display .face__mouth-left,
.error-display .face__mouth-right,
.error-display .face__nose,
.error-display .face__pupil {
  animation: eyes 1s 0.3s forwards;
}

.error-display .face__eye-lid,
.error-display .face__pupil {
  animation-duration: 4s;
  animation-delay: 1.3s;
  animation-iteration-count: infinite;
}

.error-display .face__eye-lid   { animation-name: eye-lid; }
.error-display .face__mouth-left  { animation-name: mouth-left; }
.error-display .face__mouth-right { animation-name: mouth-right; }
.error-display .face__nose        { animation-name: nose; }
.error-display .face__pupil       { animation-name: pupil; }

@keyframes eyes {
  from { transform: translateY(112.5px); }
  to   { transform: translateY(15px); }
}

@keyframes eye-lid {
  0%, 40%, 45%, 100% { transform: translateY(0); }
  42.5%              { transform: translateY(17.5px); }
}

@keyframes pupil {
  0%, 37.5%, 40%, 45%, 87.5%, 100% { stroke-dashoffset: 0; transform: translate(0, 0); }
  12.5%, 25%, 62.5%, 75%           { transform: translate(-35px, 0); }
  42.5%                            { stroke-dashoffset: 35; transform: translate(0, 17.5px); }
}

@keyframes mouth-left {
  from, 50% { stroke-dashoffset: -102; }
  to        { stroke-dashoffset: 0; }
}

@keyframes mouth-right {
  from, 50% { stroke-dashoffset: 102; }
  to        { stroke-dashoffset: 0; }
}

@keyframes nose {
  from { transform: translate(0, 0); }
  to   { transform: translate(0, 22.5px); }
}

.error-message {
  font-family: var(--cd-font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--cd-ink);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.error-body {
  font-size: 1rem;
  color: var(--cd-muted);
  max-width: 42ch;
  margin-bottom: 2.5rem;
}

/* Entrance animation  JS adds .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Blog preview (home) --------------------------------- */

.blog-preview {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 8vh, 6.5rem);
  background: var(--cd-soft);
  scroll-snap-align: start;
}

.blog-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vh, 3.5rem);
}

.blog-preview__heading {
  font-family: var(--cd-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  color: var(--cd-ink);
  font-weight: 400;
  line-height: 1.15;
  margin-top: 0.75rem;
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

@media (max-width: 900px) {
  .blog-preview__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .blog-preview__grid { grid-template-columns: 1fr; }
}

/* ---- Blog index page ------------------------------------- */

.blog-index-hero {
  padding-block: clamp(5rem, 10vh, 8rem) clamp(3rem, 5vh, 4.5rem);
  border-bottom: 1px solid var(--cd-border);
}

.blog-index-hero__title {
  font-size: clamp(2.75rem, 5vw, 5rem);
  margin-block: 1rem 1.25rem;
  line-height: 1.06;
}

.blog-index-hero__lede {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--cd-body);
  max-width: 48ch;
  line-height: 1.65;
}

/* Search bar in blog hero */
.blog-search-wrap {
  position: relative;
  margin-top: clamp(1.75rem, 3vh, 2.5rem);
  max-width: 480px;
}
.blog-search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cd-muted);
  pointer-events: none;
}
.blog-search {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  font-family: var(--cd-font-body);
  font-size: 0.9375rem;
  color: var(--cd-ink);
  background: var(--cd-surface);
  border: 1.5px solid var(--cd-border-strong);
  border-radius: var(--cd-radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}
.blog-search:focus { border-color: var(--cd-ink); }
.blog-search::placeholder { color: var(--cd-muted); }

/* Filter pills row */
.blog-filters-wrap {
  border-bottom: 1px solid var(--cd-border);
  padding-block: 1rem;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 6px 14px;
  font-family: var(--cd-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cd-muted);
  background: transparent;
  border: 1.5px solid var(--cd-border);
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.filter-pill:hover {
  color: var(--cd-ink);
  border-color: var(--cd-border-strong);
}
.filter-pill.active {
  color: var(--cd-on-dark);
  background: var(--cd-ink);
  border-color: var(--cd-ink);
}

/* Listing section header */
.blog-listing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}
.blog-listing-head h2 {
  font-family: var(--cd-font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  color: var(--cd-ink);
  margin: 0;
}
.blog-result-count {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cd-muted);
}

/* Listing grid */
.blog-index-listing {
  padding-block: clamp(3rem, 6vh, 5rem);
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

/* Enhanced listing cards (shared by the blog index and the home preview) */
.blog-index__grid .blog-card,
.blog-preview__grid .blog-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: auto;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.blog-index__grid .blog-card:hover,
.blog-preview__grid .blog-card:hover {
  background: var(--cd-surface);
  box-shadow: 0 6px 24px rgba(26,26,24,.08);
  transform: translateY(-2px);
}

.blog-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: var(--cd-soft);
}
.blog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cd-soft);
}
.blog-card__placeholder svg {
  opacity: 0.35;
}
.blog-card__cat {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--cd-font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-ink);
  background: rgba(247,245,240,0.92);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 20px;
}

.blog-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-index__grid .blog-card__title,
.blog-preview__grid .blog-card__title {
  font-family: var(--cd-font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3125rem);
  font-weight: 400;
  color: var(--cd-ink);
  line-height: 1.3;
  margin: 0 0 0.625rem;
}
.blog-index__grid .blog-card__title a,
.blog-preview__grid .blog-card__title a {
  color: inherit;
  text-decoration: none;
}
.blog-index__grid .blog-card__title a:hover,
.blog-preview__grid .blog-card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-card__excerpt {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--cd-body);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cd-border);
}
.blog-card__date {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cd-muted);
}
.blog-card__read-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-muted);
  transition: color 0.2s ease;
}
.blog-index__grid .blog-card:hover .blog-card__read-cta,
.blog-preview__grid .blog-card:hover .blog-card__read-cta { color: var(--cd-ink); }
.blog-card__read-cta svg { transition: transform 0.2s ease; }
.blog-index__grid .blog-card:hover .blog-card__read-cta svg,
.blog-preview__grid .blog-card:hover .blog-card__read-cta svg { transform: translate(2px,-2px); }

/* Skeleton loading */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--cd-soft) 25%, var(--cd-border) 50%, var(--cd-soft) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
  display: block;
}
.blog-card-skeleton {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  overflow: hidden;
}
.skeleton-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 0;
}
.skeleton-body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}
.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cd-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cd-muted);
  background: var(--cd-surface);
  border: 1.5px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.page-btn:hover:not(:disabled) {
  color: var(--cd-ink);
  border-color: var(--cd-border-strong);
}
.page-btn.active {
  color: var(--cd-on-dark);
  background: var(--cd-ink);
  border-color: var(--cd-ink);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-arrow { font-size: 1.125rem; }

/* Empty state */
.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(3rem, 8vh, 6rem) 1.5rem;
  color: var(--cd-muted);
}
.blog-empty h3 {
  font-family: var(--cd-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--cd-ink);
  margin: 1rem 0 0.5rem;
}
.blog-empty p {
  font-size: 0.9375rem;
  color: var(--cd-body);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .blog-index__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .blog-index__grid { grid-template-columns: 1fr; }
  .blog-search-wrap { max-width: 100%; }
}

/* ---- Closing CTA ----------------------------------------- */

/* Closing screen: CTA (centered, grows) + footer (bottom) in one viewport */
.closing-screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cd-ink-block);
  scroll-snap-align: start;
}

.site-cta {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 6vh, 6rem);
  text-align: center;
}

.site-cta .section__eyebrow {
  color: var(--cd-on-dark-soft);
  margin-bottom: 1.5rem;
}

.site-cta__heading {
  font-family: var(--cd-font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  color: var(--cd-on-dark);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 1.25rem;
  max-width: 20ch;
}

.site-cta__body {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--cd-on-dark-soft);
  max-width: 44ch;
  margin: 0 auto 2.75rem;
  line-height: 1.6;
}

/* On the dark block the primary button flips to a warm-white fill */
.site-cta .cd-btn-primary {
  background: var(--cd-on-dark);
  color: var(--cd-ink);
}
.site-cta .cd-btn-primary:hover { opacity: 0.88; }

/* ---- Responsive ------------------------------------------ */

@media (max-width: 900px) {
  .nav-links,
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 64px; }

  /* On small phones sections feel less padded so content has room */
  .capabilities,
  .agents,
  .mission,
  .blog-preview {
    padding-block: clamp(2.5rem, 6vh, 4rem);
  }

  /* Agents: single column already, just ensure no margin bleed */
  .agents__grid { gap: 0.875rem; }
}

/* ---- cap-card--plain (no CTA arrow) ---------------------- */

.cap-card--plain .cap-card__arrow { display: none; }

/* ---- Grid + card (section-level reusable) ---------------- */

.grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--cd-border-strong); }

.card__num {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cd-muted);
  margin-bottom: 0.125rem;
}

.card__title {
  font-family: var(--cd-font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  color: var(--cd-ink);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.card__icon {
  width: 36px;
  height: 36px;
  color: var(--cd-ink);
  opacity: 0.55;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.card__body {
  font-size: clamp(0.875rem, 1vw, 0.9375rem);
  color: var(--cd-body);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
}

/* Dense variant  tighter padding for content-heavy sections */
.section--dense {
  padding-block: clamp(2rem, 4.5vh, 3.5rem);
}
.section--dense .section__head {
  margin-bottom: 1.75rem;
}
.section--dense .section__lead {
  margin-top: 0.5rem;
}
.section--dense .grid {
  gap: clamp(0.75rem, 1.2vw, 1rem);
}
.section--dense .card {
  padding: clamp(1.25rem, 1.8vw, 1.625rem);
  gap: 0.375rem;
}
.section--dense .card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
}
.section--dense .card__title {
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
}
.section--dense .card__body {
  font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
  line-height: 1.55;
}
.section--dense .process-list {
  margin-top: 1.5rem;
}
.section--dense .process-item {
  padding: 1.25rem 0;
}
.section--dense .process-item__title {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.section--dense .process-item__body {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ---- Process list ---------------------------------------- */

.process-list {
  list-style: none;
  border-top: 1px solid var(--cd-border);
  margin-top: 56px;
}

.process-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--cd-border);
}

.process-item__num {
  font-family: var(--cd-font-mono);
  font-size: 13px;
  color: var(--cd-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 6px;
}

.process-item__title {
  font-family: var(--cd-font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--cd-ink);
  line-height: 1.2;
  margin-bottom: 10px;
}

.process-item__body {
  font-size: 15px;
  color: var(--cd-body);
  line-height: 1.65;
}

@media (max-width: 1023px) {
  .process-item { grid-template-columns: 56px 1fr; gap: 24px; }
}

@media (max-width: 639px) {
  .process-item { grid-template-columns: 1fr; gap: 8px; }
  .process-item__num { padding-top: 0; }
}

/* ---- FAQ accordion --------------------------------------- */

.faq {
  max-width: 760px;
  margin: 56px auto 0;
  border-top: 1px solid var(--cd-border);
}

.faq-item {
  border-bottom: 1px solid var(--cd-border);
}

.faq-item summary {
  font-family: var(--cd-font-display);
  font-size: 19px;
  color: var(--cd-ink);
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  line-height: 1.3;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__body {
  font-size: 15px;
  color: var(--cd-body);
  line-height: 1.65;
  padding-bottom: 22px;
}

@media (max-width: 639px) {
  .faq-item summary { font-size: 17px; }
  .faq { margin-top: 40px; }
}

/* ─── Why CodimAI  two-column editorial layout ─────────── */

.why-codimai__inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  width: 100%;
}

.why-codimai__heading {
  font-family: var(--cd-font-display);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--cd-ink);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.why-list {
  list-style: none;
  border-top: 1px solid var(--cd-border);
  width: 100%;
}

.why-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--cd-border);
  transition: padding-left 0.22s ease;
  cursor: default;
}
.why-row:hover { padding-left: 6px; }

.why-row__num {
  font-family: var(--cd-font-mono);
  font-size: 11px;
  color: var(--cd-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 4px;
}

.why-row__title {
  font-family: var(--cd-font-display);
  font-size: 1.125rem;
  color: var(--cd-ink);
  line-height: 1.25;
  margin-bottom: 3px;
}

.why-row__body {
  font-size: 13.5px;
  color: var(--cd-body);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .why-codimai__inner { grid-template-columns: 1fr; gap: 40px; }
  .why-codimai__heading { font-size: clamp(2rem, 5vw, 2.75rem); }
}

/* ─── Process step sections (full-screen scroll storytelling) ── */

.process-step-section {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cd-canvas);
  scroll-snap-align: start;
}
.process-step-section:nth-of-type(even) { background: var(--cd-soft); }

/* Giant faded background number */
.process-step__bg-num {
  font-family: var(--cd-font-display);
  font-size: clamp(160px, 32vw, 320px);
  font-weight: 400;
  color: var(--cd-ink);
  opacity: 0.035;
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.8s ease;
}
.process-step-section.is-in-view .process-step__bg-num { opacity: 0.055; }

/* Content wrapper */
.process-step__wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 660px;
  padding: 7rem 1.5rem 5rem;
  width: 100%;
}

/* Step dot indicator */
.process-step__dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.process-step__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26,26,24,0.18);
  transition: background 0.35s ease, transform 0.35s ease;
}
.process-step__dot.is-active  { background: var(--cd-ink); transform: scale(1.45); }
.process-step__dot.is-done    { background: rgba(26,26,24,0.38); }

/* Eyebrow */
.process-step__eyebrow {
  font-family: var(--cd-font-mono);
  font-size: 11px;
  color: var(--cd-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2.5rem;
  opacity: 0;
  transition: opacity 0.4s ease 0s;
}
.process-step-section.is-in-view .process-step__eyebrow { opacity: 1; }

/* SVG icon */
.process-step__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 2.25rem;
  color: var(--cd-ink);
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.process-step-section.is-in-view .process-step__icon { opacity: 1; transform: scale(1); }

/* SVG path draw-in  each path has stroke-dasharray/offset set inline */
.process-step__icon svg .draw {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.process-step-section.is-in-view .process-step__icon svg .draw { stroke-dashoffset: 0 !important; }

/* Title */
.process-step__title {
  font-family: var(--cd-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: var(--cd-ink);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease 0.22s, transform 0.55s ease 0.22s;
}
.process-step-section.is-in-view .process-step__title { opacity: 1; transform: translateY(0); }

/* Body */
.process-step__body {
  font-size: clamp(1rem, 1.35vw, 1.0625rem);
  color: var(--cd-body);
  line-height: 1.72;
  max-width: 54ch;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease 0.34s, transform 0.55s ease 0.34s;
}
.process-step-section.is-in-view .process-step__body { opacity: 1; transform: translateY(0); }

/* Next-step hint */
.process-step__next {
  margin-top: 2.75rem;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
  font-family: var(--cd-font-mono);
  font-size: 11px;
  color: var(--cd-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.process-step-section.is-in-view .process-step__next { opacity: 1; }
.process-step__next svg { transition: transform 0.2s ease; }
.process-step__next:hover svg { transform: translateX(4px); }

/* Progress bar at section bottom */
.process-step__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(26,26,24,0.07);
}
.process-step__progress-fill {
  height: 100%;
  background: var(--cd-ink);
  width: var(--fill, 0%);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.process-step-section.is-in-view .process-step__progress-fill { transform: scaleX(1); }

@media (max-width: 639px) {
  .process-step__wrap { padding: 5rem 1.25rem 4rem; }
  .process-step__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* ─── Canvas expand on click ────────────────────────────── */

.hero--anim { cursor: zoom-in; }

.hero-anim-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.72);
  z-index: 850;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.hero-anim-backdrop.is-open { display: block; opacity: 1; }

.hero--anim--expanded {
  position: fixed !important;
  inset: 4vh 4vw !important;
  z-index: 900 !important;
  aspect-ratio: unset !important;
  border-radius: var(--cd-radius) !important;
  cursor: default;
  transition: none;
}

.hero--anim__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(247,245,240,0.92);
  border: 1px solid var(--cd-border);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 901;
  font-size: 18px;
  line-height: 1;
  color: var(--cd-ink);
  transition: opacity 0.2s;
}
.hero--anim--expanded .hero--anim__close { display: flex; }
.hero--anim__close:hover { opacity: 0.65; }

/* ============================================================
   Get Started  form + value layout
   ============================================================ */

/* Two-column layout: value prop (left) + form card (right) */
.gs-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.gs-value__eyebrow { /* uses .section__eyebrow */ }

.gs-value__heading {
  font-family: var(--cd-font-display);
  font-weight: 400;
  color: var(--cd-ink);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.gs-value__lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--cd-body);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.gs-points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gs-point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.875rem;
  align-items: start;
}

.gs-point svg {
  width: 22px;
  height: 22px;
  color: var(--cd-ink);
  margin-top: 2px;
}

.gs-point__title {
  font-family: var(--cd-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cd-ink);
  margin-bottom: 0.25rem;
}

.gs-point__body {
  font-size: 0.9375rem;
  color: var(--cd-muted);
  line-height: 1.55;
}

/* Form card */
.gs-form-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.gs-form-card__title {
  font-family: var(--cd-font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--cd-ink);
  margin-bottom: 0.375rem;
}

.gs-form-card__note {
  font-size: 0.875rem;
  color: var(--cd-muted);
  margin-bottom: 1.75rem;
}

.gs-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.gs-field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
}

.gs-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.gs-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cd-ink);
  letter-spacing: 0.01em;
}

.gs-label__req { color: var(--cd-error); }

.gs-input,
.gs-select,
.gs-textarea {
  width: 100%;
  font-family: var(--cd-font-body);
  font-size: 0.9375rem;
  color: var(--cd-ink);
  background: var(--cd-canvas);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius-sm);
  padding: 0.75rem 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gs-textarea { resize: vertical; min-height: 116px; }

.gs-input::placeholder,
.gs-textarea::placeholder { color: var(--cd-muted); }

.gs-input:focus,
.gs-select:focus,
.gs-textarea:focus {
  outline: none;
  border-color: var(--cd-ink);
  box-shadow: 0 0 0 3px rgba(26,26,24,0.08);
}

/* Invalid state (set by forms.js) */
.gs-field.is-invalid .gs-input,
.gs-field.is-invalid .gs-select,
.gs-field.is-invalid .gs-textarea {
  border-color: var(--cd-error);
}

.gs-error {
  font-size: 0.75rem;
  color: var(--cd-error);
  min-height: 0;
}

/* Honeypot  visually + AT hidden, still in DOM for bots */
.gs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gs-form .cd-btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.gs-form__fineprint {
  font-size: 0.75rem;
  color: var(--cd-muted);
  line-height: 1.5;
  text-align: center;
}
.gs-form__fineprint a { color: var(--cd-muted); }

/* Submission feedback */
.gs-form__status {
  font-size: 0.875rem;
  border-radius: var(--cd-radius-sm);
  padding: 0.75rem 0.875rem;
  display: none;
}
.gs-form__status.is-visible { display: block; }
.gs-form__status--ok {
  background: rgba(46,125,91,0.1);
  color: var(--cd-success);
  border: 1px solid rgba(46,125,91,0.25);
}
.gs-form__status--err {
  background: rgba(178,58,54,0.08);
  color: var(--cd-error);
  border: 1px solid rgba(178,58,54,0.25);
}

/* Success replacement state */
.gs-success {
  text-align: center;
  padding: 1rem 0;
}
.gs-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  color: var(--cd-success);
}
.gs-success__title {
  font-family: var(--cd-font-display);
  font-size: 1.625rem;
  color: var(--cd-ink);
  margin-bottom: 0.5rem;
}
.gs-success__body {
  font-size: 0.9375rem;
  color: var(--cd-body);
  max-width: 38ch;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .gs-layout { grid-template-columns: 1fr; }
  .gs-field--row { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog post  single article
   ============================================================ */

.post-hero {
  padding-block: clamp(7rem, 12vh, 9rem) clamp(2.5rem, 5vh, 3.5rem);
  border-bottom: 1px solid var(--cd-border);
}

.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cd-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cd-muted);
  text-decoration: none;
  margin-bottom: 2rem;
}
.post-hero__back:hover { color: var(--cd-ink); opacity: 1; }

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--cd-font-mono);
  font-size: 0.8125rem;
  color: var(--cd-muted);
  margin-bottom: 1.25rem;
}

.post-hero__title {
  font-family: var(--cd-font-display);
  font-weight: 400;
  color: var(--cd-ink);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.post-hero__lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--cd-body);
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 60ch;
}

.post-article {
  padding-block: clamp(3rem, 7vh, 5rem);
}

/* ── Two-column layout: content + sticky TOC sidebar ── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 4rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-toc-aside { display: none !important; }
}

/* Readable prose column */
.post-body {
  min-width: 0; /* prevent grid blowout */
}

.post-body > * + * { margin-top: 1.5rem; }

.post-body h2 {
  font-family: var(--cd-font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  color: var(--cd-ink);
  line-height: 1.2;
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}

.post-body h3 {
  font-family: var(--cd-font-body);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--cd-ink);
  margin-top: 2rem;
  scroll-margin-top: 6rem;
}

.post-body p,
.post-body li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--cd-body);
}

.post-body ul,
.post-body ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }

.post-body a { color: var(--cd-ink); text-underline-offset: 3px; }

.post-body blockquote {
  border-left: 2px solid var(--cd-ink);
  padding: 0.75rem 1.25rem;
  font-family: var(--cd-font-display);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--cd-ink);
  background: var(--cd-soft);
  border-radius: 0 var(--cd-radius) var(--cd-radius) 0;
}

.post-body strong { color: var(--cd-ink); font-weight: 500; }

.post-body hr {
  border: none;
  border-top: 1px solid var(--cd-border);
  margin-block: 2.5rem;
}

/* Images */
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--cd-radius);
  margin-inline: auto;
  box-shadow: 0 2px 20px rgba(26,26,24,.1);
}

.post-body figure { margin: 0; }

.post-body figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--cd-muted);
  text-align: center;
  font-style: italic;
}

/* Quill alignment helpers */
.post-body .ql-align-center { text-align: center; }
.post-body .ql-align-right  { text-align: right; }

/* Post thumbnail hero image */
.post-hero__thumb {
  margin-top: 2.5rem;
  border-radius: var(--cd-radius);
  overflow: hidden;
  max-height: 480px;
}
.post-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: none;
}

/* ── Sticky TOC sidebar ─────────────────────────────── */
.post-toc-aside {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.post-toc-aside::-webkit-scrollbar { width: 3px; }
.post-toc-aside::-webkit-scrollbar-thumb { background: var(--cd-border); }

.post-toc-aside__heading {
  font-family: var(--cd-font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cd-muted);
  margin-bottom: 1rem;
}

.post-toc-aside__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.post-toc-aside__item { border-left: 2px solid var(--cd-border); }
.post-toc-aside__item.toc-h3 { padding-left: 0.875rem; }

.post-toc-aside__link {
  display: block;
  padding: 0.375rem 0 0.375rem 0.875rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--cd-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.post-toc-aside__item.toc-h3 .post-toc-aside__link {
  font-size: 0.8125rem;
  padding-left: 0;
}

.post-toc-aside__link:hover { color: var(--cd-body); }

.post-toc-aside__link.is-active {
  color: var(--cd-ink);
  font-weight: 500;
  border-left-color: var(--cd-ink);
}

.post-cta-inline {
  margin-top: 3.5rem;
  padding: 1.75rem;
  background: var(--cd-soft);
  border-radius: var(--cd-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.post-cta-inline p {
  font-size: 1rem;
  color: var(--cd-ink);
  max-width: none;
}

.post-related {
  padding-block: clamp(3rem, 6vh, 4.5rem);
  border-top: 1px solid var(--cd-border);
  background: var(--cd-soft);
}

.post-related__heading {
  font-family: var(--cd-font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--cd-ink);
}

/* ==========================================================
   WhatsApp agent  live phone preview
   Two-column showcase: copy | animated phone.
   On-brand monochrome chat (no neon green); tokens only.
   ========================================================== */

.wa-preview {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vh, 6rem);
}

.wa-preview__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  width: 100%;
}

.wa-preview__copy { max-width: 560px; }
.wa-preview__copy .section__lead { margin-top: 0.75rem; }
.wa-preview__copy .cd-btn-primary { margin-top: 1.75rem; }

/* ---- Phone device frame ---------------------------------- */

.wa-phone {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: var(--cd-ink-block);
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 1px 0 var(--cd-border-strong);
}

.wa-phone__notch {
  width: 42%;
  height: 6px;
  margin: 2px auto 10px;
  background: rgba(247,245,240,0.22);
  border-radius: 99px;
}

.wa-phone__screen {
  background: var(--wa-wallpaper);
  border-radius: 26px;
  overflow: hidden;
}

/* WhatsApp green header */
.wa-phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--wa-header);
}
.wa-phone__bar::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-left: 2px solid var(--wa-header-text);
  border-bottom: 2px solid var(--wa-header-text);
  transform: rotate(45deg);
  margin-right: -2px;
  opacity: 0.95;
}

.wa-phone__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: grid;
  place-items: center;
  font-family: var(--cd-font-display);
  font-size: 15px;
  color: var(--wa-header-text);
}

.wa-phone__name {
  font-family: var(--cd-font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--wa-header-text);
  line-height: 1.25;
}

.wa-phone__sub {
  font-family: var(--cd-font-body);
  font-size: 11px;
  color: var(--wa-header-sub);
}

/* ---- Chat thread (beige doodle wallpaper) ---------------- */

.wa-phone__thread {
  height: 440px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  scroll-behavior: smooth;
  background-color: var(--wa-wallpaper);
  /* faint doodle-like texture, no external asset */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0,0,0,0.022) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 32%, rgba(0,0,0,0.020) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 64%, rgba(0,0,0,0.018) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 82%, rgba(0,0,0,0.020) 0 2px, transparent 3px);
  background-size: 160px 160px;
}

.wa-msg {
  max-width: 82%;
  padding: 6px 9px 5px;
  border-radius: 8px;
  font-family: var(--cd-font-body);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--wa-bubble-text);
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}

/* Incoming  white, tail on the left */
.wa-msg--in {
  align-self: flex-start;
  background: var(--wa-bubble-in);
  border-top-left-radius: 0;
}
.wa-msg--in::before {
  content: "";
  position: absolute;
  top: 0;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--wa-bubble-in);
  border-left: 8px solid transparent;
}

/* Outgoing  light green, tail on the right */
.wa-msg--out {
  align-self: flex-end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 0;
}
.wa-msg--out::before {
  content: "";
  position: absolute;
  top: 0;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--wa-bubble-out);
  border-right: 8px solid transparent;
}

.wa-msg__time {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  color: var(--wa-meta);
  vertical-align: bottom;
  float: right;
  position: relative;
  top: 4px;
}
/* blue double-tick on sent messages */
.wa-msg--out .wa-msg__time::after {
  content: " \2713\2713";
  color: var(--wa-tick);
  letter-spacing: -2px;
}

/* ---- Typing indicator ------------------------------------ */

.wa-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--wa-bubble-in);
  border-radius: 8px;
  border-top-left-radius: 0;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}
.wa-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-meta);
  opacity: 0.5;
}
@media (prefers-reduced-motion: no-preference) {
  .wa-typing span { animation: wa-blink 1.2s infinite ease-in-out; }
  .wa-typing span:nth-child(2) { animation-delay: 0.18s; }
  .wa-typing span:nth-child(3) { animation-delay: 0.36s; }
}
@keyframes wa-blink {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 0.9; transform: translateY(-2px); }
}

/* ---- Quick-reply buttons --------------------------------- */

/* Quick replies  WhatsApp white pills with blue action text */
.wa-quick {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 100%;
}
.wa-quick__btn {
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  background: var(--wa-bubble-in);
  border: none;
  border-radius: 7px;
  font-family: var(--cd-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wa-link);
  cursor: default;
  box-shadow: 0 1px 0.5px rgba(11,20,26,0.13);
}

/* ---- In-chat catalog card -------------------------------- */

.wa-catalog,
.wa-formcard { border-top-right-radius: 0; }
/* white card → white tail (overrides the green --out tail) */
.wa-catalog::before,
.wa-formcard::before { border-top-color: var(--wa-bubble-in); }

.wa-catalog {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: var(--wa-bubble-in);
  color: var(--wa-bubble-text);
  border-radius: 8px;
}
.wa-catalog__img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.05) 0 10px,
      rgba(0,0,0,0.02) 10px 20px);
}
.wa-catalog__name {
  font-family: var(--cd-font-body);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--wa-bubble-text);
  padding: 0 2px;
}
.wa-catalog__price {
  font-family: var(--cd-font-body);
  font-size: 12.5px;
  color: var(--wa-meta);
  padding: 0 2px 2px;
}

/* ---- In-chat form card ----------------------------------- */

.wa-formcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 10px;
  background: var(--wa-bubble-in);
  color: var(--wa-bubble-text);
  border-radius: 8px;
}
.wa-formcard__title {
  font-family: var(--cd-font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--wa-bubble-text);
  margin-bottom: 2px;
}
.wa-formcard__row {
  font-size: 12px;
  color: var(--wa-meta);
  padding: 7px 9px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 6px;
  background: var(--wa-wallpaper);
}

/* ---- Responsive ------------------------------------------ */

@media (max-width: 1023px) {
  .wa-preview__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .wa-preview__copy { max-width: none; }
  .wa-phone { margin-top: 0.5rem; }
}
@media (max-width: 639px) {
  .wa-phone { max-width: 300px; }
  .wa-phone__thread { height: 400px; }
}

/* ==========================================================
   How-it-works  stepped timeline cards
   Numbered badge + line icon + connecting hairline.
   ========================================================== */

.how-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  position: relative;
  margin: 4rem 0 0;
  padding: 0;
}

/* Connecting hairline behind the badges (badge centres at card top) */
.how-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: var(--cd-border-strong);
}

.how-step {
  position: relative;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: 2.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  transition: border-color 0.2s ease;
}
.how-step:hover { border-color: var(--cd-border-strong); }

.how-step__badge {
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cd-ink-block);
  color: var(--cd-on-dark);
  font-family: var(--cd-font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
}

.how-step__icon {
  width: 30px;
  height: 30px;
  color: var(--cd-ink);
  opacity: 0.5;
  margin-top: 0.25rem;
}
.how-step__icon svg { width: 100%; height: 100%; display: block; }

.how-step__title {
  font-family: var(--cd-font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--cd-ink);
  line-height: 1.2;
  margin: 0;
}

.how-step__body {
  font-size: 0.9375rem;
  color: var(--cd-body);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 860px) {
  .how-steps { grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
  .how-steps::before { display: none; }
  .how-step { padding-top: 2.5rem; }
  .how-step__badge { left: 1.75rem; transform: none; }
}

/* ── Agentic AI capability cards (2×2 grid) ──────────────── */
.ai-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vh, 4rem);
}
@media (max-width: 640px) {
  .ai-cap-grid { grid-template-columns: 1fr; }
}

.ai-cap-card {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ai-cap-card:hover {
  border-color: var(--cd-border-strong);
  box-shadow: 0 4px 20px rgba(26,26,24,.07);
}

.ai-cap-card__icon { color: var(--cd-muted); }
.ai-cap-card__icon svg { display: block; }

.ai-cap-card__num {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-muted);
  margin: 0.25rem 0 0;
}

.ai-cap-card__title {
  font-family: var(--cd-font-display);
  font-size: clamp(1.375rem, 2vw, 1.625rem);
  font-weight: 400;
  color: var(--cd-ink);
  line-height: 1.2;
  margin: 0;
}

.ai-cap-card__body {
  font-size: clamp(0.9rem, 1vw, 1rem);
  color: var(--cd-body);
  line-height: 1.65;
  margin: 0;
}

/* ── Benefit icon grid ────────────────────────────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.benefit-item {
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: calc(var(--cd-radius) - 2px);
  padding: 1rem 1.125rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: border-color 0.2s ease;
}
.benefit-item:hover { border-color: var(--cd-border-strong); }
.benefit-item__icon {
  color: var(--cd-muted);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
}
.benefit-item__text {
  font-size: 0.9rem;
  color: var(--cd-body);
  line-height: 1.45;
}

/* ── Use-case pill tags ───────────────────────────────────── */
.use-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.use-case-tag {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cd-ink);
  border: 1px solid var(--cd-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  background: var(--cd-surface);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.use-case-tag:hover {
  background: var(--cd-soft);
  border-color: var(--cd-border-strong);
}

/* ── Content list ─────────────────────────────────────────── */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.content-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: clamp(0.9375rem, 1vw, 1.0625rem);
  color: var(--cd-body);
  line-height: 1.5;
}
.content-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cd-ink);
  margin-top: 0.525em;
}

/* ── Two-column list section ──────────────────────────────── */
.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 8vw, 6rem);
  align-items: start;
}
@media (max-width: 768px) {
  .two-col-lists { grid-template-columns: 1fr; gap: 3rem; }
}
.two-col-lists__heading {
  font-family: var(--cd-font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--cd-ink);
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

/* ── Comparison block ─────────────────────────────────────── */
.comparison-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--cd-surface);
  border: 1px solid var(--cd-border);
  border-radius: var(--cd-radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 600px) {
  .comparison-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .comparison-block__divider svg { transform: rotate(90deg); }
}
.comparison-block__col { display: flex; flex-direction: column; gap: 0.625rem; }
.comparison-block__label {
  font-family: var(--cd-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cd-muted);
}
.comparison-block__col--agentic .comparison-block__label { color: var(--cd-ink); }
.comparison-block__text {
  font-family: var(--cd-font-display);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--cd-body);
  line-height: 1.55;
  margin: 0;
}
.comparison-block__col--agentic .comparison-block__text {
  color: var(--cd-ink);
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
}
.comparison-block__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cd-muted);
  flex-shrink: 0;
}
