/* Voice layer — only the NEW styles. Everything else is the live forecast.css.
   Port note: these are the rules that would be added to the site's own CSS. */

/* ── Tap-to-begin gate ──────────────────────────────────────────────────── */
.vr-gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, #0f2a3d 0%, #08151f 55%, #050d14 100%);
  opacity: 1; transition: opacity .5s ease;
}
.vr-gate.is-going { opacity: 0; pointer-events: none; }
.vr-gate-inner { text-align: center; padding: 24px; max-width: 560px; }
.vr-gate-kicker {
  display: inline-block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: #7fd489; margin-bottom: 14px; opacity: 0; transform: translateY(8px);
}
.vr-gate-name {
  font-size: clamp(1.7rem, 5vw, 2.7rem); font-weight: 800; color: #fff; line-height: 1.15;
  margin: 0 0 30px; opacity: 0; transform: translateY(10px);
}
.vr-gate-btn {
  width: 92px; height: 92px; border-radius: 50%; border: 0; cursor: pointer;
  background: #4a9e4f; color: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(74,158,79,.55); opacity: 0; transform: scale(.9);
  transition: transform .18s ease, background .18s ease;
}
.vr-gate-btn svg { width: 40px; height: 40px; margin-left: 5px; }
.vr-gate-btn:hover { background: #57b35c; transform: scale(1.05); }
.vr-gate-hint { margin: 18px 0 0; font-size: .86rem; color: rgba(255,255,255,.62); opacity: 0; }
.vr-gate-skip {
  margin-top: 26px; background: none; border: 0; cursor: pointer; opacity: 0;
  font-size: .82rem; color: rgba(255,255,255,.42); text-decoration: underline; text-underline-offset: 3px;
}
.vr-gate-skip:hover { color: rgba(255,255,255,.72); }

/* Staggered entrance once the audio has prefetched. */
.vr-gate.is-ready .vr-gate-kicker { animation: vr-in .5s .00s ease forwards; }
.vr-gate.is-ready .vr-gate-name   { animation: vr-in .6s .08s ease forwards; }
.vr-gate.is-ready .vr-gate-btn    { animation: vr-pop .5s .20s cubic-bezier(.2,1.3,.4,1) forwards, vr-pulse 2.6s 1.1s ease-out infinite; }
.vr-gate.is-ready .vr-gate-hint   { animation: vr-in .5s .34s ease forwards; }
.vr-gate.is-ready .vr-gate-skip   { animation: vr-in .5s .48s ease forwards; }

@keyframes vr-in  { to { opacity: 1; transform: none; } }
@keyframes vr-pop { to { opacity: 1; transform: scale(1); } }
@keyframes vr-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,158,79,.5); }
  70%  { box-shadow: 0 0 0 26px rgba(74,158,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,158,79,0); }
}

/* ── Captions (the sound-off path — never optional) ─────────────────────── */
.vr-cap {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(10px);
  z-index: 190; max-width: min(780px, 92vw); padding: 13px 22px; border-radius: 14px;
  background: rgba(6,15,22,.9); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  color: #f2f7f4; font-size: clamp(.95rem, 2.1vw, 1.12rem); font-weight: 500; line-height: 1.45;
  text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.vr-cap.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Mute / skip ────────────────────────────────────────────────────────── */
.vr-ctl { position: fixed; right: 20px; bottom: 26px; z-index: 195; display: flex; gap: 8px; }
.vr-ctl-btn {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 20px; cursor: pointer;
  background: rgba(6,15,22,.86); border: 1px solid rgba(255,255,255,.14); color: #e7efeb;
  font-size: .82rem; font-weight: 600; display: grid; place-items: center;
  backdrop-filter: blur(10px);
}
.vr-ctl-btn:hover { background: rgba(12,26,36,.95); }
.vr-ctl-btn svg { width: 19px; height: 19px; }
.vr-ctl-btn.is-muted { color: #93a3ad; }
.vr-ctl-btn.is-muted .vr-wave { opacity: .25; }

/* ── Sequence emphasis ──────────────────────────────────────────────────── */
/* Hero holds still until the gate is dismissed, so nothing plays to an empty room. */
.vr-armed .rv-hero-inner { opacity: 0; }
.vr-playing .rv-hero-inner, .vr-done .rv-hero-inner { opacity: 1; transition: opacity .7s ease; }

.rv-guarantee-panel { transition: transform .5s cubic-bezier(.2,.9,.3,1), box-shadow .5s ease; }
.rv-guarantee-panel.vr-lift { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.34); }

.rv-hero-scaler { transition: transform .4s ease; }
.rv-hero-scaler.vr-focus { transform: scale(1.02); }
.rv-hero-scaler.vr-focus .rv-hero-scaler-hint { color: #7fd489; font-weight: 700; }

/* The slider drives itself during the demo, then gives the wheel back. */
.rv-scale-range.vr-ghost { pointer-events: none; }
.rv-scale-range.vr-ghost::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(74,158,79,.22); }
.rv-scale-range.vr-ghost::-moz-range-thumb     { box-shadow: 0 0 0 8px rgba(74,158,79,.22); }

/* ── Sandbox bar ────────────────────────────────────────────────────────── */
.vr-dev {
  position: fixed; left: 12px; bottom: 12px; z-index: 210;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  background: rgba(6,15,22,.92); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 12px; border-radius: 10px; font-size: .74rem; color: #b9c7cf;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; backdrop-filter: blur(8px);
}
.vr-dev strong { color: #7fd489; text-transform: uppercase; letter-spacing: .08em; }
.vr-dev label { display: flex; gap: 5px; align-items: center; }
.vr-dev input, .vr-dev select {
  background: #0d1b25; border: 1px solid rgba(255,255,255,.18); color: #e7efeb;
  border-radius: 6px; padding: 3px 6px; font: inherit;
}
.vr-dev button {
  background: #4a9e4f; border: 0; color: #fff; border-radius: 6px;
  padding: 4px 11px; cursor: pointer; font: inherit; font-weight: 700;
}

@media (max-width: 720px) {
  .vr-dev { left: 8px; right: 8px; bottom: 8px; font-size: .68rem; }
  .vr-ctl { bottom: 70px; }
  /* A caption must never become a wall. On a 390px viewport an unconstrained
     block swallows the whole hero — the number they came for disappears behind
     the subtitle describing it. Compact strip, scrolls if a line runs long. */
  .vr-cap {
    bottom: 152px; max-width: 94vw; padding: 9px 14px; border-radius: 11px;
    font-size: .82rem; line-height: 1.34; text-align: center;
    max-height: 4.7em; overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vr-gate.is-ready * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .rv-guarantee-panel, .rv-hero-scaler { transition: none; }
}

/* Portfolio port: the sandbox bar is gone; this replaces it with a provenance note so a
   spectator can't mistake a prototype for a live client page. Same corner, calmer. */
.vr-note{
  position:fixed; left:14px; bottom:14px; z-index:60; max-width:330px;
  font:400 11.5px/1.5 Inter,system-ui,sans-serif; color:rgba(255,255,255,.62);
  background:rgba(10,12,16,.82); border:1px solid rgba(255,255,255,.14);
  border-radius:10px; padding:10px 13px; backdrop-filter:blur(8px);
}
.vr-note strong{color:rgba(255,255,255,.9); font-weight:600}
@media (max-width:760px){ .vr-note{display:none} }
