* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--es-ink);
  background: var(--es-ground);
  font-family: var(--es-font-body);
  font-size: var(--es-text-body);
  line-height: var(--es-line-body);
  font-weight: 400;
}
button,
select {
  font: inherit;
  color: var(--es-ink);
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-s);
  padding: 0.6rem 0.8rem;
  cursor: pointer;
}
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--es-muted);
  text-decoration: none;
}
button:hover,
a:hover {
  color: var(--es-ink);
  border-color: var(--es-muted);
}
:focus-visible {
  outline: 2px solid var(--es-pore);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
header {
  position: absolute;
  z-index: 6;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.7rem 3%;
}
.wordmark {
  color: var(--es-ink);
  position: relative;
  width: max(44px, var(--es-header-mark-size));
  height: max(44px, var(--es-header-mark-size));
  min-width: 44px;
  min-height: 44px;
  touch-action: pan-y;
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: var(--es-text-small);
}
.top-controls button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.2rem;
}
main {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
}
#scene {
  position: absolute;
  inset: 0;
  touch-action: none;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* The stage is filmed people now: one video fills the room, cover-cropped. */
#stage-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--es-ground);
}
/* The capture layers ride the filmed people, in the nonverbal tracker's
   language: dotted corner brackets, an anchor dot, rings at the point of
   capture and a fine trace. Voice takes them to the mouth and chin; the
   same layer, recoloured by --vc-accent, takes them to the pressing
   fingertip in Motion and Touch, its trace the fingertip's own path. */
.voice-capture {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.voice-capture svg {
  display: block;
  width: 100%;
  height: 100%;
}
.voice-capture .vc-corner {
  fill: none;
  stroke: var(--vc-accent, var(--es-hear));
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
  opacity: 0.95;
}
.voice-capture .vc-anchor {
  fill: var(--vc-accent, var(--es-hear));
  opacity: 0.95;
}
.voice-capture .vc-anchor-halo {
  fill: var(--vc-accent, var(--es-hear));
  opacity: 0.18;
}
.voice-capture .vc-dot {
  fill: var(--vc-accent, var(--es-hear));
  opacity: 0.55;
}
.voice-capture .vc-wave {
  fill: none;
  stroke: var(--vc-accent, var(--es-hear));
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.hand-capture .vc-wave {
  stroke-dasharray: 0.1 6;
  opacity: 0.75;
}
.voice-capture .vc-ring {
  fill: none;
  stroke: var(--vc-accent, var(--es-hear));
  stroke-width: 1.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vc-ring 1.8s ease-out infinite;
}
.voice-capture .vc-ring.r2 {
  animation-delay: 0.9s;
}
/* The welcome ambience: eye brackets in the view colour, smell
   particles in theirs — painted by scene.js over the resting poster. */
.overview-ambience {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.overview-ambience svg {
  display: block;
  width: 100%;
  height: 100%;
}
.overview-ambience .oa-corner {
  fill: none;
  stroke: var(--es-view);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
}
.overview-ambience .oa-iris,
.overview-ambience .oa-iris-halo {
  fill: var(--es-view);
}
.overview-ambience .oa-nose,
.overview-ambience .oa-nose-halo {
  fill: var(--es-smell);
}
.overview-ambience .oa-particle {
  fill: var(--es-smell);
}
.overview-ambience .oa-particle-trail {
  fill: var(--es-smell);
}
.overview-ambience .oa-nose-ring {
  fill: none;
  stroke: var(--es-smell);
  stroke-width: 1.6;
}
.overview-ambience .oa-particle-halo {
  fill: var(--es-smell);
}
@keyframes vc-ring {
  0% {
    transform: scale(0.45);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice-capture .vc-ring {
    animation: none;
    opacity: 0;
  }
}
.intro {
  position: absolute;
  top: 24%;
  left: 4.5%;
  z-index: 2;
  width: min(30vw, 29rem);
  pointer-events: none;
}
.intro button {
  pointer-events: auto;
}
.eyebrow {
  font-family: var(--es-font-data);
  color: var(--es-muted);
  text-transform: uppercase;
  font-size: var(--es-text-small);
  letter-spacing: 0.18em;
  line-height: 1.8;
}
h1 {
  font-family: var(--es-font-display);
  font-size: clamp(2.5rem, 5.1vw, 6.3rem);
  font-weight: var(--es-display-weight);
  line-height: 1.04;
  letter-spacing: var(--es-display-tracking);
  margin: 0.8rem 0 1.6rem;
}
.editorial-rule {
  display: block;
  height: 2px;
  width: 2rem;
  background: var(--es-pore);
  margin: 1.4rem 0;
}
#tagline {
  font-size: 0.88rem;
  max-width: 22rem;
  line-height: 1.65;
  color: var(--es-muted);
}
.demo-label {
  color: var(--es-muted);
  font-size: var(--es-text-small);
  line-height: 1.6;
  max-width: 22rem;
}
.scene-caption {
  position: absolute;
  bottom: 7.3rem;
  left: 4.5%;
  display: grid;
  gap: 0.4rem;
  color: var(--es-muted);
  font-size: var(--es-text-small);
  pointer-events: none;
}
#scene-status {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--es-font-data);
}
.scene-controls {
  position: absolute;
  bottom: 6.6rem;
  right: 3%;
  display: flex;
  gap: 0.15rem;
}
.scene-controls button {
  padding: 0.35rem 0.5rem;
  font-size: var(--es-text-small);
  background: transparent;
  border-color: transparent;
}
#chapter-index {
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.1em;
  color: var(--es-muted);
}
nav {
  position: absolute;
  bottom: 3.4rem;
  left: 4.5%;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
nav button {
  position: relative;
  font-size: var(--es-text-small);
  border: 0;
  border-right: 1px solid var(--es-line);
  border-radius: 0;
  background: transparent;
  padding: 0.45rem 1.3rem;
  color: var(--es-muted);
}
nav button:first-child {
  padding-left: 0;
}
nav button:last-child {
  border-right: 0;
}
nav button[aria-pressed="true"] {
  color: var(--es-ink);
}
nav button[aria-pressed="true"]::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -0.4rem;
  left: 1.3rem;
  width: 1.3rem;
  background: var(--es-pore);
}
nav button:first-child[aria-pressed="true"]::after {
  left: 0;
}
#connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}
#connector-line {
  fill: none;
  stroke: var(--es-pore);
  stroke-width: 1;
  opacity: 0.7;
}
#connector-point {
  fill: var(--es-pore);
}
.ai-indicator {
  position: absolute;
  top: 6rem;
  right: 3%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.04em;
  color: var(--es-muted);
}
/* Tablet band: the ambient status line runs into the header controls and
   the menu coach at the top right and gets clipped mid-phrase (audit,
   November 4, 2026). The honesty labels live on in the overview column
   and the footer disclosure, so the line steps aside until the wide
   layout gives it clear room again. */
@media (min-width: 701px) and (max-width: 1100px) {
  .ai-indicator {
    display: none;
  }
}
.ai-dot {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--es-pore);
}
#detail-panel {
  position: absolute;
  z-index: 5;
  top: 19%;
  left: 4.5%;
  width: min(24rem, 29vw);
  max-height: calc(81svh - 10rem);
  overflow-y: auto;
  padding: 0 1rem 1rem 0;
  background: var(--es-panel);
  scrollbar-width: thin;
  scrollbar-color: var(--es-line) transparent;
}
#detail-panel p {
  font-size: var(--es-text-small);
  line-height: 1.75;
}
h2 {
  font: 300 2.6rem var(--es-font-display);
  letter-spacing: -0.045em;
  margin: 1rem 0;
}
h3 {
  font-size: var(--es-text-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1.4rem;
}
.close {
  float: right;
  padding: 0.1rem 0.5rem;
  font-size: 1.4rem;
  border: 0;
  background: transparent;
}
.instrument,
.muted {
  color: var(--es-muted);
}
.evidence-chip {
  display: inline-block;
  border: 1px solid var(--es-line);
  padding: 0.3rem 0.5rem;
  font-size: var(--es-text-small);
  margin: 0.2rem 0.2rem 0.2rem 0;
  border-radius: var(--es-radius-s);
}
.reading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-block: 1px solid var(--es-line);
  padding: 0.8rem 0;
  margin-top: 1rem;
  font-size: var(--es-text-small);
}
.reading strong {
  color: var(--es-ink);
  font-family: var(--es-font-data);
  font-weight: 400;
}
.consent label {
  display: block;
  font-size: var(--es-text-small);
  margin-bottom: 0.5rem;
}
.consent select {
  width: 100%;
  font-size: var(--es-text-small);
}
#disclosure {
  font-family: var(--es-font-data);
  overflow-wrap: anywhere;
}
#revoke {
  font-size: var(--es-text-small);
}
.skip {
  position: absolute;
  top: -5rem;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
  background: var(--es-surface);
  padding: 1rem;
}
footer {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 4.5%;
  right: 4.5%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem minmax(0, 1fr);
  align-items: end;
  gap: 0.5rem;
  font-size: var(--es-text-small);
  line-height: 1.5;
  color: var(--es-muted);
  pointer-events: none;
}
#footnote {
  grid-column: 1;
  max-width: 38rem;
}
footer #newsletter-toggle {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  max-width: 100%;
}
footer a {
  pointer-events: auto;
}
#fallback,
#loading {
  position: absolute;
  left: 46%;
  top: 45%;
  width: 40%;
  padding: 1.5rem;
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  font-size: var(--es-text-small);
  line-height: 1.7;
  z-index: 4;
}
.text-only main {
  overflow: visible;
  padding: 6rem 5% 12rem;
}
.text-only #scene,
.text-only .intro,
.text-only .scene-caption,
.text-only .scene-controls,
.text-only #connector,
.text-only .ai-indicator {
  display: none;
}
#text-view {
  max-width: 65rem;
  margin: auto;
}
#text-view > section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--es-line);
  line-height: 1.7;
}
.text-only footer {
  position: static;
  padding: 1rem 5%;
}
.text-only #detail-panel {
  position: fixed;
  background: var(--es-surface);
  padding: 1.5rem;
}
@media (max-width: 700px) {
  main {
    min-height: 100svh;
  }
  header {
    padding: 1rem 5%;
  }
  .top-controls {
    gap: 0.8rem;
  }
  .intro {
    top: 4.7rem;
    left: 5%;
    width: 90%;
  }
  h1 {
    font-size: clamp(2.2rem, 8.8vw, 3.4rem);
    margin: 0.35rem 0 0.5rem;
    max-width: 17rem;
  }
  .intro .eyebrow {
    font-size: var(--es-text-small);
    margin: 0.35rem 0;
  }
  .intro .editorial-rule {
    margin: 0.75rem 0;
  }
  #tagline {
    font-size: var(--es-text-small);
    max-width: 21rem;
    margin: 0.45rem 0;
  }
  .demo-label {
    font-size: var(--es-text-small);
    max-width: 22rem;
    margin: 0.45rem 0;
  }
  #scene {
    top: 18.5rem;
    bottom: 12.25rem;
  }
  .ai-indicator {
    top: auto;
    bottom: 11.25rem;
    right: 5%;
    left: 5%;
    font-size: var(--es-text-small);
    justify-content: flex-end;
  }
  .scene-caption {
    left: 5%;
    right: 5%;
    bottom: 9.4rem;
    font-size: var(--es-text-small);
    gap: 0.3rem;
  }
  #hint {
    max-width: 100%;
  }
  .scene-controls {
    bottom: 7.05rem;
    right: 5%;
    left: 5%;
    justify-content: center;
  }
  .scene-controls button {
    min-width: 2.25rem;
    min-height: 2rem;
  }
  #chapter-index {
    font-size: var(--es-text-small);
  }
  nav {
    left: 5%;
    right: 5%;
    bottom: 3rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  nav button {
    padding: 0.45rem 0.65rem;
    font-size: var(--es-text-small);
  }
  nav button[aria-pressed="true"]::after {
    left: 0.65rem;
  }
  #detail-panel {
    inset: auto 5% 9.25rem;
    width: 90%;
    max-height: 35svh;
    background: var(--es-surface);
    border-top: 1px solid var(--es-line);
    padding: 1rem;
  }
  #detail-panel h2 {
    font-size: 1.8rem;
  }
  #detail-panel .editorial-rule {
    margin: 0.8rem 0;
  }
  body.scene-focused #scene {
    top: 4rem;
    bottom: calc(35svh + 9.25rem);
  }
  body.scene-focused .intro,
  body.scene-focused .scene-caption,
  body.scene-focused .ai-indicator {
    display: none;
  }
  footer {
    font-size: var(--es-text-small);
    left: 5%;
    right: 5%;
    bottom: 0.8rem;
    line-height: 1.5;
    align-items: flex-end;
  }
  #footnote {
    max-width: 57%;
  }
  #fallback,
  #loading {
    top: 43%;
    left: 10%;
    width: 80%;
  }
  .system-label {
    display: none;
  }
}
@media (max-width: 370px) {
  nav button {
    padding: 0.4rem 0.45rem;
    font-size: var(--es-text-small);
  }
  nav button[aria-pressed="true"]::after {
    left: 0.45rem;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .intro {
    top: 4.1rem;
  }
  h1 {
    font-size: 2rem;
    max-width: 15rem;
  }
  .intro .editorial-rule {
    margin: 0.5rem 0;
  }
  .demo-label {
    max-width: 100%;
    font-size: var(--es-text-small);
  }
  #scene {
    top: 16rem;
    bottom: 11.7rem;
  }
  .ai-indicator {
    bottom: 10.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

body.scene-focused .intro {
  display: none;
}
#loading {
  pointer-events: none;
}
.system-label {
  color: var(--es-ink);
}
/* The two room labels read as two phrases, not one run-on line. */
.system-label::after {
  content: "·" / "";
  margin-left: 0.5rem;
  color: var(--es-muted);
}
.return-overview {
  color: var(--es-muted);
  font-size: var(--es-text-small);
}

/* Room narration: one editorial caption, sparse telemetry, explicit audio controls. */
.wordmark {
  display: flex;
  align-items: center;
}
.interface-mark {
  display: inline-block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  background: url("../brand/ursly-icon.svg") center / contain no-repeat;
}
/* Circuit-letter identity: the name is artwork, never type. One image per
   theme; the 44px-high Home target keeps the wordmark above its 96px minimum. */
.wordmark[data-brand-identity="circuit"] {
  width: auto;
  /* Enlarged text grows the mark only as far as a phone's header can hold
     it beside the language and menu controls. */
  height: min(var(--es-header-brand-height), max(46px, 13vw));
  min-height: 44px;
  aspect-ratio: var(--es-brand-wordmark-ratio);
}
@media (max-width: 700px) {
  .wordmark[data-brand-identity="circuit"] {
    height: min(var(--es-header-brand-height-compact), max(46px, 13vw));
  }
}
/* Short landscape phones: enlarged text must not grow the mark past the
   controls beside it, or the header closes the room's visible lane. */
@media (max-width: 700px) and (max-height: 420px) {
  .wordmark[data-brand-identity="circuit"] {
    height: 44px;
  }
}
.brand-wordmark {
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: var(--es-brand-wordmark-ratio);
}
.brand-wordmark--light,
:root[data-theme="light"] .brand-wordmark--dark {
  display: none;
}
:root[data-theme="light"] .brand-wordmark--light {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand-wordmark--dark {
    display: none;
  }
  :root:not([data-theme="dark"]) .brand-wordmark--light {
    display: block;
  }
}
/* One restrained light travels clockwise through the six actual frame
   etchings, and the frame itself keeps tracking: a slow hunt of small
   offsets and breaths around the U, as if the capture were still working.
   The image's canonical letters remain steady. The light's CSS clock keeps
   the resting room asleep; the adapter pauses it under an entrance or
   modal. The tracking stops only for a static (reduced-motion) mark. */
.brand-frame-glint {
  position: absolute;
  left: 0;
  top: 50%;
  width: auto;
  height: 100%;
  aspect-ratio: var(--es-brand-wordmark-ratio);
  transform: translateY(-50%);
  transform-box: view-box;
  transform-origin: 18% 44%;
  animation: brand-frame-track 5.6s ease-in-out infinite;
  pointer-events: none;
  overflow: visible;
}
@keyframes brand-frame-track {
  0%,
  100% {
    transform: translateY(-50%) translate(0, 0) scale(1);
  }
  16% {
    transform: translateY(-50%) translate(0.7px, -0.9px) scale(1.014);
  }
  34% {
    transform: translateY(-50%) translate(-0.9px, 0.5px) scale(1.03);
  }
  52% {
    transform: translateY(-50%) translate(0.5px, 1px) scale(1.02);
  }
  70% {
    transform: translateY(-50%) translate(-0.6px, -0.6px) scale(1.008);
  }
  86% {
    transform: translateY(-50%) translate(0.3px, 0.2px) scale(1.002);
  }
}
.brand-frame-glint-stroke {
  fill: none;
  stroke: color-mix(in srgb, var(--es-ink) 76%, var(--es-pore));
  stroke-width: var(--brand-frame-width);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: var(--brand-glint-light) var(--brand-glint-gap);
  stroke-dashoffset: var(--brand-glint-start);
  opacity: 0.62;
  animation: brand-frame-glint var(--es-brand-glint-period, 12s) linear infinite;
  animation-play-state: paused;
}
[data-brand-motion="running"] > .brand-frame-glint .brand-frame-glint-stroke {
  animation-play-state: running;
}
/* A paused glint, in the room header or the pitch header, carries no
   animation at all: nothing (a capture tool's scripted replay included) can
   set it moving while paused, and it restarts its circuit on resume. */
[data-brand-motion="paused"] > .brand-frame-glint .brand-frame-glint-stroke {
  animation-name: none;
}
@keyframes brand-frame-glint {
  0% {
    stroke-dashoffset: var(--brand-glint-start);
  }
  100% {
    stroke-dashoffset: var(--brand-glint-end);
  }
}
[data-brand-motion="static"] > .brand-frame-glint .brand-frame-glint-stroke {
  animation: none;
  opacity: 0;
}
[data-brand-motion="static"]
  > .brand-frame-glint
  [data-frame="corner-top-left"] {
  opacity: 0.32;
  stroke-dashoffset: var(--brand-glint-rest);
}
/* A static mark does not track either: the frame rests with the light. */
[data-brand-motion="static"] > .brand-frame-glint {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .brand-frame-glint {
    animation: none;
  }
  .brand-frame-glint-stroke {
    animation: none;
    opacity: 0;
  }
  .brand-frame-glint [data-frame="corner-top-left"] {
    opacity: 0.32;
    stroke-dashoffset: var(--brand-glint-rest);
  }
}
.brand-mark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
}
.wordmark[data-brand-renderer="webgl"] .brand-mark-canvas {
  visibility: visible;
}
.wordmark[data-brand-renderer="webgl"] .interface-mark {
  visibility: hidden;
}
.narrative {
  position: absolute;
  z-index: 4;
  left: 4.5%;
  top: 27%;
  width: min(29vw, 25rem);
  pointer-events: none;
}
.narrative h2 {
  font-size: clamp(2rem, 3.1vw, 3.3rem);
  line-height: 1.12;
  font-weight: var(--es-display-weight);
  letter-spacing: -0.045em;
  margin: 0.8rem 0 1.3rem;
}
#narrative-kicker {
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--es-muted);
}
#narrative-body {
  font-size: var(--es-text-small);
  line-height: 1.85;
  color: var(--es-muted);
  max-width: 23rem;
}
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  padding-top: 0.8rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--es-line);
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--es-muted);
}
#research-toggle {
  pointer-events: auto;
  font-size: var(--es-text-small);
  color: var(--es-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--es-line);
  border-radius: 0;
  padding: 0.65rem 0;
  margin-top: 1.3rem;
}
body.research-open .narrative,
.text-only .narrative {
  display: none;
}
.sequence-status {
  position: absolute;
  z-index: 4;
  bottom: 6.4rem;
  left: 4.5%;
  min-width: 10rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font: var(--es-text-small) var(--es-font-data);
  color: var(--es-muted);
}
#tour-progress {
  width: 4rem;
  height: 1px;
  background: var(--es-line);
  position: relative;
}
#tour-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress, 0) * 100%);
  background: var(--es-pore);
}
#narration-controls select option {
  background: var(--es-surface);
  color: var(--es-ink);
}
#narration-controls label {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
#narration-status,
#narration-status-visible {
  color: var(--es-muted);
  font: var(--es-text-small) var(--es-font-data);
  max-width: 9rem;
}
/* Toggles show what aria-pressed announces: off reads muted, on reads ink. */
#captions-toggle,
#pause {
  color: var(--es-muted);
}
#captions-toggle[aria-pressed="true"],
#pause[aria-pressed="true"] {
  color: var(--es-ink);
}
.telemetry-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.es-telemetry {
  position: absolute;
  width: 10rem;
  padding: 0.5rem 0.55rem;
  border-top: 1px solid var(--es-line);
  background: color-mix(in srgb, var(--es-ground) 80%, transparent);
}
.telemetry-key,
.es-telemetry .key {
  display: block;
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--es-muted);
}
.telemetry-value,
.es-telemetry .value {
  display: block;
  font: 400 1.2rem var(--es-font-data);
  color: var(--es-ink);
  margin-top: 0.3rem;
}
.telemetry-note,
.es-telemetry .note {
  display: block;
  font: var(--es-text-small) var(--es-font-data);
  color: var(--es-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.text-only #narration-controls {
  position: fixed;
}
.text-only .telemetry-layer,
.text-only .sequence-status {
  display: none;
}
@media (max-width: 1050px) and (min-width: 701px) {
  #narration-status {
    display: none;
  }
  .narrative {
    width: 30vw;
  }
}
@media (max-width: 700px) {
  #scene {
    top: 18rem;
    bottom: 14rem;
  }
  body.scene-focused #scene {
    top: 4rem;
    bottom: 27rem;
  }
  .narrative {
    inset: auto 5% 14.1rem;
    width: 90%;
    max-height: 12rem;
    overflow: auto;
    padding: 0.5rem 0;
    background: var(--es-panel);
  }
  .narrative h2 {
    font-size: 1.8rem;
    margin: 0.45rem 0 0.6rem;
  }
  #narrative-kicker {
    font-size: var(--es-text-small);
    margin: 0.4rem 0;
  }
  #narrative-body {
    font-size: var(--es-text-small);
    line-height: 1.65;
    max-width: 100%;
    margin: 0.4rem 0;
  }
  .keywords {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: var(--es-text-small);
    gap: 0.4rem 0.6rem;
  }
  #research-toggle {
    margin-top: 0.4rem;
    padding: 0.4rem 0;
    font-size: var(--es-text-small);
  }
  .sequence-status {
    bottom: 12.3rem;
    left: 5%;
    right: 5%;
    font-size: var(--es-text-small);
    min-width: 0;
  }
  .scene-caption,
  .ai-indicator {
    display: none;
  }
  .scene-controls {
    bottom: 9.9rem;
  }
  .scene-controls #orbit-left,
  .scene-controls #orbit-right {
    display: none;
  }
  #narration-controls label {
    font-size: var(--es-text-small);
  }
  #narration-status,
  #narration-status-visible {
    flex-basis: 100%;
    max-width: none;
    text-align: center;
    font-size: var(--es-text-small);
    line-height: 1.4;
    padding-bottom: 0.1rem;
  }
  #detail-panel {
    bottom: 13.8rem;
    max-height: 38svh;
  }
  body.research-open #scene {
    bottom: calc(38svh + 13.8rem);
  }
  .es-telemetry {
    width: 7.5rem;
    padding: 0.35rem 0.4rem;
  }
  .telemetry-key,
  .es-telemetry .key {
    font-size: var(--es-text-small);
  }
  .telemetry-value,
  .es-telemetry .value {
    font-size: var(--es-text-small);
  }
  .telemetry-note,
  .es-telemetry .note {
    font-size: var(--es-text-small);
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  #scene {
    top: 16rem;
    bottom: 13.6rem;
  }
  body.scene-focused #scene {
    top: 4rem;
    bottom: 24rem;
  }
  .narrative {
    max-height: 9rem;
  }
}

/* Personalization is an inline part of the one portal, never a floating panel. */
.experience-settings {
  position: static;
  width: 100%;
  margin-top: 1rem;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  gap: 0.65rem;
}
.experience-settings label {
  font: var(--es-text-small) var(--es-font-data);
  color: var(--es-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 0.6rem;
}
.experience-settings input[type="color"] {
  width: 100%;
  height: 2rem;
  border: 1px solid var(--es-line);
  background: transparent;
  cursor: pointer;
}
#connector-line {
  opacity: 0.25;
}
#connector-flow {
  fill: none;
  stroke: var(--es-pore);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 1 18;
  animation: signal-flow 3s linear infinite;
}
@keyframes signal-flow {
  to {
    stroke-dashoffset: -152;
  }
}
body.is-paused #connector-flow {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  #connector-flow {
    animation: none;
  }
}

/* Custom choices preserve native state while owning every visible interaction. */
.es-choice {
  position: relative;
  display: inline-block;
  min-width: 0;
}
.es-choice-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
}
.es-choice-trigger::after {
  content: "⌄";
  color: var(--es-muted);
  font-size: 0.8em;
}
.es-choice-trigger[aria-expanded="true"] {
  border-color: var(--es-pore);
}
.es-choice-list {
  /* The popover top layer escapes scene/panel overflow and stacking contexts. */
  position: fixed;
  inset: auto;
  top: var(--es-choice-top, 0);
  left: var(--es-choice-left, 0);
  margin: 0;
  width: max-content;
  max-width: min(20rem, 85vw);
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.3rem;
  color: var(--es-ink);
  background: var(--es-panel);
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-s);
  box-shadow: none;
  backdrop-filter: none;
}
.es-choice-option {
  position: relative;
  display: block;
  width: 100%;
  min-height: max(44px, 2.75rem);
  color: var(--es-ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-size: var(--es-text-small);
  white-space: nowrap;
}
.es-choice-option[aria-selected="true"] {
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--es-pore);
  text-underline-offset: 0.3em;
}
.es-choice-option[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 25%;
  bottom: 25%;
  width: 2px;
  background: var(--es-pore);
}
.es-choice-option:disabled,
.es-choice-option[aria-disabled="true"],
.es-choice-trigger:disabled {
  cursor: default;
  opacity: 0.4;
}
#narration-controls .es-choice-trigger {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  font-size: var(--es-text-small);
}
#narration-controls .es-choice-option {
  padding: 0.6rem 0.8rem;
  min-height: max(44px, 2.75rem);
  font-size: var(--es-text-small);
}
.consent .es-choice {
  width: 100%;
}
.settings .es-choice,
#settings-panel .es-choice {
  width: 100%;
}
.settings .es-choice-trigger,
#settings-panel .es-choice-trigger {
  padding: 0.75rem;
  min-height: 2.6rem;
  font-size: var(--es-text-small);
}
@media (max-width: 700px) {
  #narration-controls .es-choice-trigger {
    font-size: var(--es-text-small);
    padding: 0.45rem 0.3rem;
  }
  .es-choice-list {
    max-height: 13rem;
  }
  .es-choice-option {
    min-height: max(44px, 2.6rem);
  }
}

/* Signals belong to the room; hover never creates an opaque information card. */
.es-telemetry {
  background: none;
  border: 0;
  padding: 0;
  width: 9.5rem;
  text-shadow: 0 1px 14px var(--es-ground);
  transition: opacity 350ms ease;
}
.telemetry-key {
  font-size: var(--es-text-small);
  letter-spacing: 0.08em;
}
.telemetry-value {
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.telemetry-note {
  opacity: 0.7;
  max-width: 9rem;
  font-size: var(--es-text-small);
}
.telemetry-signal {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--es-pore);
  opacity: 0.6;
  overflow: visible;
  margin: 0.35rem 0;
}
body.hovering-sense .es-telemetry {
  opacity: 0.35;
}
body[data-hover-sense="smell"] .es-telemetry[data-sense="smell"],
body[data-hover-sense="taste"] .es-telemetry[data-sense="taste"],
body[data-hover-sense="view"] .es-telemetry[data-sense="view"],
body[data-hover-sense="hear"] .es-telemetry[data-sense="hear"],
body[data-hover-sense="touch"] .es-telemetry[data-sense="touch"],
body[data-hover-sense="move"] .es-telemetry[data-sense="move"] {
  opacity: 1;
}
/* Signal chips: the readings ride the film as light glass pills, not
   slabs — a sense-coloured dot and hairline, the live glyph shrunk to
   a whisper, one soft shadow. Hover and keyboard focus lift the chip;
   its layout footprint is unchanged, so the collision policy keeps
   measuring the rectangles it already knows. */
.es-telemetry {
  --chip: var(--es-pore);
  border: 1px solid color-mix(in srgb, var(--chip) 26%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--es-ground) 52%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.22);
  padding: 0.55rem 0.7rem 0.6rem;
  transition:
    opacity 350ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}
.es-telemetry[data-sense="smell"] {
  --chip: var(--es-smell);
}
.es-telemetry[data-sense="taste"] {
  --chip: var(--es-taste);
}
.es-telemetry[data-sense="view"] {
  --chip: var(--es-view);
}
.es-telemetry[data-sense="hear"] {
  --chip: var(--es-hear);
}
.es-telemetry[data-sense="touch"] {
  --chip: var(--es-touch);
}
.es-telemetry[data-sense="move"] {
  --chip: var(--es-move);
}
.telemetry-key::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chip);
  box-shadow: 0 0 8px var(--chip);
  margin-right: 0.45em;
  vertical-align: 1px;
}
.telemetry-signal {
  color: var(--chip);
  height: 14px;
  opacity: 0.85;
  margin: 0.25rem 0;
}
.es-telemetry:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgb(0 0 0 / 0.3);
}
.telemetry-note {
  opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
  .es-telemetry {
    transition: none;
  }
  .es-telemetry:is(:hover, :focus-visible) {
    transform: none;
  }
}
#skin-custom {
  min-height: 44px;
  font: var(--es-text-small) var(--es-font-data);
  color: var(--es-ink);
  padding: 0.6rem 0.8rem;
  background: transparent;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-pill);
}
@media (max-width: 700px) {
  .es-telemetry {
    width: 6.7rem;
  }
  .telemetry-value {
    font-size: var(--es-text-small);
  }
  .telemetry-key {
    font-size: var(--es-text-small);
  }
  .telemetry-note {
    font-size: var(--es-text-small);
  }
  .telemetry-signal {
    height: 18px;
  }
}

/* The invitation becomes a chapter in the room, with no modal/card layer. */
.newsletter {
  position: absolute;
  z-index: 5;
  top: 25%;
  left: 4.5%;
  width: min(30vw, 26rem);
}
.newsletter h2 {
  font: var(--es-display-weight) clamp(2rem, 3.2vw, 3.5rem) / 1.08
    var(--es-font-display);
  letter-spacing: -0.045em;
  margin: 1rem 0 1.5rem;
}
.newsletter p {
  font-size: var(--es-text-small);
  line-height: 1.7;
  color: var(--es-muted);
}
.newsletter form {
  margin-top: 1.8rem;
}
.newsletter label {
  font-size: var(--es-text-small);
  color: var(--es-muted);
}
.newsletter-input {
  margin: 0.6rem 0 1.2rem;
  border-bottom: 1px solid var(--es-line);
  transition: border-color 250ms;
}
.newsletter-input:focus-within {
  border-color: var(--es-pore);
}
.newsletter input[type="email"] {
  font: inherit;
  color: var(--es-ink);
  background: transparent;
  border: 0;
  padding: 0.8rem 0;
  width: 100%;
  outline-offset: 3px;
}
.newsletter-consent {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}
.newsletter-consent input {
  position: absolute;
  opacity: 0;
  width: 1.1rem;
  height: 1.1rem;
  left: 0;
  margin: 0;
}
.consent-orbit {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--es-muted);
  display: grid;
  place-items: center;
}
.newsletter-consent input:checked + .consent-orbit::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--es-pore);
  border-radius: 50%;
}
.newsletter-consent input:focus-visible + .consent-orbit {
  outline: 2px solid var(--es-pore);
  outline-offset: 4px;
}
#newsletter-submit,
#newsletter-close,
#newsletter-toggle {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.8rem 0;
  font-size: var(--es-text-small);
}
#newsletter-submit {
  color: var(--es-ink);
  border-bottom: 1px solid var(--es-line);
  margin-top: 1.1rem;
}
#newsletter-submit:disabled {
  opacity: 0.45;
  cursor: wait;
}
#newsletter-close {
  color: var(--es-muted);
  font-size: var(--es-text-small);
}
body.newsletter-open .intro {
  display: none;
}
#newsletter-status[data-state="accepted"] {
  color: var(--es-ink);
}
@media (max-width: 700px) {
  .newsletter {
    top: 5rem;
    width: 88%;
  }
  .newsletter h2 {
    font-size: 2rem;
    max-width: 18rem;
  }
  .newsletter form {
    margin-top: 1rem;
  }
  body.newsletter-open #scene {
    top: 30rem;
    bottom: 13.6rem;
    opacity: 0.3;
  }
  body.newsletter-open .telemetry-layer {
    display: none;
  }
}
footer {
  z-index: 6;
}
footer button {
  pointer-events: auto;
}
.protocol {
  margin-top: 1.5rem;
}
.protocol-orbits {
  display: flex;
  gap: 0.5rem;
}
.protocol-orbits i[data-active="true"] {
  border-color: var(--es-pore);
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 0.8rem var(--es-glow);
}
#protocol-stage {
  font: var(--es-text-small) var(--es-font-data);
  letter-spacing: 0.06em;
  color: var(--es-ink);
  margin: 0.8rem 0 0.45rem;
}
#protocol-description {
  font-size: var(--es-text-small);
  line-height: 1.75;
  color: var(--es-muted);
  margin: 0;
}
#protocol-replay {
  background: transparent;
  border: 0;
  padding: 0.65rem 0;
  font-size: var(--es-text-small);
  color: var(--es-muted);
  pointer-events: auto;
}
#connector[data-sense="taste"] #connector-flow {
  stroke-dasharray: 6 14;
}
#connector[data-sense="view"] #connector-flow {
  stroke-dasharray: 45 160;
}
#connector[data-sense="hear"] #connector-flow {
  stroke-dasharray: 2 4 2 18;
}
#connector[data-sense="touch"] #connector-flow {
  stroke-dasharray: 1 10 18 10;
}
#connector[data-sense="move"] #connector-flow {
  stroke-dasharray: 15 60;
}
#connector[data-protocol="consent"] #connector-flow {
  opacity: 0.15;
}
#connector[data-protocol="connect"] #connector-flow {
  stroke-width: 2;
}
@media (max-width: 700px) {
  .narrative {
    max-height: 15.5rem;
    overflow-y: auto;
    scrollbar-width: thin;
  }
  body.scene-focused #scene {
    bottom: 29.5rem;
  }
  .protocol {
    margin-top: 0.7rem;
  }
  #protocol-description {
    font-size: var(--es-text-small);
    line-height: 1.5;
  }
  #protocol-stage {
    font-size: var(--es-text-small);
  }
  #research-toggle {
    margin-top: 0.35rem;
  }
  #protocol-replay {
    padding: 0.35rem 0;
  }
}
.protocol-orbits {
  justify-content: space-between;
  gap: 0.35rem;
}
.protocol-orbits button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 0;
  padding: 0.2rem 0;
  color: var(--es-muted);
  font: var(--es-text-small) var(--es-font-data);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.protocol-orbits button::before {
  content: "";
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--es-muted);
  border-radius: 50%;
  opacity: 0.4;
  transition:
    opacity 400ms,
    transform 400ms;
}
.protocol-orbits button[data-active="true"] {
  color: var(--es-ink);
}
.protocol-orbits button[data-active="true"]::before,
.protocol-orbits button:hover::before {
  opacity: 1;
  border-color: var(--es-pore);
  transform: scale(1.25);
  box-shadow: 0 0 0.8rem var(--es-glow);
}
.protocol-orbits button[data-complete="true"]::before {
  background: var(--es-pore);
  border-color: var(--es-pore);
  opacity: 0.65;
}
@media (prefers-reduced-motion: reduce) {
  .protocol-orbits button::before {
    transition: none;
  }
}

/* Every interactive signal is an explicit affordance. */
button,
a,
[role="button"],
[role="option"],
select,
label:has(input[type="checkbox"]) {
  cursor: pointer;
}
button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}
.top-controls .investor-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--es-ink);
  border: 1px solid var(--es-glass-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  background: var(--es-glow-soft);
  transition:
    border-color var(--es-fast),
    transform var(--es-fast);
}
.investor-entry:hover,
.investor-entry:focus-visible {
  border-color: var(--es-pore);
  transform: translateY(-1px);
}
.investor-entry-icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--es-pore);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.investor-entry-icon path:first-child {
  stroke-dasharray: 5 3;
}
.investor-entry:hover .investor-entry-icon path:first-child {
  animation: investor-entry-signal 1.8s linear infinite;
}
body.is-paused .investor-entry:hover .investor-entry-icon path:first-child {
  animation-play-state: paused;
}
@keyframes investor-entry-signal {
  to {
    stroke-dashoffset: -24;
  }
}
@media (max-width: 700px) {
  header {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .top-controls {
    width: 100%;
    justify-content: flex-end;
    gap: 0.7rem;
  }
  .intro {
    top: 6.7rem;
  }
  .top-controls .investor-entry {
    font-size: var(--es-text-small);
    padding: 0.25rem 0.5rem;
  }
  .investor-entry-icon {
    width: 1.1rem;
    height: 1.1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .investor-entry:hover .investor-entry-icon path:first-child {
    animation: none;
  }
  .investor-entry:hover,
  .investor-entry:focus-visible {
    transform: none;
  }
}

/* Unified controls leave the room clear. */
.interface-mark {
  background: url("../brand/ursly-icon.svg") center / contain no-repeat;
}
.privacy-line {
  font-size: var(--es-text-small);
  color: var(--es-ink);
  letter-spacing: 0.01em;
}
#narrative-status {
  font-size: var(--es-text-small);
  letter-spacing: 0.12em;
  margin: 0.65rem 0;
  color: var(--es-pore);
}
#portal-menu .investor-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--es-glass-line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: var(--es-glow-soft);
}
@media (max-width: 700px) {
  .intro {
    top: 4.7rem;
  }
}

/* Overview reserves its own room beneath the ownership introduction. */
@media (max-width: 700px) {
  body:not(.scene-focused):not(.text-only) .intro {
    top: 4.1rem;
  }
  body:not(.scene-focused):not(.text-only) #scene {
    top: clamp(19rem, 39vh, 22rem);
    bottom: 5.5rem;
  }
  body:not(.scene-focused):not(.text-only) .sequence-status {
    bottom: 4.8rem;
  }
}
@media (max-height: 540px) and (min-width: 701px) {
  body:not(.scene-focused):not(.text-only) .intro {
    top: 5.1rem;
    left: 3.5%;
    width: 30%;
  }
  body:not(.scene-focused):not(.text-only) .intro h1 {
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    line-height: 1.05;
    margin: 0.4rem 0;
  }
  body:not(.scene-focused):not(.text-only) .intro .eyebrow,
  body:not(.scene-focused):not(.text-only) .intro .demo-label {
    font-size: var(--es-text-small);
    margin: 0.35rem 0;
  }
  body:not(.scene-focused):not(.text-only) #tagline {
    font-size: var(--es-text-small);
    line-height: 1.5;
  }
  body:not(.scene-focused):not(.text-only) .privacy-line {
    font-size: var(--es-text-small);
    line-height: 1.4;
  }
  body:not(.scene-focused):not(.text-only) .intro .editorial-rule {
    margin: 0.65rem 0;
  }
  body:not(.scene-focused):not(.text-only) #scene {
    left: 35%;
    top: 4.5rem;
    bottom: 3.5rem;
  }
  body:not(.scene-focused):not(.text-only) .ai-indicator,
  body:not(.scene-focused):not(.text-only) .scene-caption,
  body:not(.scene-focused):not(.text-only) .sequence-status {
    display: none;
  }
}

/* Readable copy and a reserved bottom control lane. */
#tagline,
.privacy-line,
#detail-panel p,
#narrative-body,
#protocol-description,
.newsletter p,
.newsletter input[type="email"] {
  font-size: var(--es-text-body);
  line-height: var(--es-line-body);
}
.telemetry-note {
  opacity: 1;
}
#newsletter {
  max-height: calc(75svh - 5rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
body.newsletter-open footer {
  visibility: hidden;
}
@media (max-width: 700px) {
  :root {
    --es-bottom-clearance: 9rem;
  }
  footer {
    grid-template-columns: minmax(0, 1fr) 5rem minmax(0, 1fr);
  }
  #footnote {
    grid-column: 1 / -1;
    max-width: none;
    font-size: var(--es-text-small);
  }
  footer #newsletter-toggle {
    grid-column: 3;
    font-size: var(--es-text-small);
    line-height: 1.4;
    padding-block: 0.5rem;
  }
  body:not(.scene-focused):not(.text-only) #scene {
    top: clamp(23rem, 46vh, 28rem);
    bottom: var(--es-bottom-clearance);
  }
  body:not(.scene-focused):not(.text-only) .sequence-status {
    bottom: calc(var(--es-bottom-clearance) + 0.25rem);
  }
  .intro {
    width: 90%;
  }
  #overview .eyebrow {
    margin-block: 0.4rem;
  }
  #overview h1 {
    margin-block: 0.6rem;
  }
  #overview .editorial-rule {
    margin-block: 0.75rem;
  }
  #tagline {
    max-width: 34rem;
    margin-block: 0.7rem;
  }
  #demo-label,
  #privacy-line {
    margin-block: 0.55rem;
  }
  #newsletter {
    top: 6rem;
    max-height: calc(100svh - 11rem);
  }
}
@media (max-height: 540px) {
  #overview {
    max-height: calc(100svh - 10rem);
    overflow-y: auto;
    pointer-events: auto;
  }
  #newsletter {
    top: 5rem;
    max-height: calc(100svh - 9.5rem);
  }
}

/* Let enlarged mobile copy create document height instead of consuming the canvas. */
@media (max-width: 700px) {
  #scene canvas {
    position: absolute;
    inset: 0;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) main {
    display: grid;
    /* A canvas retains its previous intrinsic width during a desktop resize. */
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(18rem, 1fr);
    min-height: 100svh;
    padding: 5rem 0 var(--es-bottom-clearance);
    overflow: visible;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) #overview {
    position: static;
    grid-row: 1;
    width: auto;
    max-height: none;
    margin: 0 5%;
    overflow: visible;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) #scene {
    min-width: 0;
    position: relative;
    grid-row: 2;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 18rem;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) footer {
    position: fixed;
    inset: auto 5% max(1rem, env(safe-area-inset-bottom));
    margin: 0;
    min-height: 6.75rem;
    align-content: end;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open)
    .sequence-status {
    bottom: 0.5rem;
  }
  footer #newsletter-toggle {
    overflow-wrap: anywhere;
  }
}

footer #newsletter-toggle {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}
.wordmark {
  max-width: 100%;
}

@media (max-width: 700px) {
  footer {
    position: fixed;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
  footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -1rem -6vw -1rem;
    background: linear-gradient(transparent, var(--es-ground) 22%);
    pointer-events: none;
  }
}

/* The footer's controls now live in Menu. An empty landmark must not leave
   a fixed gradient over the introduction when visitors enlarge the text. */
footer:empty {
  display: none;
}

/* Native disclosure keeps the reading surface clear, with the facts one action away. */
.footer-disclosure {
  grid-column: 1;
  position: relative;
  justify-self: start;
  pointer-events: auto;
}
.footer-disclosure > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-height: 3rem;
  font-size: 1.25rem;
  color: var(--es-muted);
  cursor: pointer;
}
.footer-disclosure > summary::-webkit-details-marker {
  display: none;
}
.footer-disclosure > summary:hover {
  color: var(--es-ink);
}
/* The glyph carries its own backing: in close-ups it sits over the anatomy,
   where bare muted ink falls below non-text contrast. */
.footer-disclosure > summary > span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--es-ground) 85%, transparent);
}
.footer-disclosure #footnote {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: min(30rem, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100svh - 8rem);
  overflow-y: auto;
  margin: 0;
  padding: 1rem;
  border-top: 1px solid var(--es-line);
  background: var(--es-ground);
  font-size: var(--es-text-small);
  line-height: 1.6;
  color: var(--es-ink);
}
@media (max-width: 700px) {
  footer,
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) footer {
    min-height: 3rem;
  }
}

/* Desktop copy and status share one column at every height instead of
   competing fixed offsets, so the honesty line, the hint and the sense rail
   can never run into each other or into the play bar lane below. The column
   centres between the header and the play bar; when it is taller than that
   room the spacer rows give way and it starts under the header. */
@media (min-width: 701px) and (min-height: 541px) {
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) main {
    display: grid;
    grid-template-columns: minmax(0, min(30vw, 29rem)) minmax(0, 1fr);
    grid-template-rows: minmax(0, 0.8fr) max-content max-content minmax(0, 1fr);
    row-gap: 0.75rem;
    padding: 6rem 4.5% var(--es-player-lane, 6.4rem);
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) #overview {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: auto;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open)
    main
    > .scene-caption {
    position: static;
    z-index: 2;
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }
  /* The headline also answers to the height, so short wide screens keep the
     whole column above the play bar. */
  body:not(.scene-focused):not(.text-only) #overview #headline {
    font-size: clamp(2.35rem, min(4vw, 7.4svh), 5rem);
  }
}
/* Hero slide: one editorial block and a single leader callout.
   The anatomy carries the composition; copy stays quiet and left-aligned. */
#overview #headline {
  font-weight: var(--es-display-weight);
  letter-spacing: var(--es-display-tracking);
  text-wrap: balance;
}
/* The highlighter stroke on the movement word (owner direction,
   November 5, 2026): a marker band across the word's lower half. */
#overview .headline-mark {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--es-pore) 42%, transparent) 38%,
    transparent 38%
  );
  color: inherit;
  padding: 0 0.05em;
}
/* The reveal under the headline: the first interface between human
   senses and technology (owner concept pass, November 5, 2026). */
#overview .headline-lead {
  max-width: 30rem;
  margin: 0 0 1rem;
  color: var(--es-pore);
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.5;
}
#overview .editorial-rule {
  width: 2.25rem;
}
#overview #tagline {
  max-width: 30rem;
  color: var(--es-ink);
  font-weight: 500;
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.5;
}
#overview .demo-label {
  display: block;
  max-width: 30rem;
  margin: 0.75rem 0 1.1rem;
  font-size: var(--es-text-body);
  line-height: 1.65;
}
#overview .privacy-line {
  /* The full ownership statement is now the visible tagline. */
  display: none;
}
#overview #kicker {
  margin: 0.2rem 0 0;
  line-height: 1.6;
}
/* Generous hero spacing only where the screen has room for it; short and
   mobile screens keep their existing compaction rules. */
@media (min-width: 701px) and (min-height: 541px) {
  #overview #headline {
    margin: 0 0 1.2rem;
    line-height: 1.02;
  }
  #overview .editorial-rule {
    margin: 0 0 1rem;
  }
  #overview #tagline {
    margin: 0;
    line-height: 1.5;
  }
  #overview .privacy-line {
    margin: 1.5rem 0 0;
    line-height: 1.6;
  }
}
/* Short landscape screens: the honesty label leads as an eyebrow and the
   tagline tracks tighter, so both stay above the overview's fold. */
@media (min-width: 701px) and (max-height: 540px) {
  /* Start receives keyboard focus after the splash. The column scrolls to it
     through the whole height below the header mark instead of a short panel
     clipping the preceding headline and kicker. The page itself stays put:
     scrolling it carried the copy beneath the transparent header mark. */
  body:not(.scene-focused):not(.text-only):not(.newsletter-open) #overview {
    max-height: calc(100svh - 5.1rem);
    padding-bottom: var(--es-player-lane, 6.4rem);
  }
  #overview {
    display: flex;
    flex-direction: column;
    padding-top: 0.6rem;
  }
  #overview #kicker {
    order: -1;
    margin: 0 0 0.35rem;
    letter-spacing: 0.1em;
  }
  #overview #tagline {
    letter-spacing: -0.01em;
  }
}
#hero-leader {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
#hero-leader[hidden],
.hero-callout[hidden] {
  display: none;
}
#hero-leader-line {
  fill: none;
  stroke: var(--es-pore);
  stroke-width: 1;
  opacity: 0.85;
}
#hero-leader-anchor,
#hero-leader-end {
  fill: var(--es-pore);
}
#hero-leader-anchor {
  filter: drop-shadow(0 0 4px var(--es-glow));
}
.hero-callout {
  appearance: none;
  position: fixed;
  /* Static perch on the overview: no projected anchor moves it any more. */
  right: 4.5%;
  top: 16%;
  z-index: 4;
  /* 44px target height around one 1.2em line. */
  padding: calc((44px - 1.2em) / 2) 0.2rem;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--es-ink);
  font: 400 var(--es-text-small) / 1.2 var(--es-font-body);
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
}
#hero-callout-index {
  color: var(--es-pore);
}
/* On wide screens the room's floor reaches under the lower arrival copy, the
   room caption and the callout, and in the light themes it stays dark metal.
   They take the chapters' feathered reading ground there (WCAG 1.4.3); over
   the light page it is invisible, and the dark themes need none. */
@media (min-width: 701px) {
  :is(#overview, .scene-caption, .hero-callout, .ai-indicator) {
    border-radius: var(--es-reading-softness);
    background: color-mix(
      in srgb,
      var(--es-ground) var(--es-overview-tint),
      transparent
    );
    box-shadow: 0 0 var(--es-reading-softness) var(--es-reading-softness)
      color-mix(in srgb, var(--es-ground) var(--es-overview-tint), transparent);
  }
}
.hero-callout:hover #hero-callout-name,
.hero-callout:focus-visible #hero-callout-name {
  text-decoration: underline;
  text-decoration-color: var(--es-pore);
  text-underline-offset: 0.3em;
}
body:is(
    .entry-open,
    .scene-focused,
    .text-only,
    .newsletter-open,
    .investor-open,
    .is-guided-intro
  )
  :is(#hero-leader, .hero-callout) {
  display: none;
}

/* Only the eye is permanent; guide actions appear for the active sequence. */
.tour-controls[hidden] {
  display: none;
}
.tour-controls {
  position: fixed;
  z-index: 12;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
}
.tour-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-s);
  background: var(--es-dialog-surface);
  color: var(--es-ink);
  font: inherit;
  font-size: var(--es-text-small);
  cursor: pointer;
}
.tour-controls button:focus-visible {
  outline: 2px solid var(--es-pore);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .tour-controls {
    bottom: var(--es-portal-eye-diameter);
    left: 1rem;
    right: 1rem;
    justify-content: center;
  }
}
/* Quiet overview: idle tour status and room readings step back behind the hero. */
@media (min-width: 701px) {
  .sequence-status:has(#tour-status[data-running="false"]) {
    visibility: hidden;
  }
  /* Hovering a sense keeps its own dim/highlight rules (scene.css above). */
  /* 0.9, not lower: the dimmed readout key still keeps 4.5:1 (WCAG 1.4.3). */
  body:not(.scene-focused):not(.hovering-sense)
    .es-telemetry[data-location="room"] {
    opacity: 0.9;
    transition: opacity var(--es-dur-ui, 240ms) ease;
  }
  body:not(.scene-focused)
    .es-telemetry[data-location="room"]:is(:hover, :focus-visible) {
    opacity: 1;
  }
}

/* Mobile composition: give the renderer a real upper viewport and keep the
   overview in a lower reading card. The scene ResizeObserver follows this
   container; copy can scroll without increasing or covering its height. */
@media (max-width: 700px) {
  :root:has(
    > body:not(.text-only):not(.newsletter-open):not(.research-open):not(
        .is-guided-intro
      )
  ) {
    --es-mobile-header-clearance: max(
      3.5rem,
      calc(env(safe-area-inset-top) + 3.125rem)
    );
    --es-mobile-player-clearance: max(
      5rem,
      calc(env(safe-area-inset-bottom) + 4.25rem)
    );
    --es-mobile-reading-height: clamp(6rem, 12svh, 9rem);
  }
  /* On short landscape phones the fixed 44px header controls do not double
     with enlarged text: a pixel floor for the header clearance leaves the
     room a visible lane that the rem floor would close. The player keeps its
     rem floor, since chapter controls wrap it to two rows. */
  @media (max-height: 420px) {
    :root:has(
      > body:not(.text-only):not(.newsletter-open):not(.research-open):not(
          .is-guided-intro
        )
    ) {
      --es-mobile-header-clearance: max(
        56px,
        calc(env(safe-area-inset-top) + 3.125rem)
      );
    }
  }
  /* The existing camera tools open immediately above the fixed player. */
  :root:has(
      > body:not(.text-only):not(.newsletter-open):not(.research-open):not(
          .is-guided-intro
        )
    ):has(#player-camera[aria-expanded="true"]) {
    --es-mobile-player-clearance: max(
      9rem,
      calc(env(safe-area-inset-bottom) + 8.25rem)
    );
  }
  /* Native reading scroll stays between the permanent controls. Padding on
     an oversized document would still paint its text behind the fixed bar. */
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    main:has(> #overview:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(18rem, 1fr) var(--es-mobile-reading-height);
    gap: 0.5rem;
    height: max(
      44px,
      calc(
        100svh - var(--es-mobile-header-clearance) -
          var(--es-mobile-player-clearance)
      )
    );
    min-height: 0;
    margin: var(--es-mobile-header-clearance) 0
      var(--es-mobile-player-clearance);
    padding: 0;
    overflow: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-padding-block: 0.75rem;
    scrollbar-width: thin;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    main:has(> #overview:not([hidden]))
    > #scene {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    inset: auto;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  #scene[data-reading-scroll="true"] {
    touch-action: pan-y pinch-zoom;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    main
    > #overview:not([hidden]) {
    container: overview / inline-size;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    /* Wrapped Start and privacy copy keep their full height inside the
       scrolling card, including when enlarged text exceeds its fixed lane. */
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    column-gap: 0.5rem;
    position: relative;
    grid-column: 1;
    grid-row: 2;
    inset: auto;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0 max(1rem, env(safe-area-inset-right)) 0
      max(1rem, env(safe-area-inset-left));
    padding: 0.5rem 0.75rem;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--es-line) transparent;
    scroll-padding-block: 0.75rem;
    border-radius: var(--es-reading-softness);
    background: color-mix(
      in srgb,
      var(--es-ground) var(--es-reading-tint),
      transparent
    );
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    #headline {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin: 0;
    font-size: clamp(1.15rem, 4.5vw, 1.4rem);
    line-height: 1.15;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .editorial-rule {
    margin: 0.15rem 0;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    #tagline {
    max-width: none;
    margin: 0.3rem 0;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .journey-start {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 100%;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    margin: 0;
    scroll-margin-block: 0.75rem;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .journey-start
    > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    :is(.privacy-line, #kicker) {
    min-width: 0;
    overflow-wrap: anywhere;
    margin: 0.25rem 0 0;
    line-height: 1.4;
  }

  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    header {
    padding: max(0.375rem, env(safe-area-inset-top))
      max(min(1rem, 16px), env(safe-area-inset-right)) 0.375rem
      max(min(1rem, 16px), env(safe-area-inset-left));
  }
  /* These controls are a separate fixed sibling, so header padding alone
     does not move them clear of the human stage. */
  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    #narration-controls {
    top: max(0.375rem, env(safe-area-inset-top));
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    > :not(#headline, .journey-start) {
    grid-column: 1 / -1;
  }

  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .journey-start-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  /* Navigation now lives in the player and portal; this empty legacy footer
     must not paint its old full-width gradient over the lower reading card. */
  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    footer:empty {
    display: none;
  }
}
/* The language group is fixed independently of the full artwork. Enlarged
   text retains its font and targets while surrounding space stops growing
   before the two groups collide on a narrow phone. */
@media (max-width: 600px) {
  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    #narration-controls {
    right: max(min(0.75rem, 12px), env(safe-area-inset-right));
    gap: min(0.5rem, 8px);
  }
  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    #narration-controls
    #narration-language-trigger,
  body:not(.text-only):not(.newsletter-open):not(.research-open):not(
      .is-guided-intro
    )
    #narration-controls
    #narration-language {
    padding-inline: min(0.75rem, 12px);
  }
}
/* A card's usable width shrinks when text is enlarged. Give the headline
   and Start separate rows before either column can paint over the other.
   The threshold reaches ordinary phones: at 390 CSS px the card's inner
   width is about 21rem, and the two-column split crushed the headline
   into a 150 px column (audit, November 4, 2026). Stacked, the headline
   takes the full card width and Start gets its own row. */
@container overview (max-width: 26rem) {
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview {
    /* The strip's focus scroll aligns Start inside this padding; at the
       default the headline's first line paid the difference. */
    scroll-padding-block: 0.25rem;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    #headline {
    grid-column: 1 / -1;
    grid-row: 1;
    /* Tighten only the spacing (never the type) so the headline and Start
       share the strip's first screenful without the browser scrolling a
       few pixels and slicing the headline's first line. */
    margin-bottom: 0.25rem;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .journey-start {
    grid-column: 1 / -1;
    /* Start is pinned to the second row, ahead of the tagline and labels
       in DOM order: the phone reading strip is only about 100 px tall, and
       its first screenful must carry the message and the action — the one
       concept and its one next step. The supporting copy follows inside
       the strip's own scroll. No scroll margin here: the focus scroll
       would otherwise push the headline's first line out of the strip. */
    grid-row: 2;
    scroll-margin-block: 0;
  }
  body:not(.scene-focused):not(.text-only):not(.newsletter-open):not(
      .research-open
    ):not(.is-guided-intro)
    #overview
    .headline-lead {
    /* The reveal follows Start inside the strip's scroll — with a full
       gap above it, so the first screenful folds after the action
       instead of slicing the lead's first line at the strip's edge
       (screenshot review, November 5, 2026). */
    margin: 1rem 0 0;
  }
}

/* Owner refinement: the promise supports the canonical Ursly wordmark. */
body:not(.scene-focused):not(.text-only) #overview #headline {
  max-width: 25ch;
  font-size: clamp(1.5rem, 3vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 0.8rem;
}
#overview .demo-label {
  max-width: 30ch;
  font-size: var(--es-text-small);
  line-height: 1.5;
  margin: 0.6rem 0 1rem;
}
#overview .editorial-rule {
  margin-block: 0 0.7rem;
}
