/* Marketing agencies landing page. Section styles and Lyra tokens reused from
   index.html; shared navigation remains in site-nav.css. No build step required. */

/* ============ Lyra / taupe tokens ============ */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.147 0.004 49.3);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.147 0.004 49.3);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.147 0.004 49.3);
  --primary: oklch(0.214 0.009 43.1);
  --primary-foreground: oklch(0.986 0.002 67.8);
  --secondary: oklch(0.96 0.002 17.2);
  --secondary-foreground: oklch(0.214 0.009 43.1);
  --muted: oklch(0.96 0.002 17.2);
  --muted-foreground: oklch(0.547 0.021 43.1);
  --accent: oklch(0.96 0.002 17.2);
  --accent-foreground: oklch(0.214 0.009 43.1);
  --destructive: oklch(0.577 0.245 27.325);
  --success: #079455;
  --warning: #eaaa08;
  --warning-foreground: #a15c07;
  --border: oklch(0.922 0.005 34.3);
  --input: oklch(0.922 0.005 34.3);
  --ring: oklch(0.714 0.014 41.2);
  --chart-1: oklch(0.837 0.128 66.29);
  --chart-2: oklch(0.705 0.213 47.604);
  --chart-3: oklch(0.646 0.222 41.116);
  --chart-4: oklch(0.553 0.195 38.402);
  --chart-5: oklch(0.47 0.157 37.304);
  --radius: 0;
  --font-heading: "Merriweather", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
.dark {
  --background: oklch(0.147 0.004 49.3);
  --foreground: oklch(0.986 0.002 67.8);
  --card: oklch(0.214 0.009 43.1);
  --card-foreground: oklch(0.986 0.002 67.8);
  --popover: oklch(0.214 0.009 43.1);
  --popover-foreground: oklch(0.986 0.002 67.8);
  --primary: oklch(0.922 0.005 34.3);
  --primary-foreground: oklch(0.214 0.009 43.1);
  --secondary: oklch(0.268 0.011 36.5);
  --secondary-foreground: oklch(0.986 0.002 67.8);
  --muted: oklch(0.268 0.011 36.5);
  --muted-foreground: oklch(0.714 0.014 41.2);
  --accent: oklch(0.268 0.011 36.5);
  --accent-foreground: oklch(0.986 0.002 67.8);
  --destructive: oklch(0.704 0.191 22.216);
  --success: #47cd89;
  --warning: #fac515;
  --warning-foreground: #fde272;
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.547 0.021 43.1);
}

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); margin: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: 5rem; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.icon {
  flex: none;
  font-size: 1em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ buttons (full state matrix) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.25rem;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: opacity 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 3rem; padding: 0 1.75rem; font-size: 0.875rem; }
.btn-xs { min-height: 2.25rem; padding: 0 0.85rem; font-size: 0.75rem; gap: 0.4rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { opacity: 0.88; }
  .btn-outline:hover { background: var(--accent); }
  .btn-ghost:hover { background: var(--accent); }
}

/* ============ announcement bar ============ */
.announce {
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem 1.25rem;
}
.announce a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .announce a:hover { color: var(--muted-foreground); }
}

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 3.75rem; gap: 1rem;
}
.site-header .logo { grid-column: 1; justify-self: start; }
.site-header .nav-links { grid-column: 2; }
.site-header .header-actions { grid-column: 3; justify-self: end; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 1.75rem; height: 1.75rem;
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
}
.logo-mark img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.logo-mark .logo-mark-for-dark { display: none; }
.dark .logo-mark .logo-mark-for-light { display: none; }
.dark .logo-mark .logo-mark-for-dark { display: block; }
.logo-name { font-family: var(--font-mono); font-weight: 600; font-size: 1.0625rem; text-transform: lowercase; }
.logo-name .logo-tld { color: var(--chart-4); }
.dark .logo-name .logo-tld { color: var(--chart-2); }
.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1200px) { .nav-links { display: flex; } }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.875rem;
  font-size: 0.8125rem; color: var(--muted-foreground); text-decoration: none;
  transition: color 150ms ease;
}
.nav-links a[aria-current="page"] { color: var(--foreground); }
.nav-links a:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--foreground); }
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.theme-toggle {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { background: var(--accent); }
}
.theme-toggle .icon { font-size: 1.05rem; }
.dark .sun-icon { display: inline-flex; } .dark .moon-icon { display: none; }
.sun-icon { display: none; } .moon-icon { display: inline-flex; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* mobile drawer */
.menu-btn {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.97); }
.menu-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .menu-btn:hover { background: var(--accent); }
}
@media (min-width: 1200px) { .menu-btn { display: none; } }
.scrim {
  position: fixed; inset: 0; background: oklch(0.147 0.004 49.3 / 55%);
  z-index: 40; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out);
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: 300px; max-width: 84vw;
  background: var(--background); border-right: 1px solid var(--border);
  z-index: 50; transform: translateX(-100%); transition: transform 280ms var(--ease-drawer);
  display: flex; flex-direction: column; padding: 1rem;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.drawer nav { display: flex; flex-direction: column; padding-top: 0.75rem; }
.drawer nav a {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0 0.75rem;
  text-decoration: none; font-size: 0.875rem; color: var(--foreground);
}
@media (hover: hover) and (pointer: fine) {
  .drawer nav a:hover { background: var(--accent); }
}
.drawer .btn { margin-top: auto; }

/* ============ hero ============ */
.hero {
  min-height: calc(100vh - 6rem);
  min-height: calc(100svh - 6rem);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}
.hero > .container {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  flex: 1;
  align-content: center;
  overflow: visible;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 4rem; } }
.hero .powered { margin-top: auto; padding-top: 2rem; }
.hero h1 {
  font-size: 2rem; letter-spacing: -0.01em; margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 2.75rem; } }
.hero-sub { color: var(--muted-foreground); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.hero-ctas .btn { block-size: 3rem; }
.dark .hero-ctas .btn-outline { border-color: var(--muted-foreground); }
.powered {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 0;
  margin-top: 0;
  text-align: center;
}
.powered-label { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.powered-list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.8125rem; color: var(--muted-foreground);
}
.powered-item {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--foreground);
}
.powered-item img {
  width: 1.125rem; height: 1.125rem;
  display: block; object-fit: contain;
  flex: 0 0 auto;
}
.powered-item img.mono { color: var(--foreground); }
.dark .powered-item img.mono { filter: invert(1); }

/* ============ hero flow (Meeting Concierge, self-contained, no iframe) ============ */
.hero-flow {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  /* Text defaults to the (inverted) flow foreground so header text like the
     title inherits the right colour instead of the page's foreground. */
  color: var(--foreground);
  padding: 1rem;
  box-shadow:
    0 1px 0 color-mix(in oklch, var(--foreground) 6%, transparent),
    0 22px 48px color-mix(in oklch, var(--foreground) 12%, transparent);
}
@media (min-width: 1024px) { .hero-flow { padding: 1.25rem; } }
/* Inverted colour mode: the flow renders in the opposite theme so it pops off
   the page. Overriding the Lyra tokens on the element flips every part at once
   (surface, nodes, connectors, dotted grid); the orange --chart-2 accent is
   theme-agnostic and stays. box-shadow is set explicitly here because it must
   key off the *page* colour, not the now-inverted --foreground. */
.hero-flow {
  --background: oklch(0.147 0.004 49.3);
  --foreground: oklch(0.986 0.002 67.8);
  --card: oklch(0.214 0.009 43.1);
  --card-foreground: oklch(0.986 0.002 67.8);
  --primary: oklch(0.922 0.005 34.3);
  --primary-foreground: oklch(0.214 0.009 43.1);
  --secondary: oklch(0.268 0.011 36.5);
  --secondary-foreground: oklch(0.986 0.002 67.8);
  --muted: oklch(0.268 0.011 36.5);
  --muted-foreground: oklch(0.714 0.014 41.2);
  --accent: oklch(0.268 0.011 36.5);
  --accent-foreground: oklch(0.986 0.002 67.8);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.547 0.021 43.1);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.05),
    0 24px 50px rgba(0, 0, 0, 0.24);
}
.dark .hero-flow {
  --background: oklch(1 0 0);
  --foreground: oklch(0.147 0.004 49.3);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.147 0.004 49.3);
  --primary: oklch(0.214 0.009 43.1);
  --primary-foreground: oklch(0.986 0.002 67.8);
  --secondary: oklch(0.96 0.002 17.2);
  --secondary-foreground: oklch(0.214 0.009 43.1);
  --muted: oklch(0.96 0.002 17.2);
  --muted-foreground: oklch(0.547 0.021 43.1);
  --accent: oklch(0.96 0.002 17.2);
  --accent-foreground: oklch(0.214 0.009 43.1);
  --border: oklch(0.922 0.005 34.3);
  --input: oklch(0.922 0.005 34.3);
  --ring: oklch(0.714 0.014 41.2);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 24px 50px rgba(0, 0, 0, 0.6);
}
.hf-cap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.hf-title { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-weight: 600; font-size: 0.8125rem; }
.hf-title .icon { color: var(--chart-2); font-size: 1rem; }
.hf-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.hf-dot { width: 6px; height: 6px; flex: none; background: var(--chart-2); }
/* branching-flow body: trigger -> triage -> 3-way branch -> HITL -> write-back */
.hero-flow .fl {
  position: relative;
  background: radial-gradient(circle, color-mix(in oklch, var(--foreground) 10%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero-flow .fnode { border: 1px solid var(--border); background: var(--background); padding: 0.5rem 0.7rem; text-align: center; }
.hero-flow .fnode .t { font-family: var(--font-mono); font-weight: 700; font-size: 0.74rem; letter-spacing: -0.005em; color: var(--foreground); }
.hero-flow .fnode .s { font-family: var(--font-mono); font-size: 0.63rem; color: var(--muted-foreground); margin-top: 0.1rem; line-height: 1.35; }
.hero-flow .fnode.ic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; }
.hero-flow .fnode.ic i { font-size: 1rem; color: var(--muted-foreground); flex: none; }
.hero-flow .fnode.hitl { border-color: var(--chart-2); background: color-mix(in oklch, var(--chart-2) 9%, var(--background)); }
.hero-flow .fnode.hitl i { color: var(--chart-2); }
/* single connector w/ arrow between stacked nodes */
.hero-flow .conn { position: relative; height: 0.8rem; }
.hero-flow .conn::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 6px; width: 1px; background: var(--border); transform: translateX(-0.5px); }
.hero-flow .conn::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--border); }
.hero-flow .blabel { text-align: center; font-family: var(--font-mono); font-size: 0.63rem; color: var(--muted-foreground); padding: 0.1rem 0 0.25rem; }
/* branch buses (bracket split / merge) */
.hero-flow .bus { position: relative; height: 0.8rem; }
.hero-flow .bus .h { position: absolute; top: 50%; left: 16.666%; right: 16.666%; height: 1px; background: var(--border); }
.hero-flow .bus .v { position: absolute; width: 1px; background: var(--border); }
.hero-flow .bus-top .v.up { top: 0; height: 50%; left: 50%; }
.hero-flow .bus-top .v.d1 { top: 50%; bottom: 0; left: 16.666%; }
.hero-flow .bus-top .v.d2 { top: 50%; bottom: 0; left: 50%; }
.hero-flow .bus-top .v.d3 { top: 50%; bottom: 0; left: 83.333%; }
.hero-flow .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.hero-flow .cols .fnode { padding: 0.45rem 0.3rem; }
.hero-flow .cols .fnode .tool { width: 16px; height: 16px; margin: 0 auto 0.25rem; object-fit: contain; display: block; }
/* Mono logo (Notion) tracks the flow's inverted surface, not the page theme:
   inverted on the light page (dark flow), left as-is on the dark page (light flow). */
.hero-flow .cols .fnode .tool.mono { filter: invert(1) brightness(1.6); }
.dark .hero-flow .cols .fnode .tool.mono { filter: none; }
.hero-flow .bus-bottom { height: 1.05rem; }
.hero-flow .bus-bottom .v.r1 { top: 0; height: 50%; left: 16.666%; }
.hero-flow .bus-bottom .v.r2 { top: 0; height: 50%; left: 50%; }
.hero-flow .bus-bottom .v.r3 { top: 0; height: 50%; left: 83.333%; }
.hero-flow .bus-bottom .v.down { top: 50%; bottom: 6px; left: 50%; }
.hero-flow .bus-bottom .arrow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--border); }
/* footer: run records + evals */
.hero-flow .fl-foot { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.hero-flow .ff { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted-foreground); }
.hero-flow .ff i { font-size: 0.9rem; color: var(--muted-foreground); }
/* reveal animation (staggered top-to-bottom on scroll-in) */
.hero-flow .fl > * { opacity: 0; transform: translateY(8px); }
.hero-shot-wrap.in-view .hero-flow .fl > * { animation: hfReveal 0.5s var(--ease-out) forwards; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(1) { animation-delay: 0.05s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(2) { animation-delay: 0.15s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(3) { animation-delay: 0.25s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(4) { animation-delay: 0.35s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(5) { animation-delay: 0.45s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(6) { animation-delay: 0.55s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(7) { animation-delay: 0.65s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(8) { animation-delay: 0.75s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(9) { animation-delay: 0.85s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(10) { animation-delay: 0.95s; }
.hero-shot-wrap.in-view .hero-flow .fl > *:nth-child(11) { animation-delay: 1.05s; }
@keyframes hfReveal { to { opacity: 1; transform: none; } }
.hero-shot-wrap.in-view .hero-flow .fnode.hitl { animation: hfReveal 0.5s var(--ease-out) 0.75s forwards, hfGlow 2.8s ease 1.6s infinite; }
@keyframes hfGlow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--chart-2) 40%, transparent); } 50% { box-shadow: 0 0 0 5px color-mix(in oklch, var(--chart-2) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .hero-flow .fl > *, .hero-shot-wrap.in-view .hero-flow .fl > *, .hero-shot-wrap.in-view .hero-flow .fnode.hitl { animation: none; opacity: 1; transform: none; }
}

/* ============ sections ============ */
.section { padding: 4rem 0; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .section { padding: 5.5rem 0; } }

/* section rhythm (anchored): taupe wells for supporting sections, an inverted band for proof.
   colour edges do the separating, so the hairline is dropped wherever the tone shifts. */
.sec-well { background: var(--muted); border-bottom: 0; }
.sec-invert { background: var(--primary); color: var(--primary-foreground); border-bottom: 0; }
.section:has(+ .sec-well), .section:has(+ .sec-invert) { border-bottom: 0; }

/* customer story (secondary proof — deliberately low-key: adjacent to, not core, ICP) */
#case-study .cs-card { border: 1px solid var(--border); background: var(--card); display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { #case-study .cs-card { grid-template-columns: 1.7fr 1fr; } }
#case-study .cs-card-main { padding: 1.75rem; }
@media (min-width: 768px) { #case-study .cs-card-main { padding: 2.25rem; } }
#case-study .cs-eyebrow { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 0.9rem; }
#case-study .cs-eyebrow .icon { font-size: 0.85rem; }
#case-study h2 { font-size: 1.25rem; line-height: 1.3; margin-bottom: 0.6rem; }
@media (min-width: 768px) { #case-study h2 { font-size: 1.375rem; } }
#case-study .cs-desc { color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.6; }
#case-study .cs-quote { border: 1px solid var(--border); background: var(--muted); padding: 1.15rem 1.35rem; margin-top: 1.5rem; }
#case-study .cs-quote p { font-size: 1rem; margin-bottom: 0.6rem; }
#case-study .cs-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--foreground); text-decoration: none; }
#case-study .cs-more .icon { font-size: 0.95rem; color: var(--chart-3); transition: transform 0.18s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { #case-study .cs-more:hover .icon { transform: translateX(3px); } }
#case-study .cs-card-side { border-top: 1px solid var(--border); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.35rem; background: var(--card); }
@media (min-width: 820px) { #case-study .cs-card-side { border-top: 0; border-left: 1px solid var(--border); justify-content: center; } }
#case-study .cs-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
#case-study .cs-facts li { display: flex; flex-direction: column; gap: 0.15rem; }
#case-study .cs-facts b { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
#case-study .cs-facts span { font-size: 0.72rem; color: var(--muted-foreground); }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: 1.5rem; margin-bottom: 0.875rem; }
@media (min-width: 768px) { .section-head h2 { font-size: 1.875rem; } }
.section-head p { color: var(--muted-foreground); }

/* steps 1-3 */
.steps { display: grid; gap: 0; border: 1px solid var(--border); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.75rem 1.5rem; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .step { border-bottom: 0; border-right: 1px solid var(--border); }
  .step:last-child { border-right: 0; }
}
.step-num {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem;
  background: var(--secondary); color: var(--secondary-foreground);
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.step p { font-size: 0.8125rem; color: var(--muted-foreground); }

/* how it works - connected pipeline */
#how .flow { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  #how .flow { grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: stretch; }
  #how .node + .node { border-left: 0; }
}
#how .node { border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; position: relative; }
#how .node-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--border);
}
#how .node-head .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; flex: none;
  background: var(--secondary); color: var(--secondary-foreground);
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
}
#how .node-head h3 { font-size: 1rem; }
#how .node-head .arrow {
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  z-index: 2; width: 22px; height: 22px; background: var(--background);
  display: none; align-items: center; justify-content: center; color: var(--muted-foreground);
}
@media (min-width: 900px) { #how .node:not(:last-child) .arrow { display: flex; } }
#how .node-body { padding: 1.1rem; display: grid; gap: 0.85rem; flex: 1; align-content: start; }
#how .node-body > p { font-size: 0.76rem; color: var(--muted-foreground); }
#how .flow-caption { margin-top: 1.25rem; font-size: 0.74rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 0.5rem; }
#how .flow-caption .icon { color: var(--chart-2); }

#how .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
#how .chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--border); padding: 0.2rem 0.5rem;
  font-size: 0.7rem; color: var(--muted-foreground);
}

/* how it works - mini shots */
#how .hiw-shot { border: 1px solid var(--border); background: var(--card); font-family: var(--font-mono); overflow: hidden; min-height: 6rem; display: flex; flex-direction: column; }
#how .hiw-shot-body { flex: 1; }
#how .hiw-shot-body { padding: 0.7rem; display: grid; gap: 0.5rem; }
#how .crow { display: grid; grid-template-columns: 4rem 1fr; gap: 0.6rem; align-items: center; font-size: 0.72rem; }
#how .crow .k { color: var(--muted-foreground); }
#how .sel {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--border); background: var(--muted); padding: 0.22rem 0.5rem; font-size: 0.7rem;
}
#how .sel img { width: 13px; height: 13px; flex: none; }
#how .tools { display: flex; gap: 0.4rem; flex-wrap: wrap; }
#how .tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  flex: 1 1 0; min-width: 0;
  border: 1px solid var(--border); padding: 0.28rem 0.5rem; font-size: 0.7rem;
}
#how .tool img { width: 14px; height: 14px; flex: none; }
#how .tool i { font-size: 0.85rem; flex: none; color: var(--muted-foreground); }
#how .logo-mono { filter: none; }
.dark #how .logo-mono { filter: invert(1); }
#how .agent-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; }
#how .agent-line .who { color: var(--foreground); }
#how .agent-line .st { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted-foreground); }
#how .agent-line .st .dot { width: 6px; height: 6px; flex: none; background: var(--chart-2); }
#how .trace { display: grid; gap: 0.4rem; }
#how .trace-row { display: grid; grid-template-columns: 3.4rem 1fr 2.4rem; gap: 0.5rem; align-items: center; font-size: 0.66rem; }
#how .trace-row .k { color: var(--muted-foreground); }
#how .trace-row .v { text-align: right; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
#how .trace-bar { height: 7px; background: var(--border); position: relative; }
#how .trace-bar > span { position: absolute; top: 0; height: 100%; }
#how .trace-bar > span.c2 { background: var(--chart-2); }
#how .trace-bar > span.c3 { background: var(--chart-3); }
#how .trace-bar > span.c5 { background: var(--chart-5); }

/* ============ WORKS INSIDE YOUR TOOLS (capabilities bento) ============ */
#tools .bento { display: grid; gap: 1rem; }
@media (min-width: 640px) { #tools .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) {
  #tools .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    grid-template-areas:
      "model iterate"
      "agents trigger";
  }
  #tools .t-trigger { grid-area: trigger; }
  #tools .t-model   { grid-area: model; }
  #tools .t-iterate { grid-area: iterate; }
  #tools .t-agents  { grid-area: agents; }
}
#tools .tile { border: 1px solid var(--border); background: var(--card); padding: 1.1rem; display: flex; flex-direction: column; gap: 0.85rem; overflow: hidden; }
#tools .tile-head { min-height: 5.25rem; }
#tools .tile-head h3 { font-size: 1rem; }
#tools .tile-head p { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.3rem; }
#tools .mini { flex: 1; display: flex; flex-direction: column; background: var(--muted); font-family: var(--font-mono); }
#tools .mini-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.67rem; color: var(--muted-foreground); }
#tools .mini-bar .dot { width: 6px; height: 6px; flex: none; background: var(--chart-2); }
#tools .mini-bar .spacer { margin-left: auto; }
#tools .mini-body { padding: 0.6rem; display: grid; gap: 0.5rem; flex: 1; align-content: start; }
/* integrations */
#tools .intgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
#tools .intitem { display: flex; align-items: center; gap: 0.45rem; background: var(--card); border: 1px solid var(--border); padding: 0.4rem 0.5rem; font-size: 0.72rem; }
#tools .intitem img { width: 15px; height: 15px; flex: none; }
#tools .intitem .icon { font-size: 15px; color: var(--foreground); }
#tools .intitem .st { margin-left: auto; width: 6px; height: 6px; flex: none; background: var(--chart-2); }
#tools .intitem .st.pending { background: var(--muted-foreground); }
#tools .logo-mono { filter: none; }
.dark #tools .logo-mono { filter: invert(1); }
/* trigger flow */
#tools .flowmini { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 0.35rem; }
#tools .flowmini .fm { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--border); padding: 0.45rem 0.55rem; font-size: 0.72rem; }
#tools .flowmini .fm img { width: 14px; height: 14px; flex: none; }
#tools .flowmini .fm .icon { color: var(--muted-foreground); }
#tools .flowmini .fm .tag { margin-left: auto; font-size: 0.62rem; color: var(--muted-foreground); }
#tools .flowmini .arr { display: flex; justify-content: center; color: var(--muted-foreground); font-size: 0.85rem; line-height: 0.5; }
/* models */
#tools .t-model .mini-body { align-content: stretch; }
#tools .modelmini { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 0.35rem; }
#tools .mm { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--border); padding: 0.35rem 0.5rem; font-size: 0.72rem; }
#tools .mm img { width: 14px; height: 14px; flex: none; }
#tools .mm .tag { margin-left: auto; font-size: 0.62rem; color: var(--muted-foreground); }
/* agents list */
#tools .agentmini { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 0.35rem; }
#tools .al { display: flex; align-items: center; gap: 0.5rem; background: var(--card); border: 1px solid var(--border); padding: 0.4rem 0.55rem; font-size: 0.72rem; }
#tools .al .icon { color: var(--muted-foreground); }
#tools .al .who { color: var(--foreground); }
#tools .al img { width: 14px; height: 14px; flex: none; margin-left: auto; }
#tools .al .st { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted-foreground); }
#tools .al .st .dot { width: 6px; height: 6px; flex: none; background: var(--chart-2); }
/* compare / diff */
#tools .cmpmini { display: grid; grid-template-columns: 1fr 1fr; }
#tools .cmpcol { display: grid; gap: 0.4rem; padding: 0.1rem 0.55rem; }
#tools .cmpcol + .cmpcol { border-left: 1px solid var(--border); }
#tools .cmpcol .rev { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--muted-foreground); }
#tools .cmpcol .rev b { color: var(--foreground); font-weight: 600; }
#tools .cmpcol .rev img { width: 13px; height: 13px; flex: none; }
#tools .drow { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.68rem; padding: 0.15rem 0; }
#tools .drow .k { color: var(--muted-foreground); }
#tools .drow .v { font-variant-numeric: tabular-nums; }
#tools .drow.changed { background: color-mix(in oklch, var(--chart-2) 12%, transparent); padding: 0.15rem 0.35rem; margin: 0 -0.35rem; }
#tools .drow.changed .v { color: var(--chart-3); font-weight: 600; }
#tools .cmp-out { margin-top: 0.4rem; padding-top: 0.4rem; border-top: 1px dashed var(--border); display: grid; gap: 0.25rem; }
#tools .cmp-out .lbl { font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); }
#tools .cmp-out code { font-size: 0.63rem; font-family: var(--font-mono); white-space: nowrap; padding: 0.1rem 0.3rem; margin: 0 -0.3rem; }
#tools .cmp-out code .k { color: var(--muted-foreground); }
#tools .cmp-out code.miss { color: var(--muted-foreground); }
#tools .cmp-out code.add { background: color-mix(in oklch, var(--chart-2) 12%, transparent); color: var(--chart-3); font-weight: 600; }
/* trace / governance */
#tools .trace { display: grid; gap: 0.4rem; }
#tools .trace-row { display: grid; grid-template-columns: 4.7rem 1fr 2.4rem; gap: 0.5rem; align-items: center; font-size: 0.66rem; }
#tools .trace-row .k { color: var(--muted-foreground); }
#tools .trace-row .v { text-align: right; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
#tools .trace-bar { height: 7px; background: var(--border); position: relative; }
#tools .trace-bar > span { position: absolute; top: 0; height: 100%; }
#tools .trace-bar > span.c1 { background: var(--chart-1); }
#tools .trace-bar > span.c2 { background: var(--chart-2); }
#tools .trace-bar > span.c3 { background: var(--chart-3); }
#tools .trace-bar > span.c4 { background: var(--chart-4); }
#tools .trace-bar > span.c5 { background: var(--chart-5); }
#tools .audit-meta { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted-foreground); padding-top: 0.45rem; margin-top: 0.1rem; border-top: 1px dashed var(--border); }
#tools .mini-foot { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.6rem; border-top: 1px solid var(--border); font-size: 0.66rem; color: var(--muted-foreground); }
#tools .mini-foot .icon.ok { color: var(--chart-2); }

/* ============ SECURITY CLEARANCE (assurance matrix) ============ */
#security .sc-matrix { border: 1px solid var(--border); }
#security .sc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
@media (min-width: 620px) { #security .sc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { #security .sc-grid { grid-template-columns: 1fr 1fr 1fr; } }
#security .sc-cell { padding: 1.35rem 1.4rem; background: var(--card); }
#security .g-item { display: flex; gap: 0.7rem; align-items: flex-start; }
#security .g-item > .icon { font-size: 1.05rem; color: var(--chart-3); margin-top: 0.1rem; }
#security .g-item .g-t { font-weight: 600; font-size: 0.82rem; }
#security .g-item .g-d { color: var(--muted-foreground); font-size: 0.76rem; line-height: 1.5; }
#security .sc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--border); background: var(--muted); }
#security .certs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#security .cert { display: inline-flex; align-items: center; gap: 0.45rem; border: 1px solid var(--border); background: var(--card); padding: 0.4rem 0.65rem; font-size: 0.72rem; font-weight: 500; }
#security .cert .icon { font-size: 0.95rem; color: var(--foreground); }
#security .cert .st { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); padding-left: 0.4rem; margin-left: 0.15rem; border-left: 1px solid var(--border); }

/* getting started (Option C - timeline) */
.gs-timeline { border-left: 1px solid var(--border); margin-left: 0.5rem; padding-left: 1.75rem; display: flex; flex-direction: column; gap: 1.9rem; }
.gs-item { position: relative; }
.gs-item::before { content: ""; position: absolute; left: -1.75rem; top: 0.35rem; transform: translateX(-50%); width: 9px; height: 9px; background: var(--chart-3); }
.gs-when { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); margin-bottom: 0.3rem; }
.gs-when .icon { font-size: 0.9rem; }
.gs-item h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.gs-item p { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.55; max-width: 42rem; }
.gs-cta { margin-top: 1.75rem; }
.gs-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .gs-layout { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.gs-aside { display: flex; flex-direction: column; gap: 1.5rem; align-self: stretch; justify-content: center; }
.gs-aside .btn { align-self: flex-start; }
.gs-aside .quote { margin-top: 0; max-width: none; }
@media (min-width: 900px) { .gs-layout .path-notes { margin-bottom: 0; } }
.path-notes { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.75rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.path-notes span { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.path-notes .icon { font-size: 0.875rem; transform: translateY(1px); color: var(--foreground); }

/* quote: muted well, no side-stripe */
.quote {
  border: 1px solid var(--border);
  background: var(--muted);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  max-width: 44rem;
}
.quote p { font-family: var(--font-heading); font-size: 1.125rem; font-style: italic; line-height: 1.5; margin-bottom: 1rem; }
.quote footer { font-size: 0.75rem; color: var(--muted-foreground); }
.quote footer b { color: var(--foreground); font-weight: 600; }

.stats { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.75rem 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
@media (min-width: 720px) { .stat { border-bottom: 0; } }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 720px) { .stat:nth-child(2n) { border-right: 1px solid var(--border); } }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-mono); font-size: 1.75rem; font-weight: 600; margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.75rem; color: var(--muted-foreground); }
.cs-quote { border-top: 1px solid var(--border); padding: 1.5rem; }
.cs-quote p { font-family: var(--font-heading); font-style: italic; font-size: 1.05rem; line-height: 1.5; margin-bottom: 0.75rem; }
.cs-quote footer { font-size: 0.78rem; color: var(--muted-foreground); }
.cs-quote footer b { color: var(--foreground); font-weight: 600; }

/* final CTA (Option C - inverted full-width close) */
#cta .cta-band { background: var(--primary); color: var(--primary-foreground); padding: 3rem 1.5rem; text-align: center; }
@media (min-width: 768px) { #cta .cta-band { padding: 4.5rem 2rem; } }
#cta .cta-inner { max-width: 46rem; margin: 0 auto; }
#cta .cta-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in oklch, var(--primary-foreground) 65%, transparent); margin-bottom: 1rem; }
#cta .cta-band h2 { font-size: 1.75rem; margin-bottom: 0.9rem; color: var(--chart-2); }
.dark #cta .cta-band h2 { color: var(--chart-4); }
@media (min-width: 768px) { #cta .cta-band h2 { font-size: 2.6rem; } }
#cta .cta-sub { color: color-mix(in oklch, var(--primary-foreground) 80%, transparent); max-width: 34rem; margin: 0 auto 1.75rem; }
#cta .cta-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; margin-bottom: 1.75rem; }
#cta .cta-chips span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; padding: 0.35rem 0.65rem; border: 1px solid color-mix(in oklch, var(--primary-foreground) 24%, transparent); color: color-mix(in oklch, var(--primary-foreground) 88%, transparent); }
#cta .cta-chips .icon { color: var(--primary-foreground); font-size: 0.95rem; }
#cta .btn-invert, .sec-invert .btn-invert { background: var(--primary-foreground); color: var(--primary); }
@media (hover: hover) and (pointer: fine) { #cta .btn-invert:hover, .sec-invert .btn-invert:hover { opacity: 0.9; } }
/* newsletter (quiet greyscale strip, split out of the primary CTA) */
.news-strip { border: 1px solid var(--border); background: var(--muted); padding: 1.5rem 1.75rem; display: grid; gap: 1rem 2rem; }
@media (min-width: 820px) { .news-strip { grid-template-columns: 1fr auto; align-items: center; } }
.news-h { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.news-d { font-size: 0.82rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.news-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.news-form input {
  flex: 1 1 15rem; min-height: 2.75rem; padding: 0 0.85rem;
  background: var(--background); border: 1px solid var(--input);
  color: var(--foreground); font-family: var(--font-mono); font-size: 0.8125rem; border-radius: 0;
}
.news-form input::placeholder { color: var(--muted-foreground); }
.news-form input:focus-visible { outline: none; border-color: var(--ring); }
.news-form input[aria-invalid="true"] { border-color: var(--destructive); }
#newsletter .field-error { display: none; font-size: 0.75rem; color: var(--destructive); margin-top: 0.6rem; }
#newsletter .field-error.show { display: block; }
#newsletter .news-success { display: none; font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.6rem; }
#newsletter .news-success.show { display: block; }

/* footer */
.site-footer { padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); } }
.footer-brand p { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.875rem; max-width: 18rem; }
.footer-col h3 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 0.875rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 2rem; font-size: 0.8125rem; color: var(--foreground); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--muted-foreground); }
}
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted-foreground); }

/* scroll reveal + stagger (landing register) */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-in-out), transform 600ms var(--ease-in-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.reveal.in-view .reveal-stagger > * {
  opacity: 1;
  transform: none;
}
.reveal.in-view .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal.in-view .reveal-stagger > *:nth-child(2) { transition-delay: 50ms; }
.reveal.in-view .reveal-stagger > *:nth-child(3) { transition-delay: 100ms; }
.reveal.in-view .reveal-stagger > *:nth-child(4) { transition-delay: 150ms; }
.reveal.in-view .reveal-stagger > *:nth-child(5) { transition-delay: 200ms; }
.reveal.in-view .reveal-stagger > *:nth-child(6) { transition-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
    transition-delay: 0ms !important;
  }
  .btn:active,
  .theme-toggle:active,
  .menu-btn:active {
    transform: none;
  }
  .drawer {
    transition: opacity 200ms ease;
  }
  .scrim {
    transition: opacity 200ms ease;
  }
  .news-success {
    transition: opacity 200ms ease;
    transform: none;
  }
}

.logo-mark svg{grid-area:1/1;width:100%;height:100%;display:block;overflow:visible;}.logo-mark .logo-bar{fill:var(--foreground);}.logo-mark .logo-core{fill:#EA580C;}.logo-mark .logo-art rect{transform-box:fill-box;transform-origin:50% 50%;transform:translate(0px,0px) rotate(0deg);transition:transform .5s cubic-bezier(.65,0,.35,1),opacity .35s ease;}@media (hover:hover){.logo:hover .logo-b1{transform:translate(-3px,3px) rotate(90deg);}.logo:hover .logo-b3{transform:translate(15px,-15px) rotate(90deg);transition-delay:.03s;}.logo:hover .logo-core{transform:translate(-7px,6.5px) rotate(90deg);transition-delay:.06s;}.logo:hover .logo-b2{opacity:0;}}@media (prefers-reduced-motion:reduce){.logo-mark .logo-art rect{transition:none;}.logo:hover .logo-b1,.logo:hover .logo-b3,.logo:hover .logo-core{transform:none;}.logo:hover .logo-b2{opacity:1;}}

/* Business-led homepage exploration: uses the existing Lyra theme tokens. */
.business-details-wrap { padding-top:2rem; padding-bottom:2rem; }
.business-details { border:0; }
.business-details summary { cursor:pointer; padding:1.5rem 0; font-family:var(--font-heading); font-size:1.2rem; }
.business-details summary span { display:block; font-family:var(--font-mono); font-size:.75rem; color:var(--muted-foreground); margin:.5rem 0 0 1.25rem; }
.business-details summary:focus-visible { outline:2px solid var(--ring); outline-offset:4px; }
.business-details .section { padding:2.5rem 0; }
.business-details .container { padding:0 1.25rem; }

.business-kicker { display:block; font-family:var(--font-mono); font-size:.69rem; line-height:1.6; text-transform:uppercase; letter-spacing:.075em; color:var(--muted-foreground); margin-bottom:1rem; }
.hero { min-height: min(850px, calc(100svh - 6rem)); }
.hero > .container { width:100%; padding-top:3.5rem; }
.hero h1 { font-size:clamp(2.3rem,4.4vw,3.65rem); line-height:1.12; max-width:13ch; }
.hero-sub { font-size:.95rem; line-height:1.85; }
.hero-definition { font-size:.75rem; color:var(--muted-foreground); max-width:34rem; margin-top:-1rem; margin-bottom:2rem; }
.business-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid var(--border); }
.business-card { padding:2rem 1.75rem 1rem 0; display:flex; flex-direction:column; gap:1rem; min-width:0; }
.business-card + .business-card { padding-left:1.75rem; border-left:1px solid var(--border); }
.business-card .business-kicker { margin-bottom:0; }
.business-card h3 { font-size:1.3rem; line-height:1.3; }
.business-card p { color:var(--muted-foreground); font-size:.82rem; line-height:1.8; }
.business-card .business-result { color:var(--foreground); font-size:.75rem; margin-top:auto; padding-top:.8rem; }
@media (min-width:720px) {
  #production .business-grid { row-gap:1rem; }
  #production .business-card { display:grid; grid-template-rows:subgrid; grid-row:span 3; }
  #production .business-result { margin-top:0; }
}
.business-more { margin-top:2rem; color:var(--muted-foreground); font-size:.8rem; }
.business-more a { text-underline-offset:4px; }
.business-resource { text-decoration:none; }
.business-resource:hover h3 { text-decoration:underline; text-underline-offset:4px; }
.business-resource:focus-visible { outline:2px solid var(--ring); outline-offset:4px; }
@media (max-width:1023px) { .hero { min-height:0; } .hero-grid { gap:1.5rem; } .hero h1 { max-width:17ch; } }
@media (max-width:719px) { .business-grid { grid-template-columns:1fr; } .business-card, .business-card + .business-card { padding:1.5rem 0; border-left:0; } .business-card + .business-card { border-top:1px solid var(--border); } .hero-ctas { display:grid; grid-template-columns:minmax(0,1fr); grid-auto-rows:1fr; } .hero-ctas .btn { block-size:auto; white-space:normal; text-align:center; padding:.75rem 1rem; } .rs-header { flex-wrap:wrap; } }

.model-providers { padding:0 0 2rem; } .model-providers .powered { margin:0; padding:1.5rem 0; }

  #rocketsaas .rs-phases { border: 1px solid var(--border); background: var(--card); margin-bottom: 2rem; }
  #rocketsaas .rs-row { display: grid; grid-template-columns: 1fr; gap: 0.35rem; padding: 1rem 1.15rem; }
  #rocketsaas .rs-row + .rs-row { border-top: 1px solid var(--border); }
  @media (min-width: 760px) { #rocketsaas .rs-row { grid-template-columns: 12rem 1fr 9.5rem; gap: 1.25rem; align-items: baseline; } }
  #rocketsaas .rs-head { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-foreground); }
  #rocketsaas .rs-phase { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; }
  #rocketsaas .rs-what { font-family: var(--font-heading); font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
  #rocketsaas .rs-status { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; }
  #rocketsaas .rs-status .dot { width: 6px; height: 6px; flex: none; background: var(--chart-2); }
  #rocketsaas .rs-status.dev { color: var(--muted-foreground); }
  #rocketsaas .rs-status.dev .dot { background: var(--muted-foreground); }
  #rocketsaas .rs-status.next { color: var(--muted-foreground); }
  #rocketsaas .rs-status.next .dot { background: var(--muted-foreground); }
  #rocketsaas .stats { grid-template-columns: 1fr; }
  #rocketsaas .stat { border-right: 0; }
  #rocketsaas .stat:last-child { border-bottom: 0; }
  @media (min-width: 720px) {
    #rocketsaas .stats { grid-template-columns: repeat(3, 1fr); }
    #rocketsaas .stat { border-bottom: 0; border-right: 1px solid var(--border); }
    #rocketsaas .stat:last-child { border-right: 0; }
  }
  #rocketsaas .quote { max-width: none; text-align: center; }
  #rocketsaas .rs-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: 3rem; }
  #rocketsaas .rs-header .section-head { margin-bottom: 0; }
  #rocketsaas .rs-brand { height: 26px; width: auto; flex: none; margin-top: 0.4rem; }
  /* inverted band: light theme shows a dark bg, so use the white logo; dark theme flips */
  #rocketsaas .rs-brand-light { display: none; }
  #rocketsaas .rs-brand-dark { display: inline-block; }
  .dark #rocketsaas .rs-brand-dark { display: none; }
  .dark #rocketsaas .rs-brand-light { display: inline-block; }
  @media (max-width: 560px) { #rocketsaas .rs-brand { height: 22px; } }

  /* --- inverted "proof" band overrides (Lyra: translucent primary-foreground on the dark band) --- */
  #rocketsaas .section-head p { color: color-mix(in oklch, var(--primary-foreground) 74%, transparent); }
  #rocketsaas .rs-phases { background: color-mix(in oklch, var(--primary-foreground) 6%, transparent); border-color: color-mix(in oklch, var(--primary-foreground) 22%, transparent); }
  #rocketsaas .rs-row + .rs-row { border-top-color: color-mix(in oklch, var(--primary-foreground) 16%, transparent); }
  #rocketsaas .rs-head { color: color-mix(in oklch, var(--primary-foreground) 66%, transparent); }
  #rocketsaas .rs-what { color: color-mix(in oklch, var(--primary-foreground) 74%, transparent); }
  #rocketsaas .rs-status.dev { color: color-mix(in oklch, var(--primary-foreground) 60%, transparent); }
  #rocketsaas .rs-status.dev .dot { background: color-mix(in oklch, var(--primary-foreground) 55%, transparent); }
  #rocketsaas .rs-status.next { color: color-mix(in oklch, var(--primary-foreground) 62%, transparent); }
  #rocketsaas .rs-status.next .dot { background: color-mix(in oklch, var(--primary-foreground) 55%, transparent); }
  #rocketsaas .stat { border-color: color-mix(in oklch, var(--primary-foreground) 18%, transparent); }
  #rocketsaas .stat span { color: color-mix(in oklch, var(--primary-foreground) 72%, transparent); }
  #rocketsaas .quote { background: color-mix(in oklch, var(--primary-foreground) 6%, transparent); border-color: color-mix(in oklch, var(--primary-foreground) 20%, transparent); }
  #rocketsaas .quote footer { color: color-mix(in oklch, var(--primary-foreground) 74%, transparent); }
  #rocketsaas .quote footer b { color: var(--primary-foreground); }


  #integrations .section-head .kicker { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 0.6rem; }
  #integrations .int-stats { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); margin-bottom: 1.5rem; }
  @media (min-width: 640px) { #integrations .int-stats { grid-template-columns: repeat(3, 1fr); } }
  #integrations .int-stat { padding: 1.35rem 1.5rem; }
  #integrations .int-stat + .int-stat { border-top: 1px solid var(--border); }
  @media (min-width: 640px) { #integrations .int-stat + .int-stat { border-top: 0; border-left: 1px solid var(--border); } }
  #integrations .int-stat .n { font-family: var(--font-heading); font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--foreground); }
  #integrations .int-stat.accent .n { color: var(--chart-2); }
  #integrations .int-stat .l { margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted-foreground); }
  #integrations .logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
  #integrations .logo-chip { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--border); background: var(--card); padding: 0.7rem 0.85rem; font-size: 0.8rem; line-height: 1; transition: background-color 0.15s var(--ease-out); }
  @media (hover: hover) and (pointer: fine) { #integrations .logo-chip:hover { background: var(--secondary); } }
  #integrations .logo-chip img { width: 18px; height: 18px; flex: none; }
  #integrations .logo-chip .icon { font-size: 18px; color: var(--foreground); flex: none; }
  #integrations .logo-chip.more { color: var(--muted-foreground); border-style: dashed; font-family: var(--font-mono); font-size: 0.72rem; }
  #integrations .logo-chip.more .icon { color: var(--chart-3); }
  .dark #integrations .logo-chip img.logo-invert { filter: invert(1) grayscale(1); }
  #integrations .logo-chip img.logo-wide { width: auto; }

/* Agency-specific content within the homepage layout. */
.skip-link { position:fixed; top:1rem; left:1rem; z-index:1000; padding:.8rem 1rem; background:var(--foreground); color:var(--background); width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link:focus { width:auto; height:auto; clip-path:none; }
#main:focus { outline:none; }
.agency-concierge { margin:0; min-width:0; }
.hf-cap { flex-wrap:wrap; gap:.5rem; }
.hf-title img { flex:none; }
.agency-flow-intro { color:var(--muted-foreground); font-size:.75rem; line-height:1.6; margin-bottom:1.2rem; }
.hero-flow .fnode { padding:.65rem .75rem; }
.hero-flow .fnode .t { line-height:1.5; }
.hero-flow .fnode .s { margin-top:.15rem; }
.hero-flow .agency-input { display:flex; justify-content:center; align-items:center; gap:.7rem; text-align:left; }
.hero-flow .agency-input img { flex:none; object-fit:contain; }
.agency-outputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
.agency-concierge figcaption { font-size:.65rem; line-height:1.7; color:var(--muted-foreground); margin-top:1rem; }
.agency-pilot .quote h3 { font-size:1.35rem; line-height:1.3; margin-bottom:1rem; }
.agency-pilot .quote p:not(.business-kicker) { font-family:var(--font-mono); font-size:.78rem; font-style:normal; line-height:1.8; }
.agency-pilot .quote .agency-pilot-note { color:var(--muted-foreground); margin-top:1rem; }
#tools .cmpmini { grid-template-columns:repeat(2,minmax(0,1fr)); }
#tools .cmpcol { min-width:0; }
#tools .cmpcol .rev { flex-wrap:wrap; }
#tools .cmp-out code { white-space:normal; overflow-wrap:anywhere; }
.hero h1 { max-width:14ch; }
@media (min-width:1024px) { .hero-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3rem; } }
@media (max-width:639px) {
  .hero > .container { padding-top:2rem; }
  .hero-ctas { margin-bottom:1rem; }
  .hero-flow { padding:.9rem; }
  .hero-flow .fnode .t { font-size:.7rem; }
  .hero-flow .fnode .s { font-size:.6rem; }
  .hero-flow .agency-input { gap:.4rem; }
  .agency-outputs .fnode { padding:.6rem .35rem; }
}
@media (max-width:479px) {
  #tools .cmpmini { grid-template-columns:1fr; }
  #tools .cmpcol + .cmpcol { border-left:0; border-top:1px solid var(--border); margin-top:.75rem; padding-top:.75rem; }
}

/* Bill agent cards, carousel and detail dialog reused from index.html. */

/* Lyra: neutral surfaces, sharp edges, controllable rotation and restrained motion. */
.agency-carousel { display:grid; grid-template-columns:minmax(0,1fr) repeat(3,44px); column-gap:.5rem; min-width:0; border:0; background:transparent; border-radius:var(--radius); }
.carousel-options { grid-column:1 / -1; display:flex; border-bottom:1px solid var(--border); }
.carousel-options button { position:relative; flex:1; min-width:0; min-height:36px; padding:.45rem .5rem; border:0; border-radius:var(--radius); background:transparent; color:var(--muted-foreground); font:inherit; font-size:.75rem; line-height:1.4; cursor:pointer; }
.carousel-options button:hover { background:var(--accent); color:var(--accent-foreground); }
.carousel-options button[aria-selected="true"] { color:var(--foreground); background:var(--accent); box-shadow:inset 0 -2px var(--primary); }
/* Overlapping grid cells reserve space for the tallest collapsed slide at every width.
   Hidden panels remain inert and invisible while contributing their natural height. */
.carousel-stage { grid-column:1 / -1; display:grid; padding:1rem .25rem 0; }
.agency-slide { grid-area:1 / 1; min-width:0; align-self:start; }
.agency-slide[hidden] { display:block; visibility:hidden; pointer-events:none; }
.agency-slide[hidden]:not(.is-leaving) details > :not(summary) { display:none; }
.agency-slide.is-entering { animation:carousel-enter 240ms var(--ease-out) both; }
.agency-slide.is-leaving { visibility:visible; animation:carousel-leave 240ms var(--ease-out) both; }
@keyframes carousel-enter {
  from { opacity:0; transform:translateX(var(--carousel-offset, 24px)); }
  to { opacity:1; transform:translateX(0); }
}
@keyframes carousel-leave {
  from { opacity:1; transform:translateX(0); }
  to { opacity:0; transform:translateX(calc(-1 * var(--carousel-offset, 24px))); }
}
.agency-slide h2 { font-size:1.65rem; line-height:1.3; margin:0 0 1.3rem; }
.agent-card-grid { --agent-grid-inset:0px; position:relative; display:grid; align-content:start; gap:.75rem; }
.floating-agent-card { min-width:0; background:var(--card); color:var(--card-foreground); border:1px solid var(--border); border-radius:var(--radius); }
.floating-agent-card :is(summary, .agent-card-trigger) { width:100%; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; text-align:left; display:flex; align-items:flex-start; gap:.75rem; padding:1rem; cursor:pointer; list-style:none; }
.floating-agent-card :is(summary, .agent-card-trigger)::-webkit-details-marker { display:none; }
.floating-agent-card :is(summary, .agent-card-trigger):hover, .floating-agent-card[open] summary { background:var(--accent); }
.agent-card-copy { display:block; flex:1; min-width:0; }
.agent-card-title { display:flex; align-items:flex-start; gap:.5rem; font-size:.875rem; line-height:1.5; font-weight:600; margin:0 0 .25rem; }
.agent-card-outcome { display:block; font-size:.875rem; line-height:1.6; color:var(--muted-foreground); }
.agent-card-marker { transition:transform 180ms var(--ease-out); transform-origin:50% 70%; flex:0 0 1.5em; width:1.5em; height:1.5em; border-radius:var(--radius); }
.agent-card-toggle { flex:0 0 1rem; height:21px; color:var(--foreground); font-size:1.125rem; }
.agent-card-detail { padding:0 1rem 1rem; font-size:.875rem; line-height:1.65; }
.agent-preview { position:relative; display:grid; grid-template-columns:1fr; gap:1.5rem; padding:0; }
.preview-stage { min-width:0; position:relative; z-index:1; }
.preview-label { display:flex; align-items:center; gap:.4rem; margin:0 0 .75rem; color:var(--muted-foreground); font-size:.75rem; line-height:1.5; }
.preview-label .icon { flex:0 0 1rem; width:1rem; font-size:1rem; }
.preview-node { position:relative; display:flex; flex-direction:column; gap:.875rem; padding:1.125rem; border:1px solid var(--border); background:var(--card); }
.preview-node h3 { font-family:var(--font-heading); font-size:1rem; line-height:1.5; font-weight:600; text-wrap:pretty; }
.preview-node p, .preview-points { font-size:.875rem; line-height:1.65; color:var(--foreground); }
.preview-points { list-style:none; padding:0; margin:0; display:grid; gap:.5rem; }
.preview-points li { display:grid; grid-template-columns:3px minmax(0,1fr); gap:.5rem; }
.preview-points li::before { content:""; width:3px; height:3px; background:var(--muted-foreground); margin-top:.65em; }
.preview-brain { background:color-mix(in oklab, var(--chart-2) 6%, var(--card)); }
.preview-tools ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:1rem; }
.preview-tools li { min-width:0; }
.preview-tools img { flex:0 0 1.5em; width:1.5em; height:1.5em; object-fit:contain; }
.preview-tools .connection-icon { flex:0 0 1.5em; width:1.5em; height:1.5em; display:grid; place-items:center; color:var(--muted-foreground); }
.preview-tools .connection-icon i { font-size:1.25em; line-height:1; }
.preview-tools strong { display:flex; align-items:flex-start; gap:.4rem; font-size:.875rem; line-height:1.5; font-weight:500; }
.preview-tools small { display:block; font-size:.8125rem; line-height:1.5; color:var(--muted-foreground); margin-top:.35rem; }
.dark .preview-tools .logo-invert { filter:invert(1); }
.agent-preview-connectors { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:var(--muted-foreground); stroke-width:1; pointer-events:none; }
.preview-caption { font-size:.75rem; line-height:1.6; color:var(--muted-foreground); margin:.75rem 0 1.25rem; }
.agent-industry-example, .agent-control { font-size:.8125rem; line-height:1.7; margin:0; }
.agent-industry-example { padding:1rem 0; border-top:1px solid var(--border); }
.agent-industry-example strong, .agent-control strong { display:block; font-weight:600; margin-bottom:.3rem; color:var(--foreground); }
.agent-control { color:var(--muted-foreground); }
.agent-control strong { display:flex; align-items:center; gap:.4rem; }
@media (min-width:960px) {
  .preview-stage { display:grid; grid-template-rows:subgrid; grid-row:span 2; }
  .agent-preview { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 1.5rem; align-items:stretch; }
}
@media (max-width:959px) {
  .agent-dialog.agent-dialog { width:min(38rem, calc(100% - 2rem)); }
  .agent-preview { padding-left:.75rem; gap:1.25rem; }
  .preview-node { padding:1rem; }
  .preview-tools ul { flex-direction:row; flex-wrap:wrap; }
  .preview-tools li { flex:1 1 9rem; }
}
.carousel-footer { display:contents; font-size:.8125rem; font-variant-numeric:tabular-nums; color:var(--muted-foreground); }
#agency-position { grid-row:3; grid-column:1; align-self:center; margin-top:1rem; padding-left:.25rem; }
#agency-prev { grid-column:2; }
#agency-next { grid-column:4; }
.carousel-footer>div { display:contents; }
.carousel-rotation, .carousel-footer button { grid-row:3; margin-top:1rem; display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--border); border-radius:var(--radius); color:var(--foreground); background:var(--card); cursor:pointer; font-size:1.2rem; }
.carousel-rotation:hover, .carousel-footer button:hover { background:var(--accent); border-color:var(--primary); }
.carousel-rotation:active, .carousel-footer button:active { background:var(--secondary); }
/* The countdown is decorative; the visible Pause/Play button owns rotation. */
.carousel-progress { position:absolute; inset:auto 0 0; height:2px; background:var(--primary); transform:scaleX(0); transform-origin:left; pointer-events:none; }
@media (prefers-reduced-motion:no-preference) { .agency-carousel[data-rotating="true"] .carousel-options button[aria-selected="true"] { box-shadow:none; } }
/* Keep rotation first in keyboard order, visually centred between the arrows. */
.carousel-rotation { grid-column:3; align-self:end; padding:0; }
.agency-slide.is-revealing .floating-agent-card { animation:agent-card-reveal 240ms var(--ease-out) both; }
.agency-slide.is-revealing .floating-agent-card:nth-child(2) { animation-delay:35ms; }
.agency-slide.is-revealing .floating-agent-card:nth-child(3) { animation-delay:70ms; }
@keyframes agent-card-reveal {
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:translateY(0); }
}
@media (hover:hover) and (pointer:fine) {
  .floating-agent-card :is(summary, .agent-card-trigger):hover .agent-card-marker { transform:translateY(-2px) rotate(-5deg) scale(1.08); }
}
.floating-agent-card :is(summary, .agent-card-trigger):focus-visible .agent-card-marker { transform:translateY(-2px) rotate(-5deg) scale(1.08); }
.agency-carousel button:focus-visible, .floating-agent-card :is(summary, .agent-card-trigger):focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.carousel-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (min-width:640px) { .carousel-stage { padding-inline:.6rem; } .agent-card-grid { --agent-grid-inset:.25rem; padding-inline:var(--agent-grid-inset); } }
@media (pointer:coarse) { .carousel-options button { min-height:44px; } }
@media (prefers-reduced-motion:reduce) {
  .agency-slide.is-entering, .agency-slide.is-leaving, .agency-slide.is-revealing .floating-agent-card { animation:none; }
  .agency-carousel .agent-card-marker { transition:none; transform:none; }
}
/* Lyra Dialog: popover surface, square panel, restrained scrim and 100ms entry. */
.agent-dialog { position:fixed; inset:0; margin:auto; width:min(70rem, calc(100% - 2rem)); max-height:calc(100dvh - 2rem); padding:1.5rem; overflow:auto; border:1px solid var(--border); border-radius:var(--radius); color:var(--popover-foreground); background:var(--popover); }
.agent-dialog::backdrop { background:rgb(0 0 0 / .1); backdrop-filter:blur(4px); }
.agent-dialog[open] { animation:agent-dialog-enter 100ms var(--ease-out); }
.agent-dialog-header { padding-right:2.5rem; }
.agent-dialog-title { display:flex; align-items:center; gap:.75rem; font-family:var(--font-heading); font-size:1.75rem; line-height:1.35; font-weight:600; outline:none; }
.agent-dialog-title img { flex:0 0 1.5rem; width:1.5rem; height:1.5rem; }
.agent-dialog-description { margin-top:.75rem; font-size:.875rem; line-height:1.65; color:var(--muted-foreground); }
.agent-dialog .agent-card-detail { padding:0; margin-top:1.5rem; }
.agent-dialog-footer { display:flex; justify-content:flex-end; margin-top:1.5rem; padding-top:1.25rem; border-top:1px solid var(--border); }
@media (max-width:639px) { .agent-dialog-footer .btn { width:100%; } }
.agent-dialog-close { position:absolute; top:.5rem; right:.5rem; display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:var(--radius); color:var(--foreground); background:transparent; font-size:1.25rem; cursor:pointer; }
.agent-dialog-close:hover { background:var(--accent); }
.agent-dialog-close:focus-visible { outline:2px solid var(--primary); outline-offset:-3px; }
html:has(.agent-dialog[open]) { overflow:hidden; }
@keyframes agent-dialog-enter { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
@media (prefers-reduced-motion:reduce) { .agent-dialog[open] { animation:none; } }

.agency-examples-layout { display:grid; gap:2rem; align-items:center; }
.agency-examples-layout .section-head { margin:0; }
.agency-examples-layout .section-head p { max-width:32rem; }
.agency-examples-cta { margin-top:1.75rem; }
.agency-carousel .agent-card-trigger, .agency-carousel summary { align-items:flex-start; padding:1rem; }
.agency-carousel .agent-card-title { margin-bottom:.25rem; }
.agency-carousel .carousel-stage { padding:1rem 0 0; }
.agency-carousel .agent-card-grid { padding:0; }
@media (min-width:1024px) { .agency-examples-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3rem; } }

/* Category labels stay aligned as they wrap on narrower screens. */
.agency-carousel .carousel-options button { min-height:3.5rem; }
