/* Kinnect Studio · kinnect.strydd.com
   Kinnect's own palette and type (joinkinnect.app): DM Sans + DM Mono, lime #E8FF47 on near-black / off-white.
   One committed dark look (a lit studio at the door), so no light/dark switch. */
:root {
  --lime: #E8FF47;
  --lime-deep: #C9E21F;
  --ink: #111111;
  --ink-2: #1C1C1C;
  --ink-3: #2A2A2A;
  --paper: #F8F8F6;
  --text: #F0F0F0;
  --muted: #9A9A94;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
.dot { display: inline-block; width: .56em; height: .56em; border-radius: 50%; background: var(--lime); margin-right: .32em; vertical-align: .06em; }
.wordmark { font-weight: 700; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }

/* ---------- the stage ---------- */
#stage { position: fixed; inset: 0; overflow: hidden; background: var(--ink); }
#backdrop { position: absolute; inset: -60px; background: url(media/poster_entrance.webp) center / cover no-repeat;
  filter: blur(36px) brightness(.45) saturate(1.1); transform: scale(1.1); transition: opacity .8s var(--ease); }
#stage.is-studio #backdrop { background-image: url(media/poster_loop.webp); }
#scene { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; will-change: transform; }
#scene > img, #scene > video { position: absolute; inset: 0; width: 1920px; height: 1080px; display: block; object-fit: cover; }
#walk, #loop { opacity: 0; }
#walk.on, #loop.on { opacity: 1; }

/* ---------- the doors ---------- */
#doors-ui { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 22px;
  transition: opacity .35s var(--ease), transform .6s var(--ease); z-index: 5; }
.door-mark { margin: 0; font-weight: 700; letter-spacing: -.025em; font-size: clamp(34px, 4.5vw, 86px); line-height: 1; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 0 28px rgba(0,0,0,.25); }
#enter { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 38px; border-radius: 999px;
  font-size: 21px; font-weight: 500; letter-spacing: .02em; color: #fff;
  background: rgba(248,248,246,.14); border: 1px solid rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
/* a lime band sweeps across the pill, left → right, once every 3 s (Thiago 11-22: on the pill, not the text) */
#enter { overflow: hidden; isolation: isolate; }
#enter::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(232,255,71,0) 0%, rgba(232,255,71,0) 22%, rgba(232,255,71,.62) 50%, rgba(232,255,71,0) 78%, rgba(232,255,71,0) 100%);
  transform: translateX(-110%); animation: pill-sweep 3s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes pill-sweep { 0% { transform: translateX(-110%); } 42%, 100% { transform: translateX(110%); } }
.enter-label { position: relative; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
#enter:hover, #enter:focus-visible { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-1px); }
#enter:hover::before, #enter:focus-visible::before { animation: none; opacity: 0; }
#enter:hover .enter-label, #enter:focus-visible .enter-label { text-shadow: none; }
#enter:focus-visible { outline: 3px solid rgba(232,255,71,.45); outline-offset: 4px; }
#enter.is-busy .enter-label::after { content: "…"; }

#stage:not(.is-entrance) #doors-ui { opacity: 0; pointer-events: none; }
#stage.is-walking #doors-ui { transform: translate(-50%, -50%) scale(.96); }

/* ---------- the studio bar ---------- */
.studio-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to bottom, rgba(10,10,10,.55), rgba(10,10,10,0));
  opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .6s var(--ease) .15s, transform .6s var(--ease) .15s; }
.studio-bar .wordmark { font-size: 26px; color: #fff; }
#stage.is-studio .studio-bar { opacity: 1; pointer-events: auto; transform: none; }

.btn-lime, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 19px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover, .btn-lime:focus-visible { background: #F2FF8A; transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-small { height: 42px; padding: 0 20px; font-size: 15px; }
.btn-lime:focus-visible, .btn-ghost:focus-visible { outline: 3px solid rgba(232,255,71,.45); outline-offset: 3px; }

/* ---------- the TV (1600×900 panel, matrix3d onto the render's screen) ---------- */
#tv { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; overflow: hidden;
  background: #0C0C0C; opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); outline: 1px solid transparent; backface-visibility: hidden; }
#stage.is-studio #tv { opacity: 1; pointer-events: auto; }
#glare { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; opacity: 0;
  background: url(media/poster_loop.webp) 0 0 / 1920px 1080px no-repeat; mix-blend-mode: screen; filter: brightness(.8) contrast(2.1);
  transition: opacity .9s var(--ease); }
#stage.is-studio #glare { opacity: .42; }
#stage.is-playing #glare { opacity: .22; }

.tv-idle { position: absolute; inset: 0; cursor: pointer;
  background: radial-gradient(ellipse 70% 60% at 50% 42%, #1E2112 0%, #121310 55%, #0C0C0C 100%); }
.tv-top { position: absolute; left: 80px; right: 80px; top: 64px; display: flex; justify-content: space-between; align-items: baseline; }
.tv-top .wordmark { font-size: 46px; color: #fff; }
.tv-tag { font-family: var(--mono); font-size: 24px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tv-play { position: absolute; left: 50%; top: 360px; transform: translate(-50%, -50%); }
.play-disc { display: grid; place-items: center; width: 210px; height: 210px; border-radius: 50%; background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 0 rgba(232,255,71,.35), 0 20px 60px rgba(0,0,0,.5); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  animation: breathe 3.2s var(--ease) infinite; }
.play-disc svg { width: 96px; height: 96px; margin-left: 12px; fill: currentColor; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,255,71,.32), 0 20px 60px rgba(0,0,0,.5); } 50% { box-shadow: 0 0 0 26px rgba(232,255,71,0), 0 20px 60px rgba(0,0,0,.5); } }
.tv-idle:hover .play-disc, .tv-play:focus-visible .play-disc { transform: scale(1.06); }
.tv-play:focus-visible { outline: none; }
.tv-play:focus-visible .play-disc { box-shadow: 0 0 0 10px rgba(232,255,71,.4); }
.tv-copy { position: absolute; left: 0; right: 0; top: 540px; text-align: center; padding: 0 160px; }
.tv-copy h1 { margin: 0; font-size: 76px; line-height: 1.04; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.tv-copy p { margin: 22px auto 0; max-width: 1050px; font-size: 34px; line-height: 1.35; color: #B5B5AE; text-wrap: balance; }
.tv-bar { position: absolute; left: 80px; right: 80px; bottom: 62px; height: 8px; border-radius: 8px; background: #2B2B28; }
.tv-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-radius: 8px; background: var(--lime); }
.tv-bar i::after { content: ""; position: absolute; right: -14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #fff; }

.tv-soon { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 42%, #1E2112 0%, #121310 55%, #0C0C0C 100%); }
.tv-soon-body { position: absolute; left: 0; right: 0; top: 150px; bottom: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 150px; }
.soon-chip { font-family: var(--mono); font-size: 28px; letter-spacing: .22em; text-transform: uppercase; color: var(--lime);
  border: 2px solid rgba(232,255,71,.7); border-radius: 999px; padding: 16px 34px 14px; }
.tv-soon h2 { margin: 46px 0 0; font-size: 84px; line-height: 1.04; letter-spacing: -.03em; font-weight: 700; color: #fff; text-wrap: balance; }
.tv-soon p { margin: 26px auto 0; max-width: 1100px; font-size: 34px; line-height: 1.35; color: #B5B5AE; text-wrap: balance; }
.tv-soon .btn-lime { margin-top: 56px; height: 96px; padding: 0 56px; font-size: 36px; }
.tv-player { position: absolute; inset: 0; background: #000; }
.tv-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-player video::cue { font-family: var(--sans); font-size: 44px; background: rgba(0,0,0,.7); }
.tv-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 34px; padding: 120px 60px 48px;
  background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0)); transition: opacity .35s var(--ease); }
.tv-player.idle-ui .tv-controls { opacity: 0; }
.tv-player.idle-ui { cursor: none; }
.tv-controls button { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; color: #fff; flex: none; }
.tv-controls button:hover, .tv-controls button:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.tv-controls svg { width: 48px; height: 48px; fill: currentColor; }
.c-play .i-play { display: none; } .c-play.paused .i-play { display: block; } .c-play.paused .i-pause { display: none; }
.c-mute .i-x { display: none; } .c-mute.muted .i-x { display: block; } .c-mute.muted .i-wave { display: none; }
.c-track { position: relative; flex: 1; height: 12px; border-radius: 12px; background: rgba(255,255,255,.22); cursor: pointer; }
.c-track::before { content: ""; position: absolute; inset: -24px 0; }
.c-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 12px; background: var(--lime); }
.c-fill::after { content: ""; position: absolute; right: -16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #fff; }
.c-track:focus-visible { outline: 4px solid rgba(232,255,71,.5); outline-offset: 10px; }
.c-time { font-family: var(--mono); font-size: 32px; color: #fff; min-width: 3.2em; text-align: right; }

.tv-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; padding: 0 140px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #1E2112 0%, #121310 55%, #0C0C0C 100%); }
.tv-end h2 { margin: 0; font-size: 84px; line-height: 1.04; letter-spacing: -.03em; font-weight: 700; color: #fff; text-wrap: balance; }
.tv-end p { margin: 26px 0 0; font-size: 36px; color: #B5B5AE; text-wrap: balance; }
.tv-end-actions { display: flex; gap: 28px; margin-top: 64px; }
.tv-end .btn-lime, .tv-end .btn-ghost { height: 96px; padding: 0 56px; font-size: 36px; }

.noscript { position: fixed; inset: auto 0 0 0; margin: 0; padding: 16px; text-align: center; background: var(--ink); }

@media (max-width: 640px) {
  #doors-ui { gap: 16px; }
  #enter { height: 54px; font-size: 20px; }
  .studio-bar .wordmark { font-size: 22px; }
  .btn-small { height: 38px; padding: 0 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #enter::before, .play-disc { animation: none; }
  * { transition-duration: .01ms !important; }
}
