/* TRShell — site styles.
   Ember, from the product's own DESIGN.md: graphite, warm text, ONE amber
   accent (it marks the active thing and the primary action, nothing else),
   green/yellow/red only for succeeded/warning/failed, 4px corners, flat
   surfaces, sentence case, system sans for prose and monospace for code.

   Systems: two breakpoints (768 / 1024), a 4px-based spacing scale, one type
   scale, one set of motion tokens. Components use tokens, never raw colours. */

:root {
  /* colour */
  --bg: #1a1917;
  --bg-2: #1e1c19;
  --panel: #211f1c;
  --panel-2: #282521;
  --media: #0e0d0c;
  --fg: #ece7df;
  --fg-2: #d8d1c6;
  --muted: #a79f93;
  --faint: #8f877b;           /* lifted from the app's #7a7369 so small text clears 4.5:1 on every surface */
  --accent: #f0a03c;
  --accent-hover: #f5b25b;
  --on-accent: #1a1917;
  --accent-soft: rgba(240, 160, 60, .12);
  --accent-glow: rgba(240, 160, 60, .35);
  --ok: #6fb57a;
  --line: #33302b;
  --line-2: #4a463f;
  --shadow-float: 0 40px 80px -40px rgba(0, 0, 0, .9);

  /* type — one scale */
  --t-label: 14px;
  --t-small: 16px;
  --t-body: 17px;
  --t-lead: 18px;
  --t-title: 20px;
  --t-h3: clamp(24px, 2.6vw, 32px);
  --t-h2: clamp(32px, 4.4vw, 48px);
  --t-h1: clamp(42px, 6.6vw, 72px);
  --sans: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* space — 4px base */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 104px;
  --r: 4px;
  --r-lg: 10px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --header-h: 68px;

  /* motion */
  --dur-fast: 150ms;          /* hover, press */
  --dur-base: 200ms;          /* small state changes */
  --dur-reveal: 380ms;        /* content arriving */
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: var(--t-body)/1.6 var(--sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h3 { margin: 0; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
.acc { color: var(--accent); }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* focus: always visible, never removed */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }               /* the skip-link target, focused programmatically */

.skip {
  position: absolute; left: var(--gut); top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  border-radius: var(--r); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font: 600 var(--t-small)/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out,
              color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); background: var(--panel); }
.btn-sm { min-height: 44px; padding: 0 16px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);                    /* solid: blur only belongs to dismissible overlays */
  border-bottom: 1px solid transparent; transition: border-color var(--dur-base) ease-out;
}
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: var(--sp-2); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: var(--t-lead); letter-spacing: -.01em; min-height: 44px; }
.mark { width: 26px; height: auto; color: var(--accent); }

/* one primary action per screen: the header CTA turns primary only once the hero's has scrolled away.
   Phones have no room for brand + CTA + menu in one row, and the menu already carries
   "Early access", so the header CTA only appears from the first breakpoint up. */
.top-cta { display: none; margin-left: auto; white-space: nowrap; }
.menu-btn { margin-left: auto; }
.top-cta.is-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.top-cta.is-primary:hover { background: var(--accent-hover); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; color: var(--fg);
  font: 500 var(--t-small) var(--sans); cursor: pointer; touch-action: manipulation; order: 3;
  transition: border-color var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out;
}
.menu-btn:hover { border-color: var(--muted); }
.menu-btn[aria-expanded="true"] { background: var(--panel); }

/* phones: the nav is a disclosure panel under the header */
.nav {
  display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
  flex-direction: column; padding: var(--sp-1) var(--gut) var(--sp-2);
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.nav.open { display: flex; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--t-small);
  padding: 12px 12px; min-height: 44px; display: flex; align-items: center; border-radius: var(--r);
  touch-action: manipulation; transition: color var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out;
}
.nav a:hover { color: var(--fg); background: var(--panel); }
/* where you are (nav-state-active): text weight + an amber underline, not colour alone */
.nav a[aria-current="true"] { color: var(--fg); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; gap: 4px; padding: 0; margin-left: auto;
         background: none; border: 0; box-shadow: none; }
  .nav a { padding: 10px 12px; }
  .top-cta { display: inline-flex; margin-left: 8px; }
}

/* ---------- hero ---------- */
.hero { padding: var(--sp-5) 0; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 70% 40%, rgba(240,160,60,.10), rgba(240,160,60,0) 70%);
}
.hero-in { position: relative; display: grid; gap: var(--sp-4); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--t-label)/1.4 var(--mono); color: var(--muted); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(111,181,122,.16); }
.hero h1 { margin-top: var(--sp-3); font-size: var(--t-h1); }
.lede { margin-top: var(--sp-3); font-size: clamp(var(--t-lead), 1.9vw, var(--t-title)); color: var(--fg-2); max-width: 34ch; }
.ctas { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 12px; }
.proof { margin-top: var(--sp-3); display: flex; align-items: flex-start; gap: 10px; color: var(--fg-2); font-size: var(--t-small); max-width: 44ch; }
.proof .ic { color: var(--ok); margin-top: 3px; }
.proof strong { color: var(--fg); font-weight: 600; }
.fine { margin-top: var(--sp-2); font: var(--t-label)/1.5 var(--mono); color: var(--faint); }

.hero-media { margin: 0; }
.frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--media);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(240,160,60,.08), 0 0 70px -30px var(--accent-glow);
}
.hero-video { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.vtoggle {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(20,19,17,.86);
  color: var(--fg); font: 500 var(--t-label) var(--sans); cursor: pointer; touch-action: manipulation;
  transition: background-color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.vtoggle:hover { background: var(--panel-2); }
.vtoggle:active { transform: scale(.96); }
.vtoggle .ic { width: 16px; height: 16px; }
.vtoggle .ic-play { display: none; }
.vtoggle[aria-pressed="true"] .ic-pause { display: none; }
.vtoggle[aria-pressed="true"] .ic-play { display: block; }

@media (min-width: 1024px) {
  .hero { padding: var(--sp-6) 0 var(--sp-5); }
  .hero-in { grid-template-columns: 1fr 1.18fr; gap: var(--sp-5); }
}

/* ---------- provider strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 22px; padding-bottom: 22px; }
.strip-l { font: 500 var(--t-label) var(--mono); color: var(--faint); }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--t-small); }

/* ---------- section heads ---------- */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
.features, .who, .trailer, .control, .access { padding: var(--sp-6) 0; }
.sec-h { max-width: 720px; margin-bottom: var(--sp-5); }
.eyebrow { font: 500 var(--t-label) var(--mono); color: var(--accent); }
.sec-h h2 { margin-top: 12px; font-size: var(--t-h2); }
.sec-h .sub { margin-top: var(--sp-2); color: var(--muted); font-size: var(--t-lead); max-width: 60ch; }

/* ---------- features ---------- */
.feat { display: grid; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-6); }
.act { font: 600 var(--t-label) var(--mono); color: var(--accent); }
.feat-copy h3, .card h3, .plan h3 { margin-top: 10px; font-size: var(--t-h3); }
.feat-copy p:not(.act), .card p:not(.act) { margin-top: var(--sp-2); color: var(--muted); max-width: 52ch; }
.feat-img, .card figure { margin: 0; }
.feat-img img, .card img { border-radius: 8px; border: 1px solid var(--line); }
@media (min-width: 1024px) {
  .feat { grid-template-columns: .82fr 1.18fr; gap: var(--sp-5); }
  .feat-rev .feat-copy { order: 2; }
}

.duo { display: grid; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.card figure { order: -1; }
.card h3 { margin-top: 4px; font-size: clamp(var(--t-title), 2.2vw, 24px); }
.card p { margin-top: 0 !important; }
.duo-report .card:first-child figure { order: 0; margin-top: var(--sp-2); }
.card-phone { align-items: center; }
.card-phone figure { max-width: 300px; width: 100%; }
.card-phone img { border: 0; border-radius: 0; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .card { padding: var(--sp-4); }
  .card-phone { flex-direction: row; align-items: center; gap: var(--sp-3); }
  .card-phone figure { order: 0; flex: 0 0 42%; }
}

/* ---------- who it's for ---------- */
.who { border-top: 1px solid var(--line); }
.users { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.user { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); display: flex; flex-direction: column; }
.user h3 { margin-top: 14px; font-size: var(--t-title); }
.user > p { margin-top: 8px; color: var(--fg-2); font-size: var(--t-small); }
.gains { list-style: none; margin: var(--sp-2) 0 0; padding: var(--sp-2) 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.gains li { position: relative; padding-left: 24px; color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.gains li::before {                       /* a small check, drawn in CSS so it stays decorative */
  content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.who-also { margin-top: var(--sp-3); color: var(--muted); font-size: var(--t-small); }
@media (min-width: 768px) { .users { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .user { padding: var(--sp-4); } }
.js .users.reveal .user { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .users.reveal.in { opacity: 1; transform: none; }
.js .users.reveal.in .user { opacity: 1; transform: none; }

/* ---------- trailer ---------- */
.trailer { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: var(--shadow-float); }
.player video { width: 100%; aspect-ratio: 16 / 9; }

/* ---------- control ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); }
.tic { width: 26px; height: 26px; color: var(--accent); }
.tile h3 { margin-top: 14px; font-size: var(--t-title); }
.tile p { margin-top: 8px; color: var(--muted); font-size: var(--t-small); }
@media (min-width: 768px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.note {
  margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; color: var(--fg-2); max-width: 68ch;
}
.note strong { color: var(--fg); }

/* ---------- early access ---------- */
.demo {
  display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3);
  background: var(--panel); border: 1px solid rgba(240,160,60,.45); border-radius: var(--r-lg); padding: var(--sp-4);
  box-shadow: 0 0 0 1px rgba(240,160,60,.12), 0 0 60px -30px var(--accent-glow);
}
.demo h3 { font-size: var(--t-h3); }
.demo p { margin-top: var(--sp-2); color: var(--muted); max-width: 60ch; }
@media (min-width: 768px) { .demo { flex-direction: row; align-items: center; justify-content: space-between; } .demo .btn { flex: none; } }
.who-cta { margin-top: var(--sp-2); font-weight: 600; }
.who-cta a { display: inline-flex; min-height: 44px; align-items: center; }
.plans { display: grid; gap: var(--sp-3); }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.plan h3 { margin-top: 0; }
.plan p { color: var(--muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }

/* request form: labels always visible, errors under their field, one primary action */
.request { margin-top: var(--sp-3); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); scroll-margin-top: calc(var(--header-h) + 16px); }
.request-h h3 { font-size: var(--t-h3); }
.request-h p { margin-top: 8px; color: var(--muted); }
.rform { margin-top: var(--sp-3); }
.fields { display: grid; gap: var(--sp-2); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: var(--t-small); color: var(--fg); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-2);
  font: var(--t-small)/1.4 var(--sans);           /* 16px+ so phones don't zoom on focus */
  transition: border-color var(--dur-fast) ease-out;
}
.field textarea { resize: vertical; min-height: 112px; }
.field select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #e07a6a; }
.ferr { min-height: 0; color: #f0a596; font-size: var(--t-label); }
.ferr:empty { display: none; }
.fhelp { color: var(--faint); font-size: var(--t-label); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rform-foot { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rform-foot .btn[disabled] { opacity: .7; cursor: progress; }
.rstatus { font-size: var(--t-small); color: var(--fg-2); }
.rstatus.err { color: #f0a596; }
.rdone { margin-top: var(--sp-3); display: flex; gap: var(--sp-2); align-items: flex-start; padding: var(--sp-3); border-radius: var(--r); background: rgba(111,181,122,.10); border: 1px solid rgba(111,181,122,.35); }
.rdone[hidden], .rform[hidden] { display: none; }
.rdone:focus { outline: none; }
.rdone .ic { width: 28px; height: 28px; color: var(--ok); }
.rdone h3 { font-size: var(--t-title); }
.rdone p { margin-top: 6px; color: var(--fg-2); }
@media (min-width: 768px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .request { padding: var(--sp-4); } }

.contact { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; color: var(--muted); }
.contact p { overflow-wrap: anywhere; }
.copy-status { flex-basis: 100%; min-height: 1.6em; font: var(--t-label)/1.6 var(--mono); color: var(--ok); }
.copy-status.err { color: var(--fg-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: var(--sp-4) 0; color: var(--faint); font-size: var(--t-small); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .brand { font-size: var(--t-body); }
.foot .mark { width: 22px; }
.foot-in p:last-child { margin-left: auto; }

/* ---------- the reveal: raw output on top, the agent's reading underneath ----------
   Two layers with byte-identical text, so they align by construction. On wide
   screens the agent's layer is masked to a soft disc that follows the pointer.
   The mask bitmap is fixed; only mask-position moves, so it's a cheap composite.
   Phones get both layers stacked and labelled: no hover there, so no spotlight. */
.xr { padding: var(--sp-6) 0; }
.xr-stage { --mx: 560px; --my: 300px; --xr-d: 300px; }   /* no-JS rest spot: over the findings */
.xr-pane {
  position: relative; container-type: inline-size;
  max-width: 860px; margin: 0 auto; padding: var(--sp-3); overflow: auto;
  background: var(--media); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(240,160,60,.06);
}
/* overflow: hidden — a transformed glow near the edge would otherwise widen the scroll area */
.xr-stack { position: relative; width: max-content; min-width: 100%; overflow: hidden; }
.xr-pre { font: 400 clamp(12px, 2cqw, 15px)/1.62 var(--mono); }
.ln { display: flex; align-items: center; gap: .8em; min-height: 1.62em; }
.ln .t { flex: none; white-space: pre; }
.ln.hit .t, .ln.hit-soft .t, .ln-act .t { min-width: 53ch; }   /* one gutter for every annotation */
.xr-raw .xr-pre { color: var(--muted); }
.xr-raw .cmd .t { color: var(--fg-2); }
.cur { display: inline-block; width: .6em; height: 1.1em; background: var(--muted); animation: xr-blink 1.1s step-end infinite; }
@keyframes xr-blink { 50% { opacity: 0; } }

.xr-agent { background: var(--media); }
.xr-agent .xr-pre { color: var(--fg-2); }
.xr-agent .cmd .t { color: var(--fg); }
.xr-agent .hit { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.xr-agent .hit .t { color: var(--fg); }
.xr-agent .hit-soft { box-shadow: inset 2px 0 0 var(--line-2); }
.xr-agent .ln-act .t { color: var(--accent); font-weight: 600; }
.chip {
  flex: none; display: inline-flex; align-items: center; white-space: nowrap;
  padding: .12em .6em; border-radius: 3px; font: 600 .8em/1.5 var(--sans); letter-spacing: .01em;
}
.chip-med { background: var(--accent); color: var(--on-accent); }
.chip-low { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(240,160,60,.55); }
.chip-ev  { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-ok  { color: var(--ok); background: rgba(111,181,122,.12); box-shadow: inset 0 0 0 1px rgba(111,181,122,.4); }

.xr-cap { font: 500 var(--t-label)/1.4 var(--mono); color: var(--faint); margin-bottom: 10px; }

/* the light: its own layer, clipped by the pane, so it can never tint the page around it */
.xr-glow {
  position: absolute; left: 0; top: 0; width: var(--xr-d); height: var(--xr-d);
  border-radius: 50%; pointer-events: none; opacity: 0;
  transform: translate3d(calc(var(--mx) - 50%), calc(var(--my) - 50%), 0);
  background: radial-gradient(circle closest-side, rgba(240,160,60,.09), rgba(240,160,60,0) 75%);
  box-shadow: inset 0 0 0 1px rgba(240,160,60,.13);
  transition: opacity var(--dur-base) ease-out;
}
.xr-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  font: 500 var(--t-label) var(--mono); color: var(--faint);
  background: rgba(14,13,12,.92); padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--line);
  transition: opacity var(--dur-base) ease-out;
}
.xr-foot { max-width: 860px; margin: var(--sp-3) auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.xr-chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }
.xr-chips li { font-size: var(--t-label); color: var(--muted); padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.xr-chips .m { color: var(--accent); font-weight: 600; margin-right: 4px; }
.xr-toggle { margin-left: auto; }

@media (max-width: 767px) {
  .xr-agent { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
  .ln .t { min-width: 0 !important; }
  .xr-glow, .xr-hint, .xr-toggle { display: none !important; }
}
@media (min-width: 768px) {
  .xr-pane { cursor: crosshair; }
  .xr-cap { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .xr-agent {
    position: absolute; inset: 0;
    -webkit-mask-image: radial-gradient(circle closest-side, #000 62%, rgba(0,0,0,.5) 80%, transparent 100%);
            mask-image: radial-gradient(circle closest-side, #000 62%, rgba(0,0,0,.5) 80%, transparent 100%);
    -webkit-mask-size: var(--xr-d) var(--xr-d); mask-size: var(--xr-d) var(--xr-d);
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: calc(var(--mx) - var(--xr-d) / 2) calc(var(--my) - var(--xr-d) / 2);
            mask-position: calc(var(--mx) - var(--xr-d) / 2) calc(var(--my) - var(--xr-d) / 2);
  }
  .xr.is-live .xr-glow { opacity: 1; }
  .xr.is-open .xr-agent { -webkit-mask-image: none; mask-image: none; }
  .xr.is-open .xr-glow, .xr.is-open .xr-hint, .xr.is-touched .xr-hint { opacity: 0; }
}
@media (min-width: 1024px) { .xr-stage { --xr-d: 340px; } }

/* ---------- reveal on scroll (JS only; without JS everything is visible) ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
/* the six tiles arrive as a short sequence, 40ms apart */
.js .grid.reveal .tile { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .grid.reveal.in { opacity: 1; transform: none; }
.js .grid.reveal.in .tile { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .grid.reveal .tile, .js .users.reveal .user { opacity: 1; transform: none; transition: none; }
  .btn, .vtoggle, .nav a, .top, .menu-btn { transition: none; }
  .btn:active, .vtoggle:active { transform: none; }
  .cur { animation: none; }
  .xr-glow, .xr-hint { transition: none; }
}
