@font-face {
  font-family: Barlow;
  src: url("./assets/barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font: 1rem/1.4 system-ui, sans-serif;
  color: #fcf6ff;
  background: #090710;
  --ease: cubic-bezier(.2, .75, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(.75rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right))
    max(.75rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 50%, #29103730, #0b0813e9 75%),
    url("./assets/storm.svg") center / cover fixed,
    #0b0813;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }

.site {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 30rem);
  width: min(100%, clamp(25rem, 59svh, 30rem));
  border-radius: 1.55rem;
  box-shadow: 0 0 0 1px #c394ec64, 0 0 30px #8e46e148, 0 17px 58px #030108b5;
  background: #090710;
}
.not-found {
  padding: 2rem;
  text-align: center;
}
.not-found h1 { margin: 0 0 1rem; font-size: clamp(1.25rem, 5vw, 1.7rem); }
.not-found a { color: #e8cdff; }
.hub {
  display: grid;
  gap: clamp(.52rem, 2.6cqw, .83rem);
  padding: clamp(1.5rem, 8.1cqw, 2.55rem)
    clamp(.85rem, 4.6cqw, 1.4rem)
    clamp(.95rem, 4.5cqw, 1.35rem);
}
.hub-header {
  display: grid;
  justify-items: center;
  gap: clamp(.72rem, 3.9cqw, 1.15rem);
}
.wordmark { margin: 0; width: 100%; }
.hub-header .wordmark { width: min(91%, 24.4rem); }
.wordmark img { width: 100%; height: auto; }
.profile-photo {
  width: clamp(5rem, 24cqw, 7.15rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #1b102a;
  border: 1px solid #ffffff45;
}

.scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: #0a0812 url("./assets/tripa-poster-hd.jpg") 53% center / cover no-repeat;
}
.scene::after {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background:
    linear-gradient(180deg, #0d071571, #10051716 37%, transparent 58%, #0905116b),
    radial-gradient(ellipse at 50% 51%, transparent 55%, #08041043 100%);
}
.scene video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--video-focus, 53%) center;
  opacity: 0;
  transition: opacity .36s var(--ease);
}
.scene.is-playing video { opacity: 1; }

.channels {
  display: grid;
  gap: clamp(.36rem, 1.75cqw, .55rem);
}
.channel {
  --x: 50%;
  --y: 50%;
  --rx: 0deg;
  --ry: 0deg;
  display: grid;
  --icon-size: clamp(2.14rem, 10.6cqw, 3rem);
  grid-template-columns: var(--icon-size) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.73rem, 2.8cqw, .94rem);
  min-height: clamp(3.2rem, 16.2cqw, 4.75rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: .3rem clamp(.6rem, 2.4cqw, .85rem);
  border: 1px solid var(--rim);
  border-radius: .82rem;
  background: linear-gradient(111deg, var(--wash-start), var(--wash-end));
  box-shadow: inset 0 1px #fff2, inset 0 -1px #0007, 0 5px 15px #0301096b;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform .25s var(--ease), border-color .22s, box-shadow .25s;
}
.channel::before, .channel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.channel::before {
  background: radial-gradient(ellipse 140px 75px at var(--x) var(--y), var(--shine), transparent),
    linear-gradient(165deg, #fff1, transparent 46%);
  opacity: 0;
  transition: opacity .25s;
}
.channel::after {
  background: radial-gradient(ellipse at var(--x) var(--y), var(--shine), transparent 68%);
  opacity: 0;
}
.channel.is-pressed::after { animation: touch-glow .45s var(--ease) both; }
@keyframes touch-glow {
  from { opacity: .94; }
  to { opacity: 0; }
}
.channel strong {
  font-family: Barlow, system-ui, sans-serif;
  font-size: clamp(1.08rem, 4.8cqw, 1.42rem);
  font-weight: 800;
  line-height: 1.18;
}
.channel-icon {
  display: grid;
  place-items: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: .62rem;
  border: 1px solid var(--rim);
  background: linear-gradient(165deg, #ffffff0c, #07051165);
  box-shadow: inset 0 1px #fff1;
  transition: transform .25s var(--ease), filter .25s;
}
.channel-icon img { width: 59%; height: 59%; }
.channel-kick {
  --brand: #83ff60;
  --rim: #81f56379;
  --shine: #7aff5766;
  --wash-start: #17341fcb;
  --wash-end: #102018c2;
  box-shadow: inset 0 1px #b6ff9b32, 0 0 23px #56f5372c, 0 5px 15px #0301096b;
}
.channel-livepix {
  --brand: #67d7f0;
  --rim: #54cbed85;
  --shine: #5cddff66;
  --wash-start: #133b49cb;
  --wash-end: #132339c2;
}
.channel-youtube {
  --brand: #ff7581;
  --rim: #ff5f6e88;
  --shine: #ff4d7066;
  --wash-start: #4d1d27cb;
  --wash-end: #2c111ac2;
}
.channel-instagram {
  --brand: #ffa4df;
  --rim: #ea82d288;
  --shine: #fa80e56e;
  --wash-start: #48204dcb;
  --wash-end: #321729c2;
}
.channel-tiktok {
  --brand: #72efe7;
  --rim: #59ded388;
  --shine: #58ffed65;
  --wash-start: #153d3ccb;
  --wash-end: #341a34c2;
}
@media (hover: hover) and (pointer: fine) {
  .channel:hover {
    z-index: 1;
    transform: perspective(650px) translateY(-2px) rotateX(var(--rx)) rotateY(var(--ry));
    border-color: var(--brand);
    box-shadow: inset 0 1px #fff5, 0 8px 23px #030109a3, 0 0 22px var(--shine);
  }
  .channel:hover::before { opacity: .68; }
  .channel:hover .channel-icon {
    transform: translate(2px, -1px) scale(1.07);
    filter: drop-shadow(0 0 6px var(--shine));
  }
}
.channel:focus-visible {
  z-index: 1;
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.channel:focus-visible::before { opacity: .55; }
.channel:active { transform: scale(.975); }
.intro {
  position: absolute;
  z-index: 10;
  inset: 0;
  border-radius: inherit;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 44%, #251039, transparent 52%),
    linear-gradient(140deg, #06050c, #10091a 60%, #0b0712);
  animation: intro-cover 2s linear both;
}
.intro-art, .strike { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-art {
  background: url("./assets/storm.svg") center / cover no-repeat;
  opacity: .69;
  animation: intro-drift 1.45s var(--ease) both;
}
.strike { z-index: 1; }
.intro-brand {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  width: 81%;
  animation: show-intro-brand 2s step-end both;
}
@keyframes show-intro-brand {
  0% { visibility: hidden; }
  24%, 100% { visibility: visible; }
}

.is-intro .scene { animation: enter-scene .62s var(--ease) 1.05s both; }
.is-intro .channels { pointer-events: none; }
.is-intro .channel {
  animation: enter-item .4s var(--ease) both;
  animation-delay: var(--delay, 1.35s);
}
.channel:nth-child(2) { --delay: 1.405s; }
.channel:nth-child(3) { --delay: 1.46s; }
.channel:nth-child(4) { --delay: 1.515s; }
.channel:nth-child(5) { --delay: 1.57s; }

@keyframes intro-cover {
  0%, 50% { opacity: 1; }
  86%, 100% { opacity: 0; }
}
@keyframes intro-drift {
  from { transform: scale(1.1) translateY(-1%); opacity: .36; }
  to { transform: scale(1); opacity: .69; }
}
@keyframes enter-scene {
  from { opacity: 0; transform: scale(.975); }
}
@keyframes enter-item {
  from { opacity: 0; transform: translateY(13px) scale(.982); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .channel:hover, .channel:active, .channel:hover .channel-icon { transform: none; }
}
