/* VERSION HISTORY / CHANGE LOG: WHEN 2026-10-18 18:43 EDT; WHO chatgpt_codex / Codex / codex-20261018-homepage-captions; WHAT Sam casing and centered two-line bot captions; WHY explicit user request; HUB none (direct user authorization, A11 exception). */
/* Bot intro video carousel — reuses the tokens defined in styles.css */
.bot-carousel-section { padding-top: clamp(1.5rem, 4vw, 3rem); }
.bot-carousel { max-width: 960px; margin-inline: auto; outline: none; }
.bot-carousel:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; border-radius: var(--radius); }

.bc-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(61, 231, 255, 0.12);
  touch-action: pan-y;
}
.bc-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.bc-track.is-dragging { transition: none; }
.bc-slide { flex: 0 0 100%; min-width: 0; margin: 0; }

/* The stage uses the video's own aspect ratio, so %-positioned overlays track the frame */
.bc-stage { position: relative; aspect-ratio: 1904 / 1072; background: #000; }
.bc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

.bc-caption {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; text-align: center;
  margin: 0; padding: 0.85rem 1rem 1rem;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
}
.bc-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.06em; color: var(--yellow); }
.bc-role { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* DEMO: lower-right of the video frame, positioned in % of the stage so it scales with the video */
.bc-demo {
  position: absolute; right: 3.5%; bottom: 6%;
  padding: clamp(0.35rem, 1.2vw, 0.65rem) clamp(0.9rem, 2.6vw, 1.6rem);
  border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: clamp(0.7rem, 1.6vw, 1rem);
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: #111; background: var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 215, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bc-demo:hover { color: #111; background: #ffe24d; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 215, 0, 0.55); }

/* Arrows, vertically centred on the video (caption excluded) */
.bc-arrow {
  position: absolute; top: calc(50% - 1.6rem); transform: translateY(-50%);
  width: 46px; height: 46px; padding: 0; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.6); backdrop-filter: blur(8px);
  color: var(--white); cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.bc-arrow svg, .bc-sound svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bc-arrow:hover { background: rgba(14, 21, 36, 0.9); color: var(--cyan); box-shadow: var(--glow); }
.bc-prev { left: 14px; }
.bc-next { right: 14px; }

/* Sound toggle, top-right of the frame */
.bc-sound {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(7, 11, 20, 0.6); backdrop-filter: blur(8px);
  color: var(--white); font: 500 0.8rem var(--font); cursor: pointer;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
.bc-sound svg { width: 18px; height: 18px; }
.bc-sound:hover { color: var(--cyan); box-shadow: var(--glow); }
.bc-sound .i-on, .bc-sound[aria-pressed="true"] .i-off { display: none; }
.bc-sound[aria-pressed="true"] .i-on { display: block; }
.bc-sound[aria-pressed="true"] { color: var(--yellow); }

/* Play / pause, sits at the left of the dots */
.bc-playpause {
  width: 30px; height: 30px; padding: 0; display: grid; place-items: center; margin-right: 0.35rem;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(7, 11, 20, 0.6);
  color: var(--white); cursor: pointer; transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.bc-playpause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bc-playpause .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.bc-playpause[aria-pressed="true"] .i-pause { display: none; }
.bc-playpause[aria-pressed="true"] .i-play { display: block; }
.bc-playpause:hover { color: var(--cyan); box-shadow: var(--glow); background: rgba(14, 21, 36, 0.9); }
.bc-playpause[aria-pressed="true"] { color: var(--yellow); }

/* Dots */
.bc-dots { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.1rem; }
.bc-dot {
  position: relative; width: 12px; height: 12px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--cyan-dim); background: transparent;
  transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.bc-dot::before { content: ""; position: absolute; inset: -10px; } /* bigger tap target */
.bc-dot:hover { background: rgba(61, 231, 255, 0.35); }
.bc-dot[aria-current="true"] { width: 32px; background: var(--cyan); box-shadow: var(--glow); }

.bc-arrow:focus-visible, .bc-sound:focus-visible, .bc-playpause:focus-visible, .bc-dot:focus-visible, .bc-demo:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.bc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .bc-arrow { width: 36px; height: 36px; }
  .bc-prev { left: 8px; }
  .bc-next { right: 8px; }
  .bc-arrow svg { width: 18px; height: 18px; }
  .bc-sound { top: 8px; right: 8px; padding: 0.4rem; }
  .bc-sound-label { display: none; }
  .bc-caption { flex-direction: column; align-items: center; gap: 0.1rem; }
  .bc-role { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-track, .bc-demo, .bc-dot, .bc-arrow, .bc-sound, .bc-playpause { transition: none; }
}
