:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --bg-3: #18181b;
  --line: rgba(242, 239, 233, .09);
  --line-2: rgba(242, 239, 233, .18);
  --fg: #f2efe9;
  --muted: #8d8a83;
  --dim: #55534f;
  --accent: #ff3b24;
  --accent-2: #ff7a5c;
  --discord: #5865f2;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-pre { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); }

.lock { display: block; overflow: visible; }

.lock__shackle {
  fill: none;
  stroke: currentColor;
  stroke-width: 11;
  transform-box: view-box;
  transform-origin: 70px 52px;
}

.lock__body { fill: currentColor; }

.lock__hole { fill: var(--bg); }

.lock--nav { color: var(--accent); }

.lock--nav .lock__shackle {
  stroke-width: 12;
  transform: translateY(-13px) rotate(-14deg);
  transition: transform .5s var(--ease-out);
}

.lock--nav.is-hidden { opacity: 0; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.intro__half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: var(--bg);
}

.intro__half--top { top: 0; border-bottom: 1px solid var(--line); }

.intro__half--bot { bottom: 0; border-top: 1px solid var(--line); }

.intro__line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.intro__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lock--intro {
  width: clamp(72px, 9vw, 120px);
  color: var(--fg);
}

.lock--intro .lock__shackle,
.lock--intro .lock__body {
  stroke: var(--fg);
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.lock--intro .lock__shackle { stroke-width: 11; }

.lock--intro .lock__body { fill: transparent; }

.lock--intro .lock__hole { opacity: 0; }

.intro__skip {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s;
}

.intro__skip:hover { color: var(--fg); }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px var(--gutter);
  transition: opacity .8s var(--ease-out);
}

.is-intro .nav { opacity: 0; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  font-variation-settings: "wdth" 108;
  letter-spacing: -.01em;
}

.nav__brand:hover .lock--nav .lock__shackle {
  transform: translateY(0) rotate(0);
  transition-duration: .25s;
}

.nav__mark { width: 16px; flex: none; }

.discord {
  position: relative;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s;
}

.discord::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--discord);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}

.discord:hover { border-color: var(--discord); }

.discord:hover::before { transform: none; }

.discord__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform .5s var(--ease-out);
}

.discord:hover .discord__icon { transform: rotate(-12deg) scale(1.1); }

.lang {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
}

.lang__btn {
  position: relative;
  z-index: 1;
  width: 40px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .35s;
}

.lang__btn.is-active { color: var(--bg); }

.lang__pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 40px;
  border-radius: 99px;
  background: var(--fg);
  transition: transform .5s var(--ease-out);
}

.lang[data-active="fr"] .lang__pill { transform: translateX(40px); }

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  padding: 120px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 var(--gutter);
  pointer-events: none;
}

.hero__grid span {
  border-left: 1px solid var(--line);
  transform-origin: top;
  transition: transform 1.6s var(--ease-io) calc(var(--i, 0) * 90ms);
}

.hero__grid span:last-child { border-right: 1px solid var(--line); }

.is-intro .hero__grid span { transform: scaleY(0); }

.hero__head {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.hero__title {
  margin: 0;
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 850;
  font-variation-settings: "wdth" 112;
  line-height: .9;
  letter-spacing: -.04em;
}

.hero__title em { font-style: normal; color: var(--accent); }

.hero__hint { margin: -8px 0 0; font-size: 13px; color: var(--dim); }

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 18%;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

.word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out) calc(var(--i) * 70ms + 80ms);
}

.is-in .word > span { transform: none; }

[data-hero] {
  transition:
    opacity .9s var(--ease-out) var(--hd, 0ms),
    transform .9s var(--ease-out) var(--hd, 0ms);
}

.is-pre [data-hero] { opacity: 0; transform: translateY(14px); }

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  height: 58px;
  padding: 0 8px 0 26px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: rgba(17, 17, 19, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  cursor: copy;
  transition:
    border-color .4s,
    opacity .9s var(--ease-out) var(--hd, 0ms),
    transform .9s var(--ease-out) var(--hd, 0ms);
}

.bar:hover { border-color: rgba(242, 239, 233, .35); }

.bar__code {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13.5px;
  color: var(--fg);
}

.bar .copy { flex: none; height: 42px; padding: 0 18px 0 16px; }

.tk-f { color: var(--accent-2); }

.tk-k { color: #c9b8ff; }

.tk-s { color: #e7d6a8; }

.tk-p { color: var(--muted); }

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  transition: background .35s, transform .2s;
}

.copy:active { transform: scale(.96); }

.copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy__icons { position: relative; width: 15px; height: 15px; }

.copy__icons svg {
  position: absolute;
  inset: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
}

.copy__check { transform: scale(.4); opacity: 0; }

.copy__check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset .45s .1s var(--ease-out);
}

.copy__labels { position: relative; display: grid; height: 18px; overflow: hidden; }

.copy__labels span {
  grid-area: 1 / 1;
  line-height: 18px;
  transition: transform .45s var(--ease-out);
}

.copy__labels span:last-child { transform: translateY(110%); }

.copy.is-done { background: var(--accent); }

.copy.is-done .copy__clip { transform: scale(.4); opacity: 0; }

.copy.is-done .copy__check { transform: none; opacity: 1; }

.copy.is-done .copy__check path { stroke-dashoffset: 0; }

.copy.is-done .copy__labels span:first-child { transform: translateY(-110%); }

.copy.is-done .copy__labels span:last-child { transform: none; }

.flash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 36, .16), transparent);
  transform: translateX(-100%);
  pointer-events: none;
}

.flash.is-run { animation: flash .8s var(--ease-out); }

@keyframes flash { to { transform: translateX(100%); } }

.fan {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(300px, 42vh, 460px);
  margin-top: clamp(28px, 4vw, 56px);
  perspective: 1400px;
}

.fan__inner {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.card {
  --w: clamp(170px, 19vw, 280px);
  --x: 0%;
  --y: 0%;
  --r: 0deg;
  --s: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--w);
  aspect-ratio: 4 / 5;
  margin-left: calc(var(--w) / -2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-3);
  text-align: left;
  transform-origin: 50% 120%;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s));
  transition: transform 1s var(--ease-out), filter .5s;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2);
}

.card:nth-child(1) { --x: -78%; --y: 4%; --r: -11deg; z-index: 1; }

.card:nth-child(2) { --y: -6%; z-index: 2; }

.card:nth-child(3) { --x: 78%; --y: 4%; --r: 11deg; z-index: 1; }

.is-pre .card { --x: 0%; --y: 70%; --r: 0deg; --s: .7; }

.card img,
.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card img { transition: transform 1.2s var(--ease-out); }

.card__video {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .5s var(--ease-out), transform 1.2s var(--ease-out);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 12, .9));
}

.card__name {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 850;
  font-variation-settings: "wdth" 115;
  letter-spacing: -.01em;
}

.card__go {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  transform: scale(0) rotate(-45deg);
  transition: transform .5s var(--ease-out);
}

.card__go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }

.card__go .play { width: 10px; height: 10px; margin-left: 2px; fill: currentColor; stroke: none; }

.fan.has-hover .card:not(:hover) { filter: brightness(.45) saturate(.6); }

.card:hover { --y: -14%; --s: 1.05; z-index: 3; }

.card:nth-child(1):hover { --r: -6deg; }

.card:nth-child(3):hover { --r: 6deg; }

.card:hover img { transform: scale(1.08); }

.card:hover .card__go { transform: none; }

.card.is-playing .card__video { opacity: 1; transform: none; }

.card.is-open { opacity: 0; transition: none; }

.swap-out { animation: swap-out .22s var(--ease-io) forwards; }

.swap-in { animation: swap-in .5s var(--ease-out) both; }

@keyframes swap-out { to { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }

@keyframes swap-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, .74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal__panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100svh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px var(--line-2);
}

.modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #000;
  overflow: hidden;
}

.modal__media video,
.modal__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__media [hidden] { display: none; }

.modal__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .12);
}

.modal__progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 18px 24px;
}

.modal__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 850;
  font-variation-settings: "wdth" 115;
  letter-spacing: -.02em;
  line-height: 1;
}

.modal__actions { display: flex; align-items: center; gap: 10px; }

.modal__copy { position: relative; border-radius: 99px; overflow: hidden; }

.modal__copy .copy { height: 44px; padding: 0 18px 0 16px; }

.modal__play {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}

.modal__play::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}

.modal__play:hover::before { transform: none; }

.modal__play svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .4s var(--ease-out);
}

.modal__play:hover svg { transform: translate(2px, -2px); }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 11, 12, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s, transform .5s var(--ease-out);
}

.modal__close i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -.75px 0 0 -8px;
  background: var(--fg);
  transform: rotate(45deg);
}

.modal__close i:last-child { transform: rotate(-45deg); }

.modal__close:hover { background: var(--accent); transform: rotate(90deg); }

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(4) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(1%, 3%); }
}

@media (max-width: 760px) {
  .nav { gap: 10px; padding-block: 14px; }
  .discord { padding: 0 11px; }
  .discord__label { display: none; }

  .hero { padding-top: 104px; }
  .hero__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid span:nth-child(n + 3) { display: none; }
  .hero__grid span:nth-child(2) { border-right: 1px solid var(--line); }

  .bar { width: 100%; height: 52px; gap: 10px; padding-left: 16px; }
  .bar .copy { height: 38px; padding: 0 14px 0 12px; }
  .bar__code {
    flex: 1;
    font-size: 12px;
    -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
    mask-image: linear-gradient(90deg, #000 80%, transparent);
  }

  .fan { min-height: 300px; }
  .card { --w: 36vw; border-radius: 10px; }
  .card:nth-child(1) { --x: -62%; }
  .card:nth-child(3) { --x: 62%; }
  .is-pre .card { --x: 0%; }
  .card__name { left: 10px; right: 10px; bottom: 10px; font-size: 13px; }
  .card__go { display: none; }

  .modal { padding: 12px; }
  .modal__foot { flex-direction: column; align-items: stretch; padding: 16px; }
  .modal__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .modal__copy .copy,
  .modal__play { width: 100%; justify-content: center; padding: 0 10px; }
}
