/* OneBOSS marketing site — design system
   Brand: logo orange #FF8C24 on near-black. Type: Archivo (display), Inter (text), JetBrains Mono (labels). */

:root {
  --bg: #090B0E;
  --bg-2: #0D1015;
  --surface: #11151B;
  --surface-2: #171C24;
  --surface-3: #1E242E;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #EEF1F5;
  --text-2: #BAC2CD;
  --muted: #8C96A5;
  --accent: #FF8C24;
  --accent-2: #FFA552;
  --accent-soft: rgba(255, 140, 36, 0.12);
  --accent-ink: #1B0E02;
  --ok: #3DD68C;
  --warn: #FFB547;
  --bad: #FF6B6B;
  --info: #6CB6FF;

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --section: clamp(64px, 8.5vw, 116px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 760; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: 0; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; }
.eyebrow.plain::before { display: none; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--text-2); max-width: 46rem; }
.kicker { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.text-2 { color: var(--text-2); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 52rem; }
.section-head .lead { margin-top: 4px; }
.section-index { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.section-index b { color: var(--accent); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-family: var(--font-text); font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn-sm { min-height: 40px; padding: 10px 16px; font-size: .9rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; }
.link-arrow:hover { color: var(--accent-2); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 11, 14, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(9, 11, 14, 0.88); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; }
.nav ul a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--text-2); font-size: .95rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav ul a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav ul a[aria-current="page"] { color: var(--text); }
.nav ul a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 4px; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2);
    background: transparent; color: var(--text); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px var(--gutter) 28px;
    background: rgba(9, 11, 14, 0.98); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav ul a[aria-current="page"]::after { display: none; }
  .nav ul a[aria-current="page"] { color: var(--accent); }
  .nav-cta { min-height: 48px; }
}

/* ---------- Backgrounds ---------- */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: relative; isolation: isolate; }
.glow::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 120vw); height: 600px; left: 50%; top: -220px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(255, 140, 36, .16), transparent 70%);
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.nowrap { white-space: nowrap; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 36px; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61,214,140,.18); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 8px; }

/* Integration constellation (home hero) */
.constellation { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.constellation svg { width: 100%; height: 100%; overflow: visible; }
.constellation .ring { fill: none; stroke: rgba(255,255,255,.07); }
.constellation .wire { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; }
.constellation .flow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 6 140; animation: flow 3.6s linear infinite; opacity: .9; }
.constellation .flow.rev { animation-direction: reverse; stroke: var(--info); opacity: .7; }
.constellation .node rect { fill: var(--surface-2); stroke: var(--line-2); }
.constellation .node text { fill: var(--text-2); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; }
.constellation .node .dot { fill: var(--accent); }
.constellation .core-glow { fill: url(#coreGlow); }
.constellation .core rect { fill: #0B0E12; stroke: rgba(255,140,36,.55); stroke-width: 1.5; }
@keyframes flow { to { stroke-dashoffset: -146; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 28px 32px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-stretch: 112%; font-weight: 720; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px; }
.stat-num .accent { color: var(--accent); }
.stat p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0; max-width: 24ch; }
@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 24px 16px; border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
a.card:hover, .card.hoverable:hover { border-color: rgba(255,140,36,.35); background: var(--surface-2); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-2); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,140,36,.22);
}
.card-icon svg { width: 24px; height: 24px; }
.card-num { font-family: var(--font-mono); color: var(--muted); font-size: .8rem; margin-bottom: 18px; display: block; letter-spacing: .08em; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .03em; color: var(--text-2);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02); white-space: nowrap;
}
.pill.accent { color: var(--accent); border-color: rgba(255,140,36,.35); background: var(--accent-soft); }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 5px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23FF8C24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  border: 1px solid rgba(255,140,36,.3);
}
.check-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 680px) { .check-list.cols-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Featured work ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 56px);
  overflow: hidden;
}
.feature + .feature { margin-top: 24px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 18px 0 8px; }
.feature .subtitle { font-size: 1.12rem; color: var(--text); font-weight: 500; margin-bottom: 16px; line-height: 1.45; }
.feature .feature-copy > p { color: var(--text-2); }
.feature .check-list { margin: 24px 0 28px; }
@media (max-width: 960px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.flip .feature-copy { order: 0; } }

/* ---------- Product mockups (illustrative) ---------- */
.mock {
  background: #0B0E13; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4);
  font-size: 13px; line-height: 1.45;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0F131A; }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A313C; display: block; }
.mock-title { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 18px; }
.mock-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.mock-h strong { font-family: var(--font-display); font-stretch: 105%; font-size: 15px; letter-spacing: -.01em; }
.mock-h span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.mock-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.mock-tile b { display: block; font-family: var(--font-display); font-stretch: 110%; font-size: 18px; color: var(--text); line-height: 1.1; }
.mock-tile small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rows { display: grid; gap: 8px; }
.mock-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
}
.mock-row .who { min-width: 0; }
.mock-row .who b { display: block; font-weight: 600; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .who small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid; }
.tag.ok { color: var(--ok); border-color: rgba(61,214,140,.35); background: rgba(61,214,140,.08); }
.tag.warn { color: var(--warn); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.tag.bad { color: var(--bad); border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.tag.info { color: var(--info); border-color: rgba(108,182,255,.35); background: rgba(108,182,255,.08); }
.tag.accent { color: var(--accent); border-color: rgba(255,140,36,.35); background: var(--accent-soft); }
.type-chip { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.type-chip.ok { background: rgba(61,214,140,.12); color: var(--ok); }
.type-chip.warn { background: rgba(255,181,71,.12); color: var(--warn); }
.type-chip.bad { background: rgba(255,107,107,.12); color: var(--bad); }
.type-chip.info { background: rgba(108,182,255,.12); color: var(--info); }
.type-chip.accent { background: var(--accent-soft); color: var(--accent); }

/* Biomarker bars */
.markers { display: grid; gap: 12px; }
.marker { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 4.6rem; gap: 12px; align-items: center; }
.marker .tag { justify-self: end; }
.marker .name { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marker .name small { display: block; color: var(--muted); font-size: 10.5px; font-family: var(--font-mono); }
.range { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); }
.range .opt { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: rgba(61,214,140,.28); }
.range .val { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #0B0E13; }
.range .val.ok { background: var(--ok); }
.range .val.warn { background: var(--warn); }
.range .val.bad { background: var(--bad); }
.chat { display: grid; gap: 10px; margin-top: 16px; }
.bubble { padding: 10px 12px; border-radius: 12px; max-width: 92%; font-size: 12.5px; }
.bubble.user { justify-self: end; background: var(--surface-3); color: var(--text); border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); border-bottom-left-radius: 4px; }
.cite { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; }

/* Delivery feed */
.feed { display: grid; gap: 0; }
.feed li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 10px; height: 10px; border-radius: 50%; margin: 5px 0 0 5px; }
.feed .dot.ok { background: var(--ok); } .feed .dot.info { background: var(--info); } .feed .dot.accent { background: var(--accent); } .feed .dot.warn { background: var(--warn); }
.feed b { display: block; font-size: 12.5px; color: var(--text); font-weight: 600; }
.feed small { display: block; font-size: 11.5px; color: var(--muted); }
.feed time { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 28px 22px 8px 0; position: relative; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.step + .step::before { left: 22px; }
.step .card-num { margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 1040px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step, .step + .step { padding: 22px 0 14px 28px; border-left: 1px solid var(--line); }
  .step::before, .step + .step::before { top: 26px; left: -1px; width: 2px; height: 22px; }
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split.v-center { align-items: center; }
.split-wide { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 960px) { .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: 104px; }
@media (max-width: 960px) { .sticky { position: static; } }

/* ---------- Principles ---------- */
.principle { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
.principle .card-icon { margin: 0; width: 44px; height: 44px; }
.principle h3 { font-size: 1.15rem; margin-bottom: 6px; }
.principle p { color: var(--text-2); margin: 0; font-size: .97rem; }

/* ---------- Highlights / bona fides ---------- */
.bona { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.bona li { padding: 22px 26px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 16px; align-items: start; }
.bona li + li { border-top: 1px solid var(--line); }
.bona .mark { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.1rem; line-height: 1.4; }
.bona p { margin: 0; color: var(--text-2); }
.bona p strong { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- Leaders ---------- */
.leader { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; padding: clamp(24px, 3vw, 36px); }
.leader + .leader { margin-top: 20px; }
.monogram {
  width: 112px; height: 112px; border-radius: 22px; position: relative; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-3), var(--surface)); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-stretch: 115%; font-weight: 760; font-size: 2.1rem; letter-spacing: -0.02em; color: var(--text);
}
.monogram::before { content: ""; position: absolute; left: 12px; top: 12px; width: 6px; height: 20px; border-radius: 2px; background: var(--accent); }
.leader h3 { margin-bottom: 4px; }
.leader .role { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.leader p { color: var(--text-2); }
.leader .pill-row { margin-top: 18px; }
@media (max-width: 680px) { .leader { grid-template-columns: minmax(0, 1fr); gap: 20px; } .monogram { width: 88px; height: 88px; font-size: 1.7rem; } }

/* ---------- Case study page ---------- */
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(40px, 6vw, 64px); }
.meta-grid > div { padding: 22px 20px 22px 0; }
.meta-grid > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta-grid dt { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.meta-grid dd { margin: 0; color: var(--text); font-weight: 500; font-size: .98rem; }
@media (max-width: 880px) {
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid > div, .meta-grid > div + div { padding: 18px 14px; border-left: 0; }
  .meta-grid > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .meta-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.prose { max-width: 44rem; }
.prose p { color: var(--text-2); font-size: 1.06rem; }
.prose p strong { color: var(--text); }
.pull-quote {
  font-family: var(--font-display); font-stretch: 106%; font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3; letter-spacing: -0.01em; color: var(--text); border-left: 3px solid var(--accent); padding-left: 24px; margin: 0;
}

.work-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 14px 0 10px; }
.work-item .subtitle { color: var(--text-2); font-size: 1.05rem; }
@media (max-width: 880px) { .work-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,140,36,.25); border-radius: 28px; padding: clamp(40px, 6vw, 80px);
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,140,36,.18), transparent 60%), var(--surface);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: clamp(32px, 6vw, 88px); top: 50%; width: 210px; height: 225px; transform: translateY(-50%);
  background: url("/assets/img/logo-badge-white.svg") center/contain no-repeat; opacity: .06;
}
@media (max-width: 880px) { .cta-band::before { display: none; } }
.cta-band h2 { max-width: 20ch; }
.cta-band .lead { margin-bottom: 32px; }
.cta-contact { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.cta-contact a:hover { color: var(--text); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 680px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238C96A5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,140,36,.18); }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { font-size: .95rem; color: var(--ok); min-height: 1.5em; margin: 0; }

.contact-list { display: grid; gap: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list dt, .contact-list .k { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a, .contact-list .v { font-size: 1.15rem; font-weight: 500; color: var(--text); }
.contact-list a:hover { color: var(--accent); }

/* ---------- Tech list ---------- */
.tech { display: flex; flex-wrap: wrap; gap: 10px; }
.tech span { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: .92rem; color: var(--text-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; margin-top: var(--section); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 25px; width: auto; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.footer-tagline { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; color: var(--text) !important; font-size: 1.05rem !important; }
.footer-h { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: .95rem; }
.site-footer ul a { color: var(--text-2); }
.site-footer ul a:hover { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
main + .site-footer { margin-top: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .constellation .flow { display: none; }
}

@media (max-width: 520px) {
  .feature { padding: 20px; border-radius: 22px; }
  .mock-body { padding: 14px; }
  .mock-h { flex-direction: column; gap: 2px; }
  .mock-tile small { white-space: normal; }
  .mock-row { grid-template-columns: auto minmax(0, 1fr); }
  .mock-row .tag { grid-column: 2; justify-self: start; }
  .marker { grid-template-columns: minmax(0, 5.6rem) minmax(0, 1fr) 4.2rem; gap: 8px; }
  .pill { white-space: normal; max-width: 100%; }
}

h2.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 12px; }
ol.check-list { list-style: none; margin: 0; padding: 0; }
.check-list { margin: 0; padding: 0; }
a.kicker:hover { color: var(--text); }
.page-hero .kicker { display: block; width: fit-content; }

.card.compact { padding: 22px; }
.card.compact h3 { font-size: 1.1rem; }
.card.compact p { font-size: .93rem; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.max-36 { max-width: 36rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
