@font-face { font-family: "Bungee"; src: url("fonts/Bungee-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/FiraSans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/FiraSans-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --ink: #f6eedf;
  --ink-dim: #b9ad99;
  --orange: #cb7025;
  --orange-hi: #f0a25a;
  --cream: #fff4de;
  --blue: #4fb3d9;
  --glass: rgba(255, 244, 222, 0.045);
  --glass-edge: rgba(255, 244, 222, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 "Fira Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

/* ambient glow behind everything */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 15% -5%, rgba(203, 112, 37, 0.28), transparent 70%),
    radial-gradient(50vw 40vw at 95% 10%, rgba(79, 179, 217, 0.14), transparent 70%),
    radial-gradient(70vw 50vw at 50% 110%, rgba(203, 112, 37, 0.16), transparent 70%),
    linear-gradient(180deg, #120f0c 0%, var(--bg) 60%);
}
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
}

/* header */
.top { text-align: center; padding: 64px 16px 8px; }
.eyebrow {
  margin: 0 0 14px; font-weight: 600; font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--orange-hi);
}
.wordmark {
  margin: 0 auto; width: min(80vw, 960px);
  display: flex; justify-content: space-between; align-items: center;
  font: 400 clamp(26px, 6.2vw, 76px)/1 "Bungee", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, var(--cream) 38%, #eec48c 62%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.6)) drop-shadow(0 0 28px rgba(203,112,37,0.35));
}
.wordmark i { flex: 0 0 clamp(8px, 2.2vw, 30px); }
.divider { display: block; width: min(100%, 1080px); height: auto; margin: 18px auto 0; }
.lede { max-width: 560px; margin: 22px auto 0; color: var(--ink-dim); font-size: 17px; }

/* grid of clips */
.grid {
  max-width: 1360px; margin: 40px auto 0; padding: 0 16px;
  display: grid; gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }
@media (max-width: 600px)  { .grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 32px; } .top { padding-top: 44px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,244,222,0.08), rgba(255,244,222,0.02) 40%, rgba(0,0,0,0.25)), var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 20px 50px -20px rgba(0,0,0,0.9),
    0 0 0 1px rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 10px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  animation: rise .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n) * 90ms);
}
/* glossy gradient rim */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(240,162,90,0.9), rgba(255,244,222,0.15) 30%, transparent 55%, rgba(79,179,217,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; transition: opacity .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 30px 60px -20px rgba(0,0,0,0.95), 0 0 40px -10px rgba(203,112,37,0.45); }
.card:hover::before, .card.playing::before { opacity: 1; }
.card.playing { box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 30px 60px -20px rgba(0,0,0,0.95), 0 0 50px -8px rgba(203,112,37,0.6); }

.frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: calc(var(--radius) - 8px); overflow: hidden;
  background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
.frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
/* glass sheen over the poster, gone once playing */
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.04) 22%, transparent 40%);
  transition: opacity .4s;
}
.card.playing .frame::after { opacity: 0; }

.meta { padding: 16px 8px 8px; display: flex; flex-direction: column; flex: 1; }
.num {
  margin: 0; display: flex; justify-content: space-between; align-items: center;
  font: 400 13px/1 "Bungee", sans-serif; letter-spacing: 0.12em; color: var(--orange-hi);
}
.num span { font: 600 12px/1 "Fira Sans", sans-serif; letter-spacing: 0.08em; color: var(--ink-dim);
  padding: 5px 9px; border-radius: 999px; background: rgba(255,244,222,0.06); border: 1px solid var(--glass-edge); }
.meta h2 { margin: 10px 0 8px; font: 400 21px/1.15 "Bungee", sans-serif; color: var(--cream); letter-spacing: 0.01em; }
.meta blockquote {
  margin: 0 0 18px; padding-left: 12px; border-left: 2px solid rgba(203,112,37,0.7);
  color: var(--ink-dim); font-size: 15px; line-height: 1.45; flex: 1;
}

/* glossy download button */
.dl {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 18px; border-radius: 14px; text-decoration: none;
  font: 400 15px/1 "Bungee", sans-serif; letter-spacing: 0.06em; color: #1d0f04;
  background: linear-gradient(180deg, #ffd7a8 0%, var(--orange-hi) 45%, var(--orange) 55%, #a8561a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -2px 0 rgba(0,0,0,0.25), 0 8px 22px -8px rgba(203,112,37,0.85);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.dl small { font: 600 12px/1 "Fira Sans", sans-serif; letter-spacing: 0.02em; opacity: .75; }
.dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dl::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.dl:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 -2px 0 rgba(0,0,0,0.25), 0 12px 28px -8px rgba(203,112,37,1); }
.dl:hover::after { left: 130%; }
.dl:active { transform: translateY(1px); }
.dl:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.foot { text-align: center; padding: 56px 16px 48px; color: var(--ink-dim); font-size: 13px; letter-spacing: 0.08em; }
.foot p { margin: 12px 0 0; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; transition: none; }
  .dl::after { display: none; }
}
