/*
 * ihtech.ba design system, 2026 redesign.
 *
 * Warm paper ground, the cobalt of the IH-Tech mark, and a mint accent used
 * sparingly. Poppins carries all type; weight does the work that colour and
 * size would otherwise have to: 600 for display, 500 for interface, 400 for
 * reading, 300 for leads.
 */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --bg: #f5f4ef;
  --bg-deep: #eceae3;
  --card: #fbfbf8;
  --white: #ffffff;

  --ink: #0b1026;
  --ink-2: #3a4058;
  --muted: #63687c;
  --faint: #a3a6b2;

  --line: #e0dfd7;
  --line-strong: #cbcac1;

  --blue: #1030eb;
  --blue-600: #0c27c9;
  --blue-700: #0a1fa3;
  --blue-300: #8fa2f7;
  --blue-100: #e2e8fd;
  --blue-50: #eef1fd;

  --mint: #bfe9d5;
  --mint-200: #d4f1e3;
  --mint-100: #e7f6ee;
  --mint-ink: #1b6a4d;

  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 10vw, 152px);
  --head-gap: clamp(36px, 4vw, 56px);
  --header-h: 76px;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --t-display: clamp(2.65rem, 1.3rem + 5vw, 4.75rem);
  --t-h1: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem);
  --t-h2: clamp(1.85rem, 1.3rem + 1.9vw, 2.8rem);
  --t-h3: clamp(1.06rem, 1rem + 0.28vw, 1.2rem);
  --t-lead: clamp(1.05rem, 0.97rem + 0.36vw, 1.25rem);
  --t-body: 1rem;
  --t-sm: 0.9rem;
  --t-xs: 0.8rem;
  --t-label: 0.7rem;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-sm: 0 1px 2px rgb(11 16 38 / 0.04), 0 2px 10px -4px rgb(11 16 38 / 0.06);
  --shadow-lift: 0 2px 4px rgb(11 16 38 / 0.03), 0 18px 40px -16px rgb(16 48 235 / 0.22);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 500;
  font-size: var(--t-sm);
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 12px;
}

.mark {
  fill: currentColor;
  flex: none;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.lead {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.6;
}

.accent {
  color: var(--blue);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--btn-h);
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 8px 20px -10px rgb(16 48 235 / 0.7);
}

.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 12px 26px -10px rgb(16 48 235 / 0.75);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-sm {
  --btn-h: 42px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 500;
  font-size: var(--t-sm);
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(245 244 239 / 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  margin-right: auto;
}

.brand .mark {
  width: 34px;
  height: 34px;
  color: var(--blue);
  transition: transform 0.6s var(--ease);
}

.brand:hover .mark {
  transform: rotate(90deg);
}

.wordmark {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.wordmark i {
  margin: 0 0.32em;
  color: var(--faint);
  font-style: normal;
  font-weight: 300;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  position: relative;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--blue);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}

.nav-toggle span:not(.sr) {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 18px;
}

.nav-toggle span:nth-child(2) {
  top: 25px;
}

.nav-open .nav-toggle span:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(8px, 1.5vw, 20px);
  /* The sculpture bleeds past the container; never let it widen the page. */
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 8px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(16px, 2.5vw, 36px);
}

.hero h1 {
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.hero h1 .accent {
  display: inline-block;
}

.hero .lead {
  max-width: 34ch;
  margin-top: 28px;
}

/* AI agents page hero: smaller headline, wider lead. */
.hero--agents {
  --t-display: clamp(2.35rem, 1.2rem + 4.4vw, 4.15rem);
}

.hero--agents .lead {
  max-width: 44ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-art {
  position: relative;
  margin: -7% -11% -9% -4%;
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  animation: hover-float 9s var(--ease-io) infinite;
  will-change: transform;
}

/* AI agents page: the cabinet stays inside the content column, its right edge
   lines up with the container like the header, never past it. */
.hero--agents .hero-art {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}
/* Soft light behind the cabinet so it separates from the paper ground. */
.hero--agents .hero-art::before {
  content: '';
  position: absolute;
  inset: 10% 6% 6% 22%;
  z-index: -1;
  border-radius: 40%;
  background: radial-gradient(closest-side, rgb(16 48 235 / 0.12), rgb(191 233 213 / 0.2) 60%, transparent 100%);
  filter: blur(24px);
}
.hero--agents .hero-art img {
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  max-height: min(600px, 70vh);
  filter: drop-shadow(0 28px 36px rgb(11 16 38 / 0.14)) drop-shadow(0 4px 8px rgb(11 16 38 / 0.06));
}

@keyframes hover-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -12px, 0);
  }
}

.hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(8px, 2vw, 24px);
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.hero-strip p {
  color: var(--ink);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.06rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.regions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.regions li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--mint-ink);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: calc(var(--section) / 2);
}

/* A hairline divider centred in the gap between two sections. */
.section--rule::before {
  content: '';
  position: absolute;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--max)) / 2));
  right: max(var(--gutter), calc((100% - var(--max)) / 2));
  height: 1px;
  background: var(--line-strong);
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: var(--head-gap);
}

.section-head .lead {
  max-width: 56ch;
  margin-top: 4px;
}

/* ---------- Expertise ---------- */
.expertise {
  display: grid;
  grid-template-columns: minmax(0, 3.5fr) minmax(0, 8.5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.expertise-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
}

.expertise-head .h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3rem);
  line-height: 1.06;
}

.expertise-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--t-sm);
  max-width: 32ch;
}

.xgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.xcard {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 18px;
  padding: 28px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
}


.xcard--wide {
  grid-column: 1 / -1;
}

.xnum {
  position: relative;
  padding-right: 20px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.75rem;
}

.xnum::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.35rem;
  height: 1.05rem;
  width: 1px;
  background: var(--line-strong);
}

/* The body's children join the card grid: number, title and icon share the
   first row, and the copy below spans the full card width. */
.xbody {
  display: contents;
}

.xnum {
  grid-column: 1;
  grid-row: 1;
}

.xbody h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(1.1rem, 1.04rem + 0.25vw, 1.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 0.1rem;
}

.xicon {
  grid-column: 3;
  grid-row: 1;
  margin-top: -6px;
}

.xbody > p {
  grid-column: 1 / -1;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.xlist {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.xlist li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.xlist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mint);
  transform: rotate(45deg);
}

.xcard--wide {
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr) auto;
}

.xcard--wide .xbody > p {
  grid-column: 2;
  grid-row: 2;
  margin-top: 10px;
}

.xcard--wide .xlist {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  margin: 0 0 0 16px;
  padding: 2px 0 2px 28px;
  border-top: 0;
  border-left: 1px dashed var(--line-strong);
}

.xcard--wide .xicon {
  grid-column: 4;
}

.xcard--wide .xbody h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
}

.xicon {
  width: 38px;
  height: 38px;
  color: var(--blue);
  transition: transform 0.5s var(--ease);
}


.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-right: clamp(24px, 3vw, 48px);
}

.step + .step {
  padding-left: 0;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: var(--mint-200);
  color: var(--ink);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}


.step-arrow {
  position: absolute;
  top: 16px;
  right: clamp(8px, 1.2vw, 18px);
  width: 22px;
  height: 22px;
  color: var(--faint);
}

.step:last-child .step-arrow {
  display: none;
}

.step-n {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.step p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

.steps-track {
  grid-column: 1 / -1;
  height: 1px;
  margin: 0 0 36px;
  background: linear-gradient(90deg, var(--blue) 0 12%, var(--line-strong) 12% 100%);
}

/* ---------- Production ---------- */
.production {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(16 48 235 / 0.06), transparent 60%),
    var(--white);
  border: 1px solid var(--line);
}

.production-head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 20px;
}

.production-head .lead {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
}

.production-note {
  padding-left: 16px;
  border-left: 2px solid var(--mint);
  color: var(--muted);
  font-size: var(--t-sm);
}

.production-head .btn {
  justify-self: start;
  margin-top: 8px;
}

.plist {
  display: grid;
}

.plist li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.plist li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.pcheck {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.pcheck svg {
  width: 20px;
  height: 20px;
}


.plist h3 {
  font-size: var(--t-h3);
  letter-spacing: -0.015em;
  line-height: 1.35;
  padding-top: 9px;
}

.plist p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

/* ---------- Stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.stack-group {
  padding: 28px 26px 30px;
}

.stack-group + .stack-group {
  border-left: 1px solid var(--line);
}

.stack-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.stack-group h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.stack-group:nth-child(2n) h3::before {
  background: var(--mint);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}


.stack-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--t-sm);
}

/* ---------- Regions panel ---------- */
.panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.panel--split {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.panel-copy {
  display: grid;
  gap: 18px;
}

.panel .h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.2vw, 2.2rem);
}

.panel-copy p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.region-list li {
  padding: 18px 18px 20px;
  border-radius: var(--r);
  background: var(--bg);
}

.region-list h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.region-list h3 svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex: none;
}

.region-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.55;
}

/* ---------- Insights ---------- */
.insights-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--head-gap);
}

.insights-head .section-head {
  margin-bottom: 0;
}

.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.guide-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.guide-cover {
  position: relative;
  height: 148px;
  margin: -12px -12px 8px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--blue-50);
}

.guide-cover svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guide-card:nth-child(2) .guide-cover {
  background: var(--mint-100);
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
}

.guide-meta .tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.guide-card h3 {
  font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.45rem);
  letter-spacing: -0.022em;
  line-height: 1.25;
}

.guide-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide-card p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.guide-card h3 + p {
  margin-top: 12px;
}

.guide-card .text-link {
  margin-top: 4px;
}

.guide-card:hover .text-link svg {
  transform: translateX(3px);
}

/* ---------- Contact band ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #dde6fc 0%, #d5e0fb 55%, #c9d8fb 100%);
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.cta-band::before {
  right: -16%;
  top: -60%;
  width: 46%;
  aspect-ratio: 1;
  background: linear-gradient(215deg, rgb(16 48 235 / 0.5), rgb(16 48 235 / 0.14) 70%);
}

.cta-band::after {
  right: 12%;
  bottom: -64%;
  width: 26%;
  aspect-ratio: 1;
  background: rgb(191 233 213 / 0.8);
}

.cta-band .h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.1vw, 3rem);
  line-height: 1.08;
}

.cta-band .cta-copy {
  display: grid;
  gap: 18px;
}

.cta-band .cta-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 0.96rem;
}

.cta-side {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r);
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / 0.9);
}

.cta-mail {
  color: var(--ink);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  border-bottom: 1.5px solid var(--blue-300);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cta-mail:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.cta-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
}

.cta-meta svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-strong);
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr));
  gap: 40px;
}

.footer-brand {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.footer-brand p {
  max-width: 36ch;
  color: var(--muted);
  font-size: var(--t-sm);
}

.footer-col h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--ink-2);
  font-size: var(--t-sm);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-xs);
}

/* ---------- Inner pages: crumbs, hub, 404 ---------- */
.page-head {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-bottom: var(--head-gap);
}

.page-head .crumbs {
  margin-bottom: 12px;
}

.page-head .lead {
  max-width: 60ch;
  margin-top: 4px;
}

.page-head h1 {
  font-size: var(--t-h1);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 500;
}

.crumbs a:hover {
  color: var(--blue);
}

.crumbs .sep {
  color: var(--faint);
}

.feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.feature:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-lift);
}

.feature-body {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}

.feature-body h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.feature-body h2 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.feature-body .btn {
  justify-self: start;
  margin-top: 8px;
}

.feature-body > p:not(.guide-meta) {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.feature-body h2 a {
  transition: color 0.2s var(--ease);
}

.feature:hover .feature-body h2 a {
  color: var(--blue);
}

.feature-art {
  position: relative;
  min-height: 300px;
  background: var(--blue-50);
  overflow: hidden;
}

.feature-art--mint {
  background: var(--mint-100);
}

.feature-art svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  transition: transform 1.2s var(--ease);
}

.feature:hover .feature-art svg {
  transform: scale(1.04);
}

.feature--reverse {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.feature--reverse .feature-art {
  order: -1;
}

.hub-section {
  padding-top: clamp(48px, 6vw, 80px);
}

.hub-section > h2 {
  margin-bottom: 24px;
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  letter-spacing: -0.02em;
}

.not-found {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - var(--header-h) - 280px);
  padding-block: clamp(48px, 7vw, 96px);
}

.not-found-copy {
  display: grid;
  gap: 20px;
}

.not-found .code {
  color: var(--blue);
  font-size: clamp(4.5rem, 3rem + 7vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.not-found h1 {
  font-size: var(--t-h2);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.not-found .hero-actions {
  margin-top: 12px;
}

.scatter {
  width: min(100%, 420px);
  justify-self: center;
  color: var(--blue);
}

.scatter path {
  transform-box: fill-box;
  transform-origin: center;
  animation: drift 7s var(--ease-io) infinite;
}

.scatter path:nth-child(1) { --tx: -26px; --ty: -18px; --rot: -8deg; }
.scatter path:nth-child(2) { --tx: 30px; --ty: -10px; --rot: 10deg; animation-delay: -1.5s; }
.scatter path:nth-child(3) { --tx: 18px; --ty: 28px; --rot: -6deg; animation-delay: -3s; }
.scatter path:nth-child(4) { --tx: -22px; --ty: 22px; --rot: 12deg; animation-delay: -4.5s; }

.scatter path:nth-child(2n) {
  fill: var(--mint);
}

@keyframes drift {
  0%,
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  }
  50% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .hero-art.reveal {
  transform: translate3d(0, 0, 0) scale(0.96);
  transition-duration: 1.4s;
}

.js .hero-art.reveal.is-in {
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack-group:nth-child(3) {
    border-left: 0;
  }

  .stack-group:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }

  .steps-track {
    display: none;
  }

  .step:nth-child(odd) .step-arrow {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgb(11 16 38 / 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav a::after {
    display: none;
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    gap: 12px;
  }

  :root {
    --section: 88px;
  }

  .hero-grid,
  .expertise,
  .production,
  .panel--split,
  .cta-band,
  .feature,
  .not-found {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-art {
    margin: -4% -12% -6%;
    order: 2;
  }

  .hero--agents .hero-art {
    margin: 24px 0 8px;
    justify-content: center;
  }

  .hero--agents .hero-art img {
    max-height: 440px;
  }

  .hero-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .regions {
    justify-content: flex-start;
  }

  .expertise-head,
  .production-head {
    position: static;
  }

  .xcard--wide {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .xcard--wide .xbody > p {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .xcard--wide .xlist {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 18px 0 0;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }

  .xcard--wide .xicon {
    grid-column: 3;
  }

  .region-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-art {
    order: -1;
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .scatter {
    width: 240px;
    order: -1;
  }

  .not-found {
    min-height: 0;
  }
}

/* No-JS fallback for the small-screen menu: show links inline. */
@media (max-width: 900px) {
  html:not(.js) .nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
  }

  html:not(.js) .nav a {
    border: 0;
    padding: 4px 0;
    font-size: 0.9rem;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }

  .xgrid,
  .guides,
  .steps,
  .stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-group + .stack-group {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .step-arrow {
    display: none;
  }

  .xcard {
    column-gap: 14px;
    padding: 22px 20px 24px;
  }

  .xnum {
    padding-right: 14px;
  }

  .xicon {
    width: 34px;
    height: 34px;
    margin-top: -2px;
  }

  .insights-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- AI agents (/agents/) ----------
 * Each agent keeps its own accent (--ag, and --ag-solid for white text) from
 * its product. It appears only in the mascot, the ribbon and faint washes; the
 * page itself stays paper and cobalt. Mascots are never boxed.
 */
.section--tight { padding-block: calc(var(--section) / 3); }

.ag-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.ag-facts li { display: grid; gap: 6px; padding: 20px 22px; background: var(--card); }
.ag-facts strong { font-weight: 600; color: var(--ink); }
.ag-facts span { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }

/* Index cards */
.ag2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ag2 {
  --ag: var(--blue);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--ag) 9%, transparent) 0%, transparent 55%),
    var(--card);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.ag2--link:hover { border-color: color-mix(in srgb, var(--ag) 45%, var(--line)); box-shadow: 0 2px 4px rgb(11 16 38 / 0.03), 0 22px 44px -22px color-mix(in srgb, var(--ag) 45%, transparent); transform: translateY(-3px); }
.ag2-ribbon { position: absolute; top: 26px; right: -10px; margin: 0; filter: drop-shadow(0 4px 6px rgb(11 16 38 / 0.12)); }
.ag2-ribbon span {
  display: block;
  padding: 7px 16px 7px 22px;
  background: var(--ag-solid, var(--ag));
  color: var(--white);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
}
.ag2-ribbon::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -8px;
  border-left: 10px solid color-mix(in srgb, var(--ag-solid, var(--ag)) 55%, #000);
  border-bottom: 8px solid transparent;
}
.ag2-head { display: flex; align-items: center; gap: 16px; padding-right: 150px; }
.ag2-mascot { width: 72px; height: 72px; flex: none; object-fit: contain; }
.ag2 h3 { font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.ag2--link h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.ag2-tag { color: var(--ink); font-weight: 500; font-size: 1.05rem; line-height: 1.45; margin-top: 4px; }
.ag2-sum { color: var(--muted); font-size: var(--t-sm); line-height: 1.65; }
.ag2-go, .ag2-soon { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 500; }
.ag2-go { color: var(--blue); }
.ag2-go .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.ag2--link:hover .ag2-go .icon { transform: translateX(4px); }
.ag2-soon { color: var(--faint); }

/* Agent page: hero */
.ag-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ag-intro .page-head { margin-bottom: 0; }
.ag-title { display: flex; align-items: center; gap: 18px; }
.ag-title-mascot { width: clamp(64px, 6vw, 92px); height: auto; flex: none; }
.ag-hero-shot { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow-lift); }
.ag-hero-shot img, .shot img { display: block; width: 100%; height: auto; }

.ag-jobs .xcard { grid-template-columns: auto minmax(0, 1fr); }

.ag-example { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.ag-example .section-head { margin-bottom: 0; }
.ag-chat { display: grid; gap: 14px; padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.ag-msg { margin: 0; line-height: 1.55; }
.ag-msg span { display: block; margin-bottom: 4px; color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.ag-msg--me { justify-self: end; max-width: 82%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: var(--bg-deep); color: var(--ink); font-weight: 500; }
.ag-msg--ai { display: flex; gap: 12px; align-items: flex-start; max-width: 94%; }
.ag-chat-mascot { width: 40px; height: 40px; flex: none; }
.ag-msg--ai p { margin: 0; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: var(--blue); color: var(--white); }
.ag-msg--ai p span { color: var(--blue-100); }
.ag-checked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 52px; color: var(--muted); font-size: var(--t-xs); }
.ag-checked ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ag-checked li { padding: 4px 10px; border-radius: 999px; background: var(--mint-100); color: var(--mint-ink); font-weight: 500; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.shot { margin: 0; display: grid; gap: 12px; }
.shot img { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-sm); }
.shot figcaption { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.shot figcaption strong { color: var(--ink); font-weight: 600; }

/* Typical results */
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.res { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.res-v { font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.res-l { color: var(--ink); font-weight: 500; line-height: 1.45; min-height: 2.9em; }
.res-meter { display: block; height: 6px; border-radius: 999px; background: var(--blue-100); overflow: hidden; }
.res-meter span { display: block; width: var(--v); height: 100%; border-radius: inherit; background: var(--blue); }
.res-cmp { display: grid; gap: 12px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.res-cmp div { display: grid; gap: 2px; }
.res-cmp dt { font-size: var(--t-label); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.res-cmp div:last-child dt { color: var(--mint-ink); }
.res-cmp dd { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.res-cmp div:last-child dd { color: var(--ink-2); }

.cs2-note { margin-top: 24px; max-width: 80ch; color: var(--muted); font-size: var(--t-xs); }

/* FAQ, always open */
.faq2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.faq2 { display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.faq2 h3 { font-size: var(--t-h3); font-weight: 600; color: var(--ink); line-height: 1.35; }
.faq2 p { color: var(--ink-2); line-height: 1.65; }

@media (max-width: 1080px) {
  .ag-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-intro, .ag-example { grid-template-columns: minmax(0, 1fr); }
  .results { grid-template-columns: minmax(0, 1fr); }
  .res-l { min-height: 0; }
}
@media (max-width: 900px) {
  .ag2-grid, .faq2-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ag-facts, .shots { grid-template-columns: minmax(0, 1fr); }
  .ag2 { padding: 26px 22px 24px; }
  .ag2-head { padding-right: 0; padding-top: 34px; }
  .ag2-ribbon { top: 18px; }
  .ag-checked { padding-left: 0; }
}

/* ---------- Homepage: agents, process, deployment ---------- */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--head-gap); }
.home-head > div { display: grid; gap: 14px; max-width: 760px; }
.home-head .text-link { flex: none; }
.step-when { margin: 0 0 6px; color: var(--blue); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.02em; }
.dep-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dep { display: grid; gap: 10px; align-content: start; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.dep h3 { font-size: var(--t-h3); font-weight: 600; color: var(--ink); }
.dep p { color: var(--ink-2); line-height: 1.6; }
.dep .dep-meta { color: var(--mint-ink); font-size: var(--t-sm); font-weight: 600; }
#security .region-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  }
@media (max-width: 760px) {
  .home-head { flex-direction: column; align-items: flex-start; }
  .dep-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    #security .region-list { grid-template-columns: minmax(0, 1fr); }
}


/* Homepage agent roster: no boxes, rows separated by hairlines. */
.roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.roster-item { --ag: var(--blue); border-top: 1px solid var(--line); }
.roster-item a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 20px 4px; }
.roster-item img { width: 64px; height: 64px; object-fit: contain; }
.roster-text { display: grid; gap: 4px; }
.roster-name { color: var(--ink); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.roster-dept { display: inline-flex; align-items: center; gap: 8px; justify-self: end; color: var(--muted); font-size: var(--t-xs); font-weight: 500; white-space: nowrap; }
.roster-dept::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ag); flex: none; }
.roster-tag { color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.roster-arrow { width: 20px; height: 20px; color: var(--faint); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.roster-item a:hover .roster-name { color: var(--blue); }
.roster-item a:hover .roster-arrow { color: var(--blue); transform: translateX(4px); }
.roster-item a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .roster { grid-template-columns: minmax(0, 1fr); }
  .roster-item:nth-child(2) { border-top: 1px solid var(--line); }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .roster-dept { display: none; }
  .roster-item a { grid-template-columns: 64px minmax(0, 1fr) auto; }
}
@media (max-width: 560px) {
  .roster-item a { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 6px; }
  .roster-item img { width: 52px; height: 52px; grid-row: span 2; }
  .roster-dept { grid-column: 2; grid-row: 2; justify-self: start; }
  .roster-arrow { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 420px) {
  .roster-item a { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .roster-item img { width: 52px; height: 52px; }
  .roster-arrow { display: none; }
}

/* "How we build your agent": a journey with four connected stops. */
.journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.journey::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 32px;
  right: 0;
  height: 2px;
  border-radius: 2px;
  /* Runs past the last stop and fades out: support continues after onboarding. */
  background: linear-gradient(90deg, var(--blue-300), var(--blue) 55%, var(--mint-ink) 80%, color-mix(in srgb, var(--mint-ink) 0%, transparent));
}
.jr-step { position: relative; display: grid; align-content: start; gap: 10px; }
.jr-node { position: relative; width: 64px; height: 64px; margin-bottom: 14px; }
.jr-dot {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue-100), 0 0 0 8px var(--bg), 0 14px 28px -14px rgb(16 48 235 / 0.55);
}
.jr-dot .icon { width: 26px; height: 26px; }
.jr-n {
  position: absolute;
  top: -4px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--bg);
}
.jr-step--live .jr-dot { background: var(--mint-100); color: var(--mint-ink); box-shadow: 0 0 0 1px var(--mint), 0 0 0 8px var(--bg), 0 14px 28px -14px rgb(27 106 77 / 0.5); }
.jr-step--live .jr-n { background: var(--mint-ink); }
.jr-when { justify-self: start; margin: 0; padding: 4px 11px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: var(--t-xs); font-weight: 600; }
.jr-step--live .jr-when { background: var(--mint-100); color: var(--mint-ink); }
.jr-step h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.jr-text { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }

@media (max-width: 900px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .journey::before { top: 32px; bottom: 0; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue-300), var(--blue) 55%, var(--mint-ink) 82%, transparent); }
  .jr-step { grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; }
  .jr-node { grid-row: 1 / span 3; margin-bottom: 0; }
  .jr-step > :not(.jr-node) { grid-column: 2; }
}


/* Case studies: title + subtitle, [diagram | how the connections work], four gains. */
.cs5-list { display: grid; border-top: 1px solid var(--line); }
.cs5 { display: grid; gap: 28px; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.cs5-head { display: grid; gap: 10px; max-width: 860px; }
.cs5 h3 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; color: var(--ink); }
.cs5-sub { color: var(--ink-2); font-size: var(--t-lead); font-weight: 300; line-height: 1.55; }
.cs5-meta { color: var(--muted); font-size: var(--t-xs); font-weight: 500; }
.cs5-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; }
/* The diagram's own background frames it, so nothing near its edges is clipped by the corners. */
.cs5-fig { margin: 0; padding: clamp(12px, 2vw, 22px); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.cs5-fig img { display: block; width: 100%; height: auto; }
.cs5-how { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; position: relative; }
.cs5-how::before { content: ''; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--blue-300), var(--blue)); border-radius: 2px; }
.cs5-how li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; }
.cs5-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 0.78rem; font-weight: 600; box-shadow: 0 0 0 4px var(--bg); }
.cs5-how strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
.cs5-how p { margin-top: 2px; color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.cs5-gains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.cs5-gains li { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.cs5-gains b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--blue); font-variant-numeric: tabular-nums; }
.cs5-gains li.is-text b { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.35; }
.cs5-gains span { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.45; }
@media (max-width: 1080px) {
  .cs5-body { grid-template-columns: minmax(0, 1fr); }
  .cs5-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .cs5-gains { grid-template-columns: minmax(0, 1fr); }
}
