/* PropTexx — Editorial European publication aesthetic Warm cream background, near-black text, single warm accent */

:root {
  --bg: #FAFAF6;
  --bg-deep: #F2EEE3;
  --ink: #14110D;
  --ink-2: #2A2620;
  --ink-3: #5C554B;
  --ink-4: #8E867A;
  --rule: #D9D2C2;
  --rule-soft: #E8E2D2;
  --accent: #E8601C;
  --accent-deep: #C24A0F;
  --paper-shadow: 0 30px 60px -30px rgba(20, 17, 13, 0.18);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--accent); color: #fff; }

/* ============== TYPE ============== */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.display--invert { color: #F4EEDF; }
.display--invert em { color: var(--accent); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.eyebrow__sep { color: var(--rule); }

.muted { color: var(--ink-3); }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(250, 250, 246, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}
.brand-logo--invert {
  filter: invert(1) brightness(1.1);
}
.footer .brand-logo {
  height: 36px;
}
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--accent-deep); }
.nav__cta {
  font-size: 14px;
  padding: 10px 18px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #FFFFFF;
  font-weight: 500;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav__cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #FFFFFF; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: clamp(56px, 8vh, 96px) var(--gutter) clamp(40px, 6vh, 64px);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 280vh;
  display: flex;
  flex-direction: column;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  position: sticky;
  top: 0;
  height: 100vh;
}
.hero__masthead { display: flex; flex-direction: column; }
.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 20px 0 24px;
  text-wrap: balance;
}
.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.hero__lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__byline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.byline__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: block;
}
.byline__val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
}

.hero__plate {
  margin: 0;
}
.hero__photo {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--paper-shadow);
}
.hero__photo .img-ph {
  aspect-ratio: 4 / 3;
  max-height: 64vh;
}
.hero__photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 22px 16px;
  background: linear-gradient(to top, rgba(20, 19, 16, 0.78) 0%, rgba(20, 19, 16, 0) 100%);
  color: #F4EEDF;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}
.hero__photo-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 223, 0.75);
}
.hero__photo-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: #fff;
}
/* Before / After scroll-driven reveal */
.hero__photo--reveal {
  position: relative;
  isolation: isolate;
}
.hero__layer {
  position: relative;
  inset: 0;
}
.hero__layer--before { position: relative; }
.hero__layer--after {
  position: absolute;
  inset: 0;
  will-change: clip-path;
}
.hero__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: translateX(-1px);
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.hero__divider-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 4px rgba(250,250,246,0.85);
}
.hero__divider-dot::before,
.hero__divider-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}
.hero__divider-dot::before {
  left: 4px;
  border-right-color: rgba(255,255,255,0.95);
}
.hero__divider-dot::after {
  right: 4px;
  border-left-color: rgba(255,255,255,0.95);
}
.hero__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero__label {
  position: absolute;
  top: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,250,246,0.96);
  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 2px;
  transition: opacity 200ms ease;
}
.hero__label--before { left: 16px; }
.hero__label--after { right: 16px; }
.hero__chip {
  position: absolute;
  background: rgba(250, 250, 246, 0.96);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  max-width: 240px;
}
.hero__chip--tl { top: 24px; left: 24px; }
.hero__chip--br { bottom: 24px; right: 24px; }
.chip__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.chip__value {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.chip__value strong { color: var(--accent-deep); font-weight: 600; }

.hero__plate figcaption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 32em;
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}
.rule__line { flex: 1; height: 1px; background: var(--rule); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ============== IMAGE PLACEHOLDERS ============== */
.img-ph {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  overflow: hidden;
}
.img-ph__bands {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
}
.img-ph__band {
  flex: 1;
  width: 100%;
  position: relative;
}
.img-ph__band:nth-child(odd)::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,0.03) 0 2px,
    transparent 2px 16px
  );
}
.img-ph__noise {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.12), transparent 50%);
  mix-blend-mode: overlay;
}
.img-ph__caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  background: rgba(20,17,13,0.55);
  backdrop-filter: blur(4px);
  padding: 6px 10px;
  text-transform: lowercase;
}
.img-ph__crosshair {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
  line-height: 0;
  margin-top: -1px;
}

/* ============== KEY NUMBERS ============== */
.numbers {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 var(--gutter);
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.numbers__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.numbers__item {
  padding: 36px 28px 36px 0;
  border-right: 0;
}
.numbers__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.numbers__label {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}
.numbers__note {
  margin-top: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

/* ============== SECTIONS ============== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.section--results {
  background: #14110D;
  color: #F4EEDF;
  max-width: none;
  margin-top: clamp(60px, 8vh, 100px);
}
.section--results .results__head,
.section--results .results__statement,
.section--results .bars,
.section--results .results__footnote,
.section--results .results__quote {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section--results .mast {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.section--results > * { padding-left: var(--gutter); padding-right: var(--gutter); }

/* MAST */
.mast {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: clamp(40px, 6vh, 80px);
  margin-bottom: 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mast--dark { color: rgba(244, 238, 223, 0.72); }
.mast__line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--ink-3);
}
.mast--dark .mast__line { background: rgba(244, 238, 223, 0.4); }

/* SECTION HEAD */
.section__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.section__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38em;
}
.section__lede p { margin: 0 0 12px; }
.section__lede p:last-child { margin-bottom: 0; }

/* ============== TIMELINE ============== */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 36px 0;
}
.timeline__rail {
  display: none;
}
.timeline__step {
  padding: 0 18px;
  border-right: 1px solid var(--rule-soft);
  position: relative;
}
.timeline__step:last-child { border-right: 0; }
.timeline__step:first-child { padding-left: 0; }

.timeline__node {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.timeline__mo {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.timeline__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ============== PULL QUOTE ============== */
.pullquote {
  margin: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 80px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 36em;
  margin-inline: auto;
  text-align: center;
}
.pullquote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.pullquote cite {
  margin-top: 24px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ============== DATA CARDS ============== */
.datacards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.datacard {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--rule-soft);
}
.datacard:last-child { border-right: 0; padding-right: 0; }
.datacard__n {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}
.datacard__label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.datacard__note {
  margin-top: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

/* ============== BRAND GRID ============== */
.catgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.catcard {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background .25s ease, transform .25s ease;
}
.catcard--active { background: #fff; }
.catcard__photo { position: relative; }
.catcard__body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catcard__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.catcard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.catcard__cov {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.catcard__pct {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.01em;
}
.catcard__cov-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.catcard__bar {
  height: 2px;
  background: var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.catcard__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent);
  transition: width .6s cubic-bezier(.2,.8,.2,1);
}
.catcard__brands {
  font-size: 13px;
  color: var(--ink-2);
  margin: 4px 0 0;
  font-weight: 500;
}
.catcard__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}

/* ============== CPMA ============== */
.cpma {
  margin-top: clamp(64px, 10vh, 120px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  padding: 48px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cpma__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cpma__abbr {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(60px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--accent-deep);
}
.cpma__expand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
}
.cpma__body {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: center;
}
.cpma__body p { margin: 0; text-wrap: pretty; }
.cpma__body strong {
  color: var(--accent-deep);
  font-weight: 600;
}

/* ============== RESULTS ============== */
.results__head { margin-bottom: 48px; }
.results__statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
  color: rgba(244, 238, 223, 0.92);
  max-width: 36em;
  margin-bottom: 64px;
}
.results__statement p { margin: 0 0 18px; }
.results__statement strong {
  color: var(--accent);
  font-weight: 600;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 24px;
}
.bar { width: 100%; }
.bar__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.bar__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.012em;
  color: #F4EEDF;
}
.bar__pct {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--accent);
}
.bar__track {
  height: 28px;
  background: rgba(244, 238, 223, 0.08);
  border: 1px solid rgba(244, 238, 223, 0.14);
  position: relative;
  overflow: hidden;
}
.bar__fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(0);
}
.bar__fill--us {
  background: linear-gradient(90deg, #C24A0F, #E8601C);
}
.bar__fill--them {
  background: rgba(244, 238, 223, 0.28);
}
@keyframes barUs {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes barThem {
  from { transform: scaleX(0); }
  to   { transform: scaleX(0.25); }
}
.bar__fill--us.bar--animated {
  animation: barUs 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.bar__fill--them.bar--animated {
  animation: barThem 1.4s cubic-bezier(.2,.8,.2,1) forwards;
}
.bar__sub {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 238, 223, 0.55);
}

.results__footnote {
  margin: 24px 0 64px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: rgba(244, 238, 223, 0.6);
  max-width: 40em;
}

.results__quote {
  margin: 0;
  padding: 40px 0 0;
  border-top: 1px solid rgba(244, 238, 223, 0.18);
  max-width: 40em;
}
.results__quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.3;
  color: #F4EEDF;
  margin: 0 0 14px;
}
.results__quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============== CLIENTS ============== */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.client {
  background: var(--bg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  transition: background .2s ease;
}
.client:hover { background: #fff; }
.client__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.client__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-4);
}
.client__status {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
}

.client__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.client__region {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-deep);
}
.client__note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: auto 0 0;
}

/* ============== DEMO — LIVE SEARCH ============== */
.section--demo {
  background: var(--bg-deep);
  max-width: none;
  margin: 0;
  padding: clamp(60px, 8vh, 100px) var(--gutter) clamp(80px, 10vh, 120px);
}
.section--demo .mast,
.section--demo .demo__head,
.section--demo .demo__searchwrap,
.section--demo .demo__statusbar,
.section--demo .demo__results,
.section--demo .demo__footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.demo__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: 32px;
}
.demo__head .display { margin: 0; }
.demo__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
  max-width: 28em;
}

/* Search input */
.demo__searchwrap {
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 24px 28px 22px;
}
.demo__searchrow {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}
.demo__submit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: #fff;
  background: var(--accent-deep);
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease;
}
.demo__submit:hover { background: var(--ink); }
.demo__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 4px;
  animation: demoPulse 1.6s ease-in-out infinite;
}
.demo__searchicon {
  font-size: 28px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  line-height: 1;
}
.demo__searchinput {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  color: var(--ink);
  border: 0;
  background: transparent;
  outline: none;
  padding: 6px 0;
  letter-spacing: -0.01em;
}
.demo__searchinput::placeholder { color: var(--ink-4); font-style: italic; }
.demo__clear {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--ink-3);
  border-radius: 50%;
  transition: background .15s ease;
}
.demo__clear:hover { background: var(--rule-soft); }
.demo__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 16px;
}
.demo__examples-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}
.demo__example {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.demo__example:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: #fff;
}

/* Status bar */
.demo__statusbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  margin-bottom: 24px;
  min-height: 22px;
}
.demo__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.demo__status--done { color: var(--accent-deep); }
.demo__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: demoPulse 0.8s ease-in-out infinite;
}
.demo__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  border-radius: 50%;
}
@keyframes demoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* Results grid */
.demo__results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo__card {
  background: var(--bg);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.demo__card-photo {
  position: relative;
}
.demo__card-photo .img-ph { aspect-ratio: 3/2; }
.demo__card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: #F4EEDF;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 4px 10px;
  letter-spacing: -0.01em;
}
.demo__card-body {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.demo__card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.demo__card-sep { color: var(--ink-4); }
.demo__card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.demo__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.demo__card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-deep);
  padding: 3px 8px;
  text-transform: lowercase;
}
.demo__empty {
  grid-column: 1 / -1;
  padding: 40px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-3);
  text-align: center;
}
.demo__empty em { color: var(--ink); }

/* Footer */
.demo__footer {
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.demo__note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 42em;
}
.demo__note strong {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

/* ============== FOOTER ============== */
.footer {
  background-color: #14110D !important;
  background: var(--ink);
  color: #F4EEDF;
  padding: clamp(64px, 9vh, 100px) var(--gutter) 36px;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 238, 223, 0.16);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer__tag {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 238, 223, 0.85);
  margin: 0;
  max-width: 22em;
}

.footer__statement {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244, 238, 223, 0.7);
}
.footer__statement p { margin: 0 0 12px; }
.footer__link {
  color: var(--accent);
  border-bottom: 1px solid rgba(184, 136, 74, 0.4);
}
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer__nav h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 238, 223, 0.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer__nav a {
  font-size: 14px;
  color: rgba(244, 238, 223, 0.85);
  transition: color .15s ease;
}
.footer__nav a:hover { color: var(--accent); }

.footer__rule {
  max-width: var(--max);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
  color: rgba(244, 238, 223, 0.7);
  font-family: var(--font-display);
  font-style: italic;
}

/* ============== RESPONSIVE ============== */
/* ============== NAV MOBILE ============== */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #14110D;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav--mobile-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--mobile-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--mobile-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== 1080px BREAKPOINT ============== */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__plate { order: -1; max-width: 100%; }
  .section__head { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline__step { padding: 16px; border-bottom: 1px solid var(--rule-soft); }
  .timeline__step:nth-child(3n) { border-right: 0; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .demo__head { grid-template-columns: 1fr; }
  .demo__results { grid-template-columns: 1fr 1fr; }
  .demo__footer { grid-template-columns: 1fr; align-items: flex-start; }
  .cpma { grid-template-columns: 1fr; }
}

/* ============== 720px BREAKPOINT ============== */
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; overflow-x: hidden; }

  /* Nav */
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__inner { padding: 14px var(--gutter); }
  .nav__links {
    display: none;
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(100vh - 53px);
    background: #FAFAF6;
    background-color: #FAFAF6 !important;
    flex-direction: column;
    gap: 0;
    padding: 0 0 40px;
    z-index: 9999;
    overflow-y: auto;
    border-top: 1px solid var(--rule-soft);
    margin: 0;
  }
  .nav--mobile-open .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 18px var(--gutter);
    font-size: 24px;
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink);
  }

  /* Hero — disable sticky scroll, stack cleanly */
  .hero {
    min-height: unset;
    padding: 0;
  }
  .hero__grid {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__plate {
    order: -1;
    margin: 0;
    width: 100%;
  }
  .hero__photo .img-ph {
    aspect-ratio: 4/3;
    max-height: 56vw;
  }
  .hero__masthead {
    padding: 28px var(--gutter) 40px;
  }
  .hero__headline {
    font-size: clamp(34px, 9vw, 52px);
    margin: 12px 0 16px;
  }
  .hero__lede { font-size: 16px; }
  .hero__chip { display: none; }
  .hero__byline { display: none; }
  .hero__rule { margin-top: 32px; font-size: 12px; }
  .hero__cta { gap: 10px; }

  /* Display type — reduce minimum on mobile */
  .display { font-size: clamp(34px, 9vw, 92px); }

  /* Numbers */
  .numbers { margin: 0; padding: 0 var(--gutter); }
  .numbers__inner { grid-template-columns: repeat(2, 1fr); }
  .numbers__item { padding: 22px 12px 22px 0; border-bottom: 1px solid var(--rule-soft); }
  .numbers__item:nth-child(even) { border-right: 0; padding-right: 0; }
  .numbers__item:nth-child(3),
  .numbers__item:nth-child(4) { border-bottom: 0; }

  /* Sections */
  .section { padding: clamp(44px, 8vw, 80px) var(--gutter); }
  .section__head { gap: 16px; margin-bottom: 32px; }
  .section__lede { font-size: 15px; }

  /* Timeline */
  .timeline { grid-template-columns: 1fr; border-bottom: none; }
  .timeline__step {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .timeline__step:last-child { border-bottom: 0; }

  /* Data cards */
  .datacards { grid-template-columns: 1fr 1fr; }
  .datacard { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--rule-soft); }
  .datacard:nth-child(even) { border-right: 0; padding-right: 0; }
  .datacard:nth-child(3),
  .datacard:nth-child(4) { border-bottom: 0; }

  /* CPMA */
  .cpma { padding: 32px 0; gap: 20px; }
  .cpma__abbr { font-size: clamp(48px, 12vw, 72px); }

  /* Categories */
  .catgrid { grid-template-columns: 1fr; }

  /* Clients */
  .clients { grid-template-columns: 1fr; }
  .client { min-height: unset; padding: 22px var(--gutter); }

  /* Demo section */
  .section--demo { padding: 44px var(--gutter) 56px; }
  .demo__searchwrap { padding: 18px 16px 16px; }
  .demo__searchinput { font-size: clamp(16px, 5vw, 22px); }
  .demo__submit { font-size: 14px; padding: 8px 12px; }
  .demo__examples { gap: 6px 8px; margin-top: 12px; }
  .demo__example { font-size: 13px; padding: 5px 10px; }
  .demo__results { grid-template-columns: 1fr; gap: 16px; }
  .demo__statusbar { font-size: 10px; }

  /* Results dark section */
  .results__statement { font-size: 17px; margin-bottom: 40px; }
  .bars { gap: 28px; }
  .bar__name { font-size: 18px; }
  .bar__pct { font-size: clamp(28px, 8vw, 48px); }
  .bar__track { height: 20px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }

  /* Page hero (portals/brands/arc pages) */
  .page-hero { padding: 44px var(--gutter) 36px; }
  .page-hero__headline { font-size: clamp(38px, 10vw, 72px); }
  .page-hero__lede { font-size: 16px; }

  /* Pull quote */
  .pullquote p { font-size: clamp(20px, 5.5vw, 28px); }

  /* Agencies CTA */
  .agencies__actions { flex-direction: column; }
  .agencies__actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* Contact pages */
  .contact-wrap { grid-template-columns: 1fr; padding: 36px var(--gutter) 56px; }
  .contact-aside { position: static; order: -1; }
  .form-row--2 { flex-direction: column; }

  /* Legal pages */
  .legal-wrap { grid-template-columns: 1fr; padding: 36px var(--gutter) 56px; }
  .legal-aside { position: static; order: -1; }
  .legal-hero { padding: 44px var(--gutter) 32px; }
  .legal-hero__title { font-size: clamp(36px, 10vw, 60px); }
}

/* ============== 480px BREAKPOINT ============== */
@media (max-width: 400px) {
  :root { --gutter: 16px; }

  .numbers__inner { grid-template-columns: 1fr; }
  .numbers__item { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .numbers__item:last-child { border-bottom: 0; }

  .datacards { grid-template-columns: 1fr; }
  .datacard { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .datacard:last-child { border-bottom: 0; }

  .footer__nav { grid-template-columns: 1fr; gap: 8px; }

  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  .page-hero__cta { flex-direction: column; }
  .page-hero__cta .btn { width: 100%; justify-content: center; }

  .demo__examples { flex-direction: column; align-items: flex-start; }
  .demo__examples-label { margin-bottom: 4px; }
}


/* PAGE HERO — used on portals/brands/arc/company */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 4vw, 56px) clamp(56px, 8vh, 96px);
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero__inner { max-width: 980px; }
.page-hero .eyebrow {
  margin-bottom: 28px;
}
.page-hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 104px);
  line-height: 0.97;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.page-hero__headline em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.page-hero__lede {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  max-width: 38em;
  color: var(--ink-2);
  margin: 0 0 36px;
}
.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-hero__hook {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.4;
  color: var(--accent-deep);
  max-width: 32em;
  margin: 0 0 36px;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  text-wrap: balance;
}

/* CONTACT PAGES — base layout */
.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) clamp(20px, 4vw, 56px) clamp(64px, 10vh, 120px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-aside {
  position: sticky;
  top: 100px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
}
.contact-aside h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 16px;
}
.contact-aside p { margin: 0 0 14px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.contact-form .btn {
  align-self: flex-start;
  margin-top: 12px;
}
.contact-form__legal {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.5;
}

/* LEGAL PAGES — base layout */
.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 9vh, 100px) clamp(20px, 4vw, 56px) clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--rule-soft);
}
.legal-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.legal-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  margin: 0 0 16px;
  color: var(--ink);
}
.legal-hero__updated {
  font-size: 14px;
  color: var(--ink-3);
  font-style: italic;
}
.legal-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vh, 80px) clamp(20px, 4vw, 56px) clamp(64px, 10vh, 120px);
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 100px;
  font-size: 13px;
  line-height: 1.7;
}
.legal-aside h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 12px;
}
.legal-aside ul { list-style: none; padding: 0; margin: 0; }
.legal-aside li { margin-bottom: 8px; }
.legal-aside a { color: var(--ink-2); }
.legal-aside a:hover { color: var(--accent-deep); }
.legal-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38em;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--ink);
  margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 28px 0 8px;
}
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px 20px; padding: 0; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent-deep); text-decoration: underline; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.form-optional {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-4);
}
.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }
.form-submit { margin-top: 8px; }

/* LOGIC / 3-COL FRAMEWORKS — portals/brands/arc/integration */
.section--logic .section__head,
.section--cpma .section__head,
.section--integration .section__head { margin-bottom: 0; }
.logic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 7vh, 80px);
  align-items: start;
}
.logic__col {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.logic__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.logic__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--ink);
}
.logic__body {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* EXPANDED TIMELINE (portals) */
.xtimeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.xtimeline__step {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 28px 36px;
}
.xtimeline__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.xtimeline__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
}
.xtimeline__mo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}
.xtimeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--ink);
}
.xtimeline__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* TERMS / KV TABLE */
.terms {
  margin: clamp(48px, 7vh, 80px) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.terms__row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.terms__k {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-3);
  margin: 0;
}
.terms__v {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* RESULTS — condensed (portals) */
.section--results-condensed { padding-bottom: clamp(80px, 10vh, 120px); }
.section--results-condensed .results__statement { margin-bottom: 36px; }

/* QUOTES SECTION */
.section--quotes .quotes {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 980px;
  margin: 0 auto;
}

/* CTA BLOCK (used on every page bottom) */
.section--cta { padding-top: clamp(60px, 8vh, 100px); }
.cta {
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--ink);
  padding-top: 56px;
}
.cta .display { margin-bottom: 24px; }
.cta__lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38em;
  margin: 0 0 36px;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* INVENTORY (brands) */
.invlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}
.invcard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.invcard__photo .img-ph { width: 100%; }
.invcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}
.invcard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.invcard__cov {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.invcard__pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--accent-deep);
  line-height: 1;
}
.invcard__cov-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.invcard__bar {
  height: 4px;
  background: var(--rule-soft);
  margin-bottom: 16px;
  overflow: hidden;
}
.invcard__bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(.2,.8,.2,1);
}
.invcard__brands {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.invcard__body-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
  max-width: 56em;
}

/* 3-TIER (brands) */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: clamp(48px, 7vh, 80px);
}
.tier {
  border-right: 1px solid var(--rule);
  padding: 28px 24px 36px;
}
.tier:last-child { border-right: none; }
.tier__head { margin-bottom: 24px; }
.tier__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 12px;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0;
}
.tier__pct {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.tier__pct-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 60px);
  color: var(--accent-deep);
  line-height: 1;
}
.tier__pct-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tier__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* STYLES (brand intelligence) */
.section--styles .styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.style {
  padding: 28px 22px 32px;
  border-right: 1px solid var(--rule);
}
.style:last-child { border-right: none; }
.style__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 14px;
}
.style__k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}
.style__brands {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

/* ARC PARTS (technology) */
.arcparts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: clamp(48px, 7vh, 80px);
}
.arcpart {
  border-right: 1px solid var(--rule);
  padding: 32px 28px 40px;
}
.arcpart:last-child { border-right: none; }
.arcpart__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.arcpart__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.arcpart__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

/* ARCH DIAGRAM */
.section--arch .arch {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68em;
  margin: 0 0 56px;
}
.section--arch .arch p { margin: 0 0 18px; }
/* Architecture diagram — hide on mobile, show on desktop only */
.archdiagram { display: none; }
@media (min-width: 721px) {
  .archdiagram {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--rule);
    padding-top: 40px;
    margin-top: 40px;
  }
}
.archdiagram__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  flex-shrink: 0;
}
.archdiagram__col--in { min-width: 140px; }
.archdiagram__col--core { flex: 1; align-items: stretch; margin: 0 8px; }
.archdiagram__col--out { min-width: 180px; }
.archdiagram__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.archdiagram__node {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  background: var(--bg);
  white-space: nowrap;
}
.archdiagram__nodes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.archdiagram__core {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #F4EEDF;
}
.archdiagram__core-row {
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(244, 238, 223, 0.18);
}
.archdiagram__core-row:last-child { border-bottom: 0; }
.archdiagram__arrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 28px;
  padding: 0 16px;
  flex-shrink: 0;
  align-self: center;
  margin-top: 28px;
}

/* SEARCHBODY (technology) */
.searchbody {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68em;
  margin: 0;
}
.searchbody p { margin: 0 0 20px; }
.searchbody em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

/* INFRA STATS */
.infrastats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  margin-top: clamp(40px, 6vh, 64px);
}
.infrastat {
  padding: 32px 24px 36px;
  border-right: 1px solid var(--rule);
}
.infrastat:last-child { border-right: none; }
.infrastat__n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 14px;
}
.infrastat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.infrastat__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.infra__footnote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  margin: 24px 0 0;
}

/* COMPANY PAGE */
.thesis {
  max-width: 880px;
  margin: 0 auto;
}
.thesis__p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.thesis__p--emphasis {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 36px;
}
.thesis__p em {
  font-style: italic;
  color: var(--accent-deep);
}

.offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.office {
  padding: 32px 28px 40px;
  border-right: 1px solid var(--rule);
}
.office:last-child { border-right: none; }
.office__no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.office__city {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.office__role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.office__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0;
}

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: clamp(40px, 6vh, 64px);
}
.teamcard {
  padding: 24px 28px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.teamcard:nth-child(2n) { border-right: none; }
.teamcard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.teamcard__role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

.press {
  border-top: 1px solid var(--ink);
}
.press__row {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.press__k {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-3);
}
.press__v {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}

/* LINK ARROW */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.link-arrow:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}
.link-arrow--invert {
  color: #F4EEDF;
  border-bottom-color: rgba(244, 238, 223, 0.4);
}
.link-arrow--invert:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .logic, .arcparts, .tiers, .offices { grid-template-columns: 1fr; }
  .logic__col, .arcpart, .tier, .office {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 28px;
  }
  .xtimeline { grid-template-columns: 1fr 1fr; }
  .invcard { grid-template-columns: 1fr; }
  .invcard__photo { max-width: 360px; }
  .section--styles .styles { grid-template-columns: 1fr 1fr; }
  .style:nth-child(2n) { border-right: none; }
  .infrastats { grid-template-columns: 1fr 1fr; }
  .infrastat:nth-child(2n) { border-right: none; }
  .archdiagram { grid-template-columns: 1fr; }
  .archdiagram__arrow { transform: rotate(90deg); }
  .terms__row, .press__row { grid-template-columns: 1fr; gap: 6px; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .xtimeline { grid-template-columns: 1fr; }
  .section--styles .styles { grid-template-columns: 1fr; }
  .style { border-right: none; border-bottom: 1px solid var(--rule); }
  .infrastats { grid-template-columns: 1fr; }
  .infrastat { border-right: none; border-bottom: 1px solid var(--rule); }
}

.invcard__photo { height: 220px; overflow: hidden; }
.invcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 64vh; }

/* ==========================================================
   RESPONSIVE — consolidated mobile rules
   All breakpoints in one place, no conflicts
   ========================================================== */

/* 980px — inner page grids */
@media (max-width: 980px) {
  .logic, .arcparts, .tiers, .offices { grid-template-columns: 1fr; }
  .logic__col, .arcpart, .tier, .office {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 28px;
  }
  .xtimeline { grid-template-columns: 1fr 1fr; }
  .invcard { grid-template-columns: 1fr; }
  .invcard__photo { max-width: 360px; }
  .section--styles .styles { grid-template-columns: 1fr 1fr; }
  .style:nth-child(2n) { border-right: none; }
  .infrastats { grid-template-columns: 1fr 1fr; }
  .infrastat:nth-child(2n) { border-right: none; }
  .archdiagram { grid-template-columns: 1fr; }
  .archdiagram__arrow { transform: rotate(90deg); }
  .terms__row, .press__row { grid-template-columns: 1fr; gap: 6px; }
  .team { grid-template-columns: 1fr; }
}

/* 1080px — main page grids */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__plate { order: -1; max-width: 100%; }
  .section__head { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline__step { padding: 16px; border-bottom: 1px solid var(--rule-soft); }
  .timeline__step:nth-child(3n) { border-right: 0; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .demo__head { grid-template-columns: 1fr; }
  .demo__results { grid-template-columns: 1fr 1fr; }
  .cpma { grid-template-columns: 1fr; }
}

/* Hamburger — default hidden */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #14110D;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav--mobile-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--mobile-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--mobile-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 720px — mobile */
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; overflow-x: hidden; }

  /* Nav */
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav__inner { padding: 14px var(--gutter); }
  .nav__links {
    display: none;
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(100vh - 53px);
    background: #FAFAF6;
    background-color: #FAFAF6 !important;
    flex-direction: column;
    gap: 0;
    padding: 0 0 40px;
    z-index: 9999;
    overflow-y: auto;
    border-top: 1px solid var(--rule-soft);
    margin: 0;
    list-style: none;
  }
  .nav--mobile-open .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 18px var(--gutter);
    font-size: 24px;
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink);
  }

  /* Hero — sticky image while animation plays, then scrolls away */
  .hero {
    min-height: 180vh;
    padding: 0;
  }
  .hero__grid {
    position: sticky;
    top: 53px;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__plate {
    order: -1;
    margin: 0;
    width: 100%;
    padding: 0 var(--gutter);
  }
  .hero__plate figcaption {
    padding: 0;
  }
  .hero__photo .img-ph {
    aspect-ratio: 4/3;
    max-height: none;
  }
  .hero__masthead {
    padding: 24px var(--gutter) 36px;
  }
  .hero__headline {
    font-size: clamp(32px, 8.5vw, 50px);
    margin: 12px 0 16px;
  }
  .hero__lede { font-size: 16px; max-width: none; }
  .hero__chip { display: none; }
  .hero__byline { display: none; }
  .hero__rule { margin-top: 28px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; text-align: center; }

  /* Display type */
  .display { font-size: clamp(32px, 8.5vw, 92px); }

  /* Numbers strip */
  .numbers { padding: 0 var(--gutter); }
  .numbers__inner { grid-template-columns: repeat(2, 1fr); }
  .numbers__item { padding: 22px 12px 22px 0; border-bottom: 1px solid var(--rule-soft); }
  .numbers__item:nth-child(even) { border-right: 0; padding-right: 0; }
  .numbers__item:nth-child(3),
  .numbers__item:nth-child(4) { border-bottom: 0; }

  /* Sections */
  .section { padding: clamp(44px, 8vw, 80px) var(--gutter); }
  .section__head { gap: 16px; margin-bottom: 32px; }
  .section__lede { font-size: 15px; }

  /* Timeline */
  .timeline { grid-template-columns: 1fr; border-bottom: none; }
  .timeline__step { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .timeline__step:last-child { border-bottom: 0; }

  /* Data cards */
  .datacards { grid-template-columns: 1fr 1fr; }
  .datacard { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--rule-soft); }
  .datacard:nth-child(even) { border-right: 0; padding-right: 0; }
  .datacard:nth-child(3), .datacard:nth-child(4) { border-bottom: 0; }

  /* CPMA */
  .cpma { padding: 32px 0; gap: 20px; }
  .cpma__abbr { font-size: clamp(44px, 11vw, 72px); }

  /* Categories & clients */
  .catgrid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: 1fr; }
  .client { min-height: unset; padding: 22px var(--gutter); }

  /* Demo section — replaced with CTA on mobile */
  /* Demo section mobile — full dark, no double padding */
  .section--demo {
    padding: 0;
    background: #14110D;
  }
  .demo__mobile {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 44px var(--gutter) 56px;
  }
  .demo__mobile .display {
    font-size: clamp(38px, 10vw, 56px);
    color: #F4EEDF;
  }
  .demo__mobile .display em { color: var(--accent); }
  .demo__mobile-lede {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(244,238,223,0.8);
    margin: 0;
  }
  .demo__mobile-cta {
    align-self: flex-start;
    font-size: 16px;
    padding: 16px 24px;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .demo__mobile-examples {
    padding-top: 24px;
    border-top: 1px solid rgba(244,238,223,0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .demo__mobile-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .demo__mobile-chip {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    color: rgba(244,238,223,0.75);
    padding: 14px var(--gutter);
    border: 1px solid rgba(244,238,223,0.18);
    transition: border-color .15s, color .15s;
  }
  .demo__mobile-chip:active { border-color: var(--accent); color: #fff; }
  .demo__mobile .demo__examples-label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244,238,223,0.45);
  }
  .mast { font-size: 10px; letter-spacing: 0.10em; }
  .mast__line { display: none; }

  /* Results section */
  .results__statement { font-size: 16px; margin-bottom: 36px; }
  .bars { gap: 24px; }
  .bar__name { font-size: 16px; }
  .bar__pct { font-size: clamp(28px, 8vw, 48px); }
  .bar__track { height: 18px; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 40px; padding: 44px var(--gutter); }
  .footer__nav { grid-template-columns: 1fr 1fr; }

  /* Page hero (portals/brands/arc/company) */
  .page-hero { padding: 44px var(--gutter) 36px; }
  .page-hero__headline { font-size: clamp(36px, 9.5vw, 72px); }
  .page-hero__lede { font-size: 16px; }
  .page-hero__cta { flex-direction: column; }
  .page-hero__cta .btn { width: 100%; justify-content: center; }

  /* Pull quote */
  .pullquote p { font-size: clamp(19px, 5vw, 28px); }

  /* Inner page grids */
  .xtimeline { grid-template-columns: 1fr; }
  .section--styles .styles { grid-template-columns: 1fr; }
  .style { border-right: none; border-bottom: 1px solid var(--rule); }
  .infrastats { grid-template-columns: 1fr 1fr; }
  .infrastat { border-right: none; border-bottom: 1px solid var(--rule); }
  .thesis__p { font-size: clamp(18px, 4.5vw, 22px); }
  .offices { grid-template-columns: 1fr; }
  .office { border-right: none; border-bottom: 1px solid var(--rule); }

  /* Contact pages */
  .contact-wrap { grid-template-columns: 1fr; padding: 36px var(--gutter) 56px; }
  .contact-aside { position: static; order: -1; }
  .form-row--2 { flex-direction: column; }

  /* Legal pages */
  .legal-wrap { grid-template-columns: 1fr; padding: 36px var(--gutter) 56px; }
  .legal-aside { position: static; order: -1; }
  .legal-hero { padding: 44px var(--gutter) 32px; }
  .legal-hero__title { font-size: clamp(34px, 9vw, 60px); }
}

/* 480px — narrow phones */
@media (max-width: 400px) {
  :root { --gutter: 16px; }

  .numbers__inner { grid-template-columns: 1fr; }
  .numbers__item { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .numbers__item:last-child { border-bottom: 0; }

  .datacards { grid-template-columns: 1fr; }
  .datacard { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .datacard:last-child { border-bottom: 0; }

  .footer__nav { grid-template-columns: 1fr; gap: 8px; }

  .infrastats { grid-template-columns: 1fr; }

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

/* Contact/legal page — 860px tablet breakpoints */
@media (max-width: 720px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-aside { position: static; order: -1; }
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-aside { position: static; order: -1; }
}

@media (max-width: 480px) {
  .form-row--2 { flex-direction: column; }
}

/* ============== RETAILERS PAGE — LIVE DEMO (native, no iframe) ============== */
.section--retail-demo {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vh, 80px) var(--gutter) clamp(64px, 8vh, 96px);
}
.section--retail-demo .section__head {
  margin-bottom: clamp(32px, 4vh, 48px);
}

/* steps stack */
.rdemo__step {
  margin-bottom: 28px;
}
.rdemo__step-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #6a6357);
  margin-bottom: 10px;
  font-weight: 500;
}

/* form row */
.rdemo__form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}
.rdemo__input {
  flex: 1 1 360px;
  min-width: 0;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rdemo__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 96, 28, 0.15);
}
.rdemo__input:disabled {
  background: var(--bg-deep);
  color: var(--ink-muted, #6a6357);
  cursor: not-allowed;
}
.rdemo__submit {
  flex: 0 0 auto;
  min-width: 220px;
  justify-content: center;
}
.rdemo__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* status messages */
.rdemo__status {
  margin-top: 14px;
  padding: 14px 18px;
  font-size: 14px;
  border-radius: 2px;
  border: 1px solid;
  line-height: 1.5;
}
.rdemo__status code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.04);
  padding: 1px 6px;
  border-radius: 2px;
}
.rdemo__status--working {
  background: #FFFAF5;
  border-color: #F5D9C2;
  color: #8A4A1F;
}
.rdemo__status--ok {
  background: #F4F8F2;
  border-color: #C9DAB8;
  color: #355C28;
}
.rdemo__status--error {
  background: #FCF2F0;
  border-color: #E8B8B0;
  color: #8B2E20;
}

/* comparison */
.rdemo__compare {
  margin-top: clamp(40px, 5vh, 64px);
}
.rdemo__compare-label {
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
  margin-bottom: 16px;
  line-height: 1.5;
}
.rdemo__compare-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.rdemo__compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) {
  .rdemo__compare-grid { grid-template-columns: 1fr; }
}

.rdemo__panel {
  background: #FFFFFF;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rdemo__panel-header {
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.rdemo__panel-header--their {
  background: var(--bg-deep);
  color: var(--ink);
}
.rdemo__panel-header--ours {
  background: var(--ink);
  color: var(--bg);
  border-bottom-color: var(--ink);
}
.rdemo__open-link {
  font-size: 12px;
  color: var(--accent-deep);
  text-decoration: none;
}
.rdemo__open-link:hover { text-decoration: underline; }

/* their screenshot */
.rdemo__screenshot-wrap {
  background: #F4F2EB;
  flex: 1;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.rdemo__screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* our results */
.rdemo__results {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.rdemo__result {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.rdemo__result:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.rdemo__result-img {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--bg-deep);
  border-radius: 2px;
}
.rdemo__result-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.rdemo__result-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rdemo__result-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.rdemo__result-price {
  font-weight: 600;
  color: var(--ink);
}
.rdemo__result-score {
  padding: 3px 11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  border-radius: 99px;
  white-space: nowrap;
}
.rdemo__result-score--strong {
  background: rgba(232, 96, 28, 0.14);
  color: var(--accent-deep);
}
.rdemo__result-score--good {
  background: rgba(232, 96, 28, 0.08);
  color: var(--accent-deep);
}
.rdemo__result-score--fair {
  background: rgba(120, 110, 90, 0.10);
  color: #6a6357;
}
.rdemo__result-score--weak {
  background: rgba(120, 110, 90, 0.08);
  color: #8a8275;
}

/* one-line rationale under each ARC result title */
.rdemo__result-why {
  font-size: 12.5px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.45;
  margin: 4px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rdemo__result-why-label {
  color: var(--accent-deep);
  font-weight: 500;
}

.rdemo__placeholder {
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
}

/* mobile tweaks */
@media (max-width: 720px) {
  .rdemo__form { flex-direction: column; }
  .rdemo__submit { width: 100%; }
}

/* suggested query chips */
.rdemo__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.rdemo__chips-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted, #6a6357);
  margin-right: 4px;
  font-weight: 500;
}
.rdemo__chip {
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--rule-soft);
  border-radius: 99px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rdemo__chip:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: #FFF8F2;
}
.rdemo__chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* their results — no match-score badge, slightly muted background */
.rdemo__result--their {
  background: #FCFBF7;
}

/* their search returned zero — first-class state, not an error */
.rdemo__empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-deep);
  min-height: 320px;
}
.rdemo__empty-zero {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 140px);
  line-height: 1;
  color: var(--accent-deep);
  font-weight: 400;
  margin-bottom: 8px;
}
.rdemo__empty-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}
.rdemo__empty-body {
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.55;
  max-width: 440px;
}

/* ============== PROOF STRIP — verify it's real ============== */
.rdemo__proof {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  background: #FFFFFF;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}
@media (max-width: 720px) {
  .rdemo__proof { grid-template-columns: 1fr; }
}
.rdemo__proof-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rdemo__proof-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
}
.rdemo__proof-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
}
.rdemo__proof-body {
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.6;
  max-width: 520px;
}
.rdemo__proof-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rdemo__proof-body a:hover {
  color: var(--accent);
}

/* thumbnail button */
.rdemo__proof-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.rdemo__proof-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.rdemo__proof-thumb img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
}
.rdemo__proof-thumb-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 10px;
  background: rgba(15, 31, 58, 0.85);
  color: #FFFFFF;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}

/* modal */
.rdemo__modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 18, 28, 0.78);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  cursor: zoom-out;
}
.rdemo__modal-inner {
  width: min(1100px, 100%);
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.rdemo__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
}
.rdemo__modal-close {
  background: transparent;
  border: 0;
  color: var(--bg);
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background .15s ease;
}
.rdemo__modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.rdemo__modal-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============== RIGHT-COLUMN: their search + proof stacked ============== */
.rdemo__compare-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0; /* prevent flex children from forcing overflow */
}

/* proof card sits directly under their-search panel as evidence */
.rdemo__proof-card {
  background: #FFFFFF;
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.rdemo__proof-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--bg-deep);
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.rdemo__proof-card-thumb:hover {
  background: var(--bg-deep);
}
.rdemo__proof-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 280px;
  object-fit: cover;
  object-position: top;
  transition: transform .2s ease;
}
.rdemo__proof-card-thumb:hover img {
  transform: scale(1.01);
}
.rdemo__proof-card-thumb-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 6px 10px;
  background: rgba(15, 31, 58, 0.85);
  color: #FFFFFF;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 500;
}
.rdemo__proof-card-caption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.5;
  border-top: 1px solid var(--rule-soft);
}
.rdemo__proof-card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-right: 4px;
}
.rdemo__proof-card-caption a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rdemo__proof-card-caption a:hover {
  color: var(--accent);
}

/* ============== "WHAT JUST HAPPENED" — explanation panel ============== */
.rdemo__explain {
  margin-top: 36px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}
.rdemo__explain-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
.rdemo__explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 880px) {
  .rdemo__explain-grid { grid-template-columns: 1fr; gap: 22px; }
}
.rdemo__explain-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rdemo__explain-block-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.25;
}
.rdemo__explain-block-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted, #6a6357);
}
.rdemo__explain-block-body em {
  font-style: italic;
  color: var(--ink);
}
.rdemo__explain-block-body strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============== GUIDED FLOW STATES ============== */
/* "Connected" line — shown when a session exists, replaces the verbose
   step-1 form. Quiet, factual, with a way back. */
.rdemo__connected {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(232, 96, 28, 0.06);
  border: 1px solid rgba(232, 96, 28, 0.18);
  border-radius: 99px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.rdemo__connected-tick {
  color: var(--accent-deep);
  font-weight: 600;
}
.rdemo__connected-link {
  background: transparent;
  border: 0;
  padding: 0 0 0 8px;
  margin-left: 4px;
  color: var(--accent-deep);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rdemo__connected-link:hover {
  color: var(--accent);
}

/* The "Now type something a real customer might ask" line above the
   query input — reads as a friendly prompt, not a form label. */
.rdemo__step-prompt {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

/* Rewind affordance shown above the query input once results are visible */
.rdemo__rewind {
  margin-bottom: 12px;
}
.rdemo__rewind-link {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--accent-deep);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.02em;
}
.rdemo__rewind-link:hover {
  color: var(--accent);
}

/* One-line context shown above the comparison grid, framing what the
   visitor is about to read. */
.rdemo__results-context {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.55;
  max-width: 680px;
}

/* Platform tag in the connected pill — small, italic, muted */
.rdemo__connected-platform {
  font-style: italic;
  color: var(--ink-muted, #6a6357);
  font-size: 12.5px;
  margin-left: 2px;
}

/* Unavailable state — store has no public search API. Renders in the
   right column as a substantive panel, not a thin error placeholder. */
.rdemo__unavailable-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-deep);
  min-height: 320px;
}
.rdemo__unavailable-icon {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 100px);
  line-height: 1;
  color: var(--ink-muted, #6a6357);
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.55;
}
.rdemo__unavailable-headline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
  max-width: 460px;
}
.rdemo__unavailable-body {
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.55;
  max-width: 460px;
}

/* Honest-empty state for ARC's left panel: shown when the catalog has
   nothing that clears our quality bar. Visually quieter than the right
   panel's unavailable-state because the message is "we deliberately
   chose not to fill this with weak results", not "something failed". */
.rdemo__empty-honest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px;
  min-height: 320px;
}
.rdemo__empty-honest-headline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
  max-width: 440px;
}
.rdemo__empty-honest-body {
  font-size: 14px;
  color: var(--ink-muted, #6a6357);
  line-height: 1.55;
  max-width: 440px;
}

/* Live progress during /demo/analyze. Sits in place of the old static
   status line. Two-row layout: the rotating stage + elapsed counter on
   top, a subtle progress bar underneath. Tied to real elapsed time, not
   a CSS keyframe — user sees "12s of ~28s" not a guessing animation. */
.rdemo__progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rdemo__progress-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rdemo__progress-stage {
  font-style: italic;
  color: var(--ink);
  font-size: 15px;
  /* Soft cross-fade as the label changes — pure opacity nudge, no movement.
     The change is communicated by the text itself; the animation just keeps
     the eye from registering a hard swap. */
  animation: rdemo-progress-stage-fade 600ms ease-out;
}
@keyframes rdemo-progress-stage-fade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
.rdemo__progress-meta {
  font-size: 13px;
  color: var(--ink-muted, #6a6357);
  font-feature-settings: 'tnum';  /* tabular numerals so seconds counter doesn't jitter */
}
.rdemo__progress-meta code {
  font-family: var(--font-mono, JetBrains Mono, ui-monospace, monospace);
  font-size: 12.5px;
  color: var(--ink);
}
.rdemo__progress-bar {
  position: relative;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.rdemo__progress-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--accent, #E8601C);
  transition: width 250ms linear;
  border-radius: 2px;
}
/* Sheen glides across the fill so even when width is steady the bar
   reads as "alive". 1.6s loop, easing in and out. */
.rdemo__progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: rdemo-progress-sheen 1.6s ease-in-out infinite;
}
@keyframes rdemo-progress-sheen {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* "Works with" platform strip below the demo input. Quiet reassurance,
   not a sales banner — appears in stage 1 only. Brand-coloured wordmarks
   in a small horizontal row, eyebrow on the left in muted ink. Hides
   itself the moment the visitor connects, so the demo experience after
   stage 1 stays uncluttered. */
.rdemo__platforms {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.rdemo__platforms-eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #6a6357);
  flex: 0 0 auto;
}
.rdemo__platforms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: baseline;
}
.rdemo__platforms-item {
  font-family: var(--font-display, 'DM Serif Display', serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  /* color set inline per platform brand colour */
}
@media (max-width: 640px) {
  .rdemo__platforms { gap: 10px 16px; }
  .rdemo__platforms-item { font-size: 16px; }
}

/* ====================================================================
   Get-started page — signup form + tier sidebar
   ==================================================================== */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 880px) {
  .signup { grid-template-columns: 1fr; gap: 40px; }
}

.signup__form-wrap {
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.signup__heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--ink, #1a1a1a);
}
.signup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.signup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.signup__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
}
.signup__input {
  font-family: 'Work Sans', -apple-system, sans-serif;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--border, #d8d4cc);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #1a1a1a);
  transition: border-color 120ms ease;
  outline: none;
}
.signup__input:focus {
  border-color: var(--accent, #E8601C);
}
.signup__submit {
  margin-top: 8px;
  align-self: flex-start;
  padding: 14px 28px;
}
.signup__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.signup__error {
  padding: 12px 14px;
  border-radius: 6px;
  background: #FCE9E5;
  color: #963110;
  font-size: 14px;
  line-height: 1.5;
}
.signup__small {
  font-size: 13px;
  color: var(--ink-muted, #6a6357);
  margin: 0;
}
.signup__small a {
  color: var(--accent, #E8601C);
  text-decoration: none;
}
.signup__small a:hover { text-decoration: underline; }

.signup__sent {
  text-align: left;
}
.signup__sent-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E8F5EE;
  color: #186A3B;
  font-size: 24px;
  margin-bottom: 18px;
}
.signup__sent-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted, #6a6357);
  margin: 0;
}

.signup__sidebar {
  padding: 24px 28px;
  background: var(--bg-deep, #F2EFE6);
  border-radius: 8px;
}
.signup__sidebar-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 16px;
}
.signup__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.signup__list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1a1a1a);
  position: relative;
  padding-left: 20px;
}
.signup__list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  top: -2px;
  font-size: 22px;
  color: var(--accent, #E8601C);
  line-height: 1;
}
.signup__list strong { font-weight: 500; }
.signup__sidebar-foot {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted, #6a6357);
  margin: 0;
  font-style: italic;
}

/* ============== STORE SELECTOR ============== */
.sstore {
  margin-bottom: 32px;
}
.sstore__stat {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3, #5C554B);
  background: var(--bg-deep, #F2EEE3);
  border: 1px solid var(--rule, #D9D2C2);
  border-left: 3px solid var(--accent, #E8601C);
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.sstore__stat strong {
  color: var(--ink, #14110D);
  font-weight: 600;
}
.sstore__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--rule, #D9D2C2);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sstore__tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-4, #8E867A);
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s ease, border-color .15s ease;
}
.sstore__tab:hover {
  color: var(--ink, #14110D);
}
.sstore__tab--active {
  color: var(--ink, #14110D);
  border-bottom-color: var(--accent, #E8601C);
  font-weight: 600;
}
.sstore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.sstore__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule, #D9D2C2);
  border-radius: 2px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink, #14110D);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.sstore__card:hover:not(:disabled) {
  border-color: var(--accent, #E8601C);
  background: var(--bg-deep, #F2EEE3);
  transform: translateY(-1px);
}
.sstore__card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sstore__favicon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
}
.sstore__name {
  text-transform: capitalize;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "or enter your own" divider */
.rdemo__or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
  color: var(--ink-4, #8E867A);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rdemo__or-divider::before,
.rdemo__or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule, #D9D2C2);
}

/* Secondary form (manual URL after store grid) is visually quieter */
.rdemo__form--secondary .rdemo__input {
  font-size: 14px;
  padding: 12px 16px;
}
.rdemo__form--secondary .rdemo__submit {
  min-width: 160px;
}

/* ============================================================
   /integrate page — install path documentation
   Free-tier marketing page reached from the "Powered by ARC"
   badge on retailer sites. Hero already styled by .page-hero.
   These rules cover the four bespoke sections beneath it.
   ============================================================ */

/* --- 02 Free promise: 3 cards, the "what does free actually mean" answer --- */
.int-promise__grid {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .int-promise__grid { grid-template-columns: 1fr; }
}
.int-promise__card {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.int-promise__num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.int-promise__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.int-promise__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* --- 03 Four paths: the install option grid --- */
.int-paths__grid {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .int-paths__grid { grid-template-columns: 1fr; }
}

.int-path-card {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.int-path-card__head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-deep);
}
.int-path-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: rgba(232, 96, 28, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.int-path-card__platform {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
  margin: 0 0 6px;
  color: var(--ink);
}
.int-path-card__time {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}
.int-path-card__body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.int-path-card__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 20px;
  line-height: 1.25;
  color: var(--accent-deep);
}
.int-path-card__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.int-path-card__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.int-path-card__steps li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.int-path-card__steps li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.int-path-card__code {
  margin-top: 4px;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.int-path-card__code-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 10px 16px 6px;
}
.int-path-card__code pre {
  margin: 0;
  padding: 0 16px 14px;
  overflow-x: auto;
}
.int-path-card__code code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #E8E2D2;
  white-space: pre;
}

/* "None of these fit?" enterprise card sits below the grid */
.int-paths__none-fit {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 32px var(--gutter);
}
.int-paths__none-fit-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}
.int-paths__none-fit-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56em;
  margin: 0 0 20px;
}

/* --- 04 Same package: the reassurance section --- */
.int-same__list {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 var(--gutter);
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}
@media (max-width: 720px) {
  .int-same__list { grid-template-columns: 1fr; }
}
.int-same__item {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.int-same__check {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

/* --- 05 Pricing teaser: 4 tier cards --- */
.int-pricing__grid {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .int-pricing__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .int-pricing__grid { grid-template-columns: 1fr; }
}
.int-pricing__tier {
  background: #fff;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.int-pricing__tier--highlight {
  border-color: var(--accent);
  border-width: 2px;
  padding: 27px 23px;
  position: relative;
}
.int-pricing__tier--highlight::before {
  content: 'Most popular';
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.int-pricing__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.int-pricing__price span {
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 400;
}
.int-pricing__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  margin: 0;
  color: var(--accent-deep);
}
.int-pricing__who {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0;
  min-height: 36px;
}
.int-pricing__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 16px;
}
.int-pricing__list li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.int-pricing__list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  top: -2px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.45;
}

/* --- 06 Final CTA: dark band, inverted --- */
.int-cta {
  background: var(--ink);
  margin-top: 48px;
}
.int-cta__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vh, 112px) var(--gutter);
  text-align: center;
}
.int-cta__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: #fff;
  text-wrap: balance;
}
.int-cta__sub {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: #B5AC9D;
  max-width: 36em;
  margin: 0 auto 36px;
}
.int-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.int-cta__buttons .btn--ghost {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.int-cta__buttons .btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

/* Status badges on the install path cards (Live now / Rolling out Q2) */
.int-path-card__status {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: top;
  margin-top: -1px;
}
.int-path-card__status--live {
  color: #1a6b3f;
  background: rgba(26, 107, 63, 0.10);
  border: 1px solid rgba(26, 107, 63, 0.20);
}
.int-path-card__status--soon {
  color: var(--ink-3);
  background: rgba(94, 85, 75, 0.08);
  border: 1px solid var(--rule-soft);
}
/* Subdue the "soon" cards a touch so the live ones look more inviting */
.int-path-card--soon { opacity: 0.92; }
.int-path-card--soon .int-path-card__platform { color: var(--ink-2); }

/* "Q2" / "Q3" inline markers next to pricing list items */
.int-pricing__soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(232, 96, 28, 0.08);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ============================================================
   Self-serve banner on /get-started
   Sits between Nav and Hero. Catches visitors who landed on the
   contact form but actually want the free self-serve path.
   ============================================================ */
.self-serve-banner {
  background: linear-gradient(180deg, rgba(232, 96, 28, 0.06) 0%, rgba(232, 96, 28, 0.02) 100%);
  border-bottom: 1px solid var(--rule-soft);
}
.self-serve-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.self-serve-banner__text {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
}
.self-serve-banner__cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 96, 28, 0.10);
  border: 1px solid rgba(232, 96, 28, 0.25);
  transition: all 0.15s;
}
.self-serve-banner__cta:hover {
  background: rgba(232, 96, 28, 0.18);
  border-color: rgba(232, 96, 28, 0.45);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .self-serve-banner__inner { flex-direction: column; gap: 10px; padding: 16px var(--gutter); }
  .self-serve-banner__text { text-align: center; }
}

/* ============================================================
   /docs page — REST API reference
   Two-column layout: sticky TOC sidebar + content. Mobile collapses
   sidebar above content. Heavy focus on code readability since
   developers will spend most of their time reading the examples.
   ============================================================ */

.docs-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vh, 80px) var(--gutter) clamp(64px, 9vh, 120px);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Sidebar TOC --- */
.docs-aside {
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .docs-aside { position: static; }
}
.docs-toc {
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 24px 20px;
  background: #fff;
}
.docs-toc__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.docs-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-toc__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 0 -12px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.1s;
}
.docs-toc__link:hover {
  background: var(--bg-deep);
  color: var(--ink);
}
.docs-toc__tag {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 999px;
}
.docs-toc__tag--live {
  color: #1a6b3f;
  background: rgba(26, 107, 63, 0.12);
}
.docs-toc__tag--soon {
  color: var(--ink-3);
  background: rgba(94, 85, 75, 0.10);
}
.docs-toc__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.docs-toc__back {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
}
.docs-toc__back:hover { color: var(--accent-deep); }

/* --- Hero --- */
.docs-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 32px;
}
.docs-hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.018em;
  margin: 16px 0 20px;
  color: var(--ink);
}
.docs-hero__headline em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}
.docs-hero__lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56em;
  margin: 0 0 24px;
}
.docs-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}
.docs-hero__meta strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}

/* --- Sections --- */
.docs-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-soft);
  scroll-margin-top: 100px;
}
.docs-section:last-of-type { border-bottom: none; }

.docs-section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.docs-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}
.docs-section__status {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
}
.docs-section__status--live {
  color: #1a6b3f;
  background: rgba(26, 107, 63, 0.12);
}
.docs-section__status--soon {
  color: var(--ink-3);
  background: rgba(94, 85, 75, 0.10);
}

.docs-section__body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
  max-width: 56em;
}
.docs-section__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--ink);
}
.docs-section__body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Inline code & code blocks --- */
.docs-inline-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--ink);
  white-space: nowrap;
}
.docs-inline-code-block {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--bg-deep);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 8px 0;
  color: var(--ink);
  overflow-x: auto;
}

/* Full code-block with label */
.docs-codeblock {
  margin: 12px 0 20px;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.docs-codeblock__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 10px 16px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.docs-codeblock pre {
  margin: 0;
  padding: 14px 16px 18px;
  overflow-x: auto;
}
.docs-codeblock code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #E8E2D2;
  white-space: pre;
}

/* --- Schema tables --- */
.docs-schema {
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 20px;
}
.docs-schema__row {
  display: grid;
  grid-template-columns: 180px 90px 90px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
  font-size: 14px;
}
.docs-schema__row:last-child { border-bottom: none; }
.docs-schema__row:nth-child(odd) { background: var(--bg-deep); }
.docs-schema__col--name code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.docs-schema__col--type {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-3);
}
.docs-schema__col--req {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
  text-transform: lowercase;
}
.docs-schema__col--desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (max-width: 720px) {
  .docs-schema__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .docs-schema__col--type, .docs-schema__col--req {
    display: inline-block;
    margin-right: 8px;
  }
}

/* --- Callout --- */
.docs-callout {
  border-left: 3px solid var(--accent);
  background: rgba(232, 96, 28, 0.04);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  border-radius: 0 4px 4px 0;
}

/* --- Final CTA --- */
.docs-cta {
  margin-top: 48px;
  padding: 40px;
  text-align: center;
  background: var(--bg-deep);
  border-radius: 4px;
}
.docs-cta__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 36px);
  margin: 0 0 12px;
  color: var(--ink);
}
.docs-cta__sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 auto 24px;
  max-width: 36em;
}
.docs-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Two-button row in the none-fit section of /integrate */
.int-paths__none-fit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Proof card skeleton — shown while puppeteer captures the screenshot
   asynchronously. Caller dimensions match the real .rdemo__proof-card so
   the layout doesn't jump when the real image arrives. */
.rdemo__proof-card--skeleton .rdemo__proof-card-thumb--skeleton {
  background: var(--bg-deep);
  cursor: default;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
}
.rdemo__proof-skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 70%
  );
  animation: rdemo-shimmer 1.4s ease-in-out infinite;
}
@keyframes rdemo-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .rdemo__proof-skeleton-shimmer { animation: none; opacity: 0.4; }
}

/* TheirPanelLoading — shown while we're capturing what their store returns,
   before we have enough signal to render an honest result. Replaces the
   panel that used to flash "0 results" prematurely while the screenshot was
   still in flight. */
.rdemo__panel--loading .rdemo__panel-header {
  position: relative;
  overflow: hidden;
}
.rdemo__panel--loading .rdemo__panel-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 70%
  );
  animation: rdemo-shimmer 1.6s ease-in-out infinite;
  pointer-events: none;
}
.rdemo__loading-state {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rdemo__loading-pulse {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 4px;
}
.rdemo__loading-pulse .rdemo__loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent, #E8601C);
  display: inline-block;
  animation: rdemo-loading-pulse 1.2s ease-in-out infinite;
}
.rdemo__loading-pulse .rdemo__loading-dot:nth-child(2) { animation-delay: 0.15s; }
.rdemo__loading-pulse .rdemo__loading-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes rdemo-loading-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40%           { opacity: 1;   transform: scale(1.15); }
}
.rdemo__loading-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--ink, #1a1a1a);
  max-width: 30ch;
}
.rdemo__loading-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft, #555);
  max-width: 44ch;
}
.rdemo__loading-steps {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft, #666);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rdemo__loading-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rdemo__loading-step-tick {
  color: var(--accent, #E8601C);
  font-size: 0.7rem;
  animation: rdemo-loading-pulse 1.4s ease-in-out infinite;
}
.rdemo__loading-steps li:nth-child(2) .rdemo__loading-step-tick { animation-delay: 0.2s; }
.rdemo__loading-steps li:nth-child(3) .rdemo__loading-step-tick { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .rdemo__loading-pulse .rdemo__loading-dot,
  .rdemo__loading-step-tick,
  .rdemo__panel--loading .rdemo__panel-header::after {
    animation: none;
  }
  .rdemo__loading-pulse .rdemo__loading-dot { opacity: 0.6; }
}

/* "Showing N of M" line at the bottom of TheirPanel when the store's own
   reported count exceeds what we extracted. Honest about being a sample. */
.rdemo__partial-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-deep, #f7f3ee);
  border: 1px dashed var(--rule-soft, #d8d2c5);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--ink-soft, #555);
  line-height: 1.5;
}
.rdemo__partial-note a {
  color: var(--accent, #E8601C);
}

/* ── Pipeline mobile/desktop toggle ── */
.pl-mobile { display: none; }
.pl-desktop { display: block; }

@media (max-width: 760px) {
  .pl-mobile { display: block; }
  .pl-desktop { display: none; }
}
