/* Glacial Video Showcase
   Brand tokens match ../css/glacial-aao-lp-ai-search-*.css on the AAO landing page. */

:root {
  --ink: #171333;
  --navy: #122d50;
  --navy-deep: #0d2240;
  --orange: #f16e26;
  --orange-hover: #ff8240;
  --blue: #0773b4;
  --teal: #4a9b9a;
  --sky: #7fbde8;
  --white: #fff;
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .4);
  --muted: rgba(255, 255, 255, .72);
  --radius: 14px;
  --jumpbar-h: 64px;
  --font: itc-avant-garde-gothic-pro, "Century Gothic", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html.is-player-open { overflow: hidden; }

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
strong { font-weight: 600; }
button { font-family: inherit; }

.wrap { width: 90%; max-width: 1400px; margin-left: auto; margin-right: auto; }
.opacity { opacity: .38; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--orange); color: var(--ink); padding: 10px 18px; border-radius: 50px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex; align-items: center;
  border: 1px solid var(--orange); border-radius: 50px;
  padding: 10px 18px;
  font-size: .8em; line-height: 1; letter-spacing: 3px; text-transform: uppercase;
  color: var(--navy);
}
.eyebrow--white { color: var(--white); }

.kicker {
  display: block;
  color: var(--orange);
  font-size: .7em; font-weight: 500; line-height: 1.3;
  letter-spacing: 2.5px; text-transform: uppercase;
}

.h2-lg {
  margin: 0;
  font-size: 3.25em; font-weight: 300; line-height: 1.08;
  color: var(--white);
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  border: 0; border-radius: 50px;
  padding: 9px 9px 9px 26px;
  font-size: 1em; font-weight: 400; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--orange-hover); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #f1f4f8; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--white); }
.btn--small { padding: 9px 20px; font-size: .9em; }

.btn__icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
}
.btn__icon--white { background: var(--white); color: var(--ink); }
.btn__icon--orange { background: var(--orange); color: var(--ink); }
.btn__icon--ghost { background: rgba(255, 255, 255, .12); color: var(--white); }

svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- Top bar ---------- */

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 30px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.topbar__logo { height: 50px; width: auto; }

/* ---------- Sticky jump bar ---------- */

.jumpbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  min-height: var(--jumpbar-h);
  padding: 10px 30px;
  background: rgba(13, 34, 64, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.jumpbar__scroll {
  display: flex; gap: 8px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
          mask-image: linear-gradient(90deg, #000 92%, transparent);
  padding-right: 24px;
}
.jumpbar__scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px;
  border-radius: 50px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--white); text-decoration: none;
  font-size: .88em; font-weight: 500; line-height: 1.1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--white); }
.chip.is-active { background: var(--orange); color: var(--ink); box-shadow: none; }
.chip__count { font-size: .8em; opacity: .6; font-variant-numeric: tabular-nums; }

/* Procedure filter: a styled pill with the native select laid invisibly over it,
   so phones get their own picker and the pill stays narrow. */
.filter {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 50px;
  box-shadow: inset 0 0 0 1px var(--orange);
  color: var(--white);
  font-size: .88em; font-weight: 500; line-height: 1.1; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.filter:hover { background: rgba(241, 110, 38, .15); }
.filter.is-filtered { background: var(--orange); color: var(--ink); }
.filter:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.filter select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
}
.filter option { color: var(--ink); background: var(--white); }
.filter__icon { width: 15px; height: 15px; }
.filter__caret { width: 15px; height: 15px; margin-right: -2px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy) url("../images/gradient-img-p-1600.jpg") center / cover no-repeat;
  overflow: hidden;
  scroll-margin-top: var(--jumpbar-h);
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle farthest-corner at 100% 0%, transparent, var(--navy));
  opacity: .7; mix-blend-mode: multiply;
}
.hero__inner {
  position: relative; z-index: 1;
  width: 90%; max-width: 1400px; margin: 0 auto;
  padding: 72px 0 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 5%;
  align-items: center;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.75rem); font-weight: 300; line-height: 1.04;
}
.hero__lede { max-width: 440px; margin: 0 0 30px; font-size: 1.1em; color: rgba(255, 255, 255, .9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__video { margin: 0; }
.hero__frame {
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(5, 12, 30, .45), 0 0 0 1px rgba(255, 255, 255, .12);
}
/* Keeps Chrome from moving the playing video onto a hardware overlay layer, which some
   embedded/captured browser views (and screen recordings) show as a black box. */
.hero__frame, .player__stage { opacity: .999; }
.hero__caption {
  display: flex; align-items: center; gap: 14px;
  margin-top: 18px; padding: 0; border: 0; border-radius: 50px;
  background: none; color: var(--white);
  font-size: 1em; text-align: left; cursor: pointer;
}
.hero__caption-title { display: block; font-size: 1.15em; line-height: 1.25; margin-top: 4px; }
.hero__caption .play-dot { transition: transform .2s ease, background-color .2s ease; }
.hero__caption:hover .play-dot { transform: scale(1.08); background: var(--orange-hover); }
.play-dot__pause, .hero__caption.is-playing .play-dot__play { display: none; }
.hero__caption.is-playing .play-dot__pause { display: block; margin-left: 0; }

.play-dot {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
}
.play-dot svg { margin-left: 2px; }

/* ---------- Showcase sections ---------- */

.showcase {
  background-color: var(--navy);
  background-image: radial-gradient(circle farthest-corner at 100% 100%, var(--ink), rgba(18, 45, 80, 0) 70%);
}
.noscript { padding: 60px 0; }

.cat {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--jumpbar-h) - 1px);
}
.cat:first-child { border-top: 0; }

.cat__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
  margin-bottom: 40px;
}
.cat__side { max-width: 460px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cat__side p { margin: 0; color: var(--muted); font-size: 1.05em; }

/* Card grid */
.vgrid {
  list-style: none; margin: 0 auto; padding: 0;
  width: 90%; max-width: 1400px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px;
}
.vgrid > li { min-width: 0; }

.vcard {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; color: var(--white); text-align: left; cursor: pointer;
  border-radius: var(--radius);
}
.vcard__media {
  position: relative; display: block;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 14px 34px rgba(5, 12, 30, .35), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateZ(0);
}
.vcard__img, .vcard__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.vcard__media.is-wide .vcard__img { object-fit: contain; }
.vcard__bg { filter: blur(18px) brightness(.55) saturate(1.2); transform: scale(1.25); }
.vcard__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 18, 38, .95) 0%, rgba(9, 18, 38, .55) 30%, rgba(9, 18, 38, 0) 58%);
}

.vcard__dur, .vcard__tag {
  position: absolute; top: 10px; z-index: 2;
  padding: 4px 9px; border-radius: 50px;
  background: rgba(9, 18, 38, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .7em; font-weight: 500; line-height: 1.2; letter-spacing: .5px;
}
.vcard__dur { right: 10px; font-variant-numeric: tabular-nums; }
.vcard__tag { left: 10px; box-shadow: inset 0 0 0 1px rgba(241, 110, 38, .7); }

.vcard__play {
  position: absolute; z-index: 2; left: 50%; top: 44%;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(241, 110, 38, .92); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .3s ease, background-color .3s ease;
}
.vcard__play svg { width: 20px; height: 20px; margin-left: 3px; }

.vcard__meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 14px 15px; }
.vcard__client { margin-bottom: 5px; font-size: .62em; }
.vcard__title { display: block; font-size: .98em; font-weight: 500; line-height: 1.22; }

@media (hover: hover) {
  .vcard:hover .vcard__img { transform: scale(1.04); }
  .vcard:hover .vcard__media.is-wide .vcard__img { transform: none; }
  .vcard:hover .vcard__play { transform: scale(1.12); background: var(--orange); }
}

/* ---------- Talk / CTA ---------- */

.talk {
  position: relative;
  padding: 100px 0 60px;
  background: var(--ink);
  scroll-margin-top: var(--jumpbar-h);
}
.talk__inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding: 64px;
  border-radius: 18px;
  background: var(--navy) url("../images/gradient-img-p-1600.jpg") center / cover no-repeat;
}
.talk__inner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle farthest-corner at 100% 100%, var(--navy), rgba(255, 255, 255, 0)), radial-gradient(circle farthest-corner at 100% 0%, transparent, var(--navy));
  opacity: .8; mix-blend-mode: multiply;
}
.talk__inner > * { position: relative; }
.talk__copy { max-width: 620px; }
.talk__copy .h2-lg { margin: 26px 0 18px; }
.talk__copy p { margin: 0 0 30px; font-size: 1.1em; color: rgba(255, 255, 255, .9); }

.talk__qr { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.talk__qr-text { margin: 0; font-size: .92em; line-height: 1.45; }

.qr {
  display: inline-block;
  padding: 12px; border-radius: 12px; background: var(--white);
  line-height: 0;
}
.qr canvas, .qr img { width: 150px; height: 150px; }
.qr--small { padding: 8px; border-radius: 10px; }
.qr--small canvas, .qr--small img { width: 92px; height: 92px; }

.awards {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px;
  margin-top: 48px;
}
.awards img { height: 54px; width: auto; opacity: .9; }

.copyright {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 20px 5%;
  background: var(--ink);
  border-top: 1px solid var(--line);
  font-size: .8em; line-height: 1.2; letter-spacing: 3px; text-transform: uppercase;
}

/* ---------- Player ---------- */

.player { position: fixed; inset: 0; z-index: 1000; }
.player__backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 18, 38, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.player__shell {
  position: relative; height: 100%; height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top" "stage info";
}

.player__top {
  grid-area: top;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
}
.player__count { font-size: .78em; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.player__count b { color: var(--white); font-weight: 500; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--white); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.player__stage-wrap {
  grid-area: stage;
  position: relative; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 84px 28px;
}
.player__stage {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}
.player__nav { position: absolute; top: calc(50% - 38px); }
.player__nav--prev { left: 20px; }
.player__nav--next { right: 20px; }

.player__info {
  grid-area: info;
  min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  padding: 4px 32px 32px 0;
}
.player__title { margin: -8px 0 0; font-size: 1.65em; font-weight: 500; line-height: 1.18; }
.player__desc { margin: 0; color: var(--muted); }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 5px 12px; border-radius: 50px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .78em; font-weight: 500; line-height: 1.2;
}
.tags li.tags__cat { box-shadow: none; background: rgba(255, 255, 255, .12); }

.player__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 4px; }

.switch { display: inline-flex; align-items: center; gap: 10px; margin-left: 4px; font-size: .85em; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; width: 40px; height: 22px; border-radius: 22px;
  background: rgba(255, 255, 255, .2); transition: background-color .2s ease;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  transition: transform .2s ease;
}
.switch input:checked + .switch__track { background: var(--orange); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--orange); outline-offset: 3px; }

.upnext {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 10px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: var(--white);
  text-align: left; cursor: pointer;
  transition: background-color .2s ease;
}
.upnext:hover { background: rgba(255, 255, 255, .12); }
.upnext img { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; background: var(--navy-deep); }
.upnext__title { display: block; margin-top: 5px; font-weight: 500; line-height: 1.25; }

.player__share {
  display: flex; align-items: center; gap: 16px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.player__share p { margin: 0; font-size: .85em; line-height: 1.45; color: var(--muted); }
.player__share strong { color: var(--white); font-weight: 500; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .player__shell { grid-template-columns: minmax(0, 1fr) 320px; }
  .player__stage-wrap { padding: 0 76px 24px; }
}

@media (max-width: 991px) {
  /* Single column, with the intro video right under the headline */
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding: 52px 0 64px; }
  .hero__copy { display: contents; }
  .hero__eyebrow { order: 1; justify-self: start; }
  .hero__title { order: 2; }
  .hero__video { order: 3; margin-bottom: 30px; }
  .hero__lede { order: 4; max-width: 560px; }
  .hero__actions { order: 5; }
  .h2-lg { font-size: 2.6em; }
  .cat { padding: 64px 0; }
  .cat__head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
  .cat__side { max-width: 620px; }
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .talk__inner { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
  .talk__qr { flex-direction: row; text-align: left; }
}

/* Player: stacked layout for phones and portrait tablets */
@media (max-width: 899px) {
  .player__shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "top" "stage" "info";
  }
  .player__top { padding: 10px 12px 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .player__stage-wrap { padding: 0 10px; }
  .player__nav { display: none; }
  .player__info {
    overflow: visible;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .player__title { margin: -4px 0 0; font-size: 1.12em; }
  .player__desc, .tags, .upnext, .player__share { display: none; }
  .player__controls { padding-top: 2px; }
  .player__controls .btn { flex: 1; justify-content: center; }
  .switch { flex-basis: 100%; margin-left: 0; justify-content: center; }
}

@media (max-width: 767px) {
  :root { --jumpbar-h: 58px; }
  .topbar { padding: 10px 16px; }
  .topbar__logo { height: 36px; }
  .topbar .btn { padding: 6px 6px 6px 18px; font-size: .88em; gap: 10px; }
  .topbar .btn__icon { width: 32px; height: 32px; }

  .jumpbar { padding: 9px 0 9px 16px; gap: 8px; }
  .jumpbar__scroll { padding-right: 18px; }
  .filter { margin-right: 16px; }
  .chip, .filter { font-size: .82em; }

  .hero__inner { width: auto; margin: 0 16px; padding: 36px 0 48px; }
  .hero__eyebrow { margin-bottom: 20px; }
  .hero__lede { font-size: 1em; }

  .wrap { width: auto; margin-left: 16px; margin-right: 16px; }
  .h2-lg { font-size: 2.1em; }
  .cat { padding: 52px 0; }
  .cat__side p { font-size: 1em; }

  /* Swipeable row of cards on phones */
  .vgrid {
    width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: 44vw;
    gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px;
    padding: 0 16px 8px;
    scrollbar-width: none;
  }
  .vgrid::-webkit-scrollbar { display: none; }
  .vgrid > li { scroll-snap-align: start; }
  .vcard__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .vcard__meta { padding: 11px 11px 12px; }
  .vcard__title { font-size: .9em; }

  .talk { padding: 64px 0 40px; }
  .talk__inner { padding: 32px 22px; gap: 32px; }
  .talk__copy .btn { width: 100%; justify-content: space-between; }
  .awards { gap: 16px 26px; margin-top: 36px; }
  .awards img { height: 34px; }

  .copyright { flex-direction: column; text-align: center; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .vgrid { grid-auto-columns: 58vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
