/* ==========================================================================
   Prayag Labs — design system
   Change the tokens in :root and the whole site follows.
   ========================================================================== */

:root {
  /* --- ground -------------------------------------------------------------
     Cool-tinted rather than neutral black, and with real steps between
     levels — near-black surfaces 6 points apart read as one flat plane.    */
  --bg:          #0A0C11;
  --bg-alt:      #0D1017;   /* alternating section ground */
  --bg-elev:     #12151C;   /* cards, panels */
  --bg-elev-2:   #181C25;   /* surfaces inside cards */
  --line:        #232833;
  --line-strong: #343B49;

  /* --- ink --------------------------------------------------------------- */
  --ink:   #EDEFF3;
  --ink-2: #B0B7C3;
  --ink-3: #7C8492;

  /* --- accent -------------------------------------------------------------
     a1/a2 carry the brand. a3–a5 exist so six services don't all wear the
     same blue. --mint stays reserved for one meaning: grounded / verified. */
  --a1:   #6C8CFF;   /* blue   */
  --a2:   #A78BFA;   /* violet */
  --a3:   #4CC9E0;   /* cyan   */
  --a4:   #F0A868;   /* amber  */
  --a5:   #F58BA8;   /* rose   */
  --mint: #3DDC97;
  --grad: linear-gradient(100deg, var(--a1), var(--a2));

  /* --- type -------------------------------------------------------------- */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* --- metrics ----------------------------------------------------------- */
  --wrap:    1140px;
  --gutter:  clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 7.5rem);
  --r:       14px;
  --r-sm:    10px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a  { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: rgba(108, 140, 255, .3); }

/* ==========================================================================
   Primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }

/* alternating ground, so the page isn't one continuous plane */
.section--alt { background: var(--bg-alt); }

/* ambient colour wash — large, very low opacity, sits behind a section.
   Set --wash-hue per section; keep these subtle enough to feel like light
   rather than a shape. */
.has-wash { position: relative; isolation: isolate; }
.has-wash::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(70% 55% at var(--wash-x, 85%) 0%,
                    var(--wash-hue, rgba(108, 140, 255, .10)), transparent 62%);
  pointer-events: none;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--a1);
  color: #07080A;
  font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- eyebrow -------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding: .35rem .8rem .35rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--bg-elev);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, .18);
}

/* --- headings ------------------------------------------------------------- */

.h-display {
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  letter-spacing: -.035em;
  font-weight: 620;
}

.h-section {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  letter-spacing: -.028em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 60ch;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lede { margin-top: 1.125rem; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8125rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .9375rem;
  font-weight: 570;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
  background: var(--grad);
  color: #06070A;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .22) inset,
              0 10px 30px -12px rgba(108, 140, 255, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 16px 36px -12px rgba(108,140,255,.85); }

.btn-ghost {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #3D4553; background: var(--bg-elev-2); }

.btn-sm { padding: .5625rem 1rem; font-size: .875rem; }

.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--a1);
  font-weight: 540;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Brand mark
   ========================================================================== */

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 1.0625rem;
}
.brand svg { width: 26px; height: 26px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-stuck {
  background: rgba(8, 9, 11, .78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn) {
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .16s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem var(--gutter) 1.5rem;
    background: rgba(8, 9, 11, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) {
    padding: .875rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .nav .btn { margin-top: 1.125rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
  overflow: hidden;
}

/* soft light behind the headline */
.hero::before {
  content: "";
  position: absolute;
  top: -22rem;
  left: 50%;
  width: min(72rem, 130vw);
  height: 46rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
              rgba(108, 140, 255, .17), rgba(167, 139, 250, .07) 42%,
              transparent 70%);
  pointer-events: none;
}

/* faint grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* em, not ch — so the measure scales with the heading's own clamped size */
.hero-copy h1 { max-width: 14.5em; }
.hero .lede { margin-top: 1.5rem; max-width: 56ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: .875rem;
}

/* ==========================================================================
   Product mock — the "shows its work" visual
   ========================================================================== */

/* two cards side by side: the run on the left, the explanation on the right */
.demo {
  margin-top: 1.125rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .demo { grid-template-columns: 1.5fr .85fr; gap: 1.5rem; align-items: start; }
  /* the run is much taller than the explanation — let it ride along */
  .explain { position: sticky; top: 5.5rem; }
}

.mock {
  container-type: inline-size;   /* mock-grid reflows to the card, not the page */
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9),
              0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
}
.mock-dots { display: flex; gap: .375rem; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #262B34; }
.mock-title {
  color: var(--ink-3);
  font-size: .8125rem;
  font-family: var(--mono);
}

.mock-body { padding: clamp(1.25rem, 3vw, 2rem); }

.mock-q {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding-bottom: 1.375rem;
  border-bottom: 1px solid var(--line);
}
.mock-avatar {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: .1rem;
  border-radius: 7px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-size: .6875rem;
  font-weight: 600;
}
.mock-q p { font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; }

.mock-a { padding-top: 1.375rem; }

.mock-answer {
  color: var(--ink-2);
  font-size: .9688rem;
}
.mock-answer strong { color: var(--ink); font-weight: 600; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-bottom: 1rem;
  padding: .25rem .625rem;
  border: 1px solid rgba(61, 220, 151, .3);
  border-radius: 100px;
  background: rgba(61, 220, 151, .08);
  color: var(--mint);
  font-size: .75rem;
  font-weight: 560;
  letter-spacing: .01em;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
/* chart gets the full card width; findings sit underneath, two up when there's room */
.findings { display: grid; gap: .125rem; }
@container (min-width: 520px) {
  .findings { grid-template-columns: 1fr 1fr; column-gap: 1.75rem; }
}

/* ---- the agent's trace: what it did, in order ---------------------------- */

.trace { margin-top: 1.625rem; }

.trace-step {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .875rem;
  padding-bottom: 1.5rem;
}
.trace-step:last-child { padding-bottom: 0; }

/* connector line between the step numbers */
.trace-step::before {
  content: "";
  position: absolute;
  left: .8125rem;
  top: 2.125rem;
  bottom: .125rem;
  width: 1px;
  background: var(--line);
}
.trace-step:last-child::before { display: none; }

.trace-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-elev-2);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 620;
}

.trace-title {
  margin-bottom: .375rem;
  padding-top: .1875rem;
  font-size: .9375rem;
  font-weight: 560;
  letter-spacing: -.012em;
}
.trace-detail { color: var(--ink-3); font-size: .875rem; line-height: 1.55; }

.trace-tag {
  margin-left: .5rem;
  padding: .1875rem .5rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--bg-elev-2);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* term → column mapping */
.trace-kv { margin: 0; display: grid; gap: .4375rem; }
.trace-kv > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .8125rem;
}
.trace-kv dt { color: var(--ink-2); }
.trace-kv dd { margin: 0; color: var(--a1); }
.trace-kv dd::before { content: "→"; margin-right: .4375rem; color: var(--ink-3); }

.trace .code { margin-top: .75rem; }

.mock-result {
  margin-top: 1.75rem;
  padding-top: 1.625rem;
  border-top: 1px solid var(--line);
}

/* ---- right card: what you're looking at --------------------------------- */

.explain {
  padding: clamp(1.5rem, 3vw, 1.875rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(167, 139, 250, .09), transparent 55%),
    var(--bg-elev);
}
.explain-head {
  margin-bottom: 1.375rem;
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.explain ul { display: grid; gap: 1.375rem; }
.explain-item { display: grid; grid-template-columns: 1.75rem 1fr; gap: .8125rem; }
.explain-ico {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: .0625rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-elev-2);
  color: var(--a1);
}
.explain-ico svg { width: 15px; height: 15px; }
.explain-item b {
  display: block;
  margin-bottom: .3125rem;
  font-size: .9375rem;
  font-weight: 570;
  letter-spacing: -.014em;
}
.explain-item p { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }

.explain-foot {
  margin-top: 1.625rem;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.7;
}
.explain-foot b { color: var(--ink-2); font-weight: 560; }

.chart {
  padding: 1.125rem 1.25rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .012);
}
.chart-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  color: var(--ink-3);
  font-size: .75rem;
  font-family: var(--mono);
}
.chart svg { display: block; width: 100%; height: auto; }

.findings li {
  display: flex;
  gap: .625rem;
  padding: .5rem 0;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.5;
}
.findings li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: .55rem;
  border-radius: 50%;
  background: var(--a1);
}

.code {
  margin-top: .875rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #06070A;
  overflow-x: auto;
}
.code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--ink-2);
  tab-size: 2;
}
.code .k { color: var(--a2); }        /* keyword  */
.code .f { color: var(--a1); }        /* function */
.code .s { color: var(--mint); }      /* string   */


/* ==========================================================================
   Services
   ========================================================================== */

.cards {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 680px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  --ca: var(--a1);            /* each card gets its own accent, set below */
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--bg);
  transition: background .2s ease;
}
.card:hover { background: var(--bg-elev); }

/* a wash in the card's own hue, on hover only */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(110% 80% at 50% 0%,
              color-mix(in srgb, var(--ca) 13%, transparent), transparent 62%);
  transition: opacity .25s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.cards .card:nth-child(1) { --ca: var(--a1); }
.cards .card:nth-child(2) { --ca: var(--a2); }
.cards .card:nth-child(3) { --ca: var(--a3); }
.cards .card:nth-child(4) { --ca: var(--a4); }
.cards .card:nth-child(5) { --ca: var(--a5); }
.cards .card:nth-child(6) { --ca: var(--a1); }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.375rem;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--ca) 32%, var(--line-strong));
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ca) 11%, var(--bg-elev-2));
  color: var(--ca);
}
.card-icon svg { width: 20px; height: 20px; }
.card-num {
  color: color-mix(in srgb, var(--ca) 45%, var(--ink-3));
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .06em;
}

.card h3 {
  margin-bottom: .625rem;
  font-size: 1.125rem;
  letter-spacing: -.018em;
}
.card p {
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.6;
}
/* deliberately NOT margin-top:auto — cards have very different heights now that
   some carry an example, and pinning this to the bottom leaves a hole mid-card */
.card-best {
  padding-top: 1.375rem;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.5;
}
.card-best b {
  display: block;
  margin-bottom: .1875rem;
  color: var(--ink-2);
  font-weight: 560;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Showcase rows — one service, given room to actually demonstrate itself
   ========================================================================== */

.showcase {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .showcase     { grid-template-columns: .82fr 1.5fr; gap: 1.5rem; align-items: start; }
  .showcase-alt { grid-template-columns: 1.5fr .82fr; }
}
.showcase + .showcase { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* each row announces itself before you look at it — spans both columns */
.showcase-head {
  grid-column: 1 / -1;
  max-width: 60ch;
  margin-bottom: .5rem;
}
.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .8125rem;
  color: var(--ca, var(--a1));
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.showcase-tag::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.showcase-title {
  font-size: clamp(1.1875rem, 2.1vw, 1.5rem);
  font-weight: 560;
  line-height: 1.32;
  letter-spacing: -.022em;
}
/* the phrase the line turns on, in that row's own accent */
.showcase-title em { font-style: normal; color: var(--ca, var(--a1)); }

/* who this is for — an example only lands if you recognise the domain */
.domains {
  display: flex;
  flex-wrap: wrap;
  gap: .4375rem;
  margin-top: 1.125rem;
}
.domains li,
.domains button {
  padding: .25rem .6875rem;
  border: 1px solid color-mix(in srgb, var(--ca, var(--a1)) 26%, var(--line-strong));
  border-radius: 100px;
  background: color-mix(in srgb, var(--ca, var(--a1)) 8%, transparent);
  color: var(--ink-2);
  font-size: .75rem;
  letter-spacing: .004em;
}

/* the BI chips are tabs — clicking swaps the glimpse below */
.domains button { cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }
.domains button:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ca) 48%, var(--line-strong)); }
.domains button[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--ca) 60%, transparent);
  background: color-mix(in srgb, var(--ca) 17%, transparent);
  color: var(--ink);
}

/* nothing is open by default, so the chips need to look clickable.
   Fallback glyph first; a stroked chevron where masks are supported, to match
   the stroke-icon language used everywhere else. */
.domains button { display: inline-flex; align-items: center; }
.domains button::after {
  content: "▾";
  margin-left: .5rem;
  font-size: .8125rem;
  line-height: 1;
  opacity: .7;
  transition: transform .18s ease, opacity .18s ease;
}

@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  .domains button::after {
    content: "";
    width: 11px;
    height: 11px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.6 9 4.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.6 9 4.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  }
}

.domains button:hover::after { opacity: 1; }
.domains button[aria-expanded="true"]::after { transform: rotate(180deg); opacity: 1; }

/* sits below the header, not inside it — the title keeps a narrow measure,
   the chips get the full column so they stay on one line */
.glimpse { margin-top: 1.125rem; }

.glimpse-panel {
  max-width: 40rem;
  margin-top: 1.125rem;
  padding: 1.125rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
}
.glimpse-panel[hidden] { display: none; }
.glimpse-panel { animation: glimpse-in .18s ease-out; }
@keyframes glimpse-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.glimpse-lead { color: var(--ink-2); font-size: .875rem; line-height: 1.55; }

/* the things someone in that industry would actually type */
.glimpse-asks { display: grid; gap: .5625rem; margin: 1rem 0; }
.glimpse-asks li {
  display: flex;
  gap: .5rem;
  color: var(--ink);
  font-size: .9063rem;
  line-height: 1.45;
  letter-spacing: -.008em;
}
.glimpse-asks li::before { content: "›"; flex: none; color: var(--ca); }

.glimpse-a {
  padding-top: .875rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.55;
}

/* in the hero the same component needs its own breathing room */
.hero .showcase-head { margin-top: clamp(2.75rem, 5vw, 3.75rem); }

/* inside a showcase row the glimpse spans both columns, under the header */
.showcase > .glimpse { grid-column: 1 / -1; }

/* on narrow screens the mock leads, whichever side it sits on */
@media (max-width: 999px) {
  .showcase .showcase-head { order: 0; }
  .showcase > .glimpse     { order: 1; }
  .showcase .mock          { order: 2; }
  .showcase .explain       { order: 3; }
}



/* ---- a cited source, opened up ------------------------------------------ */

.src-label {
  display: block;
  margin: 1.5rem 0 .8125rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.src {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.src + .src { margin-top: .75rem; }

.src-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .625rem .875rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .75rem;
}
.src-head svg { flex: none; width: 12px; height: 12px; color: var(--a1); }
.src-page { color: var(--ink-3); }

.src-body {
  padding: .875rem;
  color: var(--ink-3);
  font-size: .875rem;
  line-height: 1.65;
}
.src-body mark {
  padding: .08em .25em;
  border-radius: 3px;
  background: rgba(108, 140, 255, .22);
  color: var(--ink);
}

/* ---- the full-size timeline --------------------------------------------- */

.tl-big {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-strong);
}
.tl-big li { position: relative; }
.tl-big li::before {
  content: "";
  position: absolute;
  left: -1.5625rem;
  top: .4375rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a1);
  box-shadow: 0 0 0 3px var(--bg-elev-2);
}
.tl-big .d { font-family: var(--mono); font-size: .75rem; color: var(--a1); }
.tl-big .e {
  display: block;
  margin: .1875rem 0 .375rem;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 550;
  letter-spacing: -.012em;
}
.tl-big .q {
  margin-bottom: .375rem;
  color: var(--ink-3);
  font-size: .8125rem;
  line-height: 1.55;
}
.tl-big .s {
  display: block;
  font-family: var(--mono);
  font-size: .6875rem;
  color: var(--ink-3);
}

/* ---- terse examples inside service cards --------------------------------
   Each one shows the artifact that makes that service distinct: a citation,
   a turn-taking loop, a timeline. Not prose — the shape of the answer.      */

.ex {
  margin-top: 1.375rem;
  padding: .9375rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .014);
  font-size: .8125rem;
  line-height: 1.5;
}
.ex-label {
  display: block;
  margin-bottom: .8125rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* 03 — it loops, and it knows when to stop */
.turns { display: grid; gap: .5rem; }
.t-them { color: var(--ink-3); }
.t-them::before { content: "›"; margin-right: .4375rem; }
.t-agent { color: var(--ink); padding-left: .8125rem; }

.handoff {
  display: flex;
  align-items: flex-start;
  gap: .4375rem;
  margin-top: .875rem;
  padding-top: .8125rem;
  border-top: 1px solid var(--line);
  color: var(--mint);
  font-size: .75rem;
  line-height: 1.45;
}
.handoff svg { flex: none; margin-top: .1875rem; }

.tl-foot {
  margin-top: .875rem;
  padding-top: .8125rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .75rem;
}

/* ==========================================================================
   Why — argument rows
   ========================================================================== */

.args {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .args { grid-template-columns: repeat(2, 1fr); } }

.arg { padding-left: 1.5rem; border-left: 2px solid var(--line-strong); }
.arg h3 {
  margin-bottom: .75rem;
  font-size: 1.1875rem;
  letter-spacing: -.02em;
}
.arg p { color: var(--ink-2); font-size: .9688rem; }
.arg:nth-child(1) { border-left-color: var(--a1); }
.arg:nth-child(2) { border-left-color: var(--a2); }
.arg:nth-child(3) { border-left-color: var(--a3); }
.arg:nth-child(4) { border-left-color: var(--a4); }

/* ==========================================================================
   Who it's for
   ========================================================================== */

.who-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .who-wrap { grid-template-columns: .9fr 1.1fr; } }

.who-list li {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  letter-spacing: -.012em;
}
.who-list li:first-child { padding-top: 0; }
.who-list li:last-child  { border-bottom: 0; }
.who-list svg { flex: none; margin-top: .3rem; color: var(--mint); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { padding: clamp(1.75rem, 3vw, 2.25rem); background: var(--bg); }
.step-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--grad);
  color: #06070A;
  font-size: .8125rem;
  font-weight: 680;
}
.step h3 { margin-bottom: .5rem; font-size: 1.0625rem; letter-spacing: -.018em; }
.step p  { color: var(--ink-2); font-size: .9375rem; }

/* ==========================================================================
   Credibility band
   ========================================================================== */

.cred {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(108,140,255,.08), transparent 55%),
    var(--bg-elev);
}
.cred-grid {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .cred-grid { grid-template-columns: repeat(3, 1fr); } }
.cred h3 {
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cred p { color: var(--ink-2); font-size: .9375rem; }

.cred-foot {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .9375rem;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta-box {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(108,140,255,.16), transparent 60%),
    var(--bg-elev);
  text-align: center;
  overflow: hidden;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box .lede { margin: 1.125rem auto 0; text-align: center; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
  margin-top: 2.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}
.footer-blurb {
  max-width: 34ch;
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: .875rem;
}
.footer-col h4 {
  margin-bottom: 1rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-col li { padding: .3125rem 0; }
.footer-col a { color: var(--ink-2); font-size: .9375rem; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  color: var(--ink-3);
  font-size: .8125rem;
}

/* ==========================================================================
   Forms — express interest
   ========================================================================== */

.page-head {
  padding-top: clamp(3rem, 7vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.form-wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  padding-bottom: var(--section);
}
@media (min-width: 940px) { .form-wrap { grid-template-columns: 1.15fr .85fr; } }

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-elev);
}

.field { margin-bottom: 1.375rem; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 540;
}
.field .req { color: var(--a2); }
.field .hint {
  display: block;
  margin-top: .4375rem;
  color: var(--ink-3);
  font-size: .8125rem;
}

.input, .select, .textarea {
  width: 100%;
  padding: .8125rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: .9375rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input::placeholder, .textarea::placeholder { color: #5A616D; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, .16);
}
.textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2378808D' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.75rem;
}
.select option { background: var(--bg-elev); }

.field-row {
  display: grid;
  gap: 1.375rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* honeypot — hidden from people, visible to naive bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* only shown if a submission fails */
.form-status {
  margin-top: 1.25rem;
  padding: .8125rem 1rem;
  border: 1px solid rgba(245, 139, 168, .34);
  border-radius: var(--r-sm);
  background: rgba(245, 139, 168, .09);
  color: #F9AFC2;
  font-size: .875rem;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }

.form-foot {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.form-foot p { color: var(--ink-3); font-size: .8125rem; max-width: 34ch; }

.aside-block { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.aside-block:first-child { padding-top: 0; }
.aside-block:last-child  { border-bottom: 0; }
.aside-block h3 { margin-bottom: .5rem; font-size: 1rem; letter-spacing: -.015em; }
.aside-block p  { color: var(--ink-2); font-size: .9375rem; }

/* setup warning — only shows while the form endpoint is a placeholder */
.setup-warn {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.75rem;
  padding: .875rem 1rem;
  border: 1px solid rgba(255, 196, 84, .32);
  border-radius: var(--r-sm);
  background: rgba(255, 196, 84, .08);
  color: #FFC454;
  font-size: .8438rem;
  line-height: 1.55;
}
.setup-warn code {
  font-family: var(--mono);
  font-size: .9em;
  color: #FFD98A;
}

/* ==========================================================================
   Confirmation / 404
   ========================================================================== */

.center-page {
  display: grid;
  place-items: center;
  min-height: 68vh;
  padding-block: var(--section);
  text-align: center;
}
.center-page .inner { max-width: 46ch; }
.center-page .lede { margin: 1.25rem auto 0; }
.center-page .btn  { margin-top: 2rem; }

.tick {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  border: 1px solid rgba(61, 220, 151, .35);
  background: rgba(61, 220, 151, .1);
  color: var(--mint);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

/* Only hide things when JS is actually running (head.js sets .js on <html>).
   Without it the page renders fully visible — a failed script must never
   leave the site blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),
              transform .6s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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