/* GMiS Conference Gallery — colours from gmisconference.org / greatmindsinstem.org */
:root {
  --navy: #20356c;
  --ink: #0a1430;
  --ink-2: #0f1c40;
  --ink-3: #172756;
  --yellow: #fef200;
  --sky: #1b9bc8;
  --green: #21995c;
  --green-dk: #176b40;
  --text: #eef2fa;
  --muted: #a7b5d3;
  --line: rgba(167, 181, 211, 0.16);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.viewer-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
kbd {
  font: 600 0.78em var(--body);
  padding: 0.1em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 50px;
  padding: 0 1.4em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 10px 30px -10px rgba(254, 242, 0, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(254, 242, 0, 0.75); }
.btn-glass {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { height: 40px; padding: 0 1em; font-size: 0.88rem; }
.btn svg { font-size: 1.1em; }

/* ------------------------------------------------------------- top bar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background 0.35s, box-shadow 0.35s, height 0.35s;
}
.topbar.scrolled {
  background: rgba(10, 20, 48, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 40px; width: auto; }
.brand-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.25); }
.brand-text {
  font: 800 0.95rem/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
}
.topnav { display: flex; gap: 6px; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 110px var(--gutter) 80px;
}
.mosaic {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.mosaic-inner {
  position: absolute;
  inset: -30% -20%;
  display: flex;
  gap: 14px;
  transform: rotate(-9deg);
}
.m-col { flex: 1; min-width: 0; }
.m-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: drift var(--dur) linear infinite var(--dir);
}
.m-track img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  opacity: 0.9;
}
@keyframes drift { to { transform: translateY(calc(-50% - 7px)); } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 48%, rgba(10, 20, 48, 0.55), rgba(10, 20, 48, 0.86) 70%),
    linear-gradient(180deg, rgba(10, 20, 48, 0.6) 0%, rgba(10, 20, 48, 0.2) 30%, rgba(10, 20, 48, 0.7) 75%, var(--ink) 100%),
    linear-gradient(120deg, rgba(33, 153, 92, 0.28), transparent 45%, rgba(27, 155, 200, 0.28));
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 620px);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1200px;
}
.hero-logo {
  width: clamp(200px, 26vw, 360px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: rise 1s var(--ease-out) both, float 7s ease-in-out 1s infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
.hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.eyebrow {
  margin: 0 0 10px;
  font: 800 0.85rem/1 var(--display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
}
.hero h1 {
  margin: 0;
  font: 900 clamp(3rem, 7.4vw, 6.4rem)/0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.hl {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(254, 242, 0, 0.35);
}
.lede { margin: 18px 0 30px; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #d1dbef; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; gap: clamp(20px, 4vw, 44px); margin: 36px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.stats dd { margin: 0; font: 800 2.4rem/1 var(--display); }
.stats div:nth-child(1) dd { color: var(--yellow); }
.stats div:nth-child(2) dd { color: var(--sky); }
.stats div:nth-child(3) dd { color: #3fc982; }

/* ------------------------------------------------------------- groups & cards */
.groups { padding: 20px var(--gutter) 40px; max-width: 1560px; margin: 0 auto; }
.group { margin: 0 0 clamp(48px, 7vw, 88px); }
.group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.group-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.group-head h2 {
  margin: 0;
  font: 900 clamp(2rem, 4vw, 3rem)/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.group-meta { color: var(--muted); font-size: 0.92rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-2 .card { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } .cards-2 .card { aspect-ratio: 4 / 3; } }
.card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bgc, var(--ink-3));
  isolation: isolate;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--yellow), var(--green) 40%, var(--sky));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card-media { position: absolute; inset: 0; z-index: -1; }
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s var(--ease-out);
}
.card-media img.front { opacity: 1; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 48, 0) 35%, rgba(10, 20, 48, 0.55) 62%, rgba(10, 20, 48, 0.95));
}
.card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-eyebrow {
  font: 800 0.78rem/1 var(--display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.card-title {
  margin: 0;
  font: 800 clamp(1.6rem, 2.2vw, 2rem)/1 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.card-count { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #cbd6ec; margin-top: 4px; }
.card-play {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.6) rotate(-30deg);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.card:hover .card-play { opacity: 1; transform: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.8s var(--ease-out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }

/* ------------------------------------------------------------- gallery page */
.g-hero {
  position: relative;
  min-height: clamp(380px, 52vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: 110px var(--gutter) clamp(28px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}
.g-hero-bg {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(6px) saturate(1.2);
  transform: scale(1.05);
  animation: heroPan 26s ease-in-out infinite alternate;
}
@keyframes heroPan { to { transform: scale(1.15) translate(-2%, 1%); } }
.g-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 20, 48, 0.55), rgba(10, 20, 48, 0.55) 40%, var(--ink)),
    linear-gradient(90deg, rgba(10, 20, 48, 0.85), rgba(10, 20, 48, 0.1) 75%);
}
.g-hero-inner { max-width: 1560px; width: 100%; margin: 0 auto; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #d6def0;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}
.back:hover { color: var(--yellow); gap: 12px; }
.g-title {
  margin: 0;
  font: 900 clamp(2.8rem, 7vw, 6rem)/0.9 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 16ch;
  animation: rise 0.8s var(--ease-out) both;
}
.g-sub { margin: 14px 0 24px; color: #d1dbef; font-size: 1.05rem; }
.g-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.jgrid-wrap { padding: 8px var(--gutter) 40px; max-width: calc(1560px + 2 * var(--gutter)); margin: 0 auto; }
.jgrid { position: relative; min-height: 50vh; }
.tile {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
  content-visibility: auto;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out), filter 0.4s;
}
.tile img.ok { opacity: 1; }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--yellow);
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.tile:hover img { transform: scale(1.06); filter: brightness(1.08) saturate(1.1); }
.tile:hover::after, .tile:focus-visible::after { box-shadow: inset 0 0 0 3px var(--yellow); }

.g-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  padding: 0 var(--gutter) 40px;
  max-width: calc(1560px + 2 * var(--gutter));
  margin: 0 auto;
}
.pager-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  padding: 18px 22px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--bgc);
}
.pager-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease-out); }
.pager-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 20, 48, 0.92), rgba(10, 20, 48, 0.35)); }
.pager-card:last-child { justify-content: flex-end; text-align: right; }
.pager-card:last-child::before { background: linear-gradient(270deg, rgba(10, 20, 48, 0.92), rgba(10, 20, 48, 0.35)); }
.pager-card span { font: 800 1.6rem/1.05 var(--display); text-transform: uppercase; }
.pager-card small { display: block; font: 600 0.75rem/1.6 var(--body); letter-spacing: 0.14em; color: var(--yellow); }
.pager-card:hover img { transform: scale(1.06); }

.load-error { padding: 160px var(--gutter); text-align: center; color: var(--muted); }

/* ------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), #070e24); }
.footer-inner { max-width: 1560px; margin: 0 auto; padding: 44px var(--gutter) 52px; text-align: center; color: var(--muted); font-size: 0.92rem; }
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-logos img { height: 52px; width: auto; opacity: 0.9; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.footer-logos a:hover img { opacity: 1; transform: translateY(-2px); }
.footer p { margin: 6px 0; }
.footer-fine { font-size: 0.8rem; opacity: 0.8; }

/* ------------------------------------------------------------- viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0a1430;
  opacity: 0;
  transition: opacity 0.35s ease;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.viewer.on { opacity: 1; }
.v-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: default; }
.viewer.idle, .viewer.idle .v-canvas { cursor: none; }

.v-top, .v-bottom { position: absolute; left: 0; right: 0; z-index: 2; transition: opacity 0.45s ease, transform 0.45s var(--ease-out); }
.v-top {
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(12px, 2.5vw, 28px) 40px;
  background: linear-gradient(180deg, rgba(5, 10, 26, 0.75), transparent);
  pointer-events: none;
}
.v-top > * { pointer-events: auto; }
.v-meta { display: flex; flex-direction: column; min-width: 0; padding-top: 4px; }
.v-title { font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-count { font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-bottom {
  bottom: 0;
  padding: 50px clamp(10px, 2.5vw, 28px) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(5, 10, 26, 0.8), transparent);
}
.viewer.idle .v-top { opacity: 0; transform: translateY(-16px); }
.viewer.idle .v-bottom { opacity: 0; transform: translateY(16px); }
.viewer.idle .v-side { opacity: 0; }
.viewer.idle .v-top *, .viewer.idle .v-bottom * , .viewer.idle .v-side { pointer-events: none; }

.v-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.v-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.v-right { justify-content: flex-end; }
.v-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.3rem;
  color: #dfe6f5;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.v-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.v-btn[aria-pressed='true'] { color: var(--yellow); background: rgba(254, 242, 0, 0.1); }
.v-badge { position: absolute; bottom: 3px; right: 2px; font: 700 0.6rem/1 var(--body); color: var(--yellow); }
.v-play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  font-size: 1.6rem;
  margin: 0 10px;
  box-shadow: 0 10px 34px -6px rgba(254, 242, 0, 0.5);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.v-play:hover { transform: scale(1.07); box-shadow: 0 14px 44px -6px rgba(254, 242, 0, 0.7); }
.is-playing .v-play { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(254, 242, 0, 0.12), 0 10px 34px -6px rgba(254, 242, 0, 0.5); } }
.v-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.v-chip svg { color: var(--yellow); }
.v-chip span { overflow: hidden; text-overflow: ellipsis; }
.v-chip:hover { background: rgba(255, 255, 255, 0.15); }

.v-side {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.6rem;
  background: rgba(10, 20, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s, background 0.2s, transform 0.25s var(--ease-out);
}
.v-side:hover { background: rgba(10, 20, 48, 0.75); }
.v-side-prev { left: clamp(10px, 2vw, 28px); }
.v-side-prev:hover { transform: translateX(-3px); }
.v-side-next { right: clamp(10px, 2vw, 28px); }
.v-side-next:hover { transform: translateX(3px); }

.v-progress { height: 3px; margin-top: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.v-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--green), var(--sky), var(--yellow)); }

.v-pop-wrap { position: relative; }
.v-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  z-index: 5;
  padding: 14px;
  border-radius: 16px;
  background: rgba(13, 25, 60, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  animation: popIn 0.25s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.v-pop-fx { left: 0; width: min(440px, calc(100vw - 24px)); }
.v-pop-speed { right: -6px; display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.v-pop-title { margin: 0 0 10px; font: 800 0.78rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.v-pop button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.v-pop button:hover { background: rgba(255, 255, 255, 0.09); }
.v-pop button.sel { background: var(--yellow); color: var(--navy); }
.v-pop button.wide { width: 100%; margin-bottom: 8px; border: 1px dashed rgba(255, 255, 255, 0.2); }
.v-fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-height: 46vh; overflow-y: auto; }

.v-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.v-strip button {
  flex: none;
  width: 84px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  filter: brightness(0.5) saturate(0.7);
  transition: filter 0.2s, transform 0.25s var(--ease-out), box-shadow 0.2s;
}
.v-strip button:hover { filter: none; }
.v-strip button.cur { filter: none; box-shadow: 0 0 0 2px var(--yellow); transform: translateY(-3px); }
.v-strip img { width: 100%; height: 100%; object-fit: cover; }

.v-fxname {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(10, 20, 48, 0.6);
  border: 1px solid rgba(254, 242, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 800 0.9rem/1 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0;
  transform: translate(-50%, -10px);
  pointer-events: none;
}
.v-fxname.show { animation: fxName 2s var(--ease-out) forwards; }
@keyframes fxName {
  15%, 70% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -6px); }
}
.viewer.idle .v-fxname { visibility: hidden; }

.v-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 1; }
.viewer.loading .v-loading { opacity: 1; }
.v-loading span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--yellow);
  border-right-color: var(--sky);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* View Transitions between pages */
::view-transition-old(root) { animation: 0.28s ease both vtOut; }
::view-transition-new(root) { animation: 0.45s var(--ease-out) both vtIn; }
@keyframes vtOut { to { opacity: 0; transform: scale(0.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hero-logo { width: clamp(170px, 42vw, 260px); }
  .hero-cta, .stats { justify-content: center; }
  .lede { margin-inline: auto; }
  .mosaic-inner .m-col:nth-child(n + 6) { display: none; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .v-side { display: none; }
  .v-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'left center' 'right right'; row-gap: 8px; }
  .v-left { grid-area: left; }
  .v-center { grid-area: center; }
  .v-right { grid-area: right; justify-content: space-between; }
  .v-play { width: 56px; height: 56px; margin: 0 4px; }
  .v-chip { padding: 0 12px; }
  .v-fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-pop-speed { right: auto; left: 0; }
  .brand img { height: 32px; }
  .brand-text { font-size: 0.82rem; }
  .topbar { height: 62px; }
  .btn { height: 46px; }
  .mosaic-inner .m-col:nth-child(n + 5) { display: none; }
  .tile { border-radius: 6px; }
}
@media (max-width: 420px) {
  .brand-sep, .brand-text { display: none; }
  .v-btn { width: 40px; }
}
@media (hover: none) {
  .card-play { opacity: 1; transform: none; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
