/* SIGNUM product page (signum.html). Loaded after styles.css.

   Black and gold, scoped to this page's <main>; the nav and footer stay on
   Torquetta's shared theme, apart from the SIGNUM crest in the nav.

   Two layers:
   1. The base rules: every section is plain, readable, stacked content.
      This is what a visitor with reduced motion, or with no JavaScript, gets.
   2. html.motion-on rules: added by assets/signum-motion.js. The five scenes
      at the top pin to the screen and move in 3D as the visitor scrolls; the
      script writes --p, --enter, --exit, --k, --o and --c (see that file). */

/* ------------------------------------------------------------ theme */

.signum-theme {
  --bg: #0c0a06;
  --bg-panel: #17130b;
  --bg-panel-2: #1d180d;
  --border: #332a18;
  --border-strong: #4a3d20;
  --text: #f3ede0;
  --text-dim: #b5a689;
  --text-faint: #a08f6e; /* about 6.2:1 on --bg, 5.5:1 on --bg-panel-2. */
  --accent: #c9a227;
  --accent-dim: #a3841f;
  --accent-bright: #e0bc4a;
  --accent-contrast: #0c0a06;
  --good: #7ec850;
  --warn: #e0bc4a;
  --bad: #d87c6f;
  --font-head: 'Sora', var(--font-system);
  --font-crest: 'Cinzel', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
/* Safari before 16 has no overflow: clip, so the page could scroll sideways.
   hidden on <main> would break the pinned scenes (it becomes the scroll box
   the stages stick to), so the fallback goes on <html>, whose overflow
   belongs to the viewport. */
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}

/* Cinzel is kept for the SIGNUM name and the opening line only. Everything
   else reads in a plain modern face (Marc, 2026-10-14: less Roman). */
.signum-theme h1 {
  font-family: var(--font-crest);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 4.1vw, 3.5rem);
  line-height: 1.1;
}
.signum-theme h2,
.signum-theme h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.02em;
}
.signum-theme h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; }
.signum-theme h3 { font-size: 1.25rem; margin-top: 0; }
.signum-theme .eyebrow { color: var(--accent); }
.signum-theme .fineprint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 8px;
}
.signum-theme .fineprint-center { text-align: center; }

.signum-theme .divider {
  position: relative;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}
.signum-theme .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  width: 7px;
  height: 7px;
  background: var(--accent-bright);
  transform: translateY(-50%) rotate(45deg);
}

/* ---- The opening line (the hero h1) ----
   The words a reader and a search engine get are the visually hidden copy
   (.sr-only); the animated words are aria-hidden. Every move below is a
   transform, filter or background, so nothing shifts the layout.
   Story: the words rise out of depth; "guessing." wobbles like an estimate
   that will not settle, then snaps sharp; "real insight." fills with gold
   left to right like a measurement, then a brushed-metal band travels
   across the gold every few seconds. Scrolling out tilts the line back and
   slides the band (--p from signum-motion.js). Reduced motion and
   ?motion=calm (html.motion-calm): no animation, gold fully filled.
   Without JavaScript the arrival still plays and ends on plain text. */
.signum-theme .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@property --hl-fill { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@property --hl-sheen { syntax: '<percentage>'; inherits: false; initial-value: 130%; }

.signum-theme .hl { position: relative; }
.signum-theme .hl-w { display: inline-block; transform-origin: 50% 100%; }
.signum-theme .hl-guess { display: inline-block; }
.signum-theme .hl-gold {
  display: inline-block;
  /* a little room so the band and descenders are not clipped */
  padding: 0 0.04em 0.08em;
  margin: 0 -0.04em -0.08em;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image:
    linear-gradient(105deg, rgba(255,247,222,0) 42%, rgba(255,247,222,0.85) 50%, rgba(255,247,222,0) 58%),
    linear-gradient(90deg, #b8941f 0%, #e0bc4a 38%, #c9a227 68%, #e8c860 100%),
    linear-gradient(var(--text), var(--text));
  background-repeat: no-repeat;
  background-size: 300% 100%, var(--hl-fill) 100%, 100% 100%;
  background-position: calc(var(--hl-sheen) - var(--p, 0) * 260%) 0, 0 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
}

/* the hero-copy fade-in (.stagger) is not used on the h1: it has its own */
.signum-theme .hero-copy > .hl { opacity: 1; transform: none; transition: none; }

@keyframes hl-rise {
  from { opacity: 0; transform: perspective(700px) translateY(0.45em) translateZ(-80px) rotateX(-80deg); filter: blur(4px); }
  60% { filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes hl-unsettle {
  0% { filter: blur(3.5px); transform: translateX(-0.03em) skewX(-6deg); text-shadow: 0.18em 0 0.06em rgba(224,188,74,0.55), -0.14em 0 0.06em rgba(243,237,224,0.35); }
  14% { transform: translateX(0.035em) skewX(5deg); }
  28% { filter: blur(2.5px); transform: translateX(-0.025em) skewX(-4deg); text-shadow: -0.12em 0 0.05em rgba(224,188,74,0.5), 0.1em 0 0.05em rgba(243,237,224,0.3); }
  42% { transform: translateX(0.03em) skewX(3deg); }
  56% { filter: blur(1.6px); transform: translateX(-0.015em) skewX(-2deg); text-shadow: 0.07em 0 0.04em rgba(224,188,74,0.45), -0.06em 0 0.04em rgba(243,237,224,0.25); }
  70% { transform: translateX(0.012em) skewX(1deg); }
  84% { filter: blur(0.8px); transform: none; text-shadow: 0.02em 0 0.02em rgba(224,188,74,0.3); }
  90% { filter: none; transform: scale(1.035); text-shadow: none; }
  100% { filter: none; transform: none; text-shadow: none; }
}
@keyframes hl-fill { from { --hl-fill: 0%; } to { --hl-fill: 100%; } }
/* the band crosses in the first part of each cycle, then waits off to the left,
   where scrolling (--p) can draw it across again */
@keyframes hl-sheen {
  0% { --hl-sheen: 130%; }
  22% { --hl-sheen: -30%; }
  22.01% { --hl-sheen: 130%; }
  100% { --hl-sheen: 130%; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-calm) .signum-theme .hl-w { animation: hl-rise 0.85s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
  html:not(.motion-calm) .signum-theme .hl-w.d1 { animation-delay: 0.05s; }
  html:not(.motion-calm) .signum-theme .hl-w.d2 { animation-delay: 0.17s; }
  html:not(.motion-calm) .signum-theme .hl-w.d3 { animation-delay: 0.45s; }
  html:not(.motion-calm) .signum-theme .hl-w.d4 { animation-delay: 0.55s; }
  html:not(.motion-calm) .signum-theme .hl-w.d5 { animation-delay: 0.65s; }
  html:not(.motion-calm) .signum-theme .hl-w.d6 { animation-delay: 0.75s; }
  html:not(.motion-calm) .signum-theme .hl-w.d7 { animation-delay: 0.85s; }
  html:not(.motion-calm) .signum-theme .hl-guess { animation: hl-unsettle 1.15s linear 0.3s both; }
  html:not(.motion-calm) .signum-theme .hl-gold {
    animation:
      hl-fill 0.55s cubic-bezier(0.45, 0, 0.2, 1) both,
      hl-sheen 7s ease-in-out infinite;
  }
  html:not(.motion-calm) .signum-theme .hl-gold.g1 { animation-delay: 1.35s, 2.7s; }
  html:not(.motion-calm) .signum-theme .hl-gold.g2 { animation-duration: 0.8s, 7s; animation-delay: 1.75s, 2.95s; }
}

/* Scrolling out of the opening: the line tips back into the page. */
html.motion-on .signum-theme .hl {
  transform-origin: 50% 100%;
  transform: perspective(900px) rotateX(calc(var(--p, 0) * 38deg)) translateZ(calc(var(--p, 0) * -60px));
}
html.motion-on .signum-theme .hl-gold { filter: brightness(calc(1 + var(--p, 0) * 0.5)); }

/* ------------------------------------------------------------ scenes, base */

.signum-theme .scene {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.signum-theme .stage {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 72px 0;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.signum-theme .stage > .wrap {
  position: relative;
  z-index: 3;
  transform-style: preserve-3d;
}
.signum-theme .stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.signum-theme .stage-grid-flip > .beats { order: 2; }
.signum-theme .stage-grid-flip > .visual { order: 1; }
.signum-theme .stage-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.signum-theme .beats-center { text-align: center; max-width: 720px; }
.signum-theme .beats-center .lead,
.signum-theme .beats-center p { margin-left: auto; margin-right: auto; }
.signum-theme .beat + .beat { margin-top: 40px; }
.signum-theme .beat p { max-width: 520px; }
.signum-theme .visual { position: relative; min-width: 0; }

.signum-theme .stage-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 70% 40%, rgba(201,162,39,0.16), transparent 70%),
    radial-gradient(30% 30% at 20% 80%, rgba(224,188,74,0.07), transparent 70%);
}
.signum-theme .glow-left { background: radial-gradient(40% 40% at 25% 50%, rgba(201,162,39,0.13), transparent 70%), radial-gradient(35% 30% at 80% 30%, rgba(224,188,74,0.06), transparent 70%); }
.signum-theme .glow-right { background: radial-gradient(40% 40% at 72% 45%, rgba(201,162,39,0.13), transparent 70%), radial-gradient(30% 30% at 15% 75%, rgba(224,188,74,0.06), transparent 70%); }
.signum-theme .glow-center { background: radial-gradient(45% 40% at 50% 62%, rgba(201,162,39,0.15), transparent 70%); }

@media (max-width: 860px) {
  .signum-theme .stage-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .signum-theme .stage-grid-flip > .beats { order: 1; }
  .signum-theme .stage-grid-flip > .visual { order: 2; }
}

/* ---- the opening ---- */

.signum-theme .scene-hero { overflow: visible; } /* .hero hides overflow; that would stop the stage pinning */
.signum-theme .scene-hero .stage { padding: 96px 0 88px; }
.signum-theme .hero-scrim {
  background:
    linear-gradient(180deg, rgba(12,10,6,0.72) 0%, rgba(12,10,6,0.86) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,10,6,0.82) 0%, rgba(12,10,6,0.35) 60%);
}
.signum-theme .hero-copy { position: relative; z-index: 2; }
.signum-theme .hero-copy .lead { max-width: 560px; }
.signum-theme .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.signum-theme .scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, transparent, var(--accent));
}


/* ------------------------------------------------------------ the app, drawn */

/* Every app screen on this page is drawn from signum-mobile, at the app's
   own sizes in points (1pt = 1px here) and then scaled as a whole, so the
   text stays as crisp as the real thing. Tokens are copied from
   signum-mobile src/constants/theme.ts: the app is cooler and darker than
   this page's warm black, on purpose. Change both together. */
.signum-theme .app {
  --a-bg: #0b0c0e;
  --a-surface: #131519;
  --a-alt: #1a1d22;
  --a-border: #262a31;
  --a-border2: #333944;
  --a-text: #e9ebef;
  --a-dim: #8b929c;
  --a-faint: #808792;
  --a-gold: #c9a227;
  --a-gold2: #e0bc4a;
  --a-ink: #0b0c0e;
  --a-danger: #e5605d;
  --a-success: #6fbf73;
  --a-card: linear-gradient(180deg, #1a1d22, #131519);
  --a-goldfill: linear-gradient(180deg, #e0bc4a, #c9a227);
  --a-shadow-sm: 0 4px 10px rgba(0,0,0,0.28);
  --a-shadow-md: 0 8px 20px rgba(0,0,0,0.32);
  font-family: 'IBM Plex Sans', var(--font-system);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: normal;
  color: var(--a-text);
  text-align: left;
}
.signum-theme .app svg { display: block; flex-shrink: 0; }
.signum-theme .app span,
.signum-theme .app b,
.signum-theme .app i,
.signum-theme .app em { font-style: normal; }

/* The device: 390 x 844 points inside an 11px bezel, scaled by --ds. */
.signum-theme .device-fit {
  --dw: 412px;
  --dh: 866px;
  --ds: 0.72;
  position: relative;
  width: calc(var(--dw) * var(--ds));
  height: calc(var(--dh) * var(--ds));
  flex-shrink: 0;
  transform-style: preserve-3d;
}
.signum-theme .device {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dw);
  height: var(--dh);
  padding: 11px;
  border-radius: 58px;
  background: linear-gradient(145deg, #34373d, #0d0e10 38%, #1d2025 72%, #3d4149);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 50px 90px rgba(0,0,0,0.6), 0 0 60px rgba(201,162,39,0.12);
  transform: scale(var(--ds));
  transform-origin: 0 0;
  transform-style: preserve-3d;
}
.signum-theme .device > .app:not(.float),
.signum-theme .a-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(65% 55% at 12% 0%, #241c10 0%, #0b0c0e 55%),
    #0b0c0e;
}
.signum-theme .device > .app:not(.float) { border-radius: 47px; }
/* A screen cut short (scene phones) fades out at the bottom edge. */
.signum-theme .device-crop > .app::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(11,12,14,0), #0b0c0e);
  pointer-events: none;
}
.signum-theme .a-chat::after { display: none; }

.signum-theme .fit-hero { --dh: 866px; --ds: 0.72; }
.signum-theme .fit-scene { --dh: 640px; --ds: 0.84; }
.signum-theme .fit-support { --dh: 560px; --ds: 0.74; }

/* status bar, header, shared bits */
.signum-theme .a-status {
  position: relative;
  height: 52px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
}
.signum-theme .a-island {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 120px;
  height: 34px;
  margin-left: -60px;
  border-radius: 20px;
  background: #000;
}
.signum-theme .a-status-r {
  width: 26px;
  height: 12px;
  border-radius: 4px;
  border: 1.5px solid var(--a-text);
  background: linear-gradient(90deg, var(--a-text) 70%, transparent 70%);
  background-clip: content-box;
  padding: 1.5px;
}
.signum-theme .a-head { padding: 12px 20px; display: flex; flex-direction: column; gap: 2px; }
.signum-theme .a-wordmark { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 18px; letter-spacing: 2.5px; line-height: 1.2; }
.signum-theme .a-titlerow { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.signum-theme .a-brand { width: 20px; height: 20px; color: var(--a-gold2); }
.signum-theme .a-brand-lg { width: 22px; height: 22px; }
.signum-theme .a-title { font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.signum-theme .a-title-vox { font-size: 20px; }
.signum-theme .a-rule { display: block; height: 3px; width: 46px; border-radius: 2px; margin-top: 8px; background: linear-gradient(90deg, #e0bc4a, #c9a227); }
.signum-theme .a-pad { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; }
.signum-theme .a-pad-top { padding-top: 20px; gap: 20px; }
.signum-theme .a-eyebrow { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: -16px; }
.signum-theme .a-heading { font-weight: 700; font-size: 24px; letter-spacing: -0.3px; }
.signum-theme .a-nav {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}
.signum-theme .a-nav svg { position: absolute; left: 12px; width: 24px; height: 24px; color: var(--a-text); }
.signum-theme .a-section,
.signum-theme .app .a-section {
  color: var(--a-faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 8px 0 4px;
}
.signum-theme .a-card { background: var(--a-surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--a-shadow-sm); }
.signum-theme .a-eyebrow-sm { display: block; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1.5px; }
.signum-theme .a-period { display: block; font-weight: 600; font-size: 19px; margin-top: 2px; }
.signum-theme .a-sub-mono { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; margin-top: -4px; margin-bottom: 4px; }
.signum-theme .a-delta { border-radius: 6px; padding: 4px 8px; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 12px; }
.signum-theme .a-delta-up { background: rgba(111,191,115,0.12); color: var(--a-success); }
.signum-theme .a-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; }
.signum-theme .a-legend span { display: flex; align-items: center; gap: 6px; }
.signum-theme .a-legend i { width: 10px; height: 10px; border-radius: 3px; }
.signum-theme .a-faint { color: var(--a-faint) !important; }

/* buttons (ui.tsx Button, and the Dicta action bar) */
.signum-theme .a-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 14px;
  padding: 12px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.signum-theme .a-btn svg { width: 18px; height: 18px; }
.signum-theme .a-btn-ghost { background: var(--a-surface); border: 1px solid var(--a-border2); color: var(--a-text); }
.signum-theme .a-btn-gold { background: var(--a-goldfill); color: var(--a-ink); box-shadow: 0 10px 22px rgba(201,162,39,0.4); }
.signum-theme .a-btn-block { flex: none; border-radius: 10px; padding: 14px 20px; font-size: 12px; letter-spacing: 1.4px; }
.signum-theme .a-btn-block.a-btn-ghost { background: var(--a-alt); }
.signum-theme .a-btn-block.a-btn-gold { background: var(--a-gold); box-shadow: none; }

/* pills (ui.tsx Pill) */
.signum-theme .pill {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.3;
}
.signum-theme .pill-dim { background: var(--a-alt); border-color: var(--a-border); color: var(--a-dim); }
.signum-theme .pill-accent { background: rgba(201,162,39,0.14); border-color: var(--a-gold); color: var(--a-gold2); }
.signum-theme .pill-danger { background: rgba(229,96,93,0.14); border-color: var(--a-danger); color: var(--a-danger); }

/* ---- Dicta tab (index.tsx) ---- */

.signum-theme .a-streak {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: var(--a-card);
  box-shadow: var(--a-shadow-md);
  margin-bottom: 4px;
}
.signum-theme .a-ring { width: 70px; height: 70px; transform: rotate(-90deg); }
.signum-theme .a-ring circle { fill: none; stroke-width: 7; }
.signum-theme .a-ring-track { stroke: #1c1f24; }
.signum-theme .a-ring-fill { stroke: var(--a-gold2); stroke-linecap: round; stroke-dasharray: 197.9; stroke-dashoffset: 118.7; }
.signum-theme .a-ring-num { position: absolute; left: 12px; top: 12px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; }
.signum-theme .a-streak-text { display: flex; flex-direction: column; }
.signum-theme .a-streak-label { font-weight: 700; font-size: 28px; letter-spacing: -0.6px; line-height: 1.15; }
.signum-theme .a-streak-sub { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.signum-theme .a-stats { display: flex; gap: 8px; margin-bottom: 4px; }
.signum-theme .a-stat {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 12px;
  background: var(--a-card);
  box-shadow: var(--a-shadow-sm);
}
.signum-theme .a-stat-icon { display: flex; align-items: center; gap: 5px; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.signum-theme .a-stat-icon svg { width: 12px; height: 12px; color: var(--a-gold); }
.signum-theme .a-stat-num { color: var(--a-gold2); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 22px; margin-top: 6px; line-height: 1.2; }
.signum-theme .a-stat-lbl { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; line-height: 1.3; }
.signum-theme .a-stat-chev { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; color: var(--a-faint); }
.signum-theme .a-spark { background: var(--a-surface); border: 1px solid var(--a-border); border-radius: 14px; padding: 12px; margin-bottom: 4px; }
.signum-theme .a-spark-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.signum-theme .a-spark-head svg { width: 14px; height: 14px; }
.signum-theme .a-spark-row { display: flex; align-items: flex-end; gap: 4px; height: 48px; }
.signum-theme .a-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.signum-theme .a-bar i { display: block; width: 100%; border-radius: 3px; background: var(--a-border); }
.signum-theme .a-bar b { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 10px; line-height: 1; }
.signum-theme .a-bar-today i { background: var(--a-goldfill); }
.signum-theme .a-bar-today b { color: var(--a-gold); font-weight: 600; }
.signum-theme .a-bar .h6 { height: 3px; }
.signum-theme .a-bar .h45 { height: 15px; }
.signum-theme .a-bar .h55 { height: 19px; }
.signum-theme .a-bar .h70 { height: 24px; }
.signum-theme .a-bar .h80 { height: 27px; }
.signum-theme .a-bar .h90 { height: 31px; }
.signum-theme .a-dayhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--a-border);
}
.signum-theme .a-dayhead-title { font-weight: 600; font-size: 16px; letter-spacing: -0.2px; }
.signum-theme .a-split {
  background: rgba(201,162,39,0.14);
  border: 1px solid var(--a-gold);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--a-gold2);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.3;
}
.signum-theme .a-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--a-surface);
  box-shadow: var(--a-shadow-sm);
}
.signum-theme .a-badge { width: 38px; height: 38px; border-radius: 12px; background: rgba(201,162,39,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.signum-theme .a-badge svg { width: 17px; height: 17px; color: var(--a-gold2); }
.signum-theme .a-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.signum-theme .a-ex { display: flex; flex-direction: column; gap: 2px; }
.signum-theme .a-ex-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signum-theme .a-ex-meta { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.signum-theme .a-load { display: block; height: 3px; border-radius: 2px; background: var(--a-alt); overflow: hidden; margin-top: 2px; }
.signum-theme .a-load i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #e0bc4a, #c9a227); }
.signum-theme .a-load .w70 { width: 70%; }
.signum-theme .a-load .w80 { width: 80%; }
.signum-theme .a-time { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.5px; margin-top: 2px; white-space: nowrap; }
.signum-theme .a-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 84px;
  display: flex;
  gap: 8px;
  padding: 8px 20px;
  border-top: 1px solid var(--a-border);
  background: var(--a-bg);
}
.signum-theme .a-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  display: flex;
  padding-top: 8px;
  border-top: 1px solid var(--a-border);
  background: var(--a-bg);
}
.signum-theme .a-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.signum-theme .a-tab svg { width: 24px; height: 24px; }
.signum-theme .a-tab-on { color: var(--a-gold); }

/* the floating pieces around the opening phone */
.signum-theme .float { position: absolute; z-index: 2; }
.signum-theme .float-a { left: -150px; top: 150px; width: 150px; transform: translateZ(90px); }
.signum-theme .float-b { right: -190px; top: 420px; width: 280px; transform: translateZ(140px); }
.signum-theme .float-c { left: -60px; bottom: 210px; transform: translateZ(70px) scale(1.6); transform-origin: 0 50%; }
.signum-theme .a-stat-solo { box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05); }
.signum-theme .a-mover { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--a-surface); box-shadow: var(--a-shadow-sm); }
.signum-theme .float .a-mover { box-shadow: 0 24px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05); }
.signum-theme .a-mover-body { flex: 1; display: flex; flex-direction: column; }
.signum-theme .a-mover-ex { font-weight: 600; font-size: 14px; }
.signum-theme .a-mover-detail { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 12px; margin-top: 2px; }
.signum-theme .a-mover-badge { color: var(--a-success); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 12px; background: rgba(111,191,115,0.12); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.signum-theme .a-tag-pr { display: flex; align-items: center; gap: 3px; background: var(--a-success); border-radius: 999px; padding: 2px 8px; color: var(--a-ink); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 10px; box-shadow: 0 12px 24px rgba(0,0,0,0.5); }
.signum-theme .a-tag-pr svg { width: 10px; height: 10px; }

@media (max-width: 860px) {
  .signum-theme .hero-visual { margin-top: 8px; }
  .signum-theme .fit-hero { --ds: 0.6; }
  .signum-theme .float-a { left: -40px; }
  .signum-theme .float-b { right: -60px; }
  .signum-theme .float-c { left: -20px; }
}

/* ---- New entry, Talk it through (journal.tsx, voice-journal.tsx) ---- */

.signum-theme .dicta-visual { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.signum-theme .a-toggle { display: flex; gap: 3px; padding: 3px; border-radius: 6px; background: var(--a-alt); }
.signum-theme .a-toggle span { flex: 1; text-align: center; padding: 8px 0; border-radius: 4px; color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; border: 1px solid transparent; }
.signum-theme .a-toggle .a-toggle-on { background: var(--a-surface); border-color: var(--a-border); color: var(--a-text); }
.signum-theme .a-vstatus { display: flex; align-items: center; gap: 8px; margin-top: -8px; }
.signum-theme .a-dot-live { width: 8px; height: 8px; border-radius: 4px; background: var(--a-success); }
.signum-theme .a-vstatus-text { flex: 1; color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; }
.signum-theme .a-timer { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 13px; }
.signum-theme .a-transcript { display: flex; flex-direction: column; gap: 12px; min-height: 250px; padding: 12px; border-radius: 10px; border: 1px solid var(--a-border); background: var(--a-surface); margin-top: -8px; }
.signum-theme .a-turn { display: flex; flex-direction: column; gap: 4px; }
.signum-theme .a-who { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.signum-theme .a-turn-text { font-size: 15px; line-height: 22px; }
.signum-theme .a-turn-text .w { display: inline-block; }
.signum-theme .app-card { width: 360px; max-width: 100%; }
.signum-theme .dicta-entry,
.signum-theme .import-card {
  padding: 6px 14px 14px;
  border-radius: 20px;
  border: 1px solid var(--a-border);
  background: radial-gradient(80% 60% at 12% 0%, #241c10 0%, #0b0c0e 60%), #0b0c0e;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
}
.signum-theme .import-card { padding-top: 14px; }
.signum-theme .import-card { display: flex; flex-direction: column; gap: 12px; }
.signum-theme .a-import { display: flex; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--a-border); background: var(--a-surface); }
.signum-theme .a-check { width: 20px; height: 20px; border-radius: 6px; margin-top: 2px; background: var(--a-gold); border: 1px solid var(--a-gold); flex-shrink: 0; }
.signum-theme .a-import-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.signum-theme .a-import-title { font-weight: 600; font-size: 14px; white-space: pre; }
.signum-theme .a-import-sub { color: var(--a-dim); font-size: 12px; white-space: pre; }
.signum-theme .paper {
  align-self: flex-end;
  width: 230px;
  padding: 18px 20px;
  color: #2b2414;
  border-radius: 4px;
  box-shadow: 0 24px 40px rgba(0,0,0,0.55);
  font-family: 'Caveat', 'Segoe Print', cursive;
  font-size: 1.3rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  transform: rotate(-4deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 28px, rgba(80,110,160,0.25) 28px 29px), linear-gradient(180deg, #efe6cf, #e2d6b6);
}

/* ---- Vox tab (chat.tsx) ---- */

.signum-theme .vox-visual { display: flex; justify-content: center; }
.signum-theme .a-chat { display: flex; flex-direction: column; }
.signum-theme .a-msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; margin: 0; }
.signum-theme .app .bubble {
  margin: 0;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 21px;
}
.signum-theme .app .bubble.me { align-self: flex-end; background: var(--a-goldfill); color: var(--a-ink); font-weight: 500; box-shadow: 0 10px 22px rgba(201,162,39,0.4); }
.signum-theme .app .bubble.vox { align-self: flex-start; background: var(--a-surface); border: 1px solid var(--a-border); border-top-color: rgba(224,188,74,0.35); color: var(--a-text); box-shadow: var(--a-shadow-sm); }
.signum-theme .a-composer { display: flex; align-items: center; gap: 8px; margin: 12px; padding: 4px 4px 4px 12px; border-radius: 20px; background: var(--a-card); box-shadow: var(--a-shadow-md); }
.signum-theme .a-placeholder { flex: 1; color: var(--a-dim); font-size: 15px; padding: 10px 8px 10px 0; }
.signum-theme .a-mic { width: 20px; height: 20px; color: var(--a-dim); }
.signum-theme .a-send { width: 38px; height: 38px; border-radius: 999px; background: var(--a-goldfill); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(201,162,39,0.4); }
.signum-theme .a-send svg { width: 18px; height: 18px; color: var(--a-ink); }

/* ---- support: a problem reported through Vox ---- */

.signum-theme .support-visual { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.signum-theme .report,
.signum-theme .inbox {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(201,162,39,0.08);
}
/* The report is drawn as the email support_email.py sends: subject
   "[Vox report] <summary>", then the account line, summary and details. */
.signum-theme .report {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: linear-gradient(160deg, #f6f2e8, #e9e2cf);
  color: #2b2414;
  font-size: 0.8rem;
  line-height: 1.45;
}
.signum-theme .report-subject { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: #1d180d; }
.signum-theme .report-line { padding-bottom: 6px; border-bottom: 1px solid rgba(43,36,20,0.15); color: #4a4030; }
.signum-theme .report-line b { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 6px; color: #6b5414; }
.signum-theme .report-body { font-family: var(--font-mono); font-size: 0.7rem; color: #2b2414; }
.signum-theme .inbox { padding: 14px; background: linear-gradient(160deg, rgba(29,24,13,0.96), rgba(17,14,8,0.96)); }
.signum-theme .inbox-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; }
.signum-theme .inbox-count { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.signum-theme .inbox-row { display: flex; align-items: center; gap: 10px; padding: 11px 10px; margin-top: 6px; border-radius: 8px; font-size: 0.82rem; color: var(--text-dim); }
.signum-theme .inbox-new { color: var(--text); font-weight: 600; background: rgba(201,162,39,0.12); box-shadow: inset 2px 0 0 var(--accent-bright); }
.signum-theme .inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; }
.signum-theme .inbox-dot-read { background: var(--border-strong); }
.signum-theme .inbox-bar { height: 8px; width: 70%; border-radius: 4px; background: rgba(243,237,224,0.08); }
.signum-theme .inbox-bar-short { width: 46%; }

/* ---- insights: four real screens ---- */

.signum-theme .insight-visual { width: 100%; }
.signum-theme .deck {
  --ps: 0.74;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  transform-style: preserve-3d;
}
.signum-theme .panel { position: relative; width: calc(330px * var(--ps)); height: calc(640px * var(--ps)); flex-shrink: 0; }
.signum-theme .panel-fit { position: absolute; left: 0; top: 0; width: 330px; height: 640px; transform: scale(var(--ps)); transform-origin: 0 0; }
.signum-theme .a-screen { border-radius: 30px; border: 1px solid #262a31; box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 0 40px rgba(201,162,39,0.08); }
.signum-theme .a-screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  background: linear-gradient(180deg, rgba(11,12,14,0), #0b0c0e);
}

/* Volume trend (volume-insights.tsx) */
.signum-theme .a-range { font-weight: 700; font-size: 20px; }
.signum-theme .a-range-unit { color: var(--a-dim); font-weight: 400; font-size: 13px; }
.signum-theme .a-range-sub { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; margin-bottom: 8px; }
.signum-theme .a-chart { position: relative; height: 130px; margin-top: 4px; }
.signum-theme .a-ribbon { position: absolute; inset: 0; width: 100%; height: 100%; }
.signum-theme .a-ribbon-band { fill: var(--a-gold); opacity: 0.1; }
.signum-theme .a-ribbon-line { fill: none; stroke: var(--a-gold); stroke-width: 1; stroke-dasharray: 2 2; opacity: 0.4; vector-effect: non-scaling-stroke; }
.signum-theme .a-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 100%; }
.signum-theme .a-vbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.signum-theme .a-vbar b { height: 9px; margin-bottom: 2px; font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 6.5px; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap; }
.signum-theme .a-vbar i { display: block; width: 65%; border-radius: 2px; background: var(--a-gold); opacity: 0.55; }
.signum-theme .a-flag-dim b { color: var(--a-dim); }
.signum-theme .a-flag-dim i { background: var(--a-dim); opacity: 1; }
.signum-theme .a-flag-gold b { color: var(--a-gold); }
.signum-theme .a-flag-gold i { opacity: 1; }
.signum-theme .a-vbar .h34 { height: 40px; }
.signum-theme .a-vbar .h62 { height: 74px; }
.signum-theme .a-vbar .h66 { height: 79px; }
.signum-theme .a-vbar .h68 { height: 81px; }
.signum-theme .a-vbar .h70 { height: 83px; }
.signum-theme .a-vbar .h72 { height: 86px; }
.signum-theme .a-vbar .h74 { height: 88px; }
.signum-theme .a-vbar .h92 { height: 109px; }
.signum-theme .a-axis { display: flex; gap: 4px; margin-top: 4px; }
.signum-theme .a-axis span { flex: 1; text-align: center; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 9px; }
.signum-theme .sw-range { background: var(--a-gold); opacity: 0.55; }
.signum-theme .sw-deload { background: var(--a-dim); }
.signum-theme .sw-caution { background: var(--a-gold); }
.signum-theme .sw-high { background: var(--a-danger); }

/* Volume calendar (volume-calendar.tsx) */
.signum-theme .a-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.signum-theme .a-navarrows { display: flex; gap: 4px; }
.signum-theme .a-navarrows svg { width: 18px; height: 18px; margin: 4px; color: var(--a-text); }
.signum-theme .a-cal-hero { display: flex; align-items: flex-start; justify-content: space-between; }
.signum-theme .a-hero-val { display: flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: 30px; margin-top: 2px; line-height: 1.15; }
.signum-theme .a-hero-unit { color: var(--a-dim); font-weight: 400; font-size: 13px; }
.signum-theme .a-calspark { width: 100%; height: 46px; margin-top: 4px; }
.signum-theme .a-calspark-area { fill: var(--a-gold); opacity: 0.08; }
.signum-theme .a-calspark-line { fill: none; stroke: var(--a-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.signum-theme .a-dot-pr { fill: var(--a-success); }
.signum-theme .a-dot-pain { fill: var(--a-danger); }
.signum-theme .a-ranges { display: flex; gap: 4px; margin: 4px 0 12px; }
.signum-theme .a-ranges span { border-radius: 6px; padding: 6px 12px; border: 1px solid transparent; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.signum-theme .a-ranges .a-range-on { background: var(--a-alt); border-color: var(--a-border2); color: var(--a-text); }
.signum-theme .a-weekdays,
.signum-theme .a-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.signum-theme .a-weekdays span { text-align: center; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.5px; margin-bottom: 4px; }
.signum-theme .a-month span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; }
.signum-theme .a-month i { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 11.5px; }
.signum-theme .a-month b { height: 11px; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 8px; line-height: 11px; }
.signum-theme .d-rest { background: var(--a-alt); color: var(--a-faint); }
.signum-theme .d-session { background: var(--a-gold); color: var(--a-ink); }
.signum-theme .d-pr { background: var(--a-success); color: var(--a-ink); }
.signum-theme .d-pain { background: var(--a-danger); color: var(--a-text); }
.signum-theme .a-month .d-today { border: 2px solid var(--a-gold2); }
.signum-theme .sw-rest { background: var(--a-alt); }
.signum-theme .sw-session { background: var(--a-gold); }
.signum-theme .sw-pr { background: var(--a-success); }
.signum-theme .sw-pain { background: var(--a-danger); }

/* Exercise insights (exercise-insights.tsx) */
.signum-theme .a-intro { color: var(--a-dim); font-size: 13px; line-height: 19px; margin-bottom: 4px; }
.signum-theme .a-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.signum-theme .a-chip { border-radius: 999px; padding: 7px 13px; border: 1px solid var(--a-border); color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.signum-theme .a-chip-on { background: var(--a-alt); border-color: var(--a-gold); color: var(--a-text); }
.signum-theme .a-chip-add { border-style: dashed; border-color: var(--a-border2); color: var(--a-gold); }
.signum-theme .a-focus-head { display: flex; justify-content: space-between; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 1px; }
.signum-theme .a-untrack { letter-spacing: 0; text-decoration: underline; }
.signum-theme .a-focus-val { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.signum-theme .a-focus-num { font-weight: 700; font-size: 32px; line-height: 1.15; }
.signum-theme .a-focus-unit { color: var(--a-dim); font-size: 13px; }
.signum-theme .a-focus-val .a-delta { margin-left: auto; align-self: center; }
.signum-theme .a-focus-cap { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.signum-theme .a-e1rm { width: 100%; height: 130px; margin-top: 8px; }
.signum-theme .a-e1rm-area { fill: var(--a-gold); opacity: 0.1; }
.signum-theme .a-e1rm-line { fill: none; stroke: var(--a-gold2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Split balance (split-insights.tsx) */
.signum-theme .a-donut { position: relative; width: 180px; height: 180px; align-self: center; margin-bottom: 8px; }
.signum-theme .a-donut svg { width: 180px; height: 180px; transform: rotate(-90deg); }
.signum-theme .a-donut circle { fill: none; stroke: var(--a-gold); stroke-width: 20; }
.signum-theme .a-donut .a-donut-s1 { stroke-dasharray: 178.3 236.4; }
.signum-theme .a-donut .a-donut-s2 { stroke-dasharray: 149.3 265.4; stroke-dashoffset: -178.3; stroke-opacity: 0.62; }
.signum-theme .a-donut .a-donut-s3 { stroke-dasharray: 87.1 327.6; stroke-dashoffset: -327.6; stroke-opacity: 0.34; }
.signum-theme .a-donut .a-donut-hole { fill: var(--a-bg); stroke: none; }
.signum-theme .a-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.signum-theme .a-donut-num { font-weight: 700; font-size: 30px; line-height: 1.1; }
.signum-theme .a-donut-lbl { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: 1px; margin-top: 2px; }
.signum-theme .a-bal { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--a-border); }
.signum-theme .a-bal:last-child { border-bottom: 0; }
.signum-theme .a-bal i { width: 10px; height: 10px; border-radius: 5px; background: var(--a-gold); }
.signum-theme .a-bal .o2 { opacity: 0.62; }
.signum-theme .a-bal .o3 { opacity: 0.34; }
.signum-theme .a-bal span { flex: 1; font-size: 13px; }
.signum-theme .a-bal b { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 12px; }
.signum-theme .a-bal em { width: 36px; text-align: right; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.signum-theme .a-focusrow { flex-direction: row; align-items: center; gap: 8px; font-size: 12.5px; line-height: 18px; }
.signum-theme .a-stalled { flex-shrink: 0; border-radius: 6px; padding: 3px 7px; background: var(--a-alt); border: 1px solid var(--a-border); color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 9.5px; letter-spacing: 0.5px; }

@media (max-width: 860px) {
  .signum-theme .deck { --ps: 0.62; gap: 14px; }
}

/* ---- Gym screen (gyms/[gymId].tsx) ---- */

.signum-theme .roster-visual { display: flex; justify-content: center; }
.signum-theme .a-gymname { font-weight: 700; font-size: 24px; letter-spacing: -0.3px; margin-bottom: 20px; }
.signum-theme .a-seclabel { display: block; padding-bottom: 4px; border-bottom: 1px solid var(--a-border); color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; }
.signum-theme .a-readiness { display: flex; align-items: center; gap: 20px; margin: 4px 0 20px; }
.signum-theme .a-gauge { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.signum-theme .a-gauge svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.signum-theme .a-gauge circle { fill: none; stroke-width: 8; }
.signum-theme .a-gauge-track { stroke: #1c1f24; }
.signum-theme .a-gauge-fill { stroke: var(--a-gold2); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 49.8; }
.signum-theme .a-gauge-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.signum-theme .a-gauge-num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; line-height: 1.1; }
.signum-theme .a-gauge-lbl { color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }
.signum-theme .a-readiness-meta { display: flex; flex-direction: column; gap: 4px; color: var(--a-dim); font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.3px; }
.signum-theme .a-coachlabel { display: block; margin-top: 4px; color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; }
.signum-theme .a-ath { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; margin-top: -4px; border-bottom: 1px solid var(--a-border); }
.signum-theme .a-ath-name { font-weight: 500; font-size: 14px; white-space: nowrap; }
.signum-theme .a-ath-tags { display: flex; align-items: center; gap: 4px; }
.signum-theme .a-pct { color: var(--a-faint); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.3px; white-space: nowrap; }

/* ------------------------------------------------------------ scenes, in motion */

/* How much scroll each scene holds, in screens (svh: the small viewport,
   so iOS Safari's moving toolbar does not change it). */
html.motion-on .signum-theme .scene.len-18 { height: 180vh; height: 180svh; }
html.motion-on .signum-theme .scene.len-25 { height: 250vh; height: 250svh; }
html.motion-on .signum-theme .scene.len-3 { height: 300vh; height: 300svh; }

/* The stage pins just under the sticky site header (--hdr), never under it.
   signum-motion.js reads this top to measure the scene's progress. */
.signum-theme { --hdr: 101px; }
html.motion-on .signum-theme .scene .stage {
  position: sticky;
  top: var(--hdr);
  height: calc(100vh - var(--hdr));
  height: calc(100svh - var(--hdr));
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
}
html.motion-on .signum-theme .scene .stage > .wrap { width: 100%; }

/* Between scenes: the next stage rises out of the floor and the last one
   tips away overhead. */
html.motion-on .signum-theme .scene .stage > .wrap {
  transform-origin: 50% 100%;
  transform:
    translateY(calc(var(--exit, 0) * -60px))
    translateZ(calc((1 - var(--enter, 1)) * -260px - var(--exit, 0) * 180px))
    rotateX(calc((1 - var(--enter, 1)) * 18deg - var(--exit, 0) * 14deg));
  opacity: calc(0.25 + var(--enter, 1) * 0.75 - var(--exit, 0) * 0.9);
  will-change: transform, opacity;
}
html.motion-on .signum-theme .stage-glow {
  transform: translate3d(calc((var(--p, 0) - 0.5) * 8%), calc((0.5 - var(--p, 0)) * 6%), 0);
}

/* Anything with a range waits for it. */
html.motion-on .signum-theme .scene [data-k] { --k: 0; }
html.motion-on .signum-theme .scene [data-o] { --o: 0; }

/* Text beats share one place and hand over to each other. */
html.motion-on .signum-theme .beats {
  display: grid;
  perspective: 900px;
}
html.motion-on .signum-theme .beat {
  grid-area: 1 / 1;
  margin: 0;
  align-self: center;
}
html.motion-on .signum-theme .beat[data-k],
html.motion-on .signum-theme .beat[data-o] {
  opacity: calc(var(--k, 1) - var(--o, 0));
  transform:
    translateY(calc((1 - var(--k, 1)) * 48px - var(--o, 0) * 48px))
    rotateX(calc((1 - var(--k, 1)) * -28deg + var(--o, 0) * 28deg));
  transform-origin: 50% 50% -60px;
}


/* The opening */
html.motion-on .signum-theme .scroll-cue { display: flex; opacity: calc(1 - var(--p, 0) * 6); }
html.motion-on .signum-theme .hero-copy {
  transform: translateY(calc(var(--p, 0) * -80px)) translateZ(calc(var(--p, 0) * -140px));
  opacity: calc(1 - var(--p, 0) * 1.25);
}
.signum-theme .hero-visual { display: flex; justify-content: center; perspective: 1400px; }
.signum-theme .phone-rig {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(10deg) rotateZ(-3deg);
}
html.motion-on .signum-theme .phone-rig {
  transform:
    translateZ(calc(var(--p, 0) * 80px))
    rotateY(calc(-26deg + var(--p, 0) * 36deg))
    rotateX(calc(12deg - var(--p, 0) * 12deg))
    rotateZ(calc(-4deg + var(--p, 0) * 4deg));
  animation: rig-float 7s ease-in-out infinite;
}
@keyframes rig-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
html.motion-on .signum-theme .float-a { transform: translate3d(calc(var(--p, 0) * -60px), calc(var(--p, 0) * -40px), calc(90px + var(--p, 0) * 120px)); }
html.motion-on .signum-theme .float-b { transform: translate3d(calc(var(--p, 0) * 70px), 0, calc(140px + var(--p, 0) * 90px)); }
html.motion-on .signum-theme .float-c { transform: translate3d(calc(var(--p, 0) * -40px), calc(var(--p, 0) * 40px), calc(70px + var(--p, 0) * 150px)) scale(1.6); }

@media (max-width: 860px) {
  /* On a phone or tablet the opening is not pinned: the words and buttons
     come first, and the phone sits below them in the page, rising into view
     like the cards further down (.rise3d). It never covers the text. */
  html.motion-on .signum-theme .scene.scene-hero.len-18 { height: auto; --p: 0 !important; }
  html.motion-on .signum-theme .scene-hero .stage { position: relative; top: auto; height: auto; padding: 32px 0 56px; display: block; }
  html.motion-on .signum-theme .scene-hero .stage-grid { display: flex; flex-direction: column; gap: 40px; }
  /* Not pinned here, so the phone turns with its own place on the screen
     (--v, signum-motion.js): tilted away as it comes up from the bottom,
     facing you near the middle, leaning the other way as it leaves at the
     top. Marc, 2026-10-16: on the iPhone it "doesn't move as you scroll". */
  html.motion-on .signum-theme .scene-hero .phone-rig {
    transform:
      translateZ(calc(var(--v, 0.3) * 90px))
      rotateY(calc(-28deg + var(--v, 0.3) * 56deg))
      rotateX(calc(14deg - var(--v, 0.3) * 24deg))
      rotateZ(calc(-4deg + var(--v, 0.3) * 7deg));
  }
  /* (.scene.scene-hero: stronger than the phone rules for pinned scenes) */
  html.motion-on .signum-theme .scene.scene-hero .stage > .wrap,
  html.motion-on .signum-theme .scene.scene-hero .stage-grid { height: auto; }
  html.motion-on .signum-theme .scene.scene-hero .visual { flex: none; height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; display: flex; }
  /* the video's Pause button sits at the top right, clear of the phone */
  .signum-theme .scene-hero .hero-video-toggle { top: 12px; bottom: auto; right: 16px; }
}

/* DICTA: the athlete talks it through, the entry comes out of the phone,
   then the paper log and the session found in it. */
html.motion-on .signum-theme .dicta-visual {
  display: block;
  position: relative;
  height: 560px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
html.motion-on .signum-theme .dicta-phone {
  position: absolute;
  left: 0;
  top: 0;
  opacity: calc(1 - var(--o, 0) * 0.65);
  transform: translateZ(calc(var(--o, 0) * -220px)) rotateY(calc(12deg - var(--p, 0) * 8deg - var(--o, 0) * 14deg));
  transform-origin: 0 50%;
}
html.motion-on .signum-theme .a-turn-text .w {
  opacity: var(--k, 1);
  transform: translateY(calc((1 - var(--k, 1)) * 14px));
}
html.motion-on .signum-theme .a-turn[data-k] { opacity: var(--k, 1); transform: translateY(calc((1 - var(--k, 1)) * 16px)); }
html.motion-on .signum-theme .dicta-entry {
  position: absolute;
  right: -10px;
  top: 120px;
  z-index: 2;
  opacity: calc(var(--k, 1) * (1 - var(--o, 0) * 0.7));
  transform:
    translate3d(calc((1 - var(--k, 1)) * -240px), 0, calc((1 - var(--k, 1)) * -260px + var(--k, 1) * 110px - var(--o, 0) * 260px))
    rotateY(calc((1 - var(--k, 1)) * 40deg - 8deg))
    scale(calc(0.8 + var(--k, 1) * 0.2));
}
html.motion-on .signum-theme .dicta-visual .paper {
  position: absolute;
  left: 40px;
  bottom: 30px;
  z-index: 3;
  opacity: var(--k, 1);
  transform:
    translateX(calc((1 - var(--k, 1)) * -160%))
    translateZ(calc(60px - (1 - var(--k, 1)) * 200px))
    rotateY(calc((1 - var(--k, 1)) * 70deg))
    rotate(calc(-6deg - (1 - var(--k, 1)) * 20deg));
}
html.motion-on .signum-theme .import-card {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 330px;
  z-index: 4;
  opacity: var(--k, 1);
  transform:
    translate3d(calc((1 - var(--k, 1)) * -200px), calc((1 - var(--k, 1)) * 40px), calc(120px - (1 - var(--k, 1)) * 200px))
    rotateY(calc(-10deg + (1 - var(--k, 1)) * 30deg))
    scale(calc(0.7 + var(--k, 1) * 0.3));
}

/* VOX */
html.motion-on .signum-theme .vox-visual { perspective: 1100px; }
html.motion-on .signum-theme .vox-phone {
  transform: rotateY(calc(18deg - var(--p, 0) * 24deg)) rotateX(calc(6deg - var(--p, 0) * 4deg));
}
html.motion-on .signum-theme .app .bubble {
  opacity: var(--k, 1);
  transform:
    translateZ(calc((1 - var(--k, 1)) * -380px))
    translateY(calc((1 - var(--k, 1)) * 50px))
    rotateX(calc((1 - var(--k, 1)) * -30deg));
}
html.motion-on .signum-theme .app .bubble.vox { transform-origin: 0 100%; }
html.motion-on .signum-theme .app .bubble.me { transform-origin: 100% 100%; }
html.motion-on .signum-theme .device .a-msgs { transform-style: preserve-3d; }

/* Support: the request becomes the report email, which flies in depth out
   of the chat and lands in the support inbox; then Vox says it went. */
html.motion-on .signum-theme .support-visual {
  display: block;
  position: relative;
  height: 470px;
  max-width: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}
html.motion-on .signum-theme .support-phone {
  position: absolute;
  left: 0;
  top: 0;
  transform: rotateY(calc(14deg - var(--p, 0) * 10deg)) rotateX(4deg);
}
html.motion-on .signum-theme .inbox {
  position: absolute;
  right: 0;
  top: 110px;
  width: 44%;
  opacity: var(--k, 1);
  transform-origin: 100% 50%;
  transform: translateZ(calc((1 - var(--k, 1)) * -240px)) rotateY(calc(-16deg - (1 - var(--k, 1)) * 30deg));
}
html.motion-on .signum-theme .inbox-new {
  opacity: var(--k, 1);
  transform: translateX(calc((1 - var(--k, 1)) * -24px));
}
html.motion-on .signum-theme .report {
  --fx: 104%;
  --fy: -110px;
  position: absolute;
  left: 4%;
  top: 250px;
  width: 50%;
  z-index: 2;
  transform-origin: 50% 0;
  opacity: calc(var(--k, 1) - max(0, var(--o, 0) - 0.8) * 5);
  transform:
    translate3d(
      calc(var(--fx) * var(--o, 0)),
      calc(var(--fy) * var(--o, 0)),
      calc(var(--o, 0) * (1 - var(--o, 0)) * 4 * 260px - (1 - var(--k, 1)) * 140px + 60px))
    rotateX(calc((1 - var(--k, 1)) * 85deg))
    rotateY(calc(var(--o, 0) * (1 - var(--o, 0)) * 4 * -30deg))
    rotateZ(calc(var(--o, 0) * (1 - var(--o, 0)) * 4 * 6deg))
    scale(calc(1 - var(--o, 0) * 0.45));
}

/* Insights: four screens stand up from a stack and fan out. */
html.motion-on .signum-theme .insight-visual { perspective: 1400px; }
html.motion-on .signum-theme .deck {
  display: block;
  position: relative;
  height: calc(640px * var(--ps));
  transform: rotateY(calc((var(--p, 0) - 0.5) * -12deg));
}
html.motion-on .signum-theme .panel {
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: calc(330px * var(--ps) / -2);
  opacity: calc(0.2 + var(--k, 1) * 0.8);
  transform-origin: 50% 100%;
  transform:
    translateX(calc(var(--x) * var(--k, 1)))
    translateY(calc((1 - var(--k, 1)) * 170px))
    translateZ(calc(var(--z) * var(--k, 1) - (1 - var(--k, 1)) * var(--stack)))
    rotateX(calc((1 - var(--k, 1)) * 74deg))
    rotateY(calc(var(--ry) * var(--k, 1)));
}
html.motion-on .signum-theme .panel-trend { --x: -140%; --z: -70px; --ry: 24deg; --stack: 0px; }
html.motion-on .signum-theme .panel-cal { --x: -47%; --z: 30px; --ry: 8deg; --stack: 12px; }
html.motion-on .signum-theme .panel-pr { --x: 47%; --z: 30px; --ry: -8deg; --stack: 24px; }
html.motion-on .signum-theme .panel-split { --x: 140%; --z: -70px; --ry: -24deg; --stack: 36px; }
html.motion-on .signum-theme .fineprint-center { margin-top: 24px; opacity: var(--k, 1); }
@media (max-width: 860px) {
  html.motion-on .signum-theme .deck { --ps: 0.56; }
  html.motion-on .signum-theme .panel-trend { --x: -96%; --z: -120px; --ry: 30deg; }
  html.motion-on .signum-theme .panel-cal { --x: -32%; --z: 20px; --ry: 10deg; }
  html.motion-on .signum-theme .panel-pr { --x: 32%; --z: 20px; --ry: -10deg; }
  html.motion-on .signum-theme .panel-split { --x: 96%; --z: -120px; --ry: -30deg; }
}

/* Gym: the phone lies on a tilted table and the athletes are dealt onto it. */
html.motion-on .signum-theme .roster-visual { perspective: 1200px; }
html.motion-on .signum-theme .roster-phone {
  transform: rotateX(calc(26deg - var(--p, 0) * 20deg)) rotateZ(calc(-5deg + var(--p, 0) * 5deg)) rotateY(calc(-10deg + var(--p, 0) * 10deg));
}
html.motion-on .signum-theme .roster-phone .a-pad { transform-style: preserve-3d; }
html.motion-on .signum-theme .a-ath,
html.motion-on .signum-theme .a-coachlabel[data-k],
html.motion-on .signum-theme .a-readiness {
  opacity: var(--k, 1);
  transform:
    translateY(calc((1 - var(--k, 1)) * -60px))
    translateZ(calc((1 - var(--k, 1)) * 300px))
    rotateX(calc((1 - var(--k, 1)) * -40deg));
}

/* Cards in the ordinary sections rise up out of the page as they arrive.
   The hover lift uses translate, not transform, so the two do not fight. */
html.motion-on .signum-theme .rise3d {
  opacity: calc(0.35 + var(--c, 1) * 0.65);
  transform-origin: 50% 100%;
  transform:
    perspective(1000px)
    translateY(calc((1 - var(--c, 1)) * 80px))
    rotateX(calc((1 - var(--c, 1)) * 42deg))
    rotateY(calc((1 - var(--c, 1)) * var(--ry, 0deg)));
}
html.motion-on .signum-theme .tilt-grid > .rise3d:nth-child(odd),
html.motion-on .signum-theme .flow > .rise3d:nth-child(odd) { --ry: 14deg; }
html.motion-on .signum-theme .tilt-grid > .rise3d:nth-child(even),
html.motion-on .signum-theme .flow > .rise3d:nth-child(even) { --ry: -14deg; }


/* Narrow screens (tablets): the cards shrink, nothing else changes. */
@media (max-width: 860px) and (min-width: 601px) {
  .signum-theme .vox-visual,
  .signum-theme .roster-visual { justify-content: center; }
  html.motion-on .signum-theme .dicta-visual { height: 470px; }
  html.motion-on .signum-theme .dicta-entry { top: 230px; right: -12px; width: 300px; }
  html.motion-on .signum-theme .dicta-visual .paper { left: auto; right: 10px; bottom: 200px; width: 180px; font-size: 1.05rem; }
  html.motion-on .signum-theme .import-card { width: 280px; bottom: 10px; right: -8px; }
  html.motion-on .signum-theme .support-visual { height: 470px; }
  html.motion-on .signum-theme .inbox { left: 8%; right: 0; width: auto; top: 300px; transform-origin: 50% 0; transform: translateZ(calc((1 - var(--k, 1)) * -240px)) rotateX(calc((1 - var(--k, 1)) * -50deg)); }
  html.motion-on .signum-theme .report { --fx: 0%; --fy: 120px; left: 12%; width: 84%; top: 150px; }
  html.motion-on .signum-theme .inbox-row { padding: 8px; font-size: 0.75rem; }
}

/* Phones. Checked in WebKit at iPhone 15 Pro and Pro Max sizes and in
   Chromium at 390 (2026-10-15, after Marc's iPhone recording).
   - The header is shorter, and each pinned stage starts under it.
   - The drawn phones are scaled to nearly the full width (--ds) and cut to
     the space left under the words, with a fade at the bottom, so the words
     and the screen always fit one screen together and never overlap.
   - Shorter scenes: less scrolling for the same story.
   - Insights: one screen at a time, large, in turn (data-k-sm / data-o-sm). */
@media (max-width: 600px) {
  .signum-theme { --hdr: 81px; }
  .nav .signum-page-brand-icon { width: 44px; height: 44px; }
  .nav .signum-page-brand { gap: 12px; }
  .nav .signum-page-brand-name { font-size: 1.25rem; }
  .signum-theme .wrap { padding: 0 20px; }
  .signum-theme .fit-hero { --ds: 0.84; }
  .signum-theme .float { display: none; }
  .signum-theme .fit-scene,
  .signum-theme .fit-support { --ds: 0.84; --dh: 640px; }
  .signum-theme .app-card { width: auto; }
  .signum-theme .deck { --ps: 0.84; }

  html.motion-on .signum-theme .scene.len-3 { height: 240vh; height: 240svh; }
  html.motion-on .signum-theme .scene.len-25 { height: 190vh; height: 190svh; }
  html.motion-on .signum-theme .scene-insight.len-3 { height: 300vh; height: 300svh; }
  html.motion-on .signum-theme .scene .stage { padding: 14px 0 10px; align-items: stretch; }
  html.motion-on .signum-theme .scene .stage > .wrap { height: 100%; }
  html.motion-on .signum-theme .scene .stage-grid,
  html.motion-on .signum-theme .scene .stage-stack { height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  html.motion-on .signum-theme .scene .beats { flex: none; }
  html.motion-on .signum-theme .scene h2 { font-size: 1.45rem; margin-bottom: 8px; }
  html.motion-on .signum-theme .scene .beat p { font-size: 0.88rem; line-height: 1.45; margin-bottom: 6px; }
  html.motion-on .signum-theme .scene .beat .fineprint { font-size: 0.74rem; }
  html.motion-on .signum-theme .scene .eyebrow { font-size: 0.68rem; margin-bottom: 8px; }
  html.motion-on .signum-theme .scroll-cue { display: none; }
  html.motion-on .signum-theme .scene .visual {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    max-width: none;
    position: relative;
    display: block;
    overflow: hidden;
    overflow: clip;
    perspective: 1100px;
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
    mask-image: linear-gradient(180deg, #000 86%, transparent);
  }
  html.motion-on .signum-theme .scene .visual .device-fit { margin: 0 auto; }

  /* DICTA: the entry and the import card rise inside the screen area, the
     paper log tucks in at its top right. Nothing crosses the words. */
  html.motion-on .signum-theme .dicta-phone { position: absolute; left: 0; right: 0; top: 0; transform-origin: 50% 0; transform: translateZ(calc(var(--o, 0) * -160px)); }
  html.motion-on .signum-theme .dicta-entry,
  html.motion-on .signum-theme .import-card {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 10%;
    width: auto;
    transform-origin: 50% 100%;
  }
  html.motion-on .signum-theme .dicta-entry {
    opacity: calc(var(--k, 1) * (1 - var(--o, 0)));
    transform: translateY(calc((1 - var(--k, 1)) * 70px)) translateZ(calc((1 - var(--k, 1)) * -160px)) rotateX(calc((1 - var(--k, 1)) * 35deg));
  }
  html.motion-on .signum-theme .import-card {
    transform: translateY(calc((1 - var(--k, 1)) * 70px)) translateZ(calc((1 - var(--k, 1)) * -160px)) rotateX(calc((1 - var(--k, 1)) * 35deg));
  }
  html.motion-on .signum-theme .dicta-visual .paper {
    left: auto;
    right: 4px;
    top: 8%;
    bottom: auto;
    width: 172px;
    font-size: 1rem;
    padding: 12px 14px;
    transform: translateX(calc((1 - var(--k, 1)) * 120%)) rotate(-5deg);
  }

  /* Vox and the gym: the phone, a little turned, then square on. */
  html.motion-on .signum-theme .vox-phone { transform: rotateY(calc(10deg - var(--p, 0) * 10deg)); }
  html.motion-on .signum-theme .roster-phone { transform: rotateX(calc(14deg - var(--p, 0) * 14deg)); transform-origin: 50% 0; }

  /* Support: the report drops out of the chat into the inbox below it. */
  html.motion-on .signum-theme .support-phone { position: absolute; left: 0; right: 0; top: 0; transform: none; }
  html.motion-on .signum-theme .report { --fx: 0%; --fy: 110px; left: 4%; right: 4%; width: auto; top: 18%; }
  html.motion-on .signum-theme .inbox { left: 0; right: 0; width: auto; top: auto; bottom: 8%; z-index: 1; transform-origin: 50% 100%; transform: translateZ(calc((1 - var(--k, 1)) * -200px)) rotateX(calc((1 - var(--k, 1)) * 40deg)); }
  html.motion-on .signum-theme .inbox-row { padding: 8px; font-size: 0.75rem; }

  /* Insights: one screen at a time, large. */
  html.motion-on .signum-theme .scene-insight .insight-visual { display: flex; flex-direction: column; }
  html.motion-on .signum-theme .deck { flex: 1 1 0; min-height: 0; height: auto; transform: none; }
  html.motion-on .signum-theme .panel {
    left: 50%;
    top: 0;
    margin-left: calc(330px * var(--ps) / -2);
    opacity: calc(var(--k, 1) - var(--o, 0));
    transform-origin: 50% 50%;
    transform:
      translateX(calc(var(--o, 0) * -24%))
      translateZ(calc((1 - var(--k, 1)) * -240px - var(--o, 0) * 120px))
      rotateY(calc((1 - var(--k, 1)) * -60deg + var(--o, 0) * 55deg));
  }
  html.motion-on .signum-theme .fineprint-center { flex: none; margin-top: 8px; font-size: 0.72rem; }
}
@media (min-width: 420px) and (max-width: 600px) {
  .signum-theme .fit-hero,
  .signum-theme .fit-scene,
  .signum-theme .fit-support { --ds: 0.92; }
  .signum-theme .deck { --ps: 0.92; }
}

/* ------------------------------------------------------------ ordinary sections */

/* Marble and the statue are accents now, not the whole look. */
.signum-theme .marble-band {
  background:
    linear-gradient(180deg, rgba(12,10,6,0.95), rgba(12,10,6,0.97)),
    url('images/signum-marble.jpg') center / cover no-repeat;
}
.signum-theme .statue-band {
  position: relative;
  overflow: hidden;
}
.signum-theme .statue-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(35%) saturate(120%) hue-rotate(-12deg) contrast(1.05) brightness(0.7);
  opacity: 0.35;
  z-index: 0;
}
.signum-theme .statue-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,10,6,0.55) 0%, rgba(12,10,6,0.7) 45%, rgba(12,10,6,0.95) 100%);
  z-index: 0;
}
.signum-theme .statue-band > .wrap {
  position: relative;
  z-index: 1;
}

.signum-theme .card {
  position: relative;
  overflow: hidden;
  transition: translate .35s ease, box-shadow .35s ease, border-color .35s ease, background .35s ease;
  background: linear-gradient(135deg, rgba(23,19,11,0.8), rgba(29,24,13,0.6));
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 12px;
}
.signum-theme .card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s ease;
}
.signum-theme .card:hover {
  translate: 0 -6px;
  box-shadow: 0 24px 48px rgba(201, 162, 39, 0.15), 0 0 32px rgba(201, 162, 39, 0.08);
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, rgba(23,19,11,0.95), rgba(29,24,13,0.8));
}
.signum-theme .card:hover::after { transform: scaleX(1); }

/* The four product emblems: large, in a glowing gold badge (2026-09-19). */
.signum-theme .emblem-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  padding: 16px;
  color: var(--accent);
  background: radial-gradient(circle, rgba(201,162,39,0.16) 0%, rgba(201,162,39,0.03) 70%, transparent 100%);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(201,162,39,0.25));
  transition: transform .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.signum-theme .card:hover .emblem-icon {
  transform: translateY(-3px) scale(1.08);
  color: var(--accent-bright);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(201,162,39,0.3);
}

/* The workflow: four steps on a gold line. */
.signum-theme .flow {
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
.signum-theme .flow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent);
  opacity: 0.6;
}
.signum-theme .flow-step {
  position: relative;
  padding: 0 4px;
}
.signum-theme .flow-step .card-num {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg);
  color: var(--accent-bright);
  margin-bottom: 20px;
}
@media (max-width: 860px) {
  .signum-theme .flow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .signum-theme .flow::before { left: 22px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
  .signum-theme .flow-step { padding-left: 64px; }
  .signum-theme .flow-step .card-num { position: absolute; left: 0; top: 0; }
}

/* Trust signals bar */
.signum-theme .trust-signals {
  background: linear-gradient(90deg, rgba(29,24,13,0.6), rgba(23,19,11,0.8));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin: 48px 0;
}
.signum-theme .trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.signum-theme .trust-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-bright);
  font-family: var(--font-mono);
}
.signum-theme .trust-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
}

/* FAQ */
.signum-theme .faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.signum-theme .faq-item:hover {
  border-color: var(--accent-dim);
  background: rgba(23,19,11,0.5);
}
/* .faq-question is a real <button> so it takes keyboard focus and opens
   with Enter or Space. The reset lines keep it looking like a plain row. */
.signum-theme .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  line-height: inherit;
  text-align: left;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(135deg, rgba(23,19,11,0.4), rgba(29,24,13,0.2));
  transition: background .3s ease, outline .3s ease, outline-offset .3s ease;
}
.signum-theme .faq-question:hover { background: linear-gradient(135deg, rgba(23,19,11,0.6), rgba(29,24,13,0.4)); }
.signum-theme .faq-question:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: -2px; }
.signum-theme .faq-toggle { color: var(--accent); font-size: 1.25rem; transition: transform .3s ease; }
.signum-theme .faq-item.open .faq-toggle { transform: rotate(180deg); }
.signum-theme .faq-answer {
  display: none;
  padding: 24px 20px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.signum-theme .faq-item.open .faq-answer { display: block; }
/* With JavaScript off the questions cannot open, so every answer shows. */
html:not(.js) .signum-theme .faq-answer { display: block; }
html:not(.js) .signum-theme .faq-toggle { display: none; }

/* Pricing */
.signum-theme .pricing-card {
  background: linear-gradient(135deg, rgba(23,19,11,0.8), rgba(29,24,13,0.6));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  position: relative;
  /* opacity and transform are here because the pricing cards are .stagger
     children: this rule replaces the shared reveal transition. */
  transition: border-color .35s ease, box-shadow .35s ease, opacity .35s ease, transform .35s ease;
}
.signum-theme .pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(23,19,11,0.95), rgba(29,24,13,0.8));
  transform: scale(1.05);
}
.signum-theme .pricing-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 24px 48px rgba(201, 162, 39, 0.15);
}
.signum-theme .pricing-tag {
  display: inline-block;
  background: rgba(201, 162, 39, 0.2);
  color: var(--accent-bright);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.signum-theme .pricing-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0;
}
.signum-theme .pricing-desc { color: var(--text-dim); font-size: 0.875rem; margin: 12px 0 20px; }
.signum-theme .pricing-point {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin: 12px 0;
  padding-left: 24px;
  position: relative;
}
.signum-theme .pricing-point::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: bold;
}

/* Waitlist */
.signum-theme .email-capture {
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(224,188,74,0.05));
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}
.signum-theme .email-capture h3 { margin-top: 0; font-size: 1.6rem; }
.signum-theme .email-form {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.signum-theme .email-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  transition: border-color .3s ease, box-shadow .3s ease, outline .3s ease, outline-offset .3s ease;
}
.signum-theme .email-form input:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.2);
}
.signum-theme .email-form input::placeholder { color: var(--text-faint); }
.signum-theme .email-form button {
  padding: 12px 28px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease, outline .3s ease, outline-offset .3s ease;
}
.signum-theme .email-form button:hover { background: var(--accent-bright); transform: translateY(-2px); }
/* Waitlist result line. A screen reader reads it out when the script fills
   it in (role="status"). Empty, it takes up no room. */
.signum-theme .email-status {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-bright);
}
.signum-theme .email-status:not(:empty) { margin-top: 16px; }
.signum-theme .email-status.is-error { color: var(--bad); }

@media (max-width: 640px) {
  .signum-theme .email-form { flex-direction: column; }
  .signum-theme .email-form input { min-width: auto; }
  .signum-theme .pricing-card.featured { transform: scale(1); }
  .signum-theme .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .signum-theme .trust-number { font-size: 1.375rem; }
  .signum-theme .card,
  .signum-theme .pricing-card,
  .signum-theme .email-capture { padding: 28px 22px; }
}

/* ------------------------------------------------------------ nav brand */

/* This page's header shows the SIGNUM crest, not the plain Torquetta wordmark. */
.signum-page-brand { gap: 16px; }
.signum-page-brand-icon { width: 64px; height: 64px; flex-shrink: 0; }
.signum-page-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.signum-page-brand-name {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}
.signum-page-brand-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--text-dim);
}
.signum-page-brand-sub .brand-torquetta { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------ reduced motion */

/* signum-motion.js never adds motion-on with this setting, so the scenes are
   already still. This switches off the few keyframe animations left. */
@media (prefers-reduced-motion: reduce) {
  .signum-theme .hl-w,
  .signum-theme .hl-guess,
  .signum-theme .hl-gold { animation: none; }
  .signum-theme .phone-rig { animation: none; }
  .signum-theme .card,
  .signum-theme .emblem-icon,
  .signum-theme .card::after { transition: none; }
}
