/* Aerethis showcase video: "Gold Light, Aether Sky". Gold is the 1% (focus ring, active control), air is the rest. */
.showcase-video {
  --sv-gold: var(--accent-3, #E2A945);
  --sv-gold-hi: var(--accent-4, #ECBE5E);
  --sv-paper: var(--accent-5, #F2E3B8);
  --sv-night: var(--bg-0, #0A0B12);
  --sv-ink: var(--text-1, #EFF0F4);
  --sv-ink-2: var(--text-2, #B3B7C4);
  margin: 0 auto;
  width: 100%;
  max-width: 960px;
}
.showcase-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sv-night);
  border: 1px solid rgba(155, 178, 217, 0.22);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}
.showcase-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--sv-night);
}
.showcase-video__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 227, 184, 0.55);
  border-radius: 50%;
  color: var(--sv-night);
  background: #E2A945; /* fixed: sits on the dark video frame in both site themes */
  cursor: pointer;
  box-shadow: 0 10px 34px -8px rgba(226, 169, 69, 0.55);
  transition: transform 160ms ease, background-color 160ms ease;
}
.showcase-video__play[hidden] { display: none; }
.showcase-video__play svg { width: 34px; height: 34px; margin-left: 3px; }
/* Reduced motion / Save-Data: the video does not autoplay, so the button says what it is ("Play video (40 s)"). */
.showcase-video__play.has-label {
  width: fit-content;
  height: fit-content;
  min-height: 56px;
  padding: 0 24px 0 16px;
  display: inline-flex;
  gap: 10px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}
.showcase-video__play.has-label svg { width: 26px; height: 26px; margin-left: 0; flex: none; }
.showcase-video__play:hover { background: #ECBE5E; transform: scale(1.05); }
.showcase-video__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}
.showcase-video__bar[hidden] { display: none; }
.showcase-video__bar > * { pointer-events: auto; }
/* The sound button is always visible; the play/pause button appears on hover or focus (and stays on touch). */
.showcase-video__bar > .showcase-video__btn:not(.showcase-video__sound) {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.showcase-video__frame:hover .showcase-video__btn,
.showcase-video__frame:focus-within .showcase-video__btn { opacity: 1; transform: none; }
.showcase-video__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  justify-content: center;
  color: #EFF0F4; /* overlay on the dark video frame: fixed light ink in both site themes */
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  background: rgba(10, 11, 18, 0.78);
  border: 1px solid rgba(155, 178, 217, 0.35);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 160ms ease, color 160ms ease;
}
.showcase-video__btn svg { width: 20px; height: 20px; flex: none; }
.showcase-video__btn:hover { border-color: #E2A945; color: #F2E3B8; }
.showcase-video__sound[aria-pressed="true"] { border-color: #E2A945; color: #ECBE5E; }
.showcase-video__sound { margin-left: auto; }
.showcase-video__btn:focus-visible,
.showcase-video__play:focus-visible { outline: 2px solid var(--sv-gold-hi); outline-offset: 3px; }
.showcase-video__credit {
  margin: 12px 4px 0;
  color: var(--sv-ink-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.showcase-video__credit a { color: var(--sv-ink); text-decoration: underline; text-underline-offset: 3px; }
.showcase-video__error {
  position: absolute;
  inset: auto 12px 14px;
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  color: #B3B7C4; /* on the dark video frame: fixed ink in both site themes */
  font-size: 14px;
  line-height: 1.5;
  background: rgba(10, 11, 18, 0.82);
  border-radius: 10px;
}
.showcase-video__error[hidden] { display: none; }
.showcase-video__error a { color: #F2E3B8; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.showcase-video__error a:focus-visible { outline: 2px solid var(--sv-gold-hi); outline-offset: 3px; border-radius: 4px; }
/* Light theme: the control pills turn light glass (dark ink) over the dark frame, so no dark surface is left on a light page. */
html[data-theme="light"] .showcase-video__btn {
  color: #14161F;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(20, 22, 31, 0.28);
}
html[data-theme="light"] .showcase-video__btn:hover { border-color: #B7791F; color: #14161F; }
html[data-theme="light"] .showcase-video__sound[aria-pressed="true"] { border-color: #B7791F; color: #6B4600; }
@media (hover: none) {
  /* Touch has no hover: keep the controls visible once the video has started. */
  .showcase-video.is-started .showcase-video__btn { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .showcase-video__frame { border-radius: 10px; }
  .showcase-video__play { width: 64px; height: 64px; }
  .showcase-video__play.has-label { width: fit-content; height: fit-content; min-height: 52px; font-size: 16px; padding: 0 20px 0 14px; }
  .showcase-video__btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-video__play, .showcase-video__btn { transition: none !important; }
  .showcase-video__play:hover { transform: none; }
}

/* Demo page only */
.showcase-demo { max-width: 1040px; margin: 0 auto; padding: clamp(32px, 7vw, 96px) 20px; text-align: center; }
.showcase-demo h1 { margin: 0 0 12px; letter-spacing: -0.01em; }
.showcase-demo > p { margin: 0 auto 32px; max-width: 56ch; color: var(--sv-ink-2, #B3B7C4); }
