/* ---- arcade.css ---- */
/*
 * Anth.us site stylesheet: "Arcade, corporate".
 *
 * HAND-WRITTEN. This file is the source of truth for the site's look; edit it
 * directly. It implements web/DESIGN.md sections 1-5. The build concatenates it
 * with web/css/arcade-pictograms.css (the pictogram sprites) into the one
 * stylesheet served as /css/site-theme.css (see web/site_css.py).
 *
 * The old generated sheet (anthus-theme.css, Gatsby parity) is no longer shipped.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  color-scheme: light dark;

  --bg: #fbfdff;
  --panel: #f1f9fe;
  --panel-2: #e4f2fc;
  --line: #d6e6f2;
  --ink: #1b1426;
  --ink-2: #4a4157;
  --pink: #dc5497;
  --pink-hot: #ff57b4;
  --pink-deep: #9b165d;
  --pink-shadow: #620e32;
  --blue: #0389d7;
  --on-pink: #ffffff;
  --grad: linear-gradient(90deg, #d03382, #9b165d 50%, #0389d7);

  /* Logo tile: light tile + ink A on light backgrounds; pink tile + white A in dark mode and the footer. */
  --logo-tile: #f9c9e1;
  --logo-glyph: var(--ink);

  --footer-bg: #150f20;
  --footer-ink: #f3eef8;
  --footer-ink-2: #b9aec8;
  --footer-line: #2e2540;

  /* Pictogram roles (DESIGN.md section 6). */
  --px-ink: var(--ink);
  --px-pink: var(--pink);
  --px-blue: var(--blue);
  --px-dim: var(--line);

  --font-display: "Jersey 25", "Courier New", monospace;
  --font-charted: "Jersey 25 Charted", "Jersey 25", "Courier New", monospace;
  --font-label: "Jersey 10", "Jersey 25", "Courier New", monospace;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step-5: clamp(3rem, 2rem + 4.5vw, 7.5rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.4vw, 4.25rem);
  --step-3: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  --step-1: clamp(1.15rem, 1rem + 0.5vw, 1.45rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 76rem;
  --section-space: clamp(4rem, 8vw, 9rem);
  --header-h: 4.25rem;

  --notch: 4px;
  /* Stepped corner: a rectangle with 4px squares removed at each corner. */
  --clip-4: polygon(
    4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px),
    0 4px, 4px 4px
  );
  --clip-3: polygon(
    3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px,
    100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px),
    calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px),
    0 3px, 3px 3px
  );
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0b16;
    --panel: #17121f;
    --panel-2: #211a2c;
    --line: #2e2540;
    --ink: #f3eef8;
    --ink-2: #b9aec8;
    --pink: #ff57b4;
    --pink-hot: #ff87c3;
    --pink-deep: #ff87c3;
    --pink-shadow: #000000;
    --blue: #3fb2f7;
    --logo-tile: var(--pink);
    --logo-glyph: #ffffff;
  }
}

html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (min-width: 96rem)  { html { font-size: 106.25%; } :root { --max: 92rem; } }
@media (min-width: 120rem) { html { font-size: 112.5%; } }
@media (min-width: 140rem) { :root { --max: 120rem; } }
@media (min-width: 160rem) { html { font-size: 125%; } }

/* ------------------------------------------------------------------- base */

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

/* Safari 26 tints its toolbar from the body's background (theme-color is no longer used),
   unless a sticky or fixed element sits at the top, whose colour it extends instead. So the
   body is the brand fuchsia, the header is not sticky, and the page regions carry their own
   background. The fuchsia shows only in the browser chrome and the overscroll area. */
body {
  margin: 0;
  background: #dc5497;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: var(--step-5); line-height: 0.95; }
h2 { font-size: var(--step-4); line-height: 1; }
h3 { font-size: var(--step-3); line-height: 1.05; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; margin: 0; line-height: 1.3; }
p { margin: 0 0 1.1em; }
img, svg, video { max-width: 100%; }
img { height: auto; }
strong, b { font-weight: 600; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }

a { color: var(--pink-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pink); text-decoration-thickness: 2px; }

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

::selection { background: var(--pink); color: var(--on-pink); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 0.5rem 1rem;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em;
}
.skip-link:focus { top: 0.75rem; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
@media (min-width: 100rem) { :root { --max: 92rem; } }
@media (min-width: 140rem) { :root { --max: 120rem; } }

main { display: block; }
.section { padding-block: var(--section-space); }
.section--band { background: var(--panel); border-block: 1px solid var(--line); }

/* ------------------------------------------------- stepped-corner surface
   .notch draws a 1px border that follows the notched outline: the element is
   the border colour, its ::before is the fill, both clipped. */
.notch {
  --bd: var(--line);
  --fill: var(--panel);
  position: relative;
  isolation: isolate;
  background: var(--bd);
  clip-path: var(--clip-4);
}
.notch::before {
  content: "";
  position: absolute; inset: 1px; z-index: -1;
  background: var(--fill);
  clip-path: var(--clip-3);
}

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

.btn {
  display: inline-block;
  color: var(--on-pink);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  filter: drop-shadow(4px 4px 0 var(--pink-shadow));
  position: relative;
}
.btn > span {
  display: block;
  background: var(--pink);
  padding: 0.85em 1.4em 0.8em;
  clip-path: var(--clip-4);
  white-space: nowrap;
}
.btn:hover { color: var(--on-pink); }
.btn:hover > span { background: var(--pink-hot); }
/* The press moves the face, never the link: moving the link off the pointer between mousedown and
 * mouseup sends the click to the parent instead, so a press near the edge would not navigate. */
.btn:active { filter: none; }
.btn:active > span { transform: translate(4px, 4px); }
.btn--sm { font-size: 1.15rem; filter: drop-shadow(3px 3px 0 var(--pink-shadow)); }
.btn--sm > span { padding: 0.7em 1.1em 0.65em; }

.btn--ghost { color: var(--ink); filter: none; }
.btn--ghost > span {
  --bd: var(--ink);
  background: var(--ink);
  position: relative; isolation: isolate;
}
.btn--ghost > span::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  background: var(--bg); clip-path: var(--clip-3);
}
.btn--ghost:hover { color: var(--pink-deep); }
.btn--ghost:hover > span { background: var(--pink-deep); }
.btn--ghost:active > span { transform: translate(2px, 2px); }
.section--band .btn--ghost > span::before { background: var(--panel); }


.btn-row { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; align-items: center; }

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

.eyebrow {
  display: flex; align-items: center; gap: 0.9rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-label);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.eyebrow::before {
  content: ""; flex: none; width: 2rem; height: 4px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 4px, transparent 4px 6px);
}

.section__head .lead { margin-top: 1.25rem; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 46ch; margin-bottom: 0; }

.section__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 80rem) {
  .section__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(3rem, 5vw, 6rem); }
  .section__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
  .section__grid--stack { grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 3vw, 3rem); }
  .section__grid--stack .section__head { position: static; }
}
.platform__art { margin: 2rem 0 1.75rem; }

/* ------------------------------------------------------------------ header */

/* "ANTHUS AI SOLUTIONS" lockup: one SVG (anthus_dom._brand) holding the wordmark
   (Jersey 25, ink) and the AI SOLUTIONS link (Jersey 10, pink), so their baselines
   can never round apart. Font size sets the scale; the SVG is cap + 2 tile cells tall. */
.site-brand { display: flex; align-items: center; flex: none; font-size: 2rem; line-height: 1; }
.site-brand__svg { display: block; height: 0.7317em; width: auto; overflow: visible; shape-rendering: crispEdges; }
.site-brand__home .site-logo__word { fill: var(--ink); }
.site-brand__lockup { fill: var(--pink); }
.site-brand__hit { fill: transparent; } /* the whole word (and gap) is clickable, not just the letters */
.site-footer__brand .site-logo__svg { pointer-events: none; } /* clicks fall through to the link box */
.site-brand__rule { fill: currentColor; opacity: 0; }
.site-brand__lockup:hover { fill: var(--pink-hot); }
.site-brand__lockup:hover .site-brand__rule { opacity: 1; fill: var(--pink-hot); }
.site-brand__lockup[aria-current="page"] .site-brand__rule { opacity: 1; fill: var(--pink); }
.site-brand a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .site-brand__lockup { fill: var(--pink-hot); } }
.site-nav__lockup-copy { display: none; }
@media (max-width: 29.99rem) {
  .site-brand { font-size: 1.6rem; }
}

.site-header {
  position: relative; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Pixel rule: the brand gradient in 8px steps. */
.site-header::before, .site-footer::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, #d03382, #9b165d 50%, #0389d7);
  -webkit-mask: linear-gradient(90deg, #000 0 6px, transparent 6px 8px) 0 0 / 8px 100%;
  mask: linear-gradient(90deg, #000 0 6px, transparent 6px 8px) 0 0 / 8px 100%;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-height: calc(var(--header-h) - 4px);
}

.site-logo {
  display: inline-block; white-space: nowrap; flex: none;
  font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
}
.site-logo:hover { color: var(--ink); }
/* One SVG wordmark (anthus_dom._LOGO_SVG), drawn in Jersey 25 font units: the tile IS the A
   of ANTHUS and scales with the letters, so it always matches their cap height. Its height
   is the cap height (750/1230 em) plus one tile cell (75 units) above and below, and the
   cell below hangs under the baseline. */
.site-logo__svg { display: inline-block; vertical-align: -0.061em; height: 0.7317em; width: auto; overflow: visible; shape-rendering: crispEdges; }
.site-logo__tile { fill: var(--logo-tile); }
.site-logo__a { fill: var(--logo-glyph); }
.site-logo__word { fill: currentColor; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.3rem; flex-wrap: nowrap; }
.site-nav a {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 1.2rem; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap;
  display: inline-block; padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--pink-deep); border-bottom-color: var(--pink); }
.site-nav a[aria-current="page"] { color: var(--pink-deep); border-bottom: 2px solid var(--pink-deep); }
.site-nav .btn { color: var(--on-pink); border: 0; padding: 0; }
.site-nav .btn:hover { color: var(--on-pink); border: 0; }
.site-nav .btn > span { padding: 0.7em 1.1em 0.65em; }
.site-nav__sub { display: none; }

.site-menu-toggle {
  display: none; align-items: center; gap: 0.6rem;
  background: none; border: 0; padding: 0.5rem 0; cursor: pointer;
  color: var(--ink); font-family: var(--font-label); font-size: 1.3rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.site-menu-toggle__bars { width: 1.25rem; height: 1rem; background:
  linear-gradient(var(--ink) 0 0) 0 0 / 100% 3px no-repeat,
  linear-gradient(var(--ink) 0 0) 0 50% / 100% 3px no-repeat,
  linear-gradient(var(--ink) 0 0) 0 100% / 100% 3px no-repeat; }

@media (max-width: 77.99rem) {
  .js .site-menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.75rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .js .site-header[data-open="true"] .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child { border: 0; padding-top: 1.25rem; }
  .js .site-nav a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.6rem; border-bottom: 0; }
  .js .site-nav .btn { display: inline-block; }
  .site-nav ul { gap: 0.25rem 1.25rem; padding: 0.5rem 0 0.75rem; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { flex-basis: auto; }
}

/* ------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 8rem) clamp(3rem, 6vw, 7rem); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 40%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
}
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); } }
.hero h1 { margin-bottom: 1.5rem; max-width: 12ch; text-wrap: balance; }
.hero .lead { margin-bottom: 2.25rem; max-width: 40ch; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.cursor {
  display: inline-block; width: 0.42em; height: 0.72em; margin-left: 0.12em;
  background: var(--pink); vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__art { min-width: 0; }

/* -------------------------------------------------------------- stat strip */

.stats {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 22rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > li { background: var(--bg); padding: clamp(1.25rem, 2.2vw, 2rem); }
.stats__n { display: block; font-family: var(--font-charted); font-size: var(--step-4); line-height: 1; color: var(--pink); margin-bottom: 0.5rem; }
.stats__l { display: block; font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15; color: var(--ink-2); }
.stats-wrap { padding-bottom: calc(var(--section-space) * 0.4); }

/* ------------------------------------------------------------- proof strip */

.proof-strip-wrap { padding-bottom: calc(var(--section-space) * 0.25); }
.proof-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.proof-strip a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.proof-strip a:hover, .proof-strip a:focus-visible { color: var(--pink); border-bottom-color: var(--pink); }

/* ------------------------------------------------------------------ cards */

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.grid--caps { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .grid--caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  --fill: var(--panel);
  padding: clamp(1.25rem, 2vw, 2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  color: var(--ink);
}
.card h3 { font-size: var(--step-3); }
.card p { margin: 0; color: var(--ink-2); }
.card__px { margin: 0 0 0.5rem; }
.card__px .px { margin: 0; }
.card__link {
  margin-top: auto; padding-top: 0.5rem;
  font-family: var(--font-label); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink-deep); text-decoration: none;
}
.card__link::after { content: " \2192"; }
.card:hover, .card:focus-within { --bd: var(--pink); }
.card:hover h3 a, .card:focus-within h3 a { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card h3 a { color: inherit; text-decoration: none; }
/* Whole card is the click target. */
.card--link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.case h3 { font-size: var(--step-4); line-height: 0.95; }
.case__ctx { font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-deep); margin: 0; }
.case dl { margin: 0; display: grid; gap: 0.9rem; }
.case dt { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.1rem; color: var(--ink-2); }
.case dd { margin: 0.1rem 0 0; color: var(--ink); }
.case dd.case__out { font-weight: 600; }
.case .card__px { margin-bottom: 0.75rem; }

.more { margin: 2.25rem 0 0; }
.more a { font-family: var(--font-label); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--pink-deep); }
.more a::after { content: " \2192"; }
.more a + a { margin-left: 2rem; }
.more a:hover { color: var(--pink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Principles */
.principles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 2.25rem 0; }
@media (min-width: 30rem) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) and (max-width: 79.99rem), (min-width: 100rem) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principles li { padding: 1.25rem 1.25rem 1.5rem; background: var(--panel); border-top: 4px solid var(--pink); }
.principles li > span { display: block; font-family: var(--font-label); font-size: 1.3rem; letter-spacing: 0.08em; color: var(--pink-deep); }
.principles li > strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; margin: 0.35rem 0 0.6rem; }
.principles li > p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.prose-block { max-width: 62ch; }
.prose-block p { color: var(--ink); }

/* Product cards (pictogram cards: never more than two columns) */
.grid--products { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product h3 { font-size: var(--step-4); line-height: 0.95; }
@supports (grid-template-rows: subgrid) {
  .grid--products > .product { grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: 0.9rem; align-content: start; }
  .grid--products > .product--desc { grid-row: span 5; grid-template-rows: subgrid; }
}
.supporting { margin: clamp(1.5rem, 2.5vw, 2.5rem) 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.25rem; }
.supporting strong { font-family: var(--font-label); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.2rem; color: var(--ink-2); }
.supporting a { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.supporting a:hover { color: var(--pink-deep); text-decoration: underline; text-underline-offset: 4px; }

/* Platform tiles */
.tile { padding: 1.25rem 1.4rem 1.4rem; gap: 0.5rem; }
.tile h3 { font-size: calc(var(--step-3) * 0.95); }
.tile p { font-size: 0.97rem; }

/* Article cards */
.acard { padding: 0; gap: 0; }
.acard__body { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.25rem, 2vw, 1.75rem); flex: 1; }
.acard__vis { aspect-ratio: 16 / 10; width: calc(100% - 2px); margin: 1px 1px 0; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.acard__vis { background: var(--panel); }
.drafts-review .card { --fill: var(--bg); }
.drafts-review .acard__vis { background: var(--panel-2); }
.acard__vis img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.acard__vis--cover img { object-fit: cover; }
.acard__vis--px { background: var(--panel); padding: clamp(0.75rem, 1.6vw, 1.25rem); }
.acard__vis--px .px { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; margin: 0; }
.acard__vis--px .px__svg { width: 100%; height: 100%; }
.acard__vis--px .px__cap { display: none; }
.acard__vis--letter { background: var(--panel-2); }
.acard__vis--letter span { font-family: var(--font-charted); font-size: clamp(5rem, 9vw, 8rem); line-height: 1; color: var(--pink); }
.heading__px { max-width: 26rem; margin: 0 0 1.75rem; }
.heading__px .px__cap { margin-top: 0.5rem; }
.acard__meta { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.acard h3 { font-size: var(--step-3); }
.acard__ex { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard__ex mark, .acard__ex a { color: inherit; }

.shorter { margin: clamp(2.5rem, 4vw, 4rem) 0 0; }
.shorter h3 { font-family: var(--font-label); font-size: 1.4rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-deep); margin-bottom: 0.5rem; }
.shorter ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.shorter li { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.shorter time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); flex: none; min-width: 7.5rem; }
.shorter a { color: var(--ink); text-decoration: none; font-weight: 500; }
.shorter a:hover { color: var(--pink-deep); text-decoration: underline; }

.cta-band { text-align: left; }
.cta-band h2 { max-width: 14ch; margin-bottom: 1.25rem; }
.cta-band p.lead { margin-bottom: 2rem; }
@media (min-width: 64rem) { .cta-band__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: end; } .cta-band__in .btn-row { justify-self: end; } }

/* ------------------------------------------------------------------ footer */

main { background: var(--bg); }
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 0; font-size: 0.97rem; }
.site-footer a { color: var(--footer-ink); text-decoration: none; }
.site-footer a:hover { color: var(--pink-hot); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__inner { padding-block: clamp(3rem, 5vw, 5rem) 2rem; }
.site-footer__brand { margin-bottom: 2.5rem; max-width: 36rem; }
.site-footer__brand .site-logo { color: var(--footer-ink); margin-bottom: 1rem; --logo-tile: #ff57b4; --logo-glyph: #ffffff; }
/* The footer carries the same "ANTHUS AI SOLUTIONS" lockup as the header, on the dark band. */
.site-brand--footer { margin-bottom: 1rem; font-size: 1.6rem; --logo-tile: #ff57b4; --logo-glyph: #ffffff; }
.site-brand--footer .site-brand__home .site-logo__word { fill: var(--footer-ink); }
.site-brand--footer .site-brand__lockup { fill: var(--pink-hot); }
.site-footer__brand p { color: var(--footer-ink-2); margin: 0; }
.site-footer__products { margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--footer-line); }
.site-footer__products > h2 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--footer-ink-2); }
.site-footer__plist { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.75rem 2rem !important; }
.site-footer__product p { margin: 0.25rem 0 0.5rem; color: var(--footer-ink-2); font-size: 0.93rem; line-height: 1.45; }
.site-footer__product .site-footer__pname { font-family: var(--font-display); font-size: 2rem; line-height: 1; letter-spacing: 0.02em; text-decoration: none; }
.site-footer__also { font-family: var(--font-label); font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-ink-2) !important; }
.site-footer__also::after { content: " \2192"; }
.site-footer__support { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; }
.site-footer__support h3 { font-family: var(--font-label); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-ink-2); margin: 0; }
.site-footer__support ul { display: flex !important; flex-wrap: wrap; gap: 0.4rem 1.5rem !important; }
.site-footer__cols { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.site-footer h2 { font-family: var(--font-label); font-size: 1.25rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-ink-2); margin: 0 0 0.9rem; line-height: 1; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__note { border-top: 1px solid var(--footer-line); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--footer-ink-2); font-size: 0.85rem; }
.site-footer__note p { margin: 0; color: var(--footer-ink-2) !important; }
.site-footer__note > div { margin: 0 !important; padding: 0 !important; max-width: none !important; }

/* ===================================================================
   Inner pages and long-form content (Markus-converted articles, platform
   product pages)
   =================================================================== */

.page { padding-block: clamp(2rem, 5vw, 5rem) var(--section-space); }
.page > article, .page > section, .page > div { min-width: 0; }

.page article { max-width: 58rem; margin-inline: auto; position: relative; }
.page article > p, .page article > ul, .page article > ol, .page article > blockquote,
.page article > h2, .page article > h3, .page article > h4, .page article > .heading,
.page article > dl { max-width: 68ch; }

.page h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 5.5rem); line-height: 0.95; margin: 0 0 1rem; text-wrap: balance; }
.page article h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; margin: 3rem 0 1rem; }
.page article h3 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem); margin: 2.25rem 0 0.75rem; }
.page article h4 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; }
.page article p, .page article li { font-size: 1.0625rem; }
.page article ul, .page article ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.page article li { margin-bottom: 0.4rem; padding-left: 0.2rem; }
.page article li::marker { color: var(--pink-deep); }
.page article li > ul, .page article li > ol { margin: 0.5rem 0 0.5rem; }

article .heading { margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
article .heading h1 { margin-bottom: 1rem; }
article .heading .date, article .heading .authors, article .heading .repository, article .heading .assistants {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); margin: 0.2rem 0;
}
article .heading .byline { opacity: 0.8; }
article .heading a { color: var(--pink-deep); }
article .heading .assistants { opacity: 0.8; }

/* Draft watermark: a quiet hatch instead of the old giant glyph. */
.draft-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--pink) 7%, transparent) 0 12px, transparent 12px 24px); }
.draft-overlay-text { position: absolute; top: 1rem; right: 0; margin: 0 !important; font-family: var(--font-label); font-size: 1.4rem !important; letter-spacing: 0.2em; color: var(--pink-deep); }
.draft-overlay-text::after { content: " \2014 DRAFT, NOT FINAL"; display: none; }

/* Links inside prose get a steady underline. */
.page article p a, .page article li a, .page article td a, .page article blockquote a { text-decoration: underline; text-decoration-thickness: 1px; }

/* <mark>: a pink highlighter bar, no animation. */
mark {
  background: linear-gradient(transparent 55%, color-mix(in srgb, var(--pink) 32%, transparent) 55%);
  color: inherit; padding: 0 0.1em;
}

blockquote {
  margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 4px solid var(--pink);
  color: var(--ink);
}
blockquote > *:last-child { margin-bottom: 0; }
blockquote p { font-size: 1.15rem; }

code, kbd, samp, tt { font-family: var(--font-mono); font-size: 0.88em; }
:not(pre) > code {
  background: var(--panel-2); color: var(--ink);
  padding: 0.12em 0.4em; border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
pre {
  margin: 1.75rem 0; padding: 1.1rem 1.25rem; overflow-x: auto;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--pink);
  font-size: 0.88rem; line-height: 1.55; tab-size: 2;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: var(--ink); }
.page article > pre { max-width: 100%; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: 0.93rem; line-height: 1.45; margin: 1.75rem 0; }
.page article table:not(.messages) { display: block; overflow-x: auto; }
@media (min-width: 48rem) { .page article table:not(.messages) { display: table; } }
th { font-family: var(--font-label); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.1rem; text-align: left; color: var(--ink-2); }
th, td { padding: 0.65rem 0.8rem; vertical-align: top; text-align: left; }
thead th { border-bottom: 2px solid var(--pink); background: var(--panel); }
tbody td, tbody th { border-bottom: 1px solid var(--line); }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--panel) 60%, transparent); }
td.number, td[align="right"], th[align="right"] { text-align: right; font-variant-numeric: tabular-nums; }
tr.etc { color: var(--ink-2); }

/* Figures and images (Markus pipeline emits gatsby-plugin-image wrappers). */
figure { margin: 2rem 0; }
figcaption, .image-caption {
  font-size: 0.88rem; line-height: 1.45; color: var(--ink-2);
  margin: 0.6rem 0 0; max-width: 62ch; text-align: left;
}
.image-caption { margin-bottom: 1.5rem; }

/* ---- Image placement (see web/BUILD-NOTES.md, "Image placement") -------------------------
   Everything is measured against the TEXT column (--col, the 68ch the paragraphs use), not
   the wider article box, so a centred picture is centred on the text above and below it. */
.page article { --col: 68ch; }
.gatsby-image-wrapper { position: relative; overflow: hidden; max-width: 100%; background: var(--panel); }
.gatsby-image-wrapper-constrained { display: inline-block; vertical-align: top; }
.gatsby-image-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; object-fit: cover; }
.gatsby-image-wrapper > div > img[role="presentation"] { position: static; width: auto; height: auto; max-width: 100%; display: block; }
.gatsby-image-wrapper [data-main-image] { opacity: 1; }
.gatsby-image-wrapper [data-placeholder-image] { opacity: 0 !important; }
.img { margin: 1.75rem 0; --txt: min(100%, var(--col)); }
.img .gatsby-image-wrapper { display: block; margin-inline: auto; }
.img figcaption, .img .image-caption { max-width: 100%; }
/* full: exactly the text column, both edges aligned with the paragraphs */
.img--full { width: var(--txt); }
/* small: centred in the text column, 60% of it */
.img--small { width: calc(var(--txt) * 0.6); margin-left: calc(var(--txt) * 0.2); }
/* medium: centred in the text column, up to 44rem (or the wrapper's own --img-max) */
.img--medium {
  --w: min(var(--txt), var(--img-max, 44rem));
  width: var(--w); margin-left: calc((var(--txt) - var(--w)) / 2);
}
/* inset-right: floated, 40% of the text column, right edge on the text column; text wraps */
.img--inset-right {
  float: right; width: calc(var(--txt) * 0.4);
  margin: 0.25rem max(0px, calc(100% - var(--col))) 1rem 1.75rem;
}
.page article > h2 { clear: both; }
.page article::after { content: ""; display: block; clear: both; }
@media (max-width: 40rem) {
  .img--small, .img--medium, .img--inset-right { float: none; width: 100%; margin: 1.5rem 0; }
  .img--small { width: 80%; margin-inline: auto; }
}
/* Legacy layout class names stay on the picture wrapper but carry no layout of their own. */
.gatsby-image-wrapper.logo { display: none; }
article img { border: 1px solid var(--line); }
.page article > p > img { display: block; }

/* Citations */
.citation { font-size: 0.8em; vertical-align: baseline; font-family: var(--font-mono); }
.citation::before { content: "["; }
.citation::after { content: "]"; }
.citation a { color: var(--pink-deep); text-decoration: none; }
.citation a:hover { text-decoration: underline; }
.citationslist { font-size: 0.92rem; color: var(--ink-2); word-break: break-word; }
.citationslist li { margin-bottom: 0.9rem; }
sup { line-height: 0; font-size: 0.75em; }

/* Markus directives, as mapped by CLASS_MAP (callout, two-up, metric). */
.blockDiagram {
  margin: 1.75rem 0; padding: 0.75rem 1rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  display: flex; flex-direction: column; gap: 0.75rem; max-width: 100%;
}
.blockDiagram.request { border-left-color: var(--blue); }
.blockDiagram.response { border-left-color: var(--pink); }
.blockDiagram.visualPlaceholder { border-left-color: var(--pink); }
.blockDiagram > .title { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; color: var(--pink-deep); }
.blockDiagram > .title p { margin: 0; }
.blockDiagram .container { background: var(--bg); border: 1px solid var(--line); padding: 0.75rem 1rem; width: auto; margin: 0; }
.blockDiagram .container > *:last-child { margin-bottom: 0; }
.blockDiagram .container.technologyStack { text-align: center; }
.blockDiagram .row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.blockDiagram .row > * { flex: 1 1 10rem; }
.blockDiagram .messages { border-collapse: separate; border-spacing: 0 6px; margin: 0; }
.blockDiagram .messages .role { font-family: var(--font-mono); white-space: nowrap; width: 1%; }
.blockDiagram .messages td { background: var(--bg); border: 0; }

.comparisonChart { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1.75rem 0; }
.comparisonChart .separator { display: none; }
.comparisonChart h4 { font-family: var(--font-label); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.2rem; color: var(--pink-deep); margin-bottom: 0.6rem; }
.experience { margin: 1.5rem 0; }
.experience .title { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; }
.experience .subtitle { font-weight: 600; }
.experience .date-range, .experience .location { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); }

dl dt { font-weight: 600; }
dl dd { margin: 0 0 0.75rem; color: var(--ink-2); }

.page .date { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); }


/* =====================================================================
   Inner pages: page hero, steps, timeline, Q&A cards, chips, pager, ...
   (every page in the new language reuses the components above)
   ===================================================================== */

.hero--page { padding-block: clamp(2.5rem, 5vw, 5.5rem) clamp(2.5rem, 5vw, 5rem); }
.hero--page h1 { font-size: clamp(2.75rem, 1.9rem + 3.8vw, 6.25rem); max-width: 16ch; }
.hero--page .lead { max-width: 44ch; margin-bottom: 0; }
.hero--page .btn-row { margin-top: 2.25rem; }
.hero__grid--solo { grid-template-columns: minmax(0, 1fr) !important; }
.hero__grid--solo .lead { max-width: 56ch; }
.hero__grid--solo h1 { max-width: 20ch; }
.hero--compact { padding-block: clamp(2rem, 4vw, 4rem) clamp(0.5rem, 1.5vw, 1.5rem); }
.hero--compact h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 5rem); }
.lead a, .section__head .lead a { color: var(--pink-deep); }
.hero__photo { margin: 0; width: min(100%, 17rem); }
@media (min-width: 64rem) { .hero__photo { justify-self: end; width: min(100%, 22rem); } }
.photo { display: block; width: 100%; height: auto; clip-path: var(--clip-4); background: var(--panel); }
.photo-frame { display: block; padding: 4px; background: var(--pink); clip-path: var(--clip-4); }
.photo-frame .photo { clip-path: var(--clip-3); }

.section--tight { padding-block: clamp(2.5rem, 5vw, 5rem); }
.section__body > * + * { margin-top: clamp(1.25rem, 2vw, 2rem); }
.section__body > .grid + .grid, .section__body > .grid + .more { margin-top: clamp(1.5rem, 2.5vw, 2.5rem); }
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; }
.prose h3 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { color: var(--ink); margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; max-width: 34ch; margin: 0; letter-spacing: 0.01em; }
.statement span { color: var(--pink-deep); }

.card--static:hover, .card--static:focus-within { --bd: var(--line); }
.card ul.list { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.card ul.list li { margin-bottom: 0.35rem; }
.card ul.list li::marker { color: var(--pink-deep); }
.card p a, .card li a, .card dd a { color: var(--pink-deep); text-decoration: underline; text-decoration-thickness: 1px; position: relative; z-index: 2; }
.card__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: auto; padding-top: 0.5rem; }
.card__links a, .card .card__links a {
  font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pink-deep); text-decoration: none; position: relative; z-index: 2;
}
.card__links a::after { content: " \2192"; }
.card__links a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.card .card__sub { font-weight: 600; color: var(--ink); }
.card--qa h3 { font-size: calc(var(--step-3) * 0.95); }
.grid--qa { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid--thirds { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--mini { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); }
/* Least prominent tier (e.g. "Also in the platform"): a compact list, smaller than any card. */
.also-list { list-style: none; margin: 0; padding: 0; columns: 2 20rem; column-gap: 2.5rem; }
.also-list li { break-inside: avoid; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.also-list a { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; margin-right: 0.4em; }
.also-list a:hover { color: var(--pink-deep); }
.card--stage .stage__no { font-family: var(--font-charted); color: var(--pink); font-size: var(--step-3); line-height: 1; }

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.pill, .chip {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.2;
  padding: 0.3rem 0.6rem; color: var(--ink-2); background: var(--panel-2);
  border: 1px solid var(--line); clip-path: var(--clip-3); text-decoration: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chip { font-size: 0.9rem; padding: 0.5rem 0.9rem; color: var(--ink); background: var(--panel); }
a.chip:hover { border-color: var(--pink); color: var(--pink-deep); }
.availability-chip {
  display: inline-block; vertical-align: middle; margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; padding: 0.2rem 0.5rem;
  color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--line); clip-path: var(--clip-3);
}
.site-footer .availability-chip { color: var(--footer-ink-2); background: transparent; border-color: var(--footer-ink-2); margin-left: 0.5rem; }
.card__links .availability-chip { align-self: center; margin-left: -0.65rem; } /* sits beside the link before it, not a gap away */
.site-footer__product .availability-chip { margin-left: 0.7rem; }
.chip small { font-family: var(--font-mono); color: var(--ink-2); margin-left: 0.4rem; }
.acard__meta a { color: inherit; text-decoration: none; position: relative; z-index: 2; }
.acard__meta a:hover { color: var(--pink-deep); text-decoration: underline; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--line); max-width: 56rem; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-charted); font-size: var(--step-3); line-height: 1; color: var(--pink); }
.steps strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-2); max-width: 62ch; }

/* Timeline (About history, Ryan experience) */
.tl { list-style: none; margin: 0; padding: 0; max-width: 60rem; }
.tl > li { position: relative; padding: 0 0 clamp(1.75rem, 3vw, 2.75rem) 1.75rem; border-left: 4px solid var(--line); display: grid; gap: 0.3rem 2rem; }
.tl > li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl > li::before { content: ""; position: absolute; left: -8px; top: 0.3rem; width: 12px; height: 12px; background: var(--pink); }
.tl__when { font-family: var(--font-charted); font-size: var(--step-3); line-height: 1; color: var(--pink); margin: 0; }
.tl__what { min-width: 0; }
.tl__what h3 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.tl__what p { color: var(--ink-2); margin: 0 0 0.6em; max-width: 62ch; }
.tl__what p:last-child { margin-bottom: 0; }
.tl__what ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.tl__what li { margin-bottom: 0.45rem; }
.tl__what li::marker { color: var(--pink-deep); }
.tl__what a { color: var(--pink-deep); }
.tl__meta { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); margin: 0 0 0.5rem !important; }
@media (min-width: 48rem) { .tl > li { grid-template-columns: 9rem minmax(0, 1fr); padding-left: 2.25rem; } .tl--wide > li { grid-template-columns: 12rem minmax(0, 1fr); } .tl--wide .tl__when { font-size: 1.7rem; line-height: 1.05; } }

.founder { display: flex; gap: 1.25rem; align-items: center; margin-top: 2.5rem; max-width: 40rem; }
.founder p { margin: 0; color: var(--ink-2); }

/* Key facts */
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); max-width: 62rem; }
.facts > div { display: grid; gap: 0.2rem 2rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; color: var(--ink-2); }
.facts dd { margin: 0; color: var(--ink); }
.facts a { color: var(--pink-deep); }
@media (min-width: 40rem) { .facts > div { grid-template-columns: 12rem minmax(0, 1fr); } }

.principles--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)) !important; }
.principles li > p a { color: var(--pink-deep); }

blockquote.post { margin: 0; padding: 1.25rem 1.5rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--pink); max-width: 56rem; }
blockquote.post p { font-size: 1.05rem; margin: 0 0 0.75rem; }
blockquote.post footer { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-2); }

/* Pagination */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(2rem, 4vw, 3.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--font-label); font-size: 1.3rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pager a { color: var(--pink-deep); text-decoration: none; }
.pager a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pager span { color: var(--ink-2); }

/* Platform product pages (inside the Markus article) */
.page article > .heading.ppage-head { max-width: 68ch; }
.ppage-head .backlink { display: inline-block; margin-bottom: 1.5rem; font-family: var(--font-label); font-size: 1.2rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.ppage-head .backlink::before { content: "\2190 "; }
.ppage-head .lead { margin: 1.1rem 0 1.5rem; max-width: 56ch; }
.ppage-head .eyebrow { margin-bottom: 1rem; }
.ptail { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 68ch; }
.page article .ptail h2 { margin-top: 0; }
.ptail .chips { margin: 1.25rem 0 1.5rem; }

/* Article header */
article .heading .heading__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0 0 1.25rem; font-size: 1.2rem; }
article .heading .heading__meta time { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; color: var(--pink-deep); }
article .heading .heading__meta .pill { text-transform: none; }
article .heading .pill { color: var(--ink-2); text-decoration: none; }
article .heading .pill:hover { border-color: var(--pink); color: var(--pink-deep); }
article .heading .heading__dek { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 52ch; margin: 0 0 1.25rem; }
article .heading .authors { font-size: 0.9rem; }
.page article .heading h1 { font-size: clamp(2.5rem, 1.7rem + 3.4vw, 5rem); max-width: 18ch; }
.engage-box { --fill: var(--panel); margin: 3rem 0 0; padding: clamp(1.5rem, 3vw, 2.5rem); max-width: 68ch; }
.page article .engage-box h2 { margin-top: 0; font-size: var(--step-3); }
.engage-box p { color: var(--ink-2); }
.subhead { margin-top: clamp(2rem, 3vw, 3rem) !important; font-size: var(--step-3); }

/* ----------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .btn:active > span { transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* Align pictogram / title / body across cards in a row (subgrid). */
@supports (grid-template-rows: subgrid) {
  .grid--caps > .card { grid-row: span 3; display: grid; grid-template-rows: subgrid; gap: 0.9rem; align-content: start; }
  .grid--caps > .card > p { align-self: start; }
  .grid--2 > .case { grid-row: span 4; display: grid; grid-template-rows: subgrid; gap: 0.9rem; align-content: start; }
}

/* A pictogram never fills a wide viewport: it sits beside text in a column, capped. */
figure.px { max-inline-size: 36rem; margin-inline: auto; }
/* A pictogram embedded in an article body with {{pictogram <name>}} (anthus_mdx._convert_pictograms). */
.body-px { margin: 2rem 0; }
.body-px figure.px { max-inline-size: 30rem; margin-inline: 0; }
.hero__art figure.px, .heading__px figure.px { max-inline-size: 52rem; }
.acard__vis--px figure.px { max-inline-size: none; margin: 0; }

/* Buttons and pills inside article headers keep their own colours. */
article .heading a.btn { color: var(--on-pink); text-decoration: none; }
article .heading a.btn--ghost { color: var(--ink); }
.page article ul.pills { padding: 0; margin: 0 0 1rem; }
.page article ul.pills li { margin: 0; padding: 0; }
.ppage-head .backlink::before { margin-right: 0.4rem; }

.case__foot { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 0.6rem; }
.opsnote { display: flex; gap: 1.5rem; align-items: center; margin-top: clamp(1.5rem, 2.5vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 56rem; font-size: 0.93rem; color: var(--ink-2); }
.opsnote__px { flex: none; width: 9rem; }
.opsnote__px figure.px { max-inline-size: 9rem; }
.opsnote__px .px__cap { display: none; }
.opsnote p { margin: 0; }
.opsnote__h { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.15rem; color: var(--ink-2); margin-bottom: 0.3rem !important; }
@media (max-width: 40rem) { .opsnote { flex-direction: column; align-items: flex-start; } }

.shorter--flat { margin-top: 0; max-width: 56rem; }
.shorter--cols { max-width: none; }
/* Small post cards: a thumbnail, the date and the title; much lighter than the article cards. */
.mini-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 40rem) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }
.mini a { display: flex; flex-direction: column; gap: 0.35rem; color: var(--ink); text-decoration: none; }
.mini .acard__vis { border: 1px solid var(--line); background: var(--panel); margin: 0 0 0.4rem; }
.mini time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-2); }
.mini span { font-weight: 500; line-height: 1.35; }
.mini a:hover span { color: var(--pink-deep); text-decoration: underline; }
.shorter--cols li { flex-direction: column; gap: 0.2rem; }
@media (min-width: 64rem) { .shorter--cols ul { columns: 2; column-gap: 3rem; } .shorter--cols li { break-inside: avoid; } }

/* Draft review (shown by assets/drafts.js on ?drafts) */
.drafts-review[hidden] { display: none; }
.drafts-review { padding-block: var(--section-space); background: var(--panel); border-top: 1px dashed var(--pink); }
.drafts-review > .container > p:not(.eyebrow) { color: var(--ink-2); margin: 0.75rem 0 clamp(1.5rem, 2.5vw, 2.5rem); }
.pill--draft { font-family: var(--font-label); font-size: 1rem; letter-spacing: 0.08em; background: var(--pink); color: var(--on-pink); border-color: var(--pink); }

/* ----------------------------------------------------------- Solution marks
   Each solution's own logo (web/solution_marks.py), small to the right of its name in the footer's Solutions block (a dark
   band in both modes, so they follow the footer ink). Chatticus clay and the Primus gradient are the brands' own.
   Animations run only while on screen (.is-live, set by assets/px-live.js) and never under reduced motion. */
.site-footer__pname { display: inline-flex; align-items: center; gap: 0.7rem; }
.sm { flex: none; height: 2rem; width: auto; color: var(--footer-ink); overflow: visible; }
.sm--cyclotron { width: 3.5rem; height: auto; }
.sm--papyrus { width: 1.5rem; height: auto; }
.sm--chatticus, .sm--primus { width: 2rem; }
/* The same marks to the right of the name on the solution cards (light or dark page, so page ink). */
.product__name { display: flex; align-items: center; gap: 0.9rem; }
.product__name .sm { color: var(--ink); height: 3.2rem; }
.product__name .sm--cyclotron { width: 5.6rem; height: auto; }
.product__name .sm--papyrus { width: 2.4rem; height: auto; }
.product__name .sm--chatticus, .product__name .sm--primus { width: 3.2rem; }
/* Client logos: beside the client name on the case cards and the article title, same height as the solution marks (about twice the name's cap height). */
.case__name { display: flex; align-items: center; gap: 0.9rem; }
.case__name .sm, .heading__title .sm { color: var(--ink); height: 3.2rem; width: auto; flex: none; }
.heading__title { display: flex; align-items: center; flex-wrap: wrap; column-gap: 1rem; }
.heading__title .sm { height: 0.8em; }
/* Call Criteria: its light blue, and a navy that turns light ink on the dark page. Venue Driver is a transparent PNG. */
.sm--call-criteria { --cc-navy: #152f58; }
@media (prefers-color-scheme: dark) { .sm--call-criteria { --cc-navy: var(--ink); } }
.sm-cc-navy { color: var(--cc-navy); stroke: var(--cc-navy); }
.sm-cc-blue path { stroke: #1db7ec; }
.sm-cc-blue rect { fill: #1db7ec; }
.sm--auritus { object-fit: contain; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; width: auto; }
/* Auritus: the megaphone engraving is dark ink on white. In the footer (a dark band) it is inverted and screened onto the band; on the light page it is multiplied onto the page. */
.site-footer .sm--auritus { filter: invert(1); mix-blend-mode: screen; }
.product__name .sm--auritus { mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .product__name .sm--auritus { filter: invert(1); mix-blend-mode: screen; } }
.sm--venue-driver { object-fit: contain; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; width: auto; }

/* Cyclotron: arrows ride the racetrack. At rest the logo pose; the animated loop pose matches it exactly. */
.sm-cyc-live { display: none; }
.sm--cyclotron.is-live .sm-cyc-live { display: inline; }
/* The logo pose between laps, the loop pose (arrowheads riding the path) only while the arrows move. The motion is
   SMIL in the SVG (web/solution_marks.py), in user units: no CSS px lengths, so Safari text zoom cannot misplace it. */
.sm-cyc-run { stroke-dasharray: 42.789 50.79; }

/* Chatticus: clay body and paper eyes (the brand's), shadow bubble from the site's light/dark pair. Eyes glance and blink. */
.sm-chat-shadow { fill: #6f6c58; } /* the Chatticus dark-surface shadow bubble, lifted to read on the footer */
.sm-chat-body { fill: #ef6a47; }
.sm-chat-eyes { fill: #f2efe7; }

/* Primus: the grid drifts through the brand gradient (the original takes 80s a lap; this is a small mark). */
.sm-pri-p { fill: var(--footer-bg); fill-opacity: 0.85; }
.sm-pri-cell { fill: #0d74ce; }
.sm-pri-c1 { fill: #5eb1ef; } .sm-pri-c2 { fill: #0d74ce; } .sm-pri-c3 { fill: #7a4fc0; } .sm-pri-c4 { fill: #c2298a; }
.sm--primus.is-live .sm-pri-cell { animation: sm-pri-drift 14s linear infinite; }
.sm--primus.is-live .sm-pri-c1 { animation-delay: 0s; } .sm--primus.is-live .sm-pri-c2 { animation-delay: -3.5s; }
.sm--primus.is-live .sm-pri-c3 { animation-delay: -7s; } .sm--primus.is-live .sm-pri-c4 { animation-delay: -10.5s; }
@keyframes sm-pri-drift { 0%, 100% { fill: #5eb1ef; } 12% { fill: #0d74ce; } 55% { fill: #c2298a; } }

@media (prefers-reduced-motion: reduce) {
  .sm-cyc-live { display: none !important; }
  .sm-cyc-static { display: inline !important; }
  .sm--primus .sm-pri-cell { animation: none !important; }
}

/* ------------------------------------------------------- engage inquiry form */

.inquiry-guide { margin-bottom: 2.5rem; }
.inquiry-guide ol { padding-left: 1.25rem; }
.inquiry-guide li { margin-top: 0.5rem; }

.inquiry {
  --inquiry-error: #b3261e;
  max-width: 40rem;
  display: grid;
  gap: 1.5rem;
  font-family: var(--font-body);
}
@media (prefers-color-scheme: dark) { .inquiry { --inquiry-error: #ff8f86; } }
.inquiry[hidden], .inquiry [hidden] { display: none !important; }
.inquiry__field { display: grid; gap: 0.45rem; }
.inquiry label {
  font-family: var(--font-label);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.inquiry__opt { color: var(--ink-2); }
.inquiry input, .inquiry textarea {
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  margin: 0;
}
.inquiry textarea { min-height: 12rem; resize: vertical; font-family: var(--font-body); }
.inquiry input:hover, .inquiry textarea:hover { border-color: var(--ink-2); }
.inquiry input:focus-visible, .inquiry textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}
.inquiry input:disabled, .inquiry textarea:disabled { opacity: 0.65; cursor: not-allowed; }
.inquiry__notice, .inquiry__alt { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.inquiry__actions { display: flex; }
.inquiry button.btn { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; }
.inquiry button.btn:disabled { cursor: not-allowed; opacity: 0.6; filter: none; }
.inquiry__busy { display: none; }
.inquiry[data-state="sending"] .inquiry__idle { display: none; }
.inquiry[data-state="sending"] .inquiry__busy { display: inline; }
.inquiry[data-state="sending"] { cursor: progress; }
.inquiry__error {
  margin: 0;
  color: var(--inquiry-error);
  font-weight: 600;
  line-height: 1.5;
}
.inquiry__error:empty, .inquiry__receipt:empty { display: none; }
.inquiry__error a { color: inherit; text-decoration: underline; }
.inquiry__receipt {
  padding: 1rem 1.1rem;
  border: 2px solid var(--blue);
  border-left-width: 6px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 30rem) {
  .inquiry button.btn { width: calc(100% - 4px); }
  .inquiry button.btn > span { width: 100%; }
  .inquiry button.btn > span { white-space: normal; text-align: center; }
}

/* ---- arcade-pictograms.css ---- */
/* Arcade pictograms (DESIGN.md §6). Motion lives in the SVG itself (SMIL). */
.px{
  --px-ink:var(--ink,#1b1426);--px-pink:var(--pink,#dc5497);--px-blue:var(--blue,#0389d7);
  --px-dim:var(--line,#d6e6f2);--px-bg:var(--bg,#fbfdff);
  --px-ink-2:var(--ink-2,#4a4157);
  margin:0;display:block;
}
@media (prefers-color-scheme:dark){
  .px{
    --px-ink:var(--ink,#f3eef8);--px-pink:var(--pink,#ff57b4);--px-blue:var(--blue,#3fb2f7);
    --px-dim:var(--line,#2e2540);--px-bg:var(--bg,#0e0b16);--px-ink-2:var(--ink-2,#b9aec8);
  }
}
.px .pk{fill:var(--px-ink)}
.px .pp{fill:var(--px-pink)}
.px .pb{fill:var(--px-blue)}
.px .pd{fill:var(--px-dim)}
.px .pg{fill:var(--px-bg)}
.px__svg{display:block;width:100%;height:auto;shape-rendering:crispEdges}
.px__t{font-family:"Jersey 10",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;font-weight:400}

.px__cap{margin-top:.75rem;color:var(--px-ink-2);font-size:.9375rem;line-height:1.5}
.px__cap p{margin:0}
.px__lg{list-style:none;margin:0 0 .5rem;padding:0;display:flex;flex-wrap:wrap;gap:.35rem 1.1rem;
  font-family:"Jersey 10",ui-monospace,monospace;text-transform:uppercase;letter-spacing:.08em;
  font-size:1.05rem;line-height:1;color:var(--px-ink)}
.px__lg li{display:inline-flex;align-items:center;gap:.4rem}
.px__g{height:.95rem;width:auto;flex:none;display:block}

.px__stage{display:block}
.px--hl [data-v="tall"]{display:none}
@media (max-width:40rem){
  .px--hl [data-v="wide"]{display:none}
  .px--hl [data-v="tall"]{display:block}
}

/* Motion is SMIL inside the SVG (web/arcade_pictograms.py): every length is an SVG user unit, so text zoom
   cannot move a sprite off its track. assets/px-live.js pauses it off screen and drops it for reduced motion. */

/* Page actions (Papyrus core markup, on articles): quiet outline buttons in the site's own tokens. Copy Markdown is hidden
   until the script runs (core), so without JavaScript the group is a row of plain links. */
.markus-page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 2.5rem; margin: 0 0 1.25rem; position: relative; font-family: var(--font-body); font-size: .9rem; }
.markus-page-actions :is(button, a) { font: inherit; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--ink); text-decoration: none; cursor: pointer; }
.markus-page-actions :is(button, a):hover { background: var(--panel-2); border-color: var(--pink-deep); }
.markus-page-actions :is(button, a):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.markus-page-actions .markus-copy-md { visibility: hidden; }
.markus-actions-js .markus-copy-md { visibility: visible; }
.markus-actions-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.markus-actions-menu { position: relative; }
.markus-actions-menu [role="menu"] { position: absolute; z-index: 20; top: calc(100% + .25rem); left: 0; min-width: 14rem; margin: 0; padding: .25rem; list-style: none; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.markus-actions-menu [role="menu"][hidden] { display: none; }
.markus-actions-menu [role="menuitem"] { display: block; border: 0; background: transparent; width: 100%; text-align: left; }
.markus-actions-menu [role="menuitem"]:is(:hover, :focus-visible) { background: var(--panel-2); }
.markus-actions-status { min-width: 6rem; font-size: .875rem; color: var(--ink-2); }
.markus-actions-fallback { width: 100%; min-height: 6rem; }
/* Icon form (projection.json pageActions.display "icons"): flat tones and rounded rectangles, no outlines. Core's own
   icon rules set the sizes; these set the tones from the site tokens in Day and Night. Every icon button carries a text
   name (aria-label and title), and the menu items spell their actions out in words. */
.markus-page-actions-icons { gap: .25rem; --papyrus-action-bg: var(--panel-2); --papyrus-menu-bg: var(--panel-2); --papyrus-hover: color-mix(in srgb, var(--ink) 14%, var(--panel-2)); --papyrus-focus: var(--blue); }
.markus-page-actions-icons :is(.markus-icon-action, .markus-actions-menu-button) { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: .75rem; background: var(--panel-2); color: var(--ink); }
.markus-page-actions-icons :is(.markus-icon-action, .markus-actions-menu-button):hover,
.markus-page-actions-icons .markus-actions-menu-button[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 14%, var(--panel-2)); color: var(--ink); border: 0; }
.markus-page-actions-icons :is(a, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.markus-page-actions-icons .markus-actions-menu [role="menu"] { width: min(18rem, 100%); min-width: 0; box-sizing: border-box; padding: .375rem; border: 0; border-radius: .75rem; background: var(--panel-2); box-shadow: 0 10px 28px rgba(14, 11, 22, .22); }
.markus-page-actions-icons .markus-actions-menu [role="menuitem"] { padding: .75rem; border: 0; border-radius: .5rem; background: transparent; color: var(--ink); }
.markus-page-actions-icons .markus-actions-menu [role="menuitem"]:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--ink) 14%, var(--panel-2)); }
.markus-page-actions-icons .markus-actions-menu [role="menuitem"]:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
