/* ════════════════════════════════════════════════════════════════
   demo.css — Omega Sound Inc.
   Demo page: white background, full-bleed portrait reel, logo header
   ════════════════════════════════════════════════════════════════ */

/* ── Page base ── */
.demo-page {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header bar ── */
.demo-header {
  position: relative;
  width: 100%;
  height: clamp(80px, 10vh, 120px);
  flex-shrink: 0;
  background: #ffffff;
  z-index: 10;
}

/* ── Video stage — fills everything below the header ── */
.demo-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Exact remaining height so the reel never overflows or scrolls */
  height: calc(100vh - clamp(80px, 10vh, 120px));
  padding-top: 72px;
  overflow: hidden;
  background: #ffffff;
}

/* ── Portrait reel wrapper ──
   Constrains the iframe to a 9:16 column that fills the stage height.
   On narrow mobile it switches to fill full width instead. ── */
.demo-reel-wrap {
  position: relative;
  /* Fill the stage height; width derives from 9:16 ratio */
  height: 100%;
  aspect-ratio: 9 / 16;
  /* Never overflow the viewport width (portrait on desktop) */
  max-width: 100%;
  overflow: hidden;
  background: #000;
}

/* On very wide screens the portrait column would be thin —
   cap height so the reel stays proportional and readable */
@media (min-width: 900px) {
  .demo-reel-wrap {
    height: min(100%, 90vh);
  }
}

/* ── The iframe itself fills its wrapper completely ── */
.demo-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .demo-main {
    align-items: stretch;
    padding: 0;
  }

  /* On portrait mobile: fill the full width, height from ratio */
  .demo-reel-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    /* but never taller than the remaining screen */
    max-height: calc(100vh - clamp(80px, 10vh, 120px));
  }

  /* Nav: always visible below socials — hover doesn't work on touch */
  .demo-header .hero__logo-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    flex-direction: row;
    gap: clamp(16px, 5vw, 28px);
  }

  /* Keep logo centered and socials visible below it */
  .demo-header .hero__logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .demo-header .hero__logo-group::before {
    display: none;
  }

  .demo-header .hero__logo-socials {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    flex-direction: row;
    gap: 16px;
  }

  .demo-header .hero__social-link img {
    width: 24px;
    height: 24px;
  }
}
