/* Dustin Donnay Evans — showreel. The KI app's language on the web: true black, graphite, white;
   the slate hero (eyebrow → title → logline → counter) and Apple TV shelves underneath. */
@font-face { font-family: 'Gravidaz'; src: url('../fonts/Gravidaz.otf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Futurette'; src: url('../fonts/Futurette.otf') format('opentype'); font-display: swap; }

:root {
  --bg: #000; --card: #1C1C1E; --card2: #2C2C2E;
  --text: #fff; --text2: rgba(235,235,245,.78); --text3: rgba(235,235,245,.6); --text4: rgba(235,235,245,.38);
  --line: rgba(84,84,88,.65); --hair: rgba(255,255,255,.12);
  --pad: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.22,1,.36,1); --shut: cubic-bezier(.76,0,.24,1);
  --display: 'Gravidaz', 'Futurette', -apple-system, 'Helvetica Neue', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 10px; }

/* ── top bar ─────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 14px; transition: background .4s var(--ease); }
.top.solid { background: rgba(0,0,0,.62); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
  box-shadow: 0 .5px 0 var(--hair); }
.mark { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mark img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255,255,255,.18)); }
.mark b { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .26em; white-space: nowrap; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.top nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); transition: color .2s; }
.top nav a:hover { color: #fff; }
.top nav a.pill { color: #000; letter-spacing: -.01em; text-transform: none; }
@media (max-width: 720px) { .top nav a:not(.pill) { display: none; } .mark b { font-size: 11.5px; letter-spacing: .22em; } }

/* ── pills ───────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: #fff; color: #000; font-weight: 700; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--spring), background .2s, opacity .2s; }
.pill:hover { background: #ECECF1; } .pill:active { transform: scale(.96); }
.pill.ghost { background: rgba(118,118,128,.28); color: #fff; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.pill.ghost:hover { background: rgba(118,118,128,.42); }
.pill.small { height: 34px; padding: 0 16px; font-size: 13px; }
.pill svg { width: 15px; height: 15px; flex: none; }

/* ── the slate: two films, one at a time ─────────────── */
.slate { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slate .bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slate .bg.on { opacity: 1; }
.slate .bg img, .slate .bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slate .bg video { opacity: 0; transition: opacity .8s var(--ease); }
.slate .bg video.playing { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 26%, rgba(0,0,0,.18) 58%, rgba(0,0,0,0) 72%),
              linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%); }
@media (min-width: 900px) { .scrim { background:
  linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,0) 65%),
  linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%),
  linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 20%); } }

.dots { position: absolute; z-index: 5; left: var(--pad); right: var(--pad); top: calc(env(safe-area-inset-top) + 64px); display: flex; gap: 6px; }
.dots button { flex: 1; max-width: 120px; height: 22px; display: flex; align-items: center; }
.dots button i { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.dots button.on i::after { content: ''; position: absolute; inset: 0; background: #fff; border-radius: 2px; transform-origin: left; animation: fill var(--dwell, 14s) linear forwards; }
.slate.paused .dots button.on i::after { animation: none; transform: none; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 40px); }
.hero .slide { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(env(safe-area-inset-bottom) + 40px); max-width: 760px;
  opacity: 0; transform: translateX(26px); pointer-events: none; transition: opacity .3s var(--ease), transform .44s var(--spring); }
.hero .slide.on { opacity: 1; transform: none; pointer-events: auto; position: relative; left: 0; right: 0; bottom: 0; }
.hero .slide.from-left { transform: translateX(-26px); }
.eyebrow { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: rgba(235,235,245,.85); margin: 0 0 16px; }
.title { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; letter-spacing: .02em;
  font-size: clamp(46px, 13vw, 132px); line-height: .94; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.logline { font-size: 17px; line-height: 1.5; color: #fff; margin: 20px 0 0; max-width: 620px; }
.roles { font-size: 13px; letter-spacing: .04em; color: var(--text3); margin: 12px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.counter { font-size: 12.5px; letter-spacing: .1em; color: var(--text3); margin-top: 22px; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .logline { font-size: 21px; line-height: 1.48; } .hero .slide { bottom: 72px; } .hero { padding-bottom: 72px; } .eyebrow { font-size: 12.5px; } }

.edge { position: absolute; z-index: 6; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(28,28,30,.45); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: .5px solid rgba(255,255,255,.14);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .2s; }
.edge svg { width: 18px; height: 18px; }
.edge.prev { left: 18px; } .edge.next { right: 18px; }
.slate:hover .edge { opacity: 1; } .edge:hover { background: rgba(60,60,64,.6); }
.edge[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .edge { display: none; } }

.cue { position: absolute; z-index: 4; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 12px); transform: translateX(-50%); color: var(--text4); }
.cue svg { width: 18px; height: 18px; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(4px); opacity: 1 } }
@media (max-width: 899px) { .cue { display: none; } }

/* ── who ─────────────────────────────────────────────── */
.who { padding: 72px var(--pad) 18px; }
.who .name { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6.4vw, 72px); line-height: 1; letter-spacing: .04em; margin: 0; text-transform: uppercase; }
.who .job { font-size: clamp(17px, 2.2vw, 22px); color: var(--text2); margin: 14px 0 0; }
.who p.bio { font-size: 17px; line-height: 1.6; color: var(--text2); max-width: 720px; margin: 22px 0 0; }
.who p.bio em { font-style: normal; color: #fff; }
.who .actions { margin-top: 28px; }

/* ── shelves ─────────────────────────────────────────── */
.shelf { padding: 46px 0 6px; }
.shelf h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 0 var(--pad) 14px; display: flex; align-items: baseline; gap: 10px; }
.shelf h2 small { font-size: 13px; font-weight: 500; color: var(--text3); letter-spacing: 0; }
.row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.row::-webkit-scrollbar { display: none; }
.card { flex: none; width: clamp(268px, 74vw, 420px); scroll-snap-align: start; text-align: left; }
.card .art { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: 0 24px 60px -34px rgba(0,0,0,.9); transition: transform .35s var(--spring), box-shadow .35s; }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.card .art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); pointer-events: none; }
.card .art .play { position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s var(--spring); }
.card .art .play svg { width: 14px; height: 14px; margin-left: 2px; color: #000; }
.card:hover .art { transform: scale(1.025); box-shadow: 0 30px 70px -30px rgba(0,0,0,1); }
.card:hover .art .play, .card:focus-visible .art .play { opacity: 1; transform: none; }
@media (hover: none) { .card .art .play { opacity: 1; transform: none; width: 32px; height: 32px; } }
.card .t { font-size: 15.5px; font-weight: 600; margin: 12px 2px 0; letter-spacing: -.01em; }
.card .m { font-size: 13px; color: var(--text3); margin: 3px 2px 0; line-height: 1.4; }
.card .tag { position: absolute; top: 10px; left: 10px; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.card .tag.need { background: #FA2D48; }
.card.pending .art img { filter: grayscale(.6) brightness(.6); }
.card .blank { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 26px; letter-spacing: .12em; color: rgba(255,255,255,.75);
  background: radial-gradient(120% 90% at 30% 20%, #2a3a2a 0%, #121812 55%, #0b0d0b 100%); }

/* ── about ───────────────────────────────────────────── */
.about { margin-top: 64px; position: relative; }
.about .portrait { position: relative; aspect-ratio: 16/9; max-height: 82vh; width: 100%; overflow: hidden; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.about .portrait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,0) 60%),
  linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,0) 55%); }
.about .over { position: absolute; left: var(--pad); bottom: 8%; z-index: 2; }
.about .body { padding: 0 var(--pad); display: grid; gap: 40px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 980px) { .about .body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; } }
.about h3 { font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--text3); font-weight: 500; margin: 0 0 14px; }
.about .facts p { margin: 0 0 14px; color: var(--text2); font-size: 16px; }
.about .facts p b { color: #fff; font-weight: 600; }
.credits { list-style: none; margin: 0 0 30px; padding: 0; }
.credits li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 13px 0; border-top: .5px solid var(--line); }
.credits li:last-child { border-bottom: .5px solid var(--line); }
.credits .c1 { font-weight: 600; font-size: 15.5px; }
.credits .c2 { font-size: 13px; color: var(--text3); grid-column: 1; }
.credits .c3 { font-size: 13px; color: var(--text3); grid-row: 1; grid-column: 2; text-align: right; font-variant-numeric: tabular-nums; }

/* ── contact ─────────────────────────────────────────── */
.contact { padding: 110px var(--pad) 60px; }
.contact .big { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 12vw, 150px); line-height: .92; margin: 0; letter-spacing: .02em; }
.contact p { color: var(--text2); font-size: 17px; max-width: 560px; margin: 20px 0 0; }
.contact .actions { margin-top: 30px; }
.socials { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.socials a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: .5px solid var(--hair);
  transition: background .2s, transform .25s var(--spring); }
.socials a:hover { background: var(--card2); } .socials a:active { transform: scale(.94); }
.socials svg { width: 21px; height: 21px; }
footer { padding: 26px 0 calc(env(safe-area-inset-bottom) + 30px); border-top: .5px solid var(--line); margin: 0 var(--pad);
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 13px; color: var(--text3); }
footer a { color: var(--text2); } footer a:hover { color: #fff; }
footer .ki { display: inline-flex; align-items: center; gap: 8px; }
footer .ki img { width: 18px; height: 18px; }

/* ── player ──────────────────────────────────────────── */
.player { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.94); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.player.open { opacity: 1; pointer-events: auto; }
.player .frame { width: min(100vw, calc((100vh - 120px) * 16 / 9)); width: min(100vw, calc((100svh - 120px) * 16 / 9)); aspect-ratio: 16/9; background: #000;
  transform: scale(.97); transition: transform .44s var(--spring); }
.player.open .frame { transform: none; }
.player .frame video, .player .frame iframe { width: 100%; height: 100%; border: 0; background: #000; display: block; }
@media (min-width: 720px) { .player .frame { border-radius: 14px; overflow: hidden; } }
.player .x { position: absolute; top: calc(env(safe-area-inset-top) + 14px); right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(118,118,128,.32); display: grid; place-items: center; }
.player .x svg { width: 16px; height: 16px; }
.player .cap { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 22px); text-align: center; color: var(--text3); font-size: 13px; letter-spacing: .06em; padding: 0 20px; }
.player .cap b { color: #fff; font-weight: 600; letter-spacing: 0; }
body.locked { overflow: hidden; }

/* ── reveal ──────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--spring); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .hero .slide, .slate .bg { transition: none; }
  .cue svg { animation: none; }
}
