/* Hector chat widget — visual styles */

/* ── Hector character ── */
.hector-avatar {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit; overflow: hidden;
  transition: transform 0.15s ease-out;
}
.hector-avatar .hector-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform-origin: center 60%;
  transition: transform 0.4s cubic-bezier(.34,1.2,.64,1);
}
.hector-avatar.state-idle    .hector-img { animation: hectorBreathe 4.2s ease-in-out infinite; }
.hector-avatar.state-wave    .hector-img { animation: hectorWave 1.4s ease-in-out; }
.hector-avatar.state-thinking .hector-img { animation: hectorThinking 1.6s ease-in-out infinite; }
.hector-avatar.state-talking .hector-img { animation: hectorThinking 1.6s ease-in-out infinite; }
.hector-avatar.state-happy   .hector-img { animation: hectorHappy 1.3s ease-in-out; }
.hector-avatar.state-tilt    .hector-img { animation: hectorTilt 2.4s ease-in-out infinite; }

@keyframes hectorBreathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.035) translateY(-2.5%); }
}
@keyframes hectorWave {
  0%, 100% { transform: rotate(0) scale(1); }
  20%      { transform: rotate(-8deg) scale(1.05); }
  40%      { transform: rotate(8deg) scale(1.05); }
  60%      { transform: rotate(-5deg) scale(1.05); }
  80%      { transform: rotate(3deg) scale(1.03); }
}
@keyframes hectorThinking {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(-2%); }
}
@keyframes hectorHappy {
  0%, 100% { transform: rotate(0) scale(1) translateY(0); }
  30%      { transform: rotate(-6deg) scale(1.04) translateY(-4%); }
  60%      { transform: rotate(4deg) scale(1.05) translateY(-6%); }
}
@keyframes hectorTilt {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(6deg); }
}

/* Eye glow overlay (CSS-driven on top of PNG) */
.hector-avatar .hector-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 35% at 50% 52%, rgba(70,235,170,calc(0.18 * var(--hector-glow, 1))) 0%, transparent 60%);
  mix-blend-mode: screen;
  animation: glowPulse 2.6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* Happy state: brighter, faster glow pulse — same mechanism as the breathing
   glow above, just a higher --hector-glow multiplier and a shorter cycle. */
.hector-avatar.state-happy {
  --hector-glow: 1.8;
}
.hector-avatar.state-happy .hector-glow {
  animation: glowPulse 1.1s ease-in-out infinite;
}

/* Blink overlay — black bar slides over eyes */
.hector-avatar .hector-blink {
  position: absolute;
  left: 18%; right: 18%;
  top: 48%;
  height: 0;
  background: #000;
  animation: hectorBlink 5.5s ease-in-out infinite;
}
@keyframes hectorBlink {
  0%, 96%, 100% { height: 0; top: 48%; }
  98%           { height: 14%; top: 48%; }
}

/* Mouth overlay — PROVISIONAL per Pixel's 19 Oct 3D reactive scoping doc:
   an abstract glow bar, matching .hector-blink's visual language, not a
   literal mouth redrawn from the original Spline character art. One CSS
   class swap (change the animation target/shape below) if that's wanted
   instead — flagged in the PR body, not a redo. Hidden except while
   talking, driven off the existing stream-reading code in _send. */
.hector-avatar .hector-mouth {
  position: absolute;
  left: 32%; right: 32%;
  top: 68%;
  height: 6%;
  border-radius: 999px;
  background: var(--vitality, #047747);
  box-shadow: 0 0 6px rgba(70,235,170,0.6);
  opacity: 0;
  pointer-events: none;
}
.hector-avatar.state-talking .hector-mouth {
  animation: hectorTalk 0.42s ease-in-out infinite;
}
@keyframes hectorTalk {
  0%, 100% { opacity: 0.5; transform: scaleX(0.7); }
  50%      { opacity: 1; transform: scaleX(1); }
}

/* ── Container shell ──
   pointer-events: none on the outer shell, pointer-events: auto on its
   actual interactive children (.fab-wrap, .chat-card). On mobile the
   @media (max-width:480px) block below stretches this container to
   left:16px; right:16px — i.e. full viewport width — so it would otherwise
   intercept clicks across that whole invisible box (at z-index 9999, above
   the site's .scroll-top button at z-index 999) even though the FAB only
   visually renders in one corner. Letting events pass through the empty
   space and re-enabling them only on the FAB/card fixes that without
   touching z-index, which would only change who wins when they do overlap. */
.hector-widget {
  position: fixed;
  bottom: 24px;
  z-index: 9999;
  font-family: 'DM Sans', system-ui, sans-serif;
  pointer-events: none;
}
.hector-widget[data-pos="bl"] { left: 24px; }
.hector-widget[data-pos="br"] { right: 24px; }
.hector-widget[data-pos="inline"] { position: relative; bottom: 0; }

/* ── FAB ──
   width: fit-content — without an explicit width, this flex container
   stretches to fill .hector-widget (left:16px;right:16px on mobile, i.e.
   near-full viewport width), so pointer-events: auto below was being
   applied across that whole invisible box, not just the visible button,
   and intercepted clicks meant for the site's scroll-top button. */
.fab-wrap {
  position: relative;
  width: fit-content;
  display: flex; align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.fab-wrap[hidden] { display: none; }
.hector-widget[data-pos="br"] .fab-wrap { flex-direction: row-reverse; }

.fab-btn {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c211d, #0d100e);
  border: 1px solid rgba(4,119,71,0.4);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 1px rgba(4,119,71,0.08),
    0 12px 40px rgba(0,0,0,0.7),
    0 0 32px rgba(4,119,71,0.18);
  transition: all .25s ease;
  overflow: visible;
  animation: fabFloat 3.4s ease-in-out infinite;
}
.fab-btn:hover {
  border-color: rgba(4,119,71,0.7);
  box-shadow:
    0 0 0 4px rgba(4,119,71,0.12),
    0 16px 48px rgba(0,0,0,0.8),
    0 0 48px rgba(4,119,71,0.32);
}
.fab-btn:hover .hector-img { animation: hectorWave 1.4s ease-in-out; }
.fab-btn .hector-avatar { width: 60px; height: 60px; border-radius: 16px; }

@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.fab-pulse {
  position: absolute; inset: -3px;
  border-radius: 24px;
  border: 1px solid rgba(4,119,71,0.4);
  animation: fabPulseRing 2.6s ease-out infinite;
  pointer-events: none;
}
.fab-pulse:nth-child(2) { animation-delay: 0.9s; }
@keyframes fabPulseRing {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.fab-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--vitality, #047747);
  border-radius: 50%;
  border: 2px solid #0a0c0a;
  animation: badgePop 0.4s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 8px rgba(4,119,71,0.6);
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Teaser bubble (unused in Phase 2 — no auto-open, no teaser popup;
   kept so a later phase can re-enable it without re-authoring the CSS) ── */
.fab-teaser {
  background: linear-gradient(180deg, #1c211d, #0d100e);
  color: var(--white, #fff);
  border: 1px solid rgba(4,119,71,0.25);
  border-radius: 14px;
  padding: 12px 16px 12px 14px;
  font-size: 13.5px; line-height: 1.4;
  max-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 24px rgba(4,119,71,0.1);
  position: relative;
  animation: teaserIn 0.45s cubic-bezier(.34,1.3,.64,1) both;
}
.fab-teaser .teaser-greeting {
  font-family: 'Orbitron', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vitality, #047747); margin-bottom: 4px;
}
.fab-teaser .teaser-close {
  position: absolute; top: 4px; right: 6px;
  width: 18px; height: 18px;
  background: transparent; border: none; cursor: pointer;
  font-size: 11px; color: rgba(255,255,255,0.4);
  border-radius: 4px;
}
.fab-teaser .teaser-close:hover { color: #fff; background: rgba(255,255,255,0.06); }
.fab-teaser::after {
  content: ''; position: absolute;
  width: 10px; height: 10px;
  background: linear-gradient(135deg, transparent 50%, #131614 50%);
  border: 1px solid rgba(4,119,71,0.25);
  border-top: none; border-left: none;
  transform: rotate(45deg);
  bottom: 16px;
}
.hector-widget[data-pos="bl"] .fab-teaser::after { right: -6px; }
.hector-widget[data-pos="br"] .fab-teaser::after { left: -6px; transform: rotate(225deg); }
@keyframes teaserIn {
  from { transform: translateY(8px) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Card (open state) ── */
.chat-card {
  width: min(var(--card-w, 440px), calc(100vw - 48px));
  --card-bottom: 92px;
  height: 640px;
  max-height: calc(100dvh - var(--card-bottom) - 40px);
  background: linear-gradient(180deg, #161918 0%, #0e110f 100%);
  border: 1px solid rgba(4,119,71,0.2);
  border-radius: var(--card-r, 20px);
  overflow: hidden;
  position: absolute;
  bottom: var(--card-bottom);
  display: flex; flex-direction: column;
  box-shadow:
    0 32px 90px rgba(0,0,0,0.85),
    0 0 0 1px rgba(4,119,71,0.06),
    0 0 80px rgba(4,119,71,0.08);
  animation: cardIn 0.42s cubic-bezier(.34,1.2,.64,1) both;
  pointer-events: auto;
}
.chat-card[hidden] { display: none; }
.hector-widget[data-pos="bl"] .chat-card { left: 0; }
.hector-widget[data-pos="br"] .chat-card { right: 0; }

@keyframes cardIn {
  from { transform: translateY(16px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.chat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; opacity: 0.7;
  background: linear-gradient(90deg, transparent, var(--vitality, #047747), transparent);
}

/* Narrow-viewport guard — the FAB stays hidden whenever the card is open, so
   the 92px bottom clearance it needs is wasted space on a short screen;
   reclaim it here. Also tightens the widget's own edge gutter (24px read as
   cramped on ~360–390px-wide phones). Because .chat-card's `bottom` and
   `max-height` both derive from --card-bottom, overriding it here is enough
   — see spec §2.2. */
@media (max-width: 480px) {
  .chat-card {
    --card-bottom: 56px;
  }
  .hector-widget { bottom: 16px; }
  .hector-widget[data-pos="bl"],
  .hector-widget[data-pos="br"] { left: 16px; right: 16px; }
}

/* ── Header ── */
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
  position: relative;
}
.chat-header .hector-slot {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: rgba(4,119,71,0.06);
  border: 1px solid rgba(4,119,71,0.18);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.chat-header .hector-slot::after {
  content: ''; position: absolute; inset: -8px;
  background: radial-gradient(circle, rgba(4,119,71,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.chat-header .head-text { flex: 1; min-width: 0; }
.chat-header .head-name {
  font-family: 'Orbitron', monospace;
  font-size: 14px; letter-spacing: 0.16em; line-height: 1;
  margin-bottom: 6px;
}
.chat-header .head-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--alloy, #8E99A2);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 5px;
}
.chat-header .status {
  display: flex; align-items: center; gap: 6px;
}
.chat-header .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vitality, #047747);
  box-shadow: 0 0 8px var(--vitality, #047747);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.chat-header .status-text {
  font: 9px 'IBM Plex Mono', monospace;
  color: var(--vitality, #047747);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.chat-header .close-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: var(--alloy, #8E99A2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; transition: all .15s ease;
}
.chat-header .close-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }

/* ── Messages ── */
.chat-msgs {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(0,0,0,0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }

.msg { display: flex; gap: 8px; max-width: 92%; }
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }

.msg-avatar {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(4,119,71,0.15);
  border: 1px solid rgba(4,119,71,0.25);
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

.msg-content { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg-user .msg-content { align-items: flex-end; }

.msg-bubble {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px; line-height: 1.5;
  max-width: 280px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.msg-bot .msg-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.86);
  border-bottom-left-radius: 4px;
}
.msg-user .msg-bubble {
  background: var(--vitality, #047747);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-bubble a {
  color: var(--vitality, #047747);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.msg-bubble a:hover { color: #c0ffe0; }
.msg-time {
  font: 9px 'IBM Plex Mono', monospace;
  color: var(--alloy-dim, #5a6268);
  letter-spacing: 0.06em;
}

/* Typing dots */
.typing-dots {
  display: flex; gap: 5px; align-items: center; height: 14px;
}
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vitality, #047747);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%         { transform: translateY(-4px); opacity: 1; }
}

/* ── Rich content: cards/ctas/form — unused in Phase 2 (no scripted flows,
   no pricing, no in-widget lead form; booking is the static control in the
   footer instead), kept so the file stays a move rather than a rewrite ── */
.rich-cards {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 4px;
}
.rich-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(4,119,71,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.rich-card:hover { background: rgba(4,119,71,0.08); border-color: rgba(4,119,71,0.4); }
.rich-card .rc-tag {
  font: 9px 'IBM Plex Mono', monospace;
  color: var(--vitality, #047747);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 4px;
}
.rich-card .rc-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.rich-card .rc-desc {
  font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.45;
  margin-bottom: 8px;
}
.rich-card .rc-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
}
.rich-card .rc-price {
  font-family: 'Orbitron', monospace; color: var(--vitality, #047747);
  font-size: 14px; font-weight: 600;
}
.rich-card .rc-arrow {
  font-size: 14px; color: var(--vitality, #047747);
  transition: transform .15s;
}
.rich-card:hover .rc-arrow { transform: translateX(3px); }

.rich-ctas {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.rich-cta {
  font: 500 11.5px 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--vitality, #047747);
  color: #fff; border: none; cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.rich-cta:hover { background: var(--vitality-2, #058a52); transform: translateY(-1px); }
.rich-cta.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.rich-cta.ghost:hover {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3);
}

.rich-form {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(4,119,71,0.3);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.rich-form .rf-title {
  font-family: 'Orbitron', monospace;
  font-size: 12px; letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.rich-form label {
  display: flex; flex-direction: column; gap: 5px;
  font: 10px 'IBM Plex Mono', monospace;
  color: var(--alloy, #8E99A2); letter-spacing: 0.1em; text-transform: uppercase;
}
.rich-form input {
  padding: 9px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #fff; font: 13px 'DM Sans', sans-serif;
  outline: none; transition: all .15s;
}
.rich-form input:focus {
  border-color: rgba(4,119,71,0.6);
  background: rgba(255,255,255,0.06);
}
.rich-form .rf-submit {
  margin-top: 4px;
  background: var(--vitality, #047747);
  color: #fff; border: none;
  padding: 10px 12px; border-radius: 8px;
  font: 600 12px 'DM Sans', sans-serif; letter-spacing: 0.04em;
  cursor: pointer; transition: all .15s;
}
.rich-form .rf-submit:hover { background: var(--vitality-2, #058a52); }
.rich-form .rf-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.rich-form .rf-success {
  text-align: center; padding: 12px;
  color: var(--vitality, #047747);
  font-family: 'Orbitron', monospace;
  font-size: 12px; letter-spacing: 0.1em;
}

/* ── Quick replies / entry chips ── */
.quick-replies {
  display: flex; gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
}
.quick-replies::-webkit-scrollbar { display: none; }
.qr-chip {
  flex-shrink: 0;
  font: 12px 'DM Sans', sans-serif;
  color: var(--vitality, #047747);
  background: rgba(4,119,71,0.08);
  border: 1px solid rgba(4,119,71,0.3);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.qr-chip:hover {
  background: rgba(4,119,71,0.18);
  border-color: var(--vitality, #047747);
  color: #c0ffe0;
}

/* ── Turnstile mount — shown only before the first message of a tab ── */
.chat-turnstile {
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.chat-turnstile[hidden] { display: none; }

/* ── Data notice ── */
.chat-notice {
  padding: 8px 16px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--alloy-dim, #5a6268);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Input bar ── */
.chat-input-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font: 13px 'DM Sans', sans-serif;
  color: #fff; outline: none;
  caret-color: var(--vitality, #047747);
  transition: all .15s;
}
.chat-input::placeholder { color: var(--alloy-dim, #5a6268); }
.chat-input:focus {
  border-color: rgba(4,119,71,0.5);
  background: rgba(255,255,255,0.06);
}
.chat-input:disabled { opacity: 0.5; }
.send-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--vitality, #047747);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
}
.send-btn:hover { background: var(--vitality-2, #058a52); transform: scale(1.05); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.send-btn svg { width: 16px; height: 16px; fill: #fff; }

/* ── Footer ── */
.chat-foot {
  padding: 8px 16px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.3);
  font: 9px 'IBM Plex Mono', monospace;
  color: var(--alloy-dim, #5a6268);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.chat-foot .brand-green { color: var(--vitality, #047747); }
.chat-foot .book-call-link {
  margin-left: 8px;
  color: var(--vitality, #047747);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-foot .book-call-link:hover { color: #c0ffe0; }

/* ── Reduced motion — every keyframe animation above, suppressed —
   hectorBreathe, hectorWave, hectorThinking, hectorHappy, hectorTilt,
   hectorTalk, glowPulse, hectorBlink, fabFloat, fabPulseRing, badgePop,
   teaserIn, cardIn, statusPulse, typingBounce. Scoped to the widget so the
   rest of the site is untouched. The pointermove tilt listener is never
   attached in the first place under this preference (hector-widget.js
   connectedCallback) — it sets an inline transform, which this media query
   cannot override on its own. */
@media (prefers-reduced-motion: reduce) {
  .hector-widget,
  .hector-widget *,
  .hector-widget *::before,
  .hector-widget *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Focus-visible — keyboard focus only, every interactive control ── */
.hector-widget button:focus-visible,
.hector-widget input:focus-visible,
.hector-widget a:focus-visible {
  outline: 2px solid var(--vitality, #047747);
  outline-offset: 2px;
}
