:root {
  --paper: #f8f8ff;
  --paper-2: #eef1ff;
  --paper-3: #e6ebff;
  --surface: rgba(255, 255, 255, 0.64);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --ink: #172053;
  --muted: #7680bb;
  --line: rgba(92, 102, 212, 0.16);
  --line-strong: rgba(92, 102, 212, 0.34);
  --blue: #5f69ec;
  --blue-soft: #8f97f6;
  --orange: #ff8b2f;
  --orange-soft: rgba(255, 139, 47, 0.16);
  --shadow-soft: 0 22px 72px rgba(54, 66, 171, 0.1);
  --shadow-strong: 0 34px 120px rgba(54, 66, 171, 0.14);
  --radius-panel: 22px;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4.8vw, 78px);
  --hero-brand-opacity: 1;
  --hero-capture-opacity: 1;
  --hero-brand-y: 0px;
  --stage-opacity: 0.92;
  --top-brand-opacity: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  min-height: 620svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 139, 47, 0.11), transparent 22%),
    radial-gradient(circle at 66% 36%, rgba(95, 105, 236, 0.13), transparent 26%),
    linear-gradient(180deg, #fcfcff 0%, #f3f5ff 48%, #f7f7ff 100%);
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
strong {
  margin: 0;
}

.viewport-shell,
#avatar-stage {
  position: fixed;
  inset: 0;
}

.viewport-shell {
  min-height: 100svh;
}

.viewport-shell::before {
  content: "";
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(252, 252, 255, 0.975) 0%, rgba(252, 252, 255, 0.92) 22%, rgba(252, 252, 255, 0.48) 36%, rgba(252, 252, 255, 0.08) 50%, transparent 58%),
    linear-gradient(180deg, rgba(252, 252, 255, 0.82) 0%, rgba(252, 252, 255, 0.34) 14%, transparent 34%, rgba(241, 244, 255, 0.18) 100%);
}

.viewport-shell::after {
  content: "";
  position: fixed;
  z-index: 1;
  right: -8vw;
  top: 16svh;
  width: min(840px, 58vw);
  height: min(620px, 62svh);
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 46%, rgba(95, 105, 236, 0.08) 0%, rgba(95, 105, 236, 0.024) 26%, transparent 54%),
    radial-gradient(circle at 88% 26%, rgba(255, 139, 47, 0.045), transparent 20%);
  opacity: calc(0.36 * var(--hero-capture-opacity) + 0.02);
  filter: blur(12px);
  transition: opacity 320ms ease;
}

#avatar-stage {
  width: 100%;
  height: 100%;
  display: block;
  opacity: var(--stage-opacity);
  pointer-events: none;
  transition: opacity 360ms ease;
  filter: saturate(1.02) contrast(1.02);
}

.hero-brand-field {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: block;
  padding: clamp(74px, 8.2svh, 108px) clamp(28px, 5.6vw, 104px) 0;
  opacity: var(--hero-brand-opacity);
  transform: translate3d(0, var(--hero-brand-y), 0);
  pointer-events: none;
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-brand-field::before {
  content: "";
  position: absolute;
  top: clamp(56px, 7.2svh, 92px);
  left: 0;
  right: 0;
  width: auto;
  height: clamp(124px, 16.2svh, 210px);
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 251, 255, 0.99), rgba(251, 251, 255, 0.82) 56%, rgba(251, 251, 255, 0)),
    linear-gradient(90deg, rgba(255, 139, 47, 0.08), rgba(103, 113, 224, 0.045) 46%, transparent 86%);
  border-top: 1px solid rgba(29, 36, 98, 0.08);
  border-bottom: 1px solid rgba(29, 36, 98, 0.12);
  filter: none;
  opacity: 1;
}

.hero-brand-field span {
  display: block;
  max-width: none;
  color: var(--orange);
  font-family: "Archivo Black", Impact, var(--sans);
  font-size: clamp(68px, 6.05vw, 132px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
  white-space: nowrap;
}

.hero-capture-field,
.hero-record-preview,
.hero-primary-metric {
  position: fixed;
  pointer-events: none;
  opacity: var(--hero-capture-opacity);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-capture-field {
  z-index: 2;
  inset: 0;
  overflow: hidden;
}

.hero-capture-field::before {
  content: "";
  position: absolute;
  right: 4vw;
  bottom: -6svh;
  width: min(1180px, 76vw);
  height: 34svh;
  background:
    linear-gradient(rgba(103, 113, 224, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 113, 224, 0.042) 1px, transparent 1px);
  background-size: 74px 34px, 74px 34px;
  border-top: 1px solid rgba(103, 113, 224, 0.08);
  transform: perspective(900px) rotateX(66deg) skewX(-8deg);
  transform-origin: center top;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 82%, transparent);
}

.hero-capture-field__axis {
  position: absolute;
  left: 57vw;
  top: 10svh;
  width: 1px;
  height: 74svh;
  background: linear-gradient(180deg, transparent, rgba(72, 84, 215, 0.1), rgba(255, 139, 47, 0.1), transparent);
}

.hero-capture-field__ellipse,
.hero-capture-field__arc {
  position: absolute;
  border: 1px solid rgba(103, 113, 224, 0.08);
  border-radius: 50%;
}

.hero-capture-field__ellipse {
  right: 5vw;
  bottom: 9svh;
  width: min(980px, 70vw);
  height: 21svh;
  transform: rotate(-2deg);
}

.hero-capture-field__arc {
  width: 28vw;
  height: 26vw;
  max-width: 520px;
  max-height: 520px;
  border-color: rgba(103, 113, 224, 0.07);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.hero-capture-field__arc--near {
  right: 17vw;
  top: 20svh;
  transform: rotate(28deg) scaleY(0.42);
}

.hero-capture-field__arc--far {
  right: 31vw;
  top: 17svh;
  transform: rotate(-15deg) scaleY(0.34);
  opacity: 0.7;
}

.hero-capture-field__point {
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(103, 113, 224, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.hero-capture-field__point--one {
  right: 41vw;
  top: 27svh;
}

.hero-capture-field__point--two {
  right: 21vw;
  top: 36svh;
}

.hero-capture-field__point--three {
  right: 34vw;
  bottom: 22svh;
}

.hero-capture-field__point--four {
  right: 14vw;
  bottom: 31svh;
}

.hero-layout-field {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: var(--hero-capture-opacity);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-layout-field::before {
  content: "";
  position: absolute;
  left: clamp(28px, 5.6vw, 104px);
  right: clamp(72px, 7.8vw, 150px);
  top: clamp(244px, 27svh, 322px);
  bottom: clamp(64px, 8svh, 118px);
  border-left: 1px solid rgba(29, 36, 98, 0.08);
  border-right: 1px solid rgba(103, 113, 224, 0.08);
  background:
    linear-gradient(rgba(103, 113, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 113, 224, 0.032) 1px, transparent 1px);
  background-size: 120px 72px, 120px 72px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.hero-layout-field__left-column {
  position: absolute;
  left: 0;
  top: clamp(56px, 7.2svh, 92px);
  width: 100vw;
  height: clamp(124px, 16.2svh, 210px);
  background:
    linear-gradient(90deg, rgba(255, 139, 47, 0.07), rgba(103, 113, 224, 0.044) 46%, rgba(251, 251, 255, 0.2) 76%, transparent),
    linear-gradient(180deg, rgba(251, 251, 255, 0.96), rgba(251, 251, 255, 0.48) 72%, transparent);
  border-top: 1px solid rgba(29, 36, 98, 0.08);
  border-right: 0;
  border-bottom: 1px solid rgba(29, 36, 98, 0.12);
}

.hero-layout-field__brand-rule,
.hero-layout-field__copy-rule,
.hero-layout-field__record-rule {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 139, 47, 0.62), rgba(103, 113, 224, 0.22), transparent);
  transform-origin: left;
}

.hero-layout-field__brand-rule {
  left: clamp(28px, 5.6vw, 104px);
  right: clamp(72px, 7.8vw, 150px);
  top: clamp(198px, 24.5svh, 276px);
  width: auto;
  background: linear-gradient(90deg, rgba(29, 36, 98, 0.2), rgba(255, 139, 47, 0.44) 34%, rgba(103, 113, 224, 0.18) 68%, transparent);
}

.hero-layout-field__copy-rule {
  left: clamp(28px, 5.6vw, 104px);
  bottom: clamp(128px, 14svh, 184px);
  width: min(420px, 28vw);
  opacity: 0.8;
}

.hero-layout-field__record-rule {
  right: clamp(72px, 9.6vw, 178px);
  top: clamp(246px, 29svh, 330px);
  width: min(250px, 20vw);
  background: linear-gradient(90deg, rgba(103, 113, 224, 0.4), transparent);
}

.hero-layout-field__stage-rule {
  position: absolute;
  background: rgba(29, 36, 98, 0.1);
}

.hero-layout-field__stage-rule--left {
  left: clamp(560px, 37vw, 830px);
  top: clamp(248px, 28svh, 336px);
  width: 1px;
  height: clamp(320px, 43svh, 560px);
}

.hero-layout-field__stage-rule--right {
  right: clamp(310px, 18vw, 470px);
  top: clamp(248px, 28svh, 336px);
  width: 1px;
  height: clamp(320px, 43svh, 560px);
  opacity: 0.55;
}

.hero-layout-field__stage-rule--floor {
  left: clamp(500px, 34vw, 760px);
  right: clamp(180px, 13vw, 300px);
  bottom: clamp(114px, 13svh, 172px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 113, 224, 0.16), rgba(29, 36, 98, 0.08), transparent);
}

.hero-layout-field__capture-frame {
  position: absolute;
  left: min(740px, 37vw);
  right: clamp(160px, 12vw, 248px);
  top: clamp(228px, 27svh, 310px);
  bottom: clamp(96px, 10svh, 150px);
  border: 1px solid rgba(103, 113, 224, 0.085);
  border-left-color: rgba(255, 139, 47, 0.12);
  border-radius: 0;
  mask-image: linear-gradient(180deg, black 0%, black 88%, transparent 100%);
}

.hero-layout-field__capture-frame::before,
.hero-layout-field__capture-frame::after {
  content: "";
  position: absolute;
  width: clamp(70px, 7vw, 120px);
  height: 1px;
  background: rgba(255, 139, 47, 0.34);
}

.hero-layout-field__capture-frame::before {
  left: -1px;
  top: -1px;
}

.hero-layout-field__capture-frame::after {
  right: -1px;
  bottom: -1px;
}

.hero-layout-field__capture-frame--inner {
  left: min(890px, 45vw);
  right: clamp(240px, 18vw, 360px);
  top: clamp(318px, 36svh, 420px);
  bottom: clamp(170px, 18svh, 250px);
  border-color: rgba(103, 113, 224, 0.055);
  border-left-color: rgba(103, 113, 224, 0.055);
  border-radius: 50%;
  opacity: 0.74;
}

.hero-layout-field__capture-frame--inner::before,
.hero-layout-field__capture-frame--inner::after {
  display: none;
}

.hero-record-preview {
  z-index: 6;
  top: clamp(220px, 25svh, 302px);
  right: clamp(56px, 6.8vw, 128px);
  width: min(322px, 21vw);
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(103, 113, 224, 0.16);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(242, 244, 255, 0.54)),
    rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  color: rgba(23, 32, 83, 0.84);
  font-family: var(--mono);
  transform: translate3d(0, calc(var(--hero-brand-y) * 0.24), 0);
}

.hero-record-preview>span,
.hero-primary-metric span {
  display: block;
  color: rgba(103, 113, 224, 0.66);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.hero-record-preview>strong {
  display: block;
  margin: 10px 0 18px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(18px, 1.2vw, 23px);
  font-weight: 800;
  line-height: 1.02;
}

.hero-record-preview dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.hero-record-preview div {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(103, 113, 224, 0.12);
}

.hero-record-preview dt,
.hero-record-preview dd {
  margin: 0;
}

.hero-record-preview dt {
  color: rgba(29, 36, 98, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.hero-record-preview dd {
  color: rgba(29, 36, 98, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.hero-stage-brief {
  position: fixed;
  z-index: 6;
  left: clamp(54vw, 58vw, 62vw);
  bottom: clamp(86px, 12svh, 152px);
  width: min(286px, 19vw);
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(103, 113, 224, 0.16);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.76), rgba(239, 242, 255, 0.52)),
    rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  color: var(--ink);
  opacity: calc(var(--hero-capture-opacity) * 0.98);
  pointer-events: none;
  transform: translate3d(0, calc(16px + var(--hero-brand-y) * 0.18), 0);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: hero-stage-float 8.4s ease-in-out infinite;
}

.hero-stage-brief::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    linear-gradient(130deg, rgba(255, 139, 47, 0.16), transparent 38%),
    linear-gradient(320deg, rgba(95, 105, 236, 0.18), transparent 44%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.6;
}

.hero-stage-brief p,
.hero-stage-brief dt {
  margin: 0;
  color: rgba(103, 113, 224, 0.7);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-stage-brief strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 800;
  line-height: 1.06;
}

.hero-stage-brief dl {
  margin: 18px 0 0;
  display: grid;
  gap: 0;
}

.hero-stage-brief div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(103, 113, 224, 0.12);
}

.hero-stage-brief dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.hero-primary-metric {
  z-index: 7;
  left: var(--hero-metric-x, 66vw);
  top: var(--hero-metric-y, 53svh);
  color: var(--ink);
  padding: 10px 14px 11px 18px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.76), rgba(246, 247, 255, 0.4));
  box-shadow: 0 16px 48px rgba(72, 84, 215, 0.08);
  backdrop-filter: blur(14px);
  transform: translate3d(20px, -14px, 0);
}

.hero-primary-metric::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 139, 47, 0.62));
}

.hero-primary-metric::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 139, 47, 0.86);
  box-shadow: 0 0 18px rgba(255, 139, 47, 0.22);
}

.hero-primary-metric strong {
  display: block;
  margin-top: 5px;
  color: #4854d7;
  font-family: var(--sans);
  font-size: clamp(14px, 1.35vw, 22px);
  font-weight: 800;
  line-height: 1;
}

.scroll-track {
  height: 620svh;
  pointer-events: none;
}

.chrome,
.metric,
.axis-readout,
.hero-copy p {
  font-family: var(--mono);
}

.chrome {
  position: fixed;
  z-index: 8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.chrome--top {
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  padding: 18px var(--gutter) 0;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(103, 113, 224, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 10px 34px rgba(72, 84, 215, 0.08);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: var(--top-brand-opacity);
  transform: translate3d(0, calc(-8px * (1 - var(--top-brand-opacity))), 0);
  transition:
    opacity 280ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.brand-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.86;
}

.hero-copy {
  display: none;
}

.hero-copy p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(25px, 2.35vw, 36px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0;
  transition: opacity 240ms ease, transform 240ms ease;
}

.story-board {
  position: fixed;
  z-index: 9;
  top: clamp(270px, 30svh, 360px);
  left: clamp(28px, 5.6vw, 104px);
  width: min(560px, 34vw);
  height: min(470px, 48svh);
  pointer-events: none;
}

.story-board::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(103, 113, 224, 0.32), transparent);
}

.story-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding-left: clamp(24px, 2.7vw, 42px);
  opacity: var(--panel-opacity, 0);
  transform: translate3d(0, var(--panel-y, 36px), 0) scale(var(--panel-scale, 0.985));
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-panel--brand {
  opacity: var(--panel-opacity, 1);
  transform: translate3d(0, var(--panel-y, 0), 0) scale(var(--panel-scale, 1));
}

.story-panel.story-panel--bridge {
  max-width: min(430px, 29vw);
  padding-top: clamp(10px, 2svh, 24px);
}

.story-panel.story-panel--bridge h2 {
  max-width: 10ch;
  margin-bottom: 12px;
  font-size: clamp(32px, 3.15vw, 52px);
  line-height: 0.96;
}

.story-panel.story-panel--bridge p {
  max-width: 34ch;
  color: rgba(29, 36, 98, 0.82);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.46;
}

.story-panel.story-panel--bridge::after {
  width: min(210px, 44%);
  margin-top: 20px;
}

.story-panel::after {
  content: "";
  display: block;
  width: min(280px, 58%);
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, rgba(115, 124, 255, 0.42), rgba(255, 139, 47, 0.26), transparent);
  opacity: var(--panel-rule-opacity, 0);
  transform: scaleX(var(--panel-rule-scale, 0.18));
  transform-origin: left;
  transition:
    opacity 380ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-panel span,
.story-panel dt {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.story-panel--brand>span {
  display: none;
}

.story-panel h2 {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: clamp(40px, 4.8vw, 76px);
  font-weight: 800;
  line-height: 0.89;
  letter-spacing: 0;
}

.story-panel--brand h2 {
  max-width: 8.5ch;
  margin-top: 0;
  font-size: clamp(54px, 5.05vw, 94px);
  line-height: 0.88;
}

.story-panel--brand p {
  max-width: 38ch;
}

.story-panel p {
  max-width: 40ch;
  color: rgba(29, 36, 98, 0.88);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 600;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  pointer-events: auto;
}

.hero-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(29, 36, 98, 0.22);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.hero-action--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.hero-action--secondary {
  color: rgba(29, 36, 98, 0.78);
}

.hero-action:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hero-action--primary:hover {
  background: #111746;
  color: #ffffff;
}

.story-panel p .word-carousel {
  position: relative;
  display: inline-grid;
  width: 7.5ch;
  height: 1.3em;
  margin: 0 0.06em;
  overflow: hidden;
  vertical-align: -0.16em;
  color: #626bef;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
}

.story-panel p .word-carousel__item {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
  opacity: 0;
  text-transform: none;
  transform: translate3d(0, 0.55em, 0);
  animation: word-carousel 10.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: calc(var(--word-index) * 1.5s);
}

@keyframes word-carousel {

  0%,
  11% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  15%,
  100% {
    opacity: 0;
    transform: translate3d(0, -0.55em, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-panel p .word-carousel__item {
    animation: none;
  }

  .story-panel p .word-carousel__item:first-child {
    opacity: 1;
    transform: none;
  }
}

.landing-layer {
  position: fixed;
  z-index: 7;
  color: var(--ink);
  opacity: var(--layer-opacity, 0);
  transform: translate3d(0, var(--layer-y, 20px), 0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.landing-layer span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.landing-layer--workflow {
  right: clamp(42px, 7vw, 128px);
  bottom: 10svh;
  width: min(300px, 22vw);
}

.landing-layer--workflow ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.landing-layer--workflow li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid rgba(103, 113, 224, 0.15);
}

.landing-layer--workflow strong {
  color: #626bef;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.landing-layer--workflow small {
  color: rgba(29, 36, 98, 0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.landing-layer--clinical {
  left: 50vw;
  top: 12svh;
  width: min(330px, 24vw);
}

.landing-layer--clinical::before {
  content: "";
  display: block;
  width: 116px;
  height: 1px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(255, 139, 47, 0.62), rgba(115, 124, 255, 0));
}

.landing-layer--clinical p {
  margin: 10px 0 0;
  color: rgba(29, 36, 98, 0.74);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.38;
}

.capture-record-layer {
  position: fixed;
  z-index: 7;
  right: clamp(34px, 5.8vw, 104px);
  top: 12svh;
  width: min(450px, 34vw);
  color: var(--ink);
  font-family: var(--mono);
  opacity: var(--record-opacity, 0);
  transform: translate3d(0, var(--record-y, 24px), 0);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.record-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 22px;
}

.record-heading span,
.record-heading small,
.record-exercise span,
.record-packets span,
.record-packets small,
.record-log span {
  color: rgba(29, 36, 98, 0.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.record-heading__title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.record-heading strong {
  color: #1d2462;
  font-family: var(--sans);
  font-size: clamp(30px, 3.1vw, 50px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
}

.record-check {
  display: inline-block;
  width: 21px;
  height: 12px;
  border-left: 3px solid #ff8b2f;
  border-bottom: 3px solid #ff8b2f;
  opacity: var(--record-saved-opacity, 0);
  transform: translateY(-2px) rotate(-45deg) scale(calc(0.78 + var(--record-saved-opacity, 0) * 0.22));
  transform-origin: center;
}

.record-meta {
  display: grid;
  grid-template-columns: 1.06fr 0.78fr 0.92fr;
  gap: 12px 14px;
  margin-bottom: 18px;
}

.record-meta__item {
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(103, 113, 224, 0.16);
}

.record-meta__item span,
.record-meta__item small {
  color: rgba(29, 36, 98, 0.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.record-meta__item strong {
  display: block;
  margin-top: 6px;
  color: #1d2462;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.08;
}

.record-meta__item small {
  display: block;
  margin-top: 4px;
}

.record-meta__item--room strong {
  font-size: 12px;
}

.record-exercise {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 12px 0 15px;
  border-top: 1px solid rgba(103, 113, 224, 0.18);
}

.record-exercise strong {
  min-width: 0;
  color: #1d2462;
  font-family: var(--sans);
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 800;
  line-height: 1.08;
}

.record-packets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 15px;
  margin-bottom: 19px;
}

.record-packets div {
  min-width: 0;
  padding: 11px 0;
  border-top: 1px solid rgba(103, 113, 224, 0.18);
  opacity: var(--packet-opacity, 0);
  transform: translate3d(0, calc(13px * (1 - var(--packet-opacity, 0))), 0);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.record-packets strong {
  display: block;
  margin: 7px 0 3px;
  color: #626bef;
  font-size: clamp(17px, 1.45vw, 24px);
  font-weight: 700;
  line-height: 1;
}

.record-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-log li {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0 13px;
  border-top: 1px solid rgba(103, 113, 224, 0.13);
  opacity: var(--row-opacity, 0);
  transform: translate3d(0, calc(10px * (1 - var(--row-opacity, 0))), 0);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.record-log li::after {
  content: "";
  position: absolute;
  left: 84px;
  right: 64px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 139, 47, 0.8), rgba(115, 124, 255, 0.5));
  opacity: calc(var(--row-opacity, 0) * 0.75);
  transform: scaleX(var(--duration-share, 0.25));
  transform-origin: left;
}

.record-log strong {
  color: #1d2462;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-log em {
  color: #ff8b2f;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.record-actions {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1.15fr;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(103, 113, 224, 0.14);
}

.record-action {
  min-height: 34px;
  border: 1px solid rgba(103, 113, 224, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(29, 36, 98, 0.78);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: default;
}

.record-action--accent {
  border-color: rgba(255, 139, 47, 0.42);
  background: rgba(255, 139, 47, 0.11);
  color: #c75d16;
}

.compare-history-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  color: #1d2462;
  font-family: var(--mono);
  opacity: var(--compare-opacity, 0);
  pointer-events: none;
  transition: opacity 300ms ease;
}

.compare-data-shell {
  position: absolute;
  right: clamp(32px, 5.2vw, 92px);
  top: 10svh;
  width: min(742px, 44vw);
  transform: translate3d(0, var(--compare-y, 22px), 0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-trend-panel {
  position: relative;
  padding: 15px 20px 10px;
  opacity: var(--compare-stat-opacity, 1);
  transform: translate3d(0, calc(16px * (1 - var(--compare-stat-opacity, 1))), 0);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-trend-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(240, 243, 255, 0.58)),
    rgba(252, 252, 255, 0.78);
  border: 1px solid rgba(103, 113, 224, 0.08);
  box-shadow: var(--shadow-strong);
}

.compare-trend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(103, 113, 224, 0.18);
}

.compare-trend-header span,
.compare-trend-header small {
  display: block;
  color: rgba(29, 36, 98, 0.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compare-trend-header strong {
  display: block;
  margin-top: 8px;
  color: #1d2462;
  font-family: var(--sans);
  font-size: clamp(17px, 1.35vw, 25px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.compare-trend-chart {
  display: block;
  width: 100%;
  height: auto;
  margin: 6px 0 0;
  overflow: visible;
}

.compare-chart-grid path {
  fill: none;
  stroke: rgba(103, 113, 224, 0.15);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.compare-chart-axis text {
  fill: rgba(29, 36, 98, 0.42);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.compare-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.compare-line--clean {
  stroke: #5660e8;
}

.compare-line--press {
  stroke: #ff8b2f;
}

.compare-chart-points circle {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.5;
}

.compare-chart-points--clean circle {
  fill: #5660e8;
}

.compare-chart-points--press circle {
  fill: #ff8b2f;
}

.compare-trend-legend {
  display: flex;
  gap: 20px;
  margin-top: -6px;
}

.compare-trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(29, 36, 98, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-trend-legend i {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #5660e8;
}

.compare-trend-legend span:nth-child(2) i {
  background: #ff8b2f;
}

.compare-data-table {
  display: grid;
  grid-template-columns: 1.05fr repeat(5, minmax(0, 1fr));
  margin-top: 9px;
  border-top: 1px solid rgba(103, 113, 224, 0.16);
  border-left: 1px solid rgba(103, 113, 224, 0.1);
}

.compare-data-table span,
.compare-data-table strong,
.compare-data-table em {
  display: block;
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid rgba(103, 113, 224, 0.1);
  border-bottom: 1px solid rgba(103, 113, 224, 0.1);
  font-style: normal;
  line-height: 1;
}

.compare-data-table span,
.compare-data-table strong {
  color: rgba(29, 36, 98, 0.54);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.compare-data-table em {
  color: #1d2462;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.compare-stats {
  width: 100%;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
}

.compare-stat {
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(103, 113, 224, 0.18);
  opacity: var(--compare-stat-opacity, 1);
  transform: translate3d(0, calc(16px * (1 - var(--compare-stat-opacity, 1))), 0);
  transition:
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-stat span,
.compare-stat small,
.compare-session-cards span,
.compare-session-cards small {
  display: block;
  color: rgba(29, 36, 98, 0.48);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.compare-session-cards span,
.compare-session-cards small {
  color: rgba(29, 36, 98, 0.62);
}

.compare-stat strong {
  display: block;
  margin: 9px 0 5px;
  color: #626bef;
  font-size: clamp(21px, 1.55vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.compare-session-cards {
  position: absolute;
  inset: 0;
}

.compare-session-cards article {
  position: absolute;
  left: calc(var(--session-x) - 71px);
  top: var(--session-y);
  width: 142px;
  min-width: 0;
  padding: 13px 12px 11px;
  background: rgba(252, 252, 255, 0.94);
  border: 1px solid rgba(72, 84, 215, 0.24);
  box-shadow: 0 16px 46px rgba(72, 84, 215, 0.13);
  opacity: var(--history-card-opacity, 0);
  transform: scale(var(--history-card-scale, 1));
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left top;
}

.compare-session-cards article::before {
  content: "";
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 8px);
  width: 2px;
  height: 38px;
  background: linear-gradient(to top, rgba(72, 84, 215, 0.74), rgba(72, 84, 215, 0));
}

.compare-session-cards article::after {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: auto;
  bottom: calc(100% + 44px);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4854d7;
  box-shadow: 0 0 0 8px rgba(72, 84, 215, 0.14);
}

.compare-session-cards article:nth-child(1) {
  --session-x: 41.5vw;
  --session-y: 71svh;
  --history-card-x: 0;
  --history-card-y: 0;
  --history-card-scale: 1;
}

.compare-session-cards article:nth-child(2) {
  --session-x: 49vw;
  --session-y: 72svh;
  --history-card-x: 0;
  --history-card-y: 0;
  --history-card-scale: 1;
}

.compare-session-cards article:nth-child(3) {
  --session-x: 57vw;
  --session-y: 70svh;
  --history-card-x: 0;
  --history-card-y: 0;
  --history-card-scale: 1;
}

.compare-session-cards article:nth-child(4) {
  --session-x: 65vw;
  --session-y: 72svh;
  --history-card-x: 0;
  --history-card-y: 0;
  --history-card-scale: 1;
}

.compare-session-cards article:nth-child(5) {
  --session-x: 72.5vw;
  --session-y: 71svh;
  --history-card-x: 0;
  --history-card-y: 0;
  --history-card-scale: 1;
}

.compare-session-cards b {
  position: absolute;
  left: 12px;
  top: -34px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(72, 84, 215, 0.12);
  color: #4854d7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.compare-session-cards strong {
  display: block;
  margin: 8px 0 4px;
  color: #1d2462;
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 19px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.landing-layer--cta {
  left: 50%;
  top: 50%;
  bottom: auto;
  width: min(1880px, calc(100vw - var(--gutter) * 2));
  text-align: center;
  transform: translate3d(-50%, -50%, 0) translateY(var(--layer-y, 0px));
  pointer-events: auto;
}

.landing-layer--cta::after {
  content: "";
  position: absolute;
  right: clamp(96px, 11vw, 186px);
  bottom: clamp(106px, 12svh, 168px);
  width: clamp(88px, 8vw, 142px);
  height: clamp(54px, 6svh, 82px);
  z-index: -1;
  border-top: 1px solid rgba(103, 113, 224, 0.08);
  border-right: 1px solid rgba(103, 113, 224, 0.1);
  border-top-right-radius: 28px;
}

.cta-blueprint-marks {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.9;
}

.cta-blueprint-mark {
  position: absolute;
  border-color: rgba(103, 113, 224, 0.1);
}

.cta-blueprint-mark--frame {
  right: clamp(48px, 7vw, 126px);
  top: clamp(86px, 11svh, 138px);
  width: clamp(156px, 13vw, 248px);
  height: clamp(248px, 34svh, 394px);
  border-top: 1px solid rgba(103, 113, 224, 0.1);
  border-left: 1px solid rgba(103, 113, 224, 0.07);
}

.cta-blueprint-mark--cross {
  right: clamp(62px, 8.2vw, 148px);
  top: clamp(104px, 13svh, 162px);
  width: clamp(142px, 12vw, 214px);
  height: clamp(214px, 30svh, 322px);
}

.cta-blueprint-mark--cross::before,
.cta-blueprint-mark--cross::after {
  content: "";
  position: absolute;
  background: rgba(103, 113, 224, 0.06);
}

.cta-blueprint-mark--cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.cta-blueprint-mark--cross::after {
  left: 0;
  top: 56%;
  width: 100%;
  height: 1px;
}

.cta-blueprint-mark--arc {
  right: clamp(118px, 14vw, 236px);
  bottom: clamp(34px, 4svh, 58px);
  width: clamp(320px, 32vw, 560px);
  height: clamp(120px, 16svh, 180px);
  border-top: 1px solid rgba(103, 113, 224, 0.07);
  border-radius: 999px 999px 0 0;
}

.cta-blueprint-mark--baseline {
  left: clamp(60px, 9vw, 164px);
  right: clamp(84px, 8vw, 132px);
  bottom: clamp(118px, 14svh, 188px);
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 113, 224, 0.04), rgba(103, 113, 224, 0.1), rgba(103, 113, 224, 0.04));
}

.cta-blueprint-mark--baseline::after {
  content: "";
  position: absolute;
  right: 28%;
  top: -38px;
  width: 1px;
  height: 34px;
  background: rgba(103, 113, 224, 0.06);
}

.landing-layer--cta h2 {
  max-width: 9.2ch;
  margin: 0 auto clamp(48px, 4.6vw, 94px);
  color: var(--ink);
  font-size: clamp(58px, 7vw, 156px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.final-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  max-width: min(1720px, 86vw);
  margin: 0 auto clamp(56px, 4vw, 72px);
  text-align: left;
}

.final-proof {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 1.8vw, 28px) clamp(18px, 1.5vw, 24px) clamp(24px, 2vw, 30px);
  border: 1px solid rgba(103, 113, 224, 0.08);
  border-top-color: rgba(103, 113, 224, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.42), rgba(244, 246, 255, 0.16)),
    rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(72, 84, 215, 0.035);
  backdrop-filter: blur(12px);
}

.final-proof::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(103, 113, 224, 0.12);
  border-bottom: 1px solid rgba(103, 113, 224, 0.12);
  opacity: 0.72;
}

.final-proof span {
  display: block;
  color: rgba(103, 113, 224, 0.66);
  font-family: var(--mono);
  font-size: clamp(9px, 0.44vw, 15px);
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.final-proof h3 {
  margin: clamp(18px, 1.2vw, 22px) 0 clamp(14px, 1vw, 18px);
  color: #1d2462;
  font-size: clamp(24px, 2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.final-proof p {
  margin: 0;
  color: rgba(29, 36, 98, 0.76);
  font-size: clamp(15px, 0.9vw, 20px);
  font-weight: 650;
  line-height: 1.42;
}

.cta-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.landing-layer--cta .cta-button {
  min-height: clamp(52px, 3vw, 82px);
  padding: 0 clamp(30px, 2.6vw, 72px);
  font-size: clamp(11px, 0.48vw, 17px);
}

.cta-microcopy {
  display: block;
  color: rgba(29, 36, 98, 0.46);
  font-family: var(--mono);
  font-size: clamp(10px, 0.4vw, 15px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.cta-button,
.interest-form button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 36, 98, 0.82);
  border-radius: 16px;
  background: #1d2462;
  color: #fbfbff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.cta-button {
  margin-top: 26px;
  padding: 0 30px;
}

.cta-button:hover,
.cta-button:focus-visible {
  border-color: #ff8b2f;
  background: #ff8b2f;
  color: #120f0c;
  outline: 0;
}

.interest-modal[hidden] {
  display: none;
}

.interest-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  pointer-events: auto;
}

.interest-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 44%, rgba(255, 255, 255, 0.76), rgba(245, 246, 255, 0.58) 42%, rgba(228, 231, 255, 0.44) 100%),
    rgba(238, 240, 255, 0.54);
  backdrop-filter: blur(14px) saturate(1.08);
}

.interest-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: calc(100svh - 34px);
  overflow: auto;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid rgba(103, 113, 224, 0.28);
  border-radius: 28px;
  background: rgba(251, 251, 255, 0.92);
  box-shadow: 0 30px 90px rgba(72, 84, 215, 0.18);
}

.interest-dialog>span,
.interest-close,
.interest-form span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.interest-dialog>span {
  color: #ff8b2f;
}

.interest-dialog h2 {
  max-width: 10ch;
  margin: 14px 0 24px;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
}

.interest-close {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 0;
  background: transparent;
  color: rgba(29, 36, 98, 0.54);
  cursor: pointer;
}

.interest-close:hover,
.interest-close:focus-visible {
  color: var(--ink);
  outline: 0;
}

.interest-form {
  display: grid;
  gap: 14px;
}

.interest-form label {
  display: grid;
  gap: 7px;
}

.interest-form span {
  color: rgba(29, 36, 98, 0.52);
}

.interest-form input,
.interest-form textarea {
  width: 100%;
  border: 1px solid rgba(103, 113, 224, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  outline: 0;
}

.interest-form input {
  min-height: 46px;
  padding: 0 13px;
}

.interest-form textarea {
  min-height: 112px;
  padding: 13px;
  resize: vertical;
}

.interest-form textarea::placeholder {
  color: rgba(29, 36, 98, 0.34);
}

.interest-form input:focus,
.interest-form textarea:focus {
  border-color: #ff8b2f;
  box-shadow: 0 0 0 1px #ff8b2f;
}

.interest-form button {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border-color: #1d2462;
  background: #1d2462;
  color: #fbfbff;
}

.interest-form button:hover,
.interest-form button:focus-visible {
  border-color: #ff8b2f;
  background: #ff8b2f;
  color: #120f0c;
  outline: 0;
}

.interest-form button:disabled {
  opacity: 0.58;
  cursor: progress;
}

.interest-status {
  min-height: 18px;
  margin: 0;
  color: rgba(29, 36, 98, 0.58);
  font-size: 12px;
  font-weight: 700;
}

body.modal-open {
  overflow: hidden;
}

.story-panel dl {
  width: min(330px, 100%);
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.story-panel div {
  min-width: 0;
}

.story-panel dd {
  margin: 6px 0 0;
  color: #626bef;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
}

.telemetry-field {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: var(--mono);
}

.telemetry-card {
  position: absolute;
  width: min(230px, 19vw);
  padding: 14px 16px 16px;
  border: 1px solid rgba(103, 113, 224, 0.12);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.56), rgba(242, 244, 255, 0.22));
  box-shadow: 0 18px 52px rgba(72, 84, 215, 0.08);
  backdrop-filter: blur(14px);
  color: var(--muted);
  opacity: calc(var(--telemetry-opacity, 0) * 0.72);
  transform: translate3d(0, var(--telemetry-y, 24px), 0) scale(var(--telemetry-scale, 0.98));
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.telemetry-card::before {
  content: "";
  display: block;
  width: 76px;
  height: 1px;
  margin-bottom: 11px;
  background: linear-gradient(90deg, rgba(115, 124, 255, 0.72), rgba(115, 124, 255, 0));
}

.telemetry-card span,
.telemetry-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.telemetry-card>strong,
.metric-row strong {
  display: block;
  color: #626bef;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}

.telemetry-card>strong {
  margin: 7px 0 10px;
}

.telemetry-card p {
  max-width: 28ch;
  margin: 0;
  color: rgba(29, 36, 98, 0.58);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(103, 113, 224, 0.14);
}

.force-bars {
  height: 44px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  align-items: end;
  gap: 3px;
  margin-top: 16px;
}

.force-bars i {
  display: block;
  min-height: 5px;
  background: linear-gradient(180deg, rgba(255, 139, 47, 0.8), rgba(115, 124, 255, 0.34));
}

.telemetry-card--rotation {
  right: clamp(42px, 8.5vw, 158px);
  top: 62svh;
}

.telemetry-card--force {
  left: 52vw;
  bottom: 7svh;
}

.telemetry-card--rom {
  left: 53vw;
  top: 17svh;
}

.joint-callout-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: var(--mono);
}

.joint-callout-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.joint-callout-lines line {
  stroke: rgba(86, 96, 232, 0.46);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: var(--callout-opacity, 0);
  transition: opacity 320ms ease;
}

.joint-callout {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 34px;
  color: #5660e8;
  opacity: var(--callout-opacity, 0);
  transform: translate3d(calc(var(--callout-x, -100px) + var(--callout-swoop-x, 0px)),
      calc(var(--callout-y, -100px) + var(--callout-swoop-y, 0px)),
      0);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.joint-callout::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px rgba(86, 96, 232, 0.34);
}

.joint-callout small {
  color: rgba(29, 36, 98, 0.62);
  font-size: clamp(10px, 0.68vw, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.joint-callout strong {
  color: currentColor;
  font-size: clamp(23px, 1.75vw, 34px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.joint-callout--load {
  color: #ff8b2f;
}

.joint-callout--lockhold {
  color: #4854d7;
}

.joint-callout--asymmetry {
  color: #1d2462;
}

.instrument-overlay-layer {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  font-family: var(--mono);
  opacity: var(--instrument-opacity, 0);
  transition: none;
}

.instrument-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.instrument-graphic {
  --instrument-accent: #00b872;
}

.instrument-graphic path,
.instrument-graphic line {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instrument-graphic[data-state="ok"] {
  --instrument-accent: #5660e8;
}

.instrument-graphic[data-state="warn"] {
  --instrument-accent: #d7791f;
}

.instrument-graphic[data-state="alert"] {
  --instrument-accent: #c45f18;
}

.instrument-graphic--knee,
.instrument-badge--knee {
  display: none;
}

.instrument-graphic [data-instrument-line="label-torso"],
.instrument-graphic [data-instrument-line="label-rack"],
.instrument-graphic [data-instrument-line="label-rise"],
.instrument-graphic [data-instrument-line="label-knee"],
.instrument-graphic [data-instrument-line="label-stack"] {
  opacity: 0 !important;
}

.instrument-graphic [data-instrument-path$="ring"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 30%, white);
  stroke-width: 1.1;
  opacity: 0.42;
}

.instrument-graphic [data-instrument-path$="ticks"] {
  stroke: var(--instrument-accent);
  stroke-width: 1;
  opacity: 0.56;
}

.instrument-graphic [data-instrument-path="back-arc"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 76%, white);
  stroke-width: 1.4;
  opacity: 0.86;
}

.instrument-graphic [data-instrument-path="twist-belt"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 24%, white);
  stroke-width: 1.15;
  opacity: 0.34;
}

.instrument-graphic [data-instrument-path="twist-ticks"] {
  stroke-width: 0.95;
  opacity: 0.6;
}

.instrument-graphic [data-instrument-path="twist-sweep"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 92%, white);
  stroke-width: 2.4;
  opacity: 0.94;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--instrument-accent) 22%, transparent));
}

.instrument-graphic [data-instrument-path="twist-origin-mark"] {
  stroke: rgba(29, 36, 98, 0.5);
  stroke-width: 1.05;
  opacity: 0.82;
}

.instrument-graphic [data-instrument-path="twist-deviation-marks"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 82%, white);
  stroke-width: 1.05;
  opacity: 0.58;
}

.instrument-graphic [data-instrument-line$="reference"] {
  stroke: rgba(29, 36, 98, 0.28);
  stroke-width: 1.1;
  stroke-dasharray: 5 6;
}

.instrument-graphic [data-instrument-line$="actual"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 90%, white);
  stroke-width: 2;
  opacity: 0.96;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--instrument-accent) 22%, transparent));
}

.instrument-graphic [data-instrument-line$="delta"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 74%, white);
  stroke-width: 1.1;
  opacity: 0.52;
}

.instrument-graphic [data-instrument-path="torso-wedge"],
.instrument-graphic [data-instrument-path$="-foot"],
.instrument-graphic [data-instrument-path$="-corridor"] {
  fill: color-mix(in srgb, var(--instrument-accent) 14%, transparent);
  stroke: color-mix(in srgb, var(--instrument-accent) 52%, white);
  stroke-width: 1.15;
  opacity: 0.68;
}

.instrument-graphic--torso {
  --instrument-accent: #f0cf4a;
}

.instrument-graphic--torso[data-lean-transition="active"] [data-instrument-path="torso-wedge"] {
  animation: torso-lean-flip-wedge 720ms ease-out both;
}

.instrument-graphic--torso[data-lean-transition="active"] [data-instrument-line="torso-actual"],
.instrument-graphic--torso[data-lean-transition="active"] [data-instrument-path="torso-arc"],
.instrument-graphic--torso[data-lean-transition="active"] [data-instrument-path="torso-angle-ticks"] {
  animation: torso-lean-flip-stroke 720ms ease-out both;
}

.instrument-graphic [data-instrument-path="rack-shelf"],
.instrument-graphic [data-instrument-line="rack-bar"] {
  display: none;
}

.instrument-graphic [data-instrument-line="rack-left-drop"],
.instrument-graphic [data-instrument-line="rack-right-drop"],
.instrument-graphic [data-instrument-path="rack-left-drop-caps"],
.instrument-graphic [data-instrument-path="rack-right-drop-caps"] {
  display: none;
}

.instrument-graphic [data-instrument-path="rack-left-goniometer"],
.instrument-graphic [data-instrument-path="rack-right-goniometer"] {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(55, 50, 43, 0.46);
  stroke-width: 0.82;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.84;
  filter: none;
}

.instrument-graphic [data-instrument-path="rack-left-angle-arc"],
.instrument-graphic [data-instrument-path="rack-right-angle-arc"] {
  fill: none;
  stroke: rgba(208, 111, 25, 0.88);
  stroke-width: 1.35;
  stroke-linecap: round;
  opacity: 0.9;
}

.instrument-graphic [data-instrument-path="rack-left-angle-ticks"],
.instrument-graphic [data-instrument-path="rack-right-angle-ticks"] {
  fill: none;
  stroke: rgba(55, 50, 43, 0.52);
  stroke-width: 0.55;
  stroke-linecap: butt;
  opacity: 0.82;
}

.instrument-graphic [data-instrument-text^="rack-"] {
  fill: rgba(87, 82, 115, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.instrument-graphic [data-instrument-text$="shoulder-degree"] {
  fill: rgba(177, 94, 35, 0.76);
  font-size: 8.5px;
}

.instrument-graphic [data-instrument-text$="elbow-degree"] {
  fill: rgba(76, 84, 191, 0.7);
}

.instrument-graphic [data-instrument-line="rack-left-reference"],
.instrument-graphic [data-instrument-line="rack-right-reference"] {
  stroke: rgba(55, 50, 43, 0.48);
  stroke-width: 1.05;
  stroke-dasharray: 4 5;
  opacity: 0.68;
}

.instrument-graphic [data-instrument-path="stack-corridor"] {
  display: none;
}

.instrument-graphic [data-instrument-path="stack-base"] {
  display: none;
}

.instrument-graphic [data-instrument-path="stack-ticks"] {
  display: none;
}

.instrument-graphic [data-instrument-line="stack-midfoot"] {
  display: none;
}

.instrument-graphic [data-instrument-line="stack-left-foot-plumb"],
.instrument-graphic [data-instrument-line="stack-right-foot-plumb"] {
  display: none;
}

.instrument-graphic [data-instrument-line="torso-reference"] {
  stroke: rgba(29, 36, 98, 0.46);
  stroke-width: 1.35;
  stroke-dasharray: 6 7;
}

.instrument-graphic [data-instrument-path="torso-rib-plane"],
.instrument-graphic [data-instrument-path="torso-pelvis-plane"] {
  display: none;
}

.instrument-graphic [data-instrument-line="stack-bar-plumb"] {
  display: none;
}

.instrument-graphic [data-instrument-path="stack-trace"] {
  fill: none;
  stroke: rgba(86, 96, 232, 0.68);
  stroke-width: 1.55;
  stroke-dasharray: 5 7;
  opacity: 0.95;
  filter: none;
  animation: none;
}

.instrument-graphic [data-instrument-path$="-trail"] {
  fill: none;
  stroke: color-mix(in srgb, var(--instrument-accent) 88%, white);
  stroke-width: 2.8;
  opacity: 0.94;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--instrument-accent) 20%, transparent));
  stroke-dasharray: 10 9;
  animation: instrument-trace-flow 2.6s linear infinite;
}

.instrument-graphic [data-instrument-path="stack-current"],
.instrument-graphic [data-instrument-path$="-marker"],
.instrument-graphic [data-instrument-path$="-dot"],
.instrument-graphic [data-instrument-path$="-current"] {
  fill: #5660e8;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1.65;
  opacity: 0.98;
  filter: drop-shadow(0 0 10px rgba(86, 96, 232, 0.24));
  animation: instrument-marker-pulse 1.8s ease-in-out infinite;
}

.instrument-graphic [data-instrument-path="stack-current"] {
  fill: rgba(215, 121, 31, 0.16);
  stroke: rgba(215, 121, 31, 0.96);
  stroke-width: 2.1;
  filter: drop-shadow(0 0 12px rgba(215, 121, 31, 0.26));
}

.instrument-graphic [data-instrument-path$="-caps"],
.instrument-graphic [data-instrument-path="torso-angle-ticks"] {
  fill: none;
  stroke: color-mix(in srgb, var(--instrument-accent) 82%, white);
  stroke-width: 1.8;
  opacity: 0.9;
}

.instrument-graphic [data-instrument-path="stack-offset-caps"] {
  stroke: rgba(215, 121, 31, 0.9);
}

.instrument-graphic [data-instrument-path="rise-hip-trail"] {
  fill: rgba(24, 183, 167, 0.82);
  stroke: rgba(24, 183, 167, 0.92);
  stroke-width: 0.65;
  stroke-dasharray: none;
  stroke-linejoin: round;
  animation: none;
  filter: drop-shadow(0 7px 12px rgba(24, 183, 167, 0.13));
}

.instrument-graphic [data-instrument-path="rise-hip-band"] {
  fill: none;
  stroke: rgba(177, 78, 216, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(177, 78, 216, 0.16));
}

.instrument-graphic [data-instrument-path="rise-hip-guide"] {
  fill: rgba(24, 183, 167, 0.86);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.1;
  stroke-dasharray: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 9px rgba(24, 183, 167, 0.2));
}

.instrument-graphic [data-instrument-path="rise-hip-dot"] {
  fill: rgba(24, 183, 167, 0.92);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 8px rgba(24, 183, 167, 0.18));
}

.instrument-graphic [data-instrument-path="rise-hip-arrow"] {
  fill: rgba(177, 78, 216, 0.92);
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 0.7;
  opacity: 0.96;
  filter: drop-shadow(0 0 10px rgba(177, 78, 216, 0.18));
}

.instrument-graphic [data-instrument-path="rise-hip-speed-ticks"] {
  fill: none;
  stroke: rgba(177, 78, 216, 0.44);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.78;
}

.instrument-graphic [data-instrument-path="rise-chest-trail"] {
  fill: rgba(196, 86, 146, 0.82);
  stroke: rgba(196, 86, 146, 0.92);
  stroke-width: 0.65;
  stroke-dasharray: none;
  stroke-linejoin: round;
  animation: none;
  filter: drop-shadow(0 7px 12px rgba(196, 86, 146, 0.13));
}

.instrument-graphic [data-instrument-path="rise-chest-band"] {
  fill: none;
  stroke: rgba(220, 176, 32, 0.95);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(240, 207, 74, 0.16));
}

.instrument-graphic [data-instrument-path="rise-chest-guide"] {
  fill: rgba(196, 86, 146, 0.86);
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 1.1;
  stroke-dasharray: none;
  opacity: 0.92;
  filter: drop-shadow(0 0 9px rgba(196, 86, 146, 0.18));
}

.instrument-graphic [data-instrument-path="rise-chest-dot"] {
  fill: rgba(196, 86, 146, 0.9);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.1;
  filter: drop-shadow(0 0 8px rgba(196, 86, 146, 0.18));
}

.instrument-graphic [data-instrument-path="rise-chest-arrow"] {
  fill: rgba(240, 207, 74, 0.95);
  stroke: rgba(255, 255, 255, 0.76);
  stroke-width: 0.7;
  opacity: 0.96;
  filter: drop-shadow(0 0 10px rgba(240, 207, 74, 0.18));
}

.instrument-graphic [data-instrument-path="rise-chest-speed-ticks"] {
  fill: none;
  stroke: rgba(220, 176, 32, 0.48);
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.8;
}

.instrument-graphic [data-instrument-path="knee-left-trail"],
.instrument-graphic [data-instrument-path="knee-left-current"] {
  stroke: #5660e8;
  filter: drop-shadow(0 0 14px rgba(86, 96, 232, 0.2));
}

.instrument-graphic [data-instrument-path="knee-left-current"] {
  fill: #5660e8;
}

.instrument-graphic [data-instrument-path="knee-right-trail"],
.instrument-graphic [data-instrument-path="knee-right-current"] {
  stroke: #d7791f;
  filter: drop-shadow(0 0 14px rgba(215, 121, 31, 0.2));
}

.instrument-graphic [data-instrument-path="knee-right-current"] {
  fill: #d7791f;
}

.instrument-graphic [data-instrument-line="stack-offset"],
.instrument-graphic [data-instrument-line$="-drop"],
.instrument-graphic [data-instrument-line="rise-delta"],
.instrument-graphic [data-instrument-line$="-track"] {
  stroke: rgba(86, 96, 232, 0.74);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
  opacity: 0.86;
}

.instrument-graphic [data-instrument-line="stack-offset"] {
  stroke: rgba(215, 121, 31, 0.92);
  stroke-width: 1.9;
  filter: drop-shadow(0 0 10px rgba(215, 121, 31, 0.18));
}

.instrument-graphic [data-instrument-line="rise-delta"] {
  stroke: rgba(39, 43, 85, 0.5);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  opacity: 0.62;
}

.instrument-graphic [data-instrument-path="rise-end-caps"] {
  stroke: rgba(39, 43, 85, 0.46);
  stroke-width: 1.1;
  opacity: 0.72;
}

.instrument-graphic [data-instrument-line="torso-actual"],
.instrument-graphic [data-instrument-line$="-rail"],
.instrument-graphic [data-instrument-line$="-leg"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 86%, white);
  stroke-width: 2.35;
  opacity: 0.94;
}

.instrument-graphic [data-instrument-line="rack-left-rail"],
.instrument-graphic [data-instrument-line="rack-right-rail"] {
  display: none;
}

.instrument-graphic [data-instrument-path="rack-left-marker"],
.instrument-graphic [data-instrument-path="rack-right-marker"] {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(55, 50, 43, 0.72);
  stroke-width: 1.45;
  opacity: 0.86;
  filter: none;
  animation: none;
}

.instrument-graphic [data-instrument-path="torso-arc"] {
  fill: none;
  stroke: color-mix(in srgb, var(--instrument-accent) 88%, white);
  stroke-width: 2.45;
  opacity: 0.96;
}

.instrument-graphic [data-instrument-path="stack-base"],
.instrument-graphic [data-instrument-path="stack-ticks"],
.instrument-graphic [data-instrument-path="rise-ladder"],
.instrument-graphic [data-instrument-path$="-plane"] {
  fill: none;
  stroke: rgba(29, 36, 98, 0.36);
  stroke-width: 1.05;
  opacity: 0.72;
}

.instrument-graphic [data-instrument-path="stack-base"] {
  display: none;
}

.instrument-graphic [data-instrument-path="stack-ticks"] {
  stroke: rgba(29, 36, 98, 0.34);
  stroke-width: 0.9;
  opacity: 0.55;
}

.instrument-graphic [data-instrument-path="rise-ladder"] {
  fill: rgba(255, 255, 255, 0.54);
  stroke: rgba(39, 43, 85, 0.34);
  stroke-width: 1.05;
  stroke-dasharray: none;
  opacity: 0.88;
  filter: drop-shadow(0 14px 30px rgba(38, 48, 92, 0.08));
}

.instrument-graphic [data-instrument-line="rack-shoulder"] {
  stroke: rgba(29, 36, 98, 0.36);
  stroke-width: 1.2;
}

.instrument-graphic [data-instrument-line^="label-"] {
  stroke: color-mix(in srgb, var(--instrument-accent) 58%, rgba(29, 36, 98, 0.42));
  stroke-width: 1;
  stroke-dasharray: 1 5;
  opacity: 0.74;
}

@keyframes instrument-marker-pulse {
  0%,
  100% {
    opacity: 0.82;
  }

  50% {
    opacity: 1;
  }
}

@keyframes instrument-trace-flow {
  to {
    stroke-dashoffset: -38;
  }
}

@keyframes torso-lean-flip-wedge {
  0% {
    opacity: 0.18;
    filter: drop-shadow(0 0 0 rgba(223, 39, 56, 0));
  }

  45% {
    opacity: 0.86;
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--instrument-accent) 24%, transparent));
  }

  100% {
    opacity: 0.68;
    filter: drop-shadow(0 0 0 rgba(223, 39, 56, 0));
  }
}

@keyframes torso-lean-flip-stroke {
  0% {
    opacity: 0.34;
    stroke-width: 1.5;
  }

  45% {
    opacity: 1;
    stroke-width: 3;
  }

  100% {
    opacity: 0.96;
  }
}

.instrument-badge {
  --instrument-accent: #5660e8;
  position: absolute;
  left: 0;
  top: 0;
  min-width: 102px;
  padding: 7px 10px 8px 12px;
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--instrument-accent) 72%, white);
  border-radius: 0 7px 7px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18));
  box-shadow: none;
  backdrop-filter: blur(8px);
  transform: translate3d(var(--instrument-x, -999px), var(--instrument-y, -999px), 0);
  transition: none;
  opacity: var(--badge-opacity, 0);
}

.instrument-badge[data-state="ok"] {
  --instrument-accent: #5660e8;
}

.instrument-badge[data-state="warn"] {
  --instrument-accent: #d7791f;
}

.instrument-badge[data-state="alert"] {
  --instrument-accent: #c45f18;
}

.instrument-badge--torso {
  --instrument-accent: #f0cf4a;
}

.instrument-badge::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 1px;
  background: color-mix(in srgb, var(--instrument-accent) 76%, white);
  clip-path: none;
  filter: none;
  transform: translate(-24px, -50%);
}

.instrument-badge span,
.instrument-badge strong {
  display: block;
  padding-left: 0;
}

.instrument-badge span {
  color: rgba(29, 36, 98, 0.54);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.instrument-badge strong {
  margin-top: 4px;
  color: color-mix(in srgb, var(--instrument-accent) 88%, #102047);
  font-size: clamp(15px, 1.05vw, 20px);
  font-weight: 800;
  line-height: 1;
}

.annotation-layer {
  position: fixed;
  inset: 0;
  z-index: 7;
  opacity: var(--annotation-opacity, 0);
  pointer-events: none;
  transition: opacity 260ms ease;
}

.annotation-pointer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.annotation-pointer circle {
  fill: rgba(255, 194, 66, 0.1);
  stroke: rgba(255, 139, 47, 0.9);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(255, 139, 47, 0.5));
  opacity: var(--annotation-highlight-opacity, 0);
  transform-box: fill-box;
  transform-origin: center;
}

.annotation-pointer line,
.annotation-pointer path {
  fill: none;
  stroke: rgba(255, 139, 47, 0.84);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  opacity: var(--annotation-highlight-opacity, 0);
}

.trainer-note {
  position: absolute;
  right: clamp(34px, 5.5vw, 104px);
  top: 21svh;
  width: min(360px, calc(100vw - 48px));
  color: #1d2462;
  font-family: var(--mono);
  opacity: var(--annotation-card-opacity, 0);
  transform: translate3d(calc(46px * (1 - var(--annotation-slide, 0))),
      calc(10px * (1 - var(--annotation-slide, 0))),
      0);
  transition:
    opacity 220ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trainer-note::before {
  content: "";
  position: absolute;
  inset: -18px -20px;
  z-index: -1;
  background: radial-gradient(circle at 0 20%, rgba(255, 194, 66, 0.12), transparent 58%);
  border-left: 1px solid rgba(255, 139, 47, 0.38);
  opacity: 0.86;
}

.trainer-note__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.trainer-note__author>span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #1d2462;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.trainer-note__author div {
  min-width: 0;
}

.trainer-note__author strong,
.trainer-note__author small {
  display: block;
}

.trainer-note__author strong {
  color: #1d2462;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.trainer-note__author small {
  margin-top: 3px;
  color: rgba(29, 36, 98, 0.52);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.trainer-note__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 6px;
  margin-bottom: 14px;
}

.trainer-note__meta span {
  color: rgba(29, 36, 98, 0.46);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.trainer-note__meta strong {
  color: #1d2462;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.trainer-note__field {
  min-height: 92px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(86, 96, 232, 0.18);
  box-shadow: 0 20px 60px rgba(86, 96, 232, 0.08);
  color: rgba(29, 36, 98, 0.88);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
}

.trainer-note__field i {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: #ff8b2f;
  vertical-align: -0.14em;
  opacity: var(--annotation-cursor-opacity, 1);
}

.trainer-note__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 32px;
  margin-top: 14px;
  padding: 0 17px;
  border: 0;
  border-radius: 0;
  background: #ff8b2f;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(255, 139, 47, 0.18);
  opacity: var(--annotation-button-opacity, 0);
  transform: translateY(calc(8px * (1 - var(--annotation-button-opacity, 0)))) scale(var(--annotation-button-scale, 1));
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.trainer-note__button::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(255, 139, 47, 0.32);
  opacity: var(--annotation-click-ring, 0);
  transform: scale(calc(1 + var(--annotation-click-ring, 0) * 0.16));
}

.trainer-note__saved {
  position: static;
  display: inline-block;
  margin: 14px 0 0 13px;
  color: #00a76a;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  opacity: var(--annotation-saved-opacity, 0);
  transform: translate3d(0, calc(10px * (1 - var(--annotation-saved-opacity, 0))), 0);
  transition:
    opacity 220ms ease,
    transform 320ms ease;
}

.timeline-rail {
  position: fixed;
  z-index: 4;
  right: clamp(20px, 3.6vw, 58px);
  bottom: 15svh;
  width: 118px;
  height: 39svh;
  padding-right: 26px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  color: rgba(103, 113, 224, 0.46);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
  opacity: calc(1 - var(--detail-focus-opacity, 0));
}

.timeline-rail span {
  position: relative;
  display: block;
  width: 100%;
  opacity: 0.58;
  transition:
    color 260ms ease,
    opacity 260ms ease;
}

.timeline-rail[data-active-stage="0"] span:nth-child(1),
.timeline-rail[data-active-stage="1"] span:nth-child(2),
.timeline-rail[data-active-stage="2"] span:nth-child(3) {
  color: #4854d7;
  opacity: 1;
}

.timeline-rail::before,
.timeline-rail i {
  content: "";
  position: absolute;
  right: 3px;
  top: 0;
  width: 1px;
  height: 100%;
}

.timeline-rail::before {
  background: linear-gradient(180deg, transparent, rgba(103, 113, 224, 0.32), transparent);
}

.timeline-rail i {
  height: var(--motion-progress-percent, 0%);
  width: 2px;
  background: linear-gradient(180deg, rgba(72, 84, 215, 0.74), var(--orange));
  box-shadow: 0 0 20px rgba(115, 124, 255, 0.14);
}

.metric-stack {
  position: fixed;
  z-index: 5;
  display: none;
  gap: 28px;
  pointer-events: none;
}

.metric-stack--left {
  left: var(--gutter);
  top: auto;
  bottom: 9svh;
}

.metric-stack--right {
  display: none;
  right: var(--gutter);
  top: 38svh;
  width: 184px;
}

.metric {
  width: 160px;
  color: var(--muted);
}

.metric--wide {
  width: 184px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 8px 0 12px;
  color: var(--blue);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.metric svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.metric path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.metric circle {
  fill: var(--blue);
}

.metric .grid-path {
  stroke: rgba(103, 113, 224, 0.12);
  stroke-width: 1;
}

.metric-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.tempo-bars {
  height: 42px;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  align-items: end;
  gap: 3px;
}

.tempo-bars i {
  display: block;
  min-height: 4px;
  background: linear-gradient(180deg, rgba(115, 124, 255, 0.92), rgba(154, 161, 255, 0.48));
}

.axis-readout {
  position: fixed;
  z-index: 4;
  left: 24.8vw;
  top: 13.5svh;
  height: 48svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(103, 113, 224, 0.62);
  font-size: 11px;
  pointer-events: none;
  display: none;
}

@media (max-width: 960px) {
  .hero-brand-field {
    padding: 78px 20px 0;
    transform: translate3d(0, var(--hero-brand-y), 0);
  }

  .hero-brand-field span {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(38px, 9.2vw, 58px);
    line-height: 0.82;
  }

  .hero-capture-field__axis {
    left: 62vw;
  }

  .hero-layout-field__left-column {
    top: 62px;
    width: 100vw;
    height: 132px;
    background:
      linear-gradient(90deg, rgba(255, 139, 47, 0.08), rgba(103, 113, 224, 0.055) 58%, transparent),
      linear-gradient(180deg, rgba(251, 251, 255, 0.94), rgba(251, 251, 255, 0.36) 70%, transparent);
    border-right: 0;
  }

  .hero-layout-field__brand-rule {
    left: 20px;
    top: 202px;
    width: min(360px, calc(100vw - 40px));
  }

  .hero-layout-field__copy-rule {
    left: 20px;
    bottom: 118px;
    width: min(260px, calc(100vw - 40px));
  }

  .hero-layout-field__capture-frame,
  .hero-layout-field__record-rule,
  .hero-layout-field__stage-rule {
    display: none;
  }

  .hero-record-preview,
  .hero-primary-metric {
    display: none;
  }

  .hero-copy {
    top: 86px;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: 42px;
  }

  .metric-stack--left {
    top: auto;
    bottom: 96px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .metric-stack--right,
  .axis-readout,
  .telemetry-field,
  .instrument-overlay-layer,
  .joint-callout-layer,
  .landing-layer--workflow,
  .landing-layer--clinical,
  .timeline-rail {
    display: none;
  }

  .story-board {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 7svh;
    width: auto;
    height: 42svh;
  }

  .story-board::before {
    display: none;
  }

  .story-panel {
    justify-content: flex-end;
    padding-left: 0;
  }

  .story-panel h2,
  .story-panel--brand h2 {
    max-width: 10ch;
    font-size: clamp(38px, 11vw, 62px);
  }

  .story-panel p {
    max-width: 29ch;
    font-size: 15px;
  }

  .story-panel dl {
    width: min(320px, 100%);
    margin-top: 22px;
  }

  .landing-layer--cta {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(560px, calc(100vw - 40px));
    transform: translate3d(-50%, -50%, 0) translateY(var(--layer-y, 0px));
  }

  .landing-layer--cta::after {
    right: 22px;
    bottom: 108px;
    width: 74px;
    height: 42px;
  }

  .landing-layer--cta h2 {
    max-width: 9.5ch;
    margin-bottom: 36px;
    font-size: 42px;
  }

  .cta-blueprint-mark--frame,
  .cta-blueprint-mark--cross {
    right: 18px;
  }

  .cta-blueprint-mark--arc {
    right: 20px;
    width: 220px;
    height: 86px;
  }

  .cta-blueprint-mark--baseline {
    left: 18px;
    right: 18px;
    bottom: 126px;
  }

  .final-proof-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 14px;
    margin-bottom: 32px;
  }

  .final-proof {
    padding: 18px 18px 22px;
  }

  .cta-microcopy {
    text-align: center;
  }

  .capture-record-layer {
    left: 20px;
    right: 20px;
    top: 10svh;
    width: auto;
  }

  .record-meta {
    grid-template-columns: 1fr 1fr;
  }

  .record-meta__item--room {
    grid-column: 1 / -1;
  }

  .record-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .interest-modal {
    align-items: stretch;
    padding: 18px;
  }

  .interest-dialog {
    width: 100%;
    padding: 28px 22px;
  }

  .interest-dialog h2 {
    margin-top: 20px;
    font-size: clamp(34px, 12vw, 52px);
  }

  .interest-form input {
    min-height: 48px;
  }

  .interest-form textarea {
    min-height: 118px;
  }

  .metric {
    width: min(150px, 42vw);
  }
}

@media (max-width: 640px) {
  .chrome--top {
    min-height: 62px;
  }

  .hero-copy {
    left: 18px;
    top: 72px;
  }

  .landing-layer--cta {
    left: 50%;
    right: auto;
    width: calc(100vw - 36px);
  }

  .metric-stack--left {
    left: 18px;
  }

}

.hero-capture-field {
  left: clamp(500px, 47vw, 710px);
  opacity: 0.82;
}

.hero-capture-field::before {
  right: -2vw;
  bottom: -4svh;
  width: min(1140px, 70vw);
  height: 31svh;
  background-size: 68px 34px, 68px 34px;
  border-top-color: rgba(103, 113, 224, 0.12);
}

.hero-layout-field {
  left: clamp(500px, 47vw, 710px);
  opacity: 0.48;
}

.hero-layout-field__capture-frame {
  left: min(710px, 37vw);
  right: clamp(138px, 10vw, 228px);
  top: clamp(214px, 25svh, 296px);
  bottom: clamp(88px, 9svh, 142px);
  border-radius: 30px;
  border-color: rgba(103, 113, 224, 0.12);
  background: linear-gradient(90deg, rgba(255, 139, 47, 0.018), transparent 22%);
}

.hero-layout-field__capture-frame--inner {
  left: min(870px, 45vw);
  right: clamp(218px, 17vw, 330px);
  top: clamp(308px, 34svh, 408px);
  bottom: clamp(154px, 16svh, 232px);
  border-radius: 50%;
  opacity: 0.82;
}

.story-panel--brand {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(47vw, 760px);
  max-width: none;
}

.story-panel--brand::after {
  display: none;
}

.main-layout {
  position: relative;
  padding: clamp(26px, 2.8vw, 42px) 0 0 clamp(40px, 6vw, 118px);
  margin-top: -2svh;
}

.main-layout::before {
  content: "";
  position: absolute;
  inset: -26px -42px -34px -28px;
  z-index: -1;
  border: 1px solid rgba(103, 113, 224, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 255, 0.46) 56%, rgba(248, 249, 255, 0) 100%);
  box-shadow: var(--shadow-soft);
  mask-image: linear-gradient(90deg, black 0%, black 78%, transparent 100%);
}

.hero-kicker {
  margin: 0 0 16px;
  color: rgba(103, 113, 224, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.brand-logotype {
  margin: 0;
  font-family: "Archivo Black", Impact, var(--sans);
  color: var(--orange);
  font-size: clamp(46px, 5.1vw, 84px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-brand-ledger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 9px 14px 10px;
  border: 1px solid rgba(103, 113, 224, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 34px rgba(72, 84, 215, 0.08);
  color: rgba(23, 32, 83, 0.66);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-brand-ledger span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-brand-ledger span:not(:last-child)::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(103, 113, 224, 0.24);
}

.brand-catchphrase {
  margin: 0 0 22px;
  font-family: var(--sans);
  color: var(--ink);
  font-size: clamp(38px, 4.45vw, 78px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.brand-description {
  max-width: 37ch;
  margin: 0;
  color: rgba(23, 32, 83, 0.72);
  font-size: clamp(16px, 1.38vw, 21px);
  font-weight: 600;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  cursor: pointer;
}

.hero-action--solid {
  background-color: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
  box-shadow: 0 16px 36px rgba(23, 32, 83, 0.16);
}

.hero-action--solid:hover,
.hero-action--solid:focus-visible {
  background-color: #24306f;
  border-color: #24306f;
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-action--outline {
  background-color: rgba(255, 255, 255, 0.62);
  color: rgba(23, 32, 83, 0.86);
  border: 1px solid rgba(103, 113, 224, 0.16);
  box-shadow: 0 14px 28px rgba(72, 84, 215, 0.06);
}

.hero-action--outline:hover,
.hero-action--outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 139, 47, 0.38);
  color: var(--ink);
  transform: translateY(-1px);
}

@keyframes hero-stage-float {
  0%,
  100% {
    transform: translate3d(0, calc(16px + var(--hero-brand-y) * 0.18), 0);
  }

  50% {
    transform: translate3d(0, calc(8px + var(--hero-brand-y) * 0.18), 0);
  }
}

@media (max-width: 900px) {
  .hero-capture-field,
  .hero-layout-field {
    left: 20px;
  }

  .hero-stage-brief {
    display: none;
  }

  .story-panel--brand {
    width: 100%;
  }

  .main-layout {
    padding: 0;
    margin-top: 0;
  }

  .main-layout::before {
    inset: -18px -18px -24px;
    mask-image: none;
  }

  .hero-brand-ledger {
    width: min(100%, 420px);
  }
}

@media (max-width: 640px) {
  .viewport-shell {
    --mobile-stage-top: 56px;
    --mobile-stage-height: 35svh;
    --mobile-tray-top: calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 18px);
    --mobile-tray-height: min(228px, 27svh);
  }

  .chrome--top {
    min-height: 58px;
    padding: 14px 16px 0;
  }

  .brand-link {
    min-height: 36px;
    gap: 8px;
    padding: 0 12px;
    font-size: 10px;
  }

  .brand-link img {
    width: 18px;
    height: 18px;
  }

  #avatar-stage,
  .hero-capture-field,
  .hero-layout-field,
  .instrument-overlay-layer {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0,
      #000 calc(var(--mobile-stage-top) + var(--mobile-stage-height) - 18px),
      transparent calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 28px)
    );
    mask-image: linear-gradient(
      180deg,
      #000 0,
      #000 calc(var(--mobile-stage-top) + var(--mobile-stage-height) - 18px),
      transparent calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 28px)
    );
  }

  .hero-capture-field,
  .hero-layout-field {
    left: 0;
  }

  .hero-capture-field {
    opacity: 0.74;
  }

  .hero-capture-field::before {
    left: -18vw;
    right: auto;
    top: calc(var(--mobile-stage-top) + 108px);
    bottom: auto;
    width: 136vw;
    height: 19svh;
    background-size: 50px 25px, 50px 25px;
    border-top-color: rgba(103, 113, 224, 0.08);
  }

  .hero-layout-field {
    opacity: 0.2;
  }

  .hero-record-preview,
  .hero-stage-brief,
  .capture-record-layer,
  .compare-history-layer {
    z-index: 10;
    display: none;
  }

  .viewport-shell[data-mobile-scene="0"] .hero-record-preview,
  .viewport-shell[data-mobile-scene="1"] .hero-stage-brief {
    display: block;
    opacity: 1;
  }

  .viewport-shell[data-mobile-scene="3"] .capture-record-layer,
  .viewport-shell[data-mobile-scene="5"] .compare-history-layer {
    display: block;
  }

  .hero-record-preview {
    left: 16px;
    right: 16px;
    top: var(--mobile-tray-top);
    width: auto;
    padding: 13px 15px 14px;
    border-radius: 18px;
    transform: none;
  }

  .hero-record-preview > strong {
    margin: 8px 0 12px;
    font-size: 18px;
  }

  .hero-record-preview dl div:first-child,
  .hero-record-preview dl div:last-child {
    display: none;
  }

  .hero-record-preview div {
    grid-template-columns: 72px 1fr;
    padding: 7px 0;
  }

  .hero-record-preview dt {
    font-size: 10px;
  }

  .hero-record-preview dd {
    font-size: 12px;
  }

  .hero-stage-brief {
    left: 16px;
    right: 16px;
    top: calc(var(--mobile-tray-top) + min(112px, 13svh));
    bottom: auto;
    width: auto;
    padding: 13px 15px 14px;
    animation: none;
    transform: none;
  }

  .hero-stage-brief p,
  .hero-stage-brief dt {
    font-size: 8px;
    letter-spacing: 0.11em;
  }

  .hero-stage-brief strong {
    margin-top: 8px;
    font-size: 18px;
  }

  .hero-stage-brief dl {
    margin-top: 12px;
  }

  .hero-stage-brief div {
    gap: 12px;
    padding: 8px 0;
  }

  .hero-stage-brief dl div:last-child {
    display: none;
  }

  .hero-stage-brief dd {
    font-size: 12px;
  }

  .hero-primary-metric,
  .telemetry-field,
  .joint-callout-layer {
    display: none !important;
  }

  .instrument-overlay-layer {
    display: block;
  }

  .instrument-badge {
    display: none;
  }

  .story-board {
    left: 16px;
    right: 16px;
    top: calc(var(--mobile-tray-top) + var(--mobile-tray-height) + 14px);
    bottom: 18px;
    width: auto;
    height: auto;
    z-index: 9;
    overflow: hidden;
  }

  .story-board::after {
    content: "";
    position: absolute;
    inset: -12px -12px -12px;
    z-index: -1;
    border-radius: 24px 24px 20px 20px;
    background: linear-gradient(180deg, rgba(247, 248, 255, 0), rgba(252, 252, 255, 0.94) 28%, rgba(252, 252, 255, 0.98));
  }

  .story-panel {
    justify-content: flex-start;
    padding-left: 0;
    padding-top: 8px;
    padding-right: 2px;
    opacity: 0 !important;
    transform: none !important;
    transition: none;
    pointer-events: none;
  }

  .viewport-shell[data-mobile-scene="0"] .story-panel[data-segment="0"],
  .viewport-shell[data-mobile-scene="1"] .story-panel[data-segment="1"],
  .viewport-shell[data-mobile-scene="2"] .story-panel[data-segment="2"],
  .viewport-shell[data-mobile-scene="3"] .story-panel[data-segment="3"],
  .viewport-shell[data-mobile-scene="4"] .story-panel[data-segment="4"],
  .viewport-shell[data-mobile-scene="5"] .story-panel[data-segment="5"] {
    opacity: 1 !important;
  }

  .story-panel span {
    margin-bottom: 8px;
    font-size: 8px;
  }

  .viewport-shell[data-mobile-scene="1"] .story-panel[data-segment="1"] h2 {
    max-width: none !important;
    font-size: 24px !important;
  }

  .viewport-shell[data-mobile-scene="1"] .story-panel[data-segment="1"] p {
    max-width: none !important;
    font-size: 12px !important;
    line-height: 1.34 !important;
  }

  .story-panel h2,
  .story-panel--brand h2 {
    max-width: 11ch;
    margin-bottom: 10px;
    font-size: clamp(29px, 8.7vw, 38px);
    line-height: 0.94;
  }

  .story-panel p {
    max-width: 31ch;
    font-size: 14px;
    line-height: 1.44;
  }

  .story-panel dl {
    display: none;
  }

  .story-panel::after {
    display: none;
  }

  .story-panel--brand {
    width: auto;
    justify-content: flex-start;
  }

  .main-layout {
    padding: 0;
    margin-top: 0;
  }

  .main-layout::before,
  .hero-kicker,
  .hero-brand-ledger {
    display: none;
  }

  .brand-logotype {
    display: none;
  }

  .brand-catchphrase {
    margin: 0 0 10px;
    font-size: clamp(29px, 8.7vw, 36px);
    line-height: 0.92;
  }

  .brand-description {
    max-width: none;
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-action {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 13px;
  }

  .capture-record-layer {
    left: 16px;
    right: 16px;
    top: var(--mobile-tray-top);
    width: auto;
    max-height: var(--mobile-tray-height);
    padding: 14px 15px 15px;
    border: 1px solid rgba(103, 113, 224, 0.14);
    border-radius: 22px;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(241, 244, 255, 0.58)),
      rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    overflow: hidden;
  }

  .record-heading {
    gap: 4px;
    margin-bottom: 14px;
  }

  .record-heading strong {
    font-size: clamp(24px, 8.8vw, 36px);
  }

  .record-heading span,
  .record-heading small,
  .record-exercise span,
  .record-packets span,
  .record-packets small {
    font-size: 8px;
  }

  .record-meta {
    grid-template-columns: 1.15fr 0.9fr;
    gap: 8px 10px;
    margin-bottom: 14px;
  }

  .record-meta__item:nth-child(2) {
    display: none;
  }

  .record-meta__item {
    padding-top: 8px;
  }

  .record-meta__item strong {
    font-size: 12px;
  }

  .record-meta__item small {
    font-size: 8px;
  }

  .record-exercise {
    display: none;
  }

  .record-exercise strong {
    font-size: 16px;
  }

  .record-packets {
    gap: 8px 10px;
    margin-bottom: 0;
  }

  .record-packets div:nth-child(1),
  .record-packets div:nth-child(3),
  .record-packets div:nth-child(6) {
    display: none;
  }

  .record-packets div {
    padding: 8px 0;
  }

  .record-packets strong {
    margin: 5px 0 2px;
    font-size: 15px;
  }

  .record-log {
    display: none;
  }

  .record-actions {
    margin-top: 12px;
    padding-top: 12px;
  }

  .record-action {
    min-height: 32px;
    font-size: 8px;
  }

  .compare-history-layer {
    z-index: 10;
  }

  .compare-data-shell {
    left: 16px;
    right: 16px;
    top: var(--mobile-tray-top);
    width: auto;
    max-height: var(--mobile-tray-height);
    padding: 14px 15px 15px;
    border: 1px solid rgba(103, 113, 224, 0.14);
    border-radius: 22px;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(241, 244, 255, 0.58)),
      rgba(255, 255, 255, 0.52);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    transform: translate3d(0, var(--compare-y, 22px), 0);
    overflow: hidden;
  }

  .compare-trend-panel {
    padding: 0;
  }

  .compare-trend-panel::before {
    display: none;
  }

  .compare-trend-header {
    gap: 12px;
    padding-top: 0;
    border-top: 0;
  }

  .compare-trend-header span,
  .compare-trend-header small {
    font-size: 8px;
  }

  .compare-trend-header strong {
    max-width: 10ch;
    font-size: 15px;
    line-height: 1.06;
  }

  .compare-trend-chart {
    margin-top: 10px;
    height: 88px;
  }

  .compare-trend-legend {
    gap: 14px;
    margin-top: -4px;
  }

  .compare-trend-legend span {
    font-size: 8px;
  }

  .compare-data-table,
  .compare-session-cards {
    display: none;
  }

  .compare-stats {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }

  .compare-stat:nth-child(1),
  .compare-stat:nth-child(4),
  .compare-stat:nth-child(5) {
    display: none;
  }

  .compare-stat {
    padding-top: 9px;
  }

  .compare-stat span,
  .compare-stat small {
    font-size: 8px;
  }

  .compare-stat strong {
    margin: 7px 0 4px;
    font-size: 17px;
  }
}

.mobile-tray,
.mobile-copy-rail {
  display: none;
}

@media (max-width: 640px) {
  .viewport-shell {
    --mobile-stage-top: 56px;
    --mobile-stage-height: 38svh;
    --mobile-tray-top: calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 14px);
    --mobile-tray-height: 172px;
    --mobile-copy-top: calc(var(--mobile-tray-top) + var(--mobile-tray-height) + 10px);
  }

  .viewport-shell[data-mobile-card="capture"] {
    --mobile-tray-height: 186px;
  }

  .viewport-shell[data-mobile-card="compare"] {
    --mobile-tray-height: 156px;
  }

  #avatar-stage,
  .hero-capture-field,
  .hero-layout-field,
  .instrument-overlay-layer {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0,
      #000 calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 18px),
      transparent calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 58px)
    );
    mask-image: linear-gradient(
      180deg,
      #000 0,
      #000 calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 18px),
      transparent calc(var(--mobile-stage-top) + var(--mobile-stage-height) + 58px)
    );
  }

  .story-board,
  .hero-record-preview,
  .hero-stage-brief,
  .capture-record-layer,
  .compare-history-layer,
  .hero-copy {
    display: none !important;
  }

  .mobile-tray,
  .mobile-copy-rail {
    display: block;
  }

  .mobile-tray {
    position: fixed;
    z-index: 10;
    left: 16px;
    right: 16px;
    top: var(--mobile-tray-top);
    height: var(--mobile-tray-height);
    pointer-events: none;
  }

  .mobile-scene-card {
    position: absolute;
    inset: 0;
    padding: 14px 15px 15px;
    border: 1px solid rgba(103, 113, 224, 0.14);
    border-radius: 22px;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 255, 0.76)),
      rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .viewport-shell[data-mobile-card="hero"] .mobile-scene-card--hero,
  .viewport-shell[data-mobile-card="trace"] .mobile-scene-card--trace,
  .viewport-shell[data-mobile-card="capture"] .mobile-scene-card--capture,
  .viewport-shell[data-mobile-card="compare"] .mobile-scene-card--compare {
    opacity: 1;
    transform: none;
  }

  .mobile-scene-card span,
  .mobile-scene-card small,
  .mobile-scene-card dt {
    color: rgba(29, 36, 98, 0.48);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .mobile-scene-card strong {
    display: block;
    color: #1d2462;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.02;
  }

  .mobile-scene-card dl,
  .mobile-capture-grid,
  .mobile-compare-stats {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .mobile-scene-card dl div,
  .mobile-capture-grid div,
  .mobile-compare-stats div {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(103, 113, 224, 0.12);
  }

  .mobile-scene-card dd,
  .mobile-capture-grid dd,
  .mobile-compare-stats dd {
    margin: 0;
    color: rgba(29, 36, 98, 0.88);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-scene-card--hero strong,
  .mobile-scene-card--trace strong {
    margin: 8px 0 12px;
  }

  .mobile-scene-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
  }

  .mobile-scene-card__header strong {
    margin-top: 7px;
    font-size: 17px;
    line-height: 1.05;
  }

  .mobile-scene-card__header--capture strong {
    font-size: 18px;
  }

  .mobile-scene-card__header--capture .record-check {
    margin-top: 26px;
    opacity: 1;
    transform: translateY(-2px) rotate(-45deg) scale(1);
  }

  .mobile-capture-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
  }

  .mobile-capture-grid div,
  .mobile-compare-stats div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-capture-actions {
    display: grid;
    grid-template-columns: 0.8fr 0.9fr 1.15fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(103, 113, 224, 0.14);
  }

  .mobile-capture-actions .record-action {
    min-height: 32px;
    font-size: 8px;
  }

  .mobile-scene-card--compare {
    padding-bottom: 12px;
  }

  .mobile-compare-chart {
    display: block;
    width: 100%;
    height: 82px;
    margin-top: 8px;
  }

  .mobile-compare-legend {
    display: flex;
    gap: 14px;
    margin-top: 2px;
  }

  .mobile-compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(29, 36, 98, 0.64);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-compare-legend i {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #626bef;
  }

  .mobile-compare-legend span:last-child i {
    background: #ff8b2f;
  }

  .mobile-compare-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 12px;
    margin-top: 10px;
  }

  .mobile-scene-card--compare .mobile-compare-stats {
    display: none;
  }

  .mobile-copy-rail {
    position: fixed;
    z-index: 9;
    left: 16px;
    right: 16px;
    top: var(--mobile-copy-top);
    bottom: 18px;
    padding-top: 2px;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0), rgba(252, 252, 255, 0.92) 18%, rgba(252, 252, 255, 0.98));
  }

  .mobile-copy-rail__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: rgba(103, 113, 224, 0.72);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .mobile-copy-rail__brand {
    display: none;
    margin: 0 0 10px;
    color: var(--orange);
    font-family: "Archivo Black", Impact, var(--sans);
    font-size: 28px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }

  .viewport-shell[data-mobile-card="hero"] .mobile-copy-rail__brand {
    display: block;
  }

  .mobile-copy-rail h2 {
    max-width: 10ch;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: clamp(28px, 8.5vw, 38px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.04em;
  }

  .mobile-copy-rail__body {
    max-width: 31ch;
    margin: 0;
    color: rgba(23, 32, 83, 0.9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.42;
  }

  .mobile-copy-rail__actions {
    margin-top: 14px;
  }

  .mobile-copy-rail__actions[hidden] {
    display: none;
  }

  .viewport-shell[data-mobile-card="trace"] .mobile-copy-rail h2 {
    max-width: 12ch;
    font-size: 25px;
  }

  .viewport-shell[data-mobile-card="trace"] .mobile-copy-rail__body {
    max-width: 34ch;
    font-size: 12px;
    line-height: 1.34;
  }

  .viewport-shell[data-mobile-card="capture"] .mobile-copy-rail h2,
  .viewport-shell[data-mobile-card="compare"] .mobile-copy-rail h2 {
    max-width: 12ch;
    font-size: 27px;
  }
}

.mobile-storydeck,
.mobile-invite {
  display: none;
}

@media (max-width: 640px) {
  body {
    scroll-snap-type: y mandatory;
  }

  .scroll-track,
  .story-board,
  .hero-record-preview,
  .hero-stage-brief,
  .hero-primary-metric,
  .capture-record-layer,
  .compare-history-layer,
  .landing-layer,
  .timeline-rail,
  .metric-stack,
  .axis-readout,
  .telemetry-field,
  .joint-callout-layer,
  .mobile-tray,
  .mobile-copy-rail {
    display: none !important;
  }

  .mobile-storydeck,
  .mobile-invite {
    display: block;
  }

  .mobile-storydeck {
    position: relative;
    z-index: 1;
  }

  .mobile-slide,
  .mobile-invite {
    min-height: 100svh;
    scroll-snap-align: start;
  }

  .mobile-slide {
    position: relative;
    display: flex;
    padding: 72px 16px 40px;
  }

  .mobile-slide--stage {
    align-items: center;
    justify-content: center;
  }

  .mobile-stage-copy {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 3;
    pointer-events: none;
  }

  .mobile-stage-copy--hero {
    top: 118px;
    max-width: 212px;
  }

  .mobile-stage-copy--hero span {
    display: block;
    max-width: 26ch;
    margin-bottom: 12px;
    color: rgba(103, 113, 224, 0.78);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.45;
    text-transform: uppercase;
  }

  .mobile-stage-copy--hero h1 {
    margin: 0;
    color: var(--orange);
    font-family: "Archivo Black", Impact, var(--sans);
    font-size: clamp(34px, 11.8vw, 48px);
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
  }

  .mobile-slide--card,
  .mobile-slide--copy {
    align-items: center;
    justify-content: center;
  }

  .mobile-slide--copy {
    padding-top: 72px;
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.86), rgba(252, 252, 255, 0.98) 24%);
  }

  .mobile-panel,
  .mobile-copy-page {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .mobile-panel {
    padding: 18px 16px;
    border: 1px solid rgba(103, 113, 224, 0.14);
    border-radius: 24px;
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 255, 0.8)),
      rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
  }

  .mobile-panel span,
  .mobile-panel small,
  .mobile-panel dt,
  .mobile-copy-page span {
    color: rgba(103, 113, 224, 0.72);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .mobile-panel strong {
    display: block;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.04;
  }

  .mobile-panel dl,
  .mobile-capture-grid {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
  }

  .mobile-panel dl div,
  .mobile-capture-grid div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-top: 1px solid rgba(103, 113, 224, 0.12);
  }

  .mobile-panel dd,
  .mobile-capture-grid dd {
    margin: 0;
    color: rgba(29, 36, 98, 0.9);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
  }

  .mobile-panel__header strong {
    margin-top: 8px;
  }

  .mobile-panel__header .record-check {
    margin-top: 24px;
    opacity: 1;
    transform: translateY(-2px) rotate(-45deg) scale(1);
  }

  .mobile-capture-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 14px;
  }

  .mobile-capture-grid div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-capture-actions {
    display: grid;
    grid-template-columns: 0.82fr 0.92fr 1.16fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(103, 113, 224, 0.14);
  }

  .mobile-capture-actions .record-action {
    min-height: 34px;
    font-size: 8px;
  }

  .mobile-compare-chart {
    display: block;
    width: 100%;
    height: 118px;
    margin-top: 12px;
  }

  .mobile-compare-legend {
    display: flex;
    gap: 14px;
    margin-top: 6px;
  }

  .mobile-compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(29, 36, 98, 0.64);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-compare-legend i {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #626bef;
  }

  .mobile-compare-legend span:last-child i {
    background: #ff8b2f;
  }

  .mobile-copy-page {
    padding-top: 0;
  }

  .mobile-copy-page__brand {
    margin: 12px 0 10px;
    color: var(--orange);
    font-family: "Archivo Black", Impact, var(--sans);
    font-size: 28px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }

  .mobile-copy-page h2 {
    max-width: 10ch;
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(28px, 9vw, 40px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.045em;
  }

  .mobile-copy-page p {
    max-width: 30ch;
    margin: 0;
    color: rgba(23, 32, 83, 0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.42;
  }

  .mobile-copy-page .hero-action {
    margin-top: 18px;
  }

  .mobile-copy-page--hero h2 {
    max-width: 8ch;
  }

  .mobile-panel--compare strong {
    max-width: 12ch;
  }

  .mobile-invite {
    position: relative;
    z-index: 1;
    padding: 104px 16px calc(76px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(250, 251, 255, 0.92), rgba(252, 252, 255, 1) 18%);
  }

  .mobile-invite__header {
    max-width: 420px;
    margin: 0 auto 22px;
  }

  .mobile-invite__header span {
    display: block;
    margin-bottom: 10px;
    color: rgba(103, 113, 224, 0.72);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .mobile-invite__header h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(34px, 10vw, 48px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.05em;
  }

  .mobile-invite__cards {
    display: grid;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
  }

  .mobile-invite__cards .final-proof {
    padding: 18px 16px 20px;
    border: 1px solid rgba(103, 113, 224, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
  }

  .mobile-invite__footer {
    display: grid;
    gap: 12px;
    max-width: 420px;
    margin: 56px auto 0;
    padding-top: 12px;
  }

  .mobile-invite__footer small {
    color: rgba(29, 36, 98, 0.52);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .viewport-shell[data-mobile-page-kind="stage"] #avatar-stage,
  .viewport-shell[data-mobile-page-kind="stage"] .hero-capture-field,
  .viewport-shell[data-mobile-page-kind="stage"] .hero-layout-field,
  .viewport-shell[data-mobile-page-kind="stage"] .instrument-overlay-layer {
    opacity: 1 !important;
    pointer-events: auto;
  }

  .viewport-shell:not([data-mobile-page-kind="stage"]) #avatar-stage,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .hero-capture-field,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .hero-layout-field,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .instrument-overlay-layer {
    opacity: 0 !important;
    pointer-events: none;
  }

  .viewport-shell[data-mobile-scene="details"] .instrument-overlay-layer {
    opacity: 1 !important;
  }
}

/* Mobile linear story pass: six avatar-led panels, desktop preserved above. */
@media (max-width: 640px) {
  html {
    scroll-snap-type: none;
    scroll-padding-top: 0;
  }

  body {
    min-height: auto;
    scroll-snap-type: none;
    overscroll-behavior-y: contain;
  }

  html[data-mobile-snap-ready="true"],
  body[data-mobile-snap-ready="true"] {
    scroll-snap-type: y proximity;
  }

  .viewport-shell {
    position: fixed;
    inset: 0;
    min-height: 0;
    height: 0;
  }

  .viewport-shell::before {
    z-index: 2;
    background: radial-gradient(circle at 50% 38%, rgba(95, 105, 236, 0.06), transparent 42%);
    opacity: 0.42;
  }

  .viewport-shell::after {
    display: none;
  }

  .chrome--top,
  .hero-brand-field,
  .hero-record-preview,
  .hero-primary-metric,
  .hero-stage-brief,
  .hero-copy,
  .story-board,
  .scroll-track,
  .landing-layer,
  .timeline-rail,
  .metric-stack,
  .axis-readout,
  .telemetry-field,
  .capture-record-layer,
  .compare-history-layer {
    display: none !important;
  }

  #avatar-stage,
  .hero-capture-field,
  .hero-layout-field,
  .instrument-overlay-layer,
  .annotation-layer,
  .joint-callout-layer {
    position: fixed;
  }

  #avatar-stage {
    z-index: 4;
  }

  .hero-capture-field,
  .hero-layout-field {
    left: 0;
    right: 0;
    opacity: var(--hero-capture-opacity);
  }

  #avatar-stage,
  .hero-capture-field,
  .hero-layout-field,
  .instrument-overlay-layer,
  .annotation-layer,
  .joint-callout-layer {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62svh, rgba(0, 0, 0, 0.62) 68svh, transparent 77svh);
    mask-image: linear-gradient(180deg, #000 0%, #000 62svh, rgba(0, 0, 0, 0.62) 68svh, transparent 77svh);
  }

  .viewport-shell[data-mobile-page-kind="stage"] #avatar-stage {
    opacity: var(--stage-opacity, 0.92) !important;
    pointer-events: none;
  }

  .viewport-shell[data-mobile-page-kind="stage"] .hero-capture-field,
  .viewport-shell[data-mobile-page-kind="stage"] .hero-layout-field {
    pointer-events: none;
  }

  .viewport-shell[data-mobile-page-kind="stage"] .instrument-overlay-layer {
    opacity: var(--instrument-opacity, 0) !important;
    pointer-events: none;
  }

  .viewport-shell:not([data-mobile-page-kind="stage"]) #avatar-stage,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .hero-capture-field,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .hero-layout-field,
  .viewport-shell:not([data-mobile-page-kind="stage"]) .instrument-overlay-layer {
    opacity: 0 !important;
    pointer-events: none;
  }

  .mobile-storydeck,
  .mobile-invite {
    display: block;
    position: relative;
    z-index: 8;
  }

  .mobile-slide,
  .mobile-invite {
    min-height: 100svh;
    scroll-snap-align: start;
  }

  .mobile-slide {
    position: relative;
    display: block;
    padding: 0;
    isolation: isolate;
  }

  .mobile-slide::after {
    content: "";
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14svh;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 249, 255, 0), rgba(248, 249, 255, 0.18) 66%, rgba(248, 249, 255, 0.5) 100%);
  }

  .mobile-slide--hero::after,
  .mobile-slide--bridge::after {
    height: 10svh;
    opacity: 0.16;
  }

  .mobile-slide--story > * {
    display: none !important;
  }

  body {
    --mobile-rail-bottom: 0px;
    --mobile-rail-height: 128px;
    --mobile-tray-height: 68px;
    --mobile-tray-gap: 8px;
    --mobile-tray-bottom: calc(var(--mobile-rail-bottom) + var(--mobile-rail-height) + var(--mobile-tray-gap));
  }

  body[data-mobile-card="hero"] {
    --mobile-rail-bottom: 40px;
    --mobile-rail-height: 276px;
  }

  body[data-mobile-card="bridge"] {
    --mobile-rail-bottom: 30px;
    --mobile-rail-height: 152px;
  }

  body[data-mobile-card="details"],
  body[data-mobile-card="annotation"] {
    --mobile-rail-height: 128px;
  }

  body[data-mobile-card="capture"] {
    --mobile-rail-height: 142px;
    --mobile-tray-height: 92px;
  }

  body[data-mobile-card="compare"] {
    --mobile-rail-height: 140px;
    --mobile-tray-height: 86px;
  }

  #avatar-stage,
  .hero-capture-field,
  .hero-layout-field,
  .instrument-overlay-layer,
  .annotation-layer,
  .joint-callout-layer {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 64svh, rgba(0, 0, 0, 0.8) 72svh, transparent 82svh);
    mask-image: linear-gradient(180deg, #000 0%, #000 64svh, rgba(0, 0, 0, 0.8) 72svh, transparent 82svh);
  }

  .mobile-tray,
  .mobile-copy-rail {
    display: block !important;
    position: fixed;
    left: 16px;
    right: 16px;
    pointer-events: none;
  }

  .mobile-tray {
    z-index: 14;
    bottom: var(--mobile-tray-bottom);
    left: 16px;
    right: 16px;
    height: var(--mobile-tray-height);
    transform: none;
    transition:
      bottom 280ms cubic-bezier(0.22, 1, 0.36, 1),
      height 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-scene-card {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding: 8px 12px 10px;
    border: 1px solid rgba(103, 113, 224, 0.08);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 248, 255, 0.52)),
      rgba(255, 255, 255, 0.38);
    box-shadow: 0 8px 20px rgba(54, 66, 171, 0.03);
    backdrop-filter: none;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
      opacity 220ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-scene-card--trace {
    width: 100%;
  }

  .mobile-scene-card--details {
    width: 100%;
  }

  .mobile-scene-card--capture {
    width: 100%;
    padding: 10px 14px 12px;
  }

  .mobile-scene-card--compare {
    width: 100%;
  }

  body:not([data-mobile-tray="trace"]) .mobile-scene-card--trace,
  body:not([data-mobile-tray="details"]) .mobile-scene-card--details,
  body:not([data-mobile-tray="capture"]) .mobile-scene-card--capture,
  body:not([data-mobile-tray="compare"]) .mobile-scene-card--compare {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  body[data-mobile-tray="trace"] .mobile-scene-card--trace,
  body[data-mobile-tray="details"] .mobile-scene-card--details,
  body[data-mobile-tray="capture"] .mobile-scene-card--capture,
  body[data-mobile-tray="compare"] .mobile-scene-card--compare {
    opacity: 1;
    transform: none;
  }

  .mobile-scene-card span,
  .mobile-scene-card small,
  .mobile-scene-card dt {
    color: rgba(29, 36, 98, 0.44);
    font-family: var(--mono);
    font-size: 6px;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .mobile-scene-card strong {
    display: block;
    color: rgba(29, 36, 98, 0.86);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
  }

  .mobile-scene-card dl,
  .mobile-capture-grid,
  .mobile-compare-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 8px;
    margin: 0;
    padding-top: 5px;
    border-top: 1px solid rgba(103, 113, 224, 0.11);
  }

  .mobile-scene-card dl div,
  .mobile-capture-grid div,
  .mobile-compare-stats div {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    padding: 0;
  }

  .mobile-scene-card dd,
  .mobile-capture-grid dd,
  .mobile-compare-stats dd {
    margin: 0;
    color: rgba(29, 36, 98, 0.74);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-scene-card--trace strong {
    margin: 4px 0 8px;
  }

  .mobile-scene-card--trace strong {
    display: none;
  }

  .mobile-detail-stats {
    border-top: 0;
    padding-top: 4px;
  }

  .mobile-detail-stats dd {
    font-size: 10px;
  }

  .mobile-scene-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
  }

  .mobile-scene-card__header strong {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.05;
  }

  .mobile-scene-card__header--capture strong {
    font-size: 12px;
  }

  .mobile-scene-card__header--capture {
    display: block;
    margin-bottom: 7px;
  }

  .mobile-capture-heading {
    display: grid;
    gap: 4px;
  }

  .mobile-capture-meta-row,
  .mobile-capture-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-capture-meta-row {
    min-width: 0;
  }

  .mobile-capture-meta-row small {
    flex: 0 0 auto;
    text-align: right;
    opacity: 0.72;
  }

  .mobile-capture-title-row strong {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.02;
  }

  .mobile-capture-title-row .record-check {
    flex: 0 0 auto;
    margin: 0 2px 2px 0;
    opacity: 0.56;
    transform: rotate(-45deg) scale(0.76);
  }

  .mobile-scene-card--compare {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .mobile-compare-chart {
    display: block;
    width: 100%;
    height: 22px;
    margin-top: 2px;
  }

  .mobile-compare-stats {
    margin-top: 6px;
  }

  .mobile-scene-card--compare .mobile-compare-stats {
    display: none;
  }

  .mobile-capture-grid {
    grid-template-columns: 1.12fr 0.84fr 0.9fr;
    gap: 0;
    padding-top: 7px;
  }

  .mobile-capture-grid div {
    gap: 3px;
    padding: 0 10px 0 0;
    align-content: start;
  }

  .mobile-capture-grid div + div {
    padding-left: 10px;
    border-left: 1px solid rgba(103, 113, 224, 0.1);
  }

  .mobile-scene-card--capture dt {
    font-size: 5.5px;
    letter-spacing: 0.11em;
  }

  .mobile-scene-card--capture dd {
    font-size: 10px;
    line-height: 1.16;
  }

  .mobile-copy-rail {
    z-index: 13;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    bottom: var(--mobile-rail-bottom);
    height: var(--mobile-rail-height);
    padding: 14px 16px calc(8px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(250, 251, 255, 0), rgba(252, 252, 255, 0.56) 14%, rgba(252, 252, 255, 0.92) 30%),
      rgba(252, 252, 255, 0.88);
    backdrop-filter: blur(6px);
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      bottom 320ms cubic-bezier(0.22, 1, 0.36, 1),
      height 320ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body[data-mobile-card]:not([data-mobile-card=""]) .mobile-copy-rail {
    opacity: 1;
    transform: none;
  }

  .mobile-copy-rail__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: rgba(103, 113, 224, 0.72);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .mobile-copy-rail__brand {
    display: none;
    margin: 0 0 10px;
    color: var(--orange);
    font-family: "Archivo Black", Impact, var(--sans);
    font-size: 28px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
  }

  body[data-mobile-card="hero"] .mobile-copy-rail__brand {
    display: block;
  }

  .mobile-copy-rail h2 {
    max-width: 10ch;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: clamp(28px, 8.5vw, 38px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.04em;
  }

  .mobile-copy-rail__body {
    max-width: 31ch;
    margin: 0;
    color: rgba(23, 32, 83, 0.96);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.42;
  }

  .mobile-copy-rail__actions {
    margin-top: 14px;
    pointer-events: auto;
  }

  .mobile-copy-rail__actions[hidden] {
    display: none;
  }

  body[data-mobile-card="bridge"] .mobile-copy-rail h2,
  body[data-mobile-card="details"] .mobile-copy-rail h2,
  body[data-mobile-card="annotation"] .mobile-copy-rail h2 {
    max-width: 12ch;
    font-size: 24px;
  }

  body[data-mobile-card="bridge"] .mobile-copy-rail__body,
  body[data-mobile-card="details"] .mobile-copy-rail__body,
  body[data-mobile-card="annotation"] .mobile-copy-rail__body {
    max-width: 34ch;
    font-size: 12px;
    line-height: 1.34;
  }

  body[data-mobile-card="capture"] .mobile-copy-rail h2,
  body[data-mobile-card="compare"] .mobile-copy-rail h2 {
    max-width: 12ch;
    font-size: 25px;
  }

  .instrument-badge {
    display: none;
    z-index: 12;
    min-width: 88px;
    padding: 6px 8px 7px 10px;
    border-radius: 0 7px 7px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.12));
    box-shadow: none;
    backdrop-filter: blur(6px);
  }

  .viewport-shell[data-mobile-scene="details"][data-mobile-page-kind="stage"] .instrument-badge--stack,
  .viewport-shell[data-mobile-scene="details"][data-mobile-page-kind="stage"] .instrument-badge--rise {
    display: block;
  }

  .instrument-graphic [data-instrument-line="label-rise"],
  .instrument-graphic [data-instrument-line="label-knee"] {
    opacity: 0;
  }

  .instrument-badge::before {
    left: 10px;
    top: 50%;
    width: 13px;
    height: 1px;
    transform: translate(-20px, -50%);
  }

  .instrument-badge span,
  .instrument-badge strong {
    padding-left: 0;
  }

  .instrument-badge span {
    font-size: 7px;
  }

  .instrument-badge strong {
    margin-top: 5px;
    font-size: 16px;
  }

  .trainer-note {
    left: 18px;
    right: 18px;
    top: max(82px, calc(env(safe-area-inset-top) + 62px));
    width: auto;
    max-width: 390px;
    margin: 0 auto;
  }

  .trainer-note::before {
    inset: -12px -14px;
  }

  .trainer-note__meta {
    display: none;
  }

  .trainer-note__field {
    min-height: 74px;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 1.34;
  }

  .trainer-note__button {
    height: 30px;
    margin-top: 10px;
  }

  .joint-callout,
  .joint-callout-lines {
    display: none;
  }
}

@media (max-width: 380px) {
  .mobile-copy-rail h2 {
    font-size: 28px;
  }

  .mobile-copy-rail__body {
    font-size: 12px;
  }

  body {
    --mobile-tray-height: 98px;
  }

  body[data-mobile-card="capture"] {
    --mobile-tray-height: 108px;
  }

  body[data-mobile-card="compare"] {
    --mobile-tray-height: 118px;
  }
}

@media (max-width: 640px) {
  .mobile-storydeck,
  .mobile-invite {
    z-index: 12;
  }
}

/* Latitude demo shell: interactive viewport, less copy, more instrumentation. */
.latitude-demo-page {
  min-height: 100svh;
  overflow: hidden;
  background: #f9f8ff;
  cursor: default;
}

.latitude-demo-page .viewport-shell #avatar-stage,
.latitude-demo-page .viewport-shell:not([data-mobile-page-kind="stage"]) #avatar-stage,
.latitude-demo-page .viewport-shell[data-mobile-page-kind="stage"] #avatar-stage {
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.latitude-demo-page .viewport-shell #avatar-stage:active {
  cursor: grabbing;
}

.latitude-demo-page .hero-copy,
.latitude-demo-page .story-board,
.latitude-demo-page .hero-actions,
.latitude-demo-page .hero-brand-content,
.latitude-demo-page .landing-layer,
.latitude-demo-page .annotation-layer,
.latitude-demo-page .capture-record-layer,
.latitude-demo-page .compare-history-layer,
.latitude-demo-page .mobile-copy-rail,
.latitude-demo-page .mobile-storydeck,
.latitude-demo-page .mobile-invite,
.latitude-demo-page .scroll-track,
.latitude-demo-page .hero-brand-ledger,
.latitude-demo-page .axis-readout {
  display: none !important;
}

.latitude-demo-page .chrome--top {
  opacity: 0.42;
}

.latitude-demo-page .hero-record-preview,
.latitude-demo-page .hero-stage-brief,
.latitude-demo-page .hero-primary-metric,
.latitude-demo-page .metric-stack,
.latitude-demo-page .instrument-overlay-layer,
.latitude-demo-page .telemetry-field {
  pointer-events: none;
}

.latitude-demo-page .instrument-overlay-layer {
  display: block;
  opacity: var(--instrument-opacity, 0.96);
}

.latitude-demo-page .demo-exercise-toggle {
  position: fixed;
  z-index: 32;
  top: max(24px, env(safe-area-inset-top));
  left: 50%;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(103, 113, 224, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(244, 246, 255, 0.7)),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(42, 52, 118, 0.1);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.latitude-demo-page .demo-exercise-toggle button {
  min-width: 0;
  height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: rgba(29, 36, 98, 0.56);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.latitude-demo-page .demo-exercise-toggle button[aria-pressed="true"] {
  border-color: rgba(86, 96, 232, 0.24);
  background: rgba(255, 255, 255, 0.82);
  color: #4854d7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.latitude-demo-page .demo-exercise-toggle button:hover,
.latitude-demo-page .demo-exercise-toggle button:focus-visible {
  color: #1d2462;
  outline: none;
}

.latitude-demo-page .demo-stat-panel {
  position: fixed;
  z-index: 26;
  left: clamp(20px, 4.4vw, 78px);
  top: clamp(128px, 15svh, 170px);
  width: min(260px, 23vw);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.latitude-demo-page .demo-stat-panel article {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 8px 11px;
  border-left: 2px solid rgba(86, 96, 232, 0.48);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  box-shadow: 0 12px 28px rgba(42, 52, 118, 0.06);
  backdrop-filter: blur(10px);
}

.latitude-demo-page .demo-stat-panel span {
  color: rgba(29, 36, 98, 0.52);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.latitude-demo-page .demo-stat-panel strong {
  color: #3840c4;
  font-family: var(--mono);
  font-size: clamp(14px, 1.25vw, 20px);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.latitude-demo-page .instrument-graphic--stack,
.latitude-demo-page .instrument-badge--stack,
.latitude-demo-page .instrument-graphic--labels [data-instrument-line="label-stack"],
.latitude-demo-page .instrument-graphic--torso,
.latitude-demo-page .instrument-badge--torso,
.latitude-demo-page .instrument-graphic--labels [data-instrument-line="label-torso"],
.latitude-demo-page .instrument-graphic--rack [data-instrument-path="rack-shelf"],
.latitude-demo-page .instrument-graphic--rack [data-instrument-line="rack-bar"],
.latitude-demo-page .telemetry-card--force {
  display: none !important;
}

.latitude-demo-page .instrument-graphic--torso [data-instrument-path="torso-wedge"],
.latitude-demo-page .instrument-graphic--torso [data-instrument-path="torso-arc"],
.latitude-demo-page .instrument-graphic--torso [data-instrument-path="torso-angle-ticks"] {
  display: none !important;
}

.latitude-demo-page .instrument-graphic--knee,
.latitude-demo-page .instrument-badge--knee {
  display: block;
}

.latitude-demo-page .demo-control-dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 42px minmax(156px, 210px) 38px 42px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(103, 113, 224, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 246, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 54px rgba(42, 52, 118, 0.12);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.latitude-demo-page .demo-timeline-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 96, 232, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #4854d7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.latitude-demo-page .demo-play-button {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 183, 167, 0.24);
  border-radius: 6px;
  background: rgba(247, 252, 252, 0.74);
  color: #15988d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.latitude-demo-page .demo-play-button span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.latitude-demo-page .demo-play-button[data-playing="true"] {
  border-color: rgba(24, 183, 167, 0.42);
  background: rgba(224, 250, 247, 0.88);
}

.latitude-demo-page .demo-play-button:hover,
.latitude-demo-page .demo-play-button:focus-visible {
  border-color: rgba(24, 183, 167, 0.46);
  background: rgba(240, 253, 251, 0.96);
  outline: none;
}

.latitude-demo-page .demo-timeline-button span {
  display: block;
  margin-top: -2px;
  font-size: 30px;
  line-height: 1;
}

.latitude-demo-page .demo-timeline-button:hover,
.latitude-demo-page .demo-timeline-button:focus-visible {
  border-color: rgba(86, 96, 232, 0.36);
  background: rgba(247, 248, 255, 0.96);
  outline: none;
}

.latitude-demo-page .demo-timeline-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.latitude-demo-page .demo-timeline-readout {
  min-width: 0;
  font-family: var(--mono);
  color: rgba(29, 36, 98, 0.72);
  text-transform: uppercase;
}

.latitude-demo-page .demo-timeline-readout span {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.latitude-demo-page .demo-timeline-readout strong {
  display: block;
  margin-bottom: 8px;
  color: #1d2462;
  font-size: 16px;
  line-height: 1;
}

.latitude-demo-page .demo-timeline-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(103, 113, 224, 0.16);
}

.latitude-demo-page .demo-timeline-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--demo-phase, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #4854d7, #18b7a7);
}

@media (max-width: 640px) {
  .latitude-demo-page {
    overflow: hidden;
  }

  .latitude-demo-page .mobile-tray {
    display: none;
  }

  .latitude-demo-page .demo-control-dock {
    grid-template-columns: 38px minmax(118px, 1fr) 36px 38px;
    left: 12px;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: none;
  }

  .latitude-demo-page .demo-exercise-toggle {
    top: max(12px, env(safe-area-inset-top));
    grid-template-columns: repeat(2, minmax(92px, 1fr));
  }

  .latitude-demo-page .demo-stat-panel {
    left: 12px;
    right: 12px;
    top: max(60px, calc(env(safe-area-inset-top) + 54px));
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .latitude-demo-page .demo-stat-panel article {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 7px 8px;
  }

  .latitude-demo-page .demo-stat-panel span {
    font-size: 7px;
  }

  .latitude-demo-page .demo-stat-panel strong {
    font-size: 13px;
  }

  .latitude-demo-page .instrument-badge {
    display: block;
  }

  .latitude-demo-page .instrument-badge--stack {
    display: none !important;
  }

  .latitude-demo-page .demo-timeline-button {
    width: 38px;
    height: 38px;
  }

  .latitude-demo-page .demo-play-button {
    width: 36px;
    height: 38px;
  }
}
