/* ==========================================================================
   LIVING O  (experiment, reversible)
   --------------------------------------------------------------------------
   The orange O responds to the visitor: it leans toward the pointer, inhales
   and releases two cream contour rings on click, and a reflective thought
   briefly takes the descriptor's place. scripts/o-live.js drives it.

   Off switch: <html data-o="original"> (?o=original or the footer switch), or
   delete the o-live.css / o-live.js lines in index.html. The canonical circle
   (#brand-o) is never modified, so the original O is always one switch away.
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- The control: an invisible, round hit area centred on the O --- */
/* The O keeps its exact size; the button is larger and transparent (≥ 44 px).
   left/top/size are set in px by o-live.js from the stage geometry. */
.o-live {
  position: absolute;
  z-index: 7;
  left: 0; top: 0;
  width: 44px; height: 44px;
  margin: 0; padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transform: translate(-50%, -50%);
}
.o-live[hidden] { display: none; }
html[data-o="original"] .o-live { display: none; }
/* Focus: a thin cream ring hugging the O (not the hit area), like a contour line */
.o-live:focus-visible { outline: none; }
.o-live::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--o-w, 40px) + 14px);
  height: calc(var(--o-h, 38px) + 14px);
  border: 1px solid rgb(244 233 221 / 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out);
}
.o-live:focus-visible::after { opacity: 1; transform: translate(-50%, -50%); }
/* Hidden while the intro plays or the frame settles */
html.is-intro .o-live,
html.is-settling .o-live { visibility: hidden; }

/* The moving body and rings never catch the pointer */
.o-live-body, .o-live-rings { pointer-events: none; }

/* ---------- The thought (immersive): same lockup slot as the descriptor --- */
.hero-thought { display: none; }
html.hero-immersive .hero-thought {
  display: block;
  position: absolute;
  z-index: 6;
  margin: 0;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 18px;                 /* set by o-live.js: 1.2 × the descriptor */
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--dark-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--ease-out);
  /* Same video-black knockout as the descriptor: moving lines pass behind */
  text-shadow:
    1.6px 0 0 var(--video-black), -1.6px 0 0 var(--video-black),
    0 1.6px 0 var(--video-black), 0 -1.6px 0 var(--video-black),
    1.13px 1.13px 0 var(--video-black), -1.13px 1.13px 0 var(--video-black),
    1.13px -1.13px 0 var(--video-black), -1.13px -1.13px 0 var(--video-black);
}
html.hero-immersive .hero-thought.is-visible { opacity: 0.94; }
html.hero-immersive.o-live-msg .hero-descriptor {
  opacity: 0 !important;
  transition: opacity 340ms var(--ease-out) 0ms !important;
}
html.hero-immersive.o-live-return .hero-descriptor {
  transition: opacity 700ms var(--ease-out) 120ms !important;
}

/* ---------- The thought (framed): takes the band eyebrow's place --------- */
.hero .eyebrow.is-thought {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 380;
  font-size: 1.0625rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dark-text-soft);
}
