:root {
  /* the four pages: background and ink */
  --club-bg: #1e0828;
  --club-ink: #e6a8ff;
  --events-bg: #03282a;
  --events-ink: #9cf3dc;
  --membership-bg: #281805;
  --membership-ink: #ffb45e;
  --partners-bg: #f5f2ec;
  --partners-ink: #151312;
  /* the page on show (the script moves them) */
  --bg: var(--club-bg);
  --ink: var(--club-ink);
  --display: 'Archivo Variable', 'Arial Narrow', system-ui, sans-serif;
  --ui: 'Mona Sans Variable', system-ui, sans-serif;
  --soft: cubic-bezier(.4, .15, 0, 1);
  --expo: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--club-bg);
  overflow: hidden;
}

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
.stage.is-moving { cursor: wait; }

/* a soft light from the top right and a darker floor: the background never looks flat */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% -10%, color-mix(in srgb, var(--ink) 13%, transparent), transparent 60%),
    radial-gradient(90% 60% at 10% 110%, rgba(0, 0, 0, .22), transparent 70%);
}

.rings {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  width: min(56vw, 78vh);
  height: min(56vw, 78vh);
  overflow: hidden;
  pointer-events: none;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: .16;
}
.rings circle {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1;
}

/* ---- the top bar ---- */
.top {
  position: absolute;
  z-index: 8;
  top: clamp(10px, 2.4vh, 24px);
  left: clamp(12px, 3vw, 40px);
  right: clamp(12px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand__mark {
  width: clamp(22px, 3.2vh, 28px);
  height: clamp(22px, 3.2vh, 28px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.brand__name {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 70;
  font-size: 19px;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__name em {
  font-style: normal;
  font-weight: 400;
  margin-left: 4px;
  opacity: .7;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 14%, transparent),
    0 10px 30px -12px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: opacity .3s ease;
}
.nav.is-locked { pointer-events: none; }
.nav.is-locked .nav__item:not(.is-here) { opacity: .55; }

.nav__item {
  position: relative;
  z-index: 2;
  display: block;
  padding: 0 clamp(10px, 1.3vw, 18px);
  height: clamp(30px, 4.6vh, 38px);
  line-height: clamp(30px, 4.6vh, 38px);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(12px, 1.8vh, 14px);
  font-weight: 560;
  font-variation-settings: 'wdth' 100;
  letter-spacing: .005em;
  white-space: nowrap;
  transition: color .45s var(--expo), opacity .3s ease, font-variation-settings .45s var(--expo);
  -webkit-tap-highlight-color: transparent;
}
.nav__item.is-here { color: var(--bg); }
.nav__item:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }

/* the active pill slides on a spring; the hover pill follows the pointer, fainter */
.nav__pill,
.nav__hover {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 60px;
  border-radius: 999px;
  pointer-events: none;
}
.nav__pill {
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(0, 0, 0, .12),
    0 6px 16px -6px color-mix(in srgb, var(--ink) 55%, transparent);
  overflow: hidden;
}
.nav__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%);
  transform: translateX(-120%);
}
.nav__hover {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  opacity: 0;
}

.join {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: clamp(32px, 4.8vh, 40px);
  padding: 0 14px 0 18px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 40%, transparent);
  transition: background-color .4s var(--expo), color .4s var(--expo);
}
.join svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .45s var(--expo);
}
@media (hover: hover) {
  .join:hover { background: var(--ink); color: var(--bg); }
  .join:hover svg { transform: translateX(3px); }
  .nav__item:not(.is-here):hover { font-variation-settings: 'wdth' 112; }
}

/* ---- the pages ---- */
.pages {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(16px, 4vw, 56px) clamp(14px, 5vh, 52px);
}
.page[hidden] { display: none; }

.eyebrow {
  margin: 0 0 clamp(6px, 1.4vh, 14px);
  font-size: clamp(11px, 1.7vh, 14px);
  font-weight: 500;
  font-variation-settings: 'wdth' 112;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .78;
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 860;
  font-size: min(15.5vw, 22vh);
  line-height: .84;
  letter-spacing: -.005em;
  text-transform: uppercase;
  /* the letters come in from the right: they are cut at the edge of the title, never outside the stage */
  clip-path: inset(-12% 0 -12% -4%);
  padding-right: .04em;
}
.title .line { display: block; white-space: nowrap; }
.title i {
  display: inline-block;
  font-style: normal;
  transform: skewX(-10deg);
  transform-origin: 0 100%;
}
.title .c {
  display: inline-block;
  font-variation-settings: 'wdth' var(--w, 62);
  will-change: transform;
}
.title .s { display: inline-block; width: .2em; }

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 40px);
  margin-top: clamp(10px, 3vh, 34px);
  padding-top: clamp(10px, 2.4vh, 22px);
  position: relative;
}
/* the thin rule above the foot draws itself from the left on every new page */
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 24%, transparent);
  transform: scaleX(var(--line, 1));
  transform-origin: 0 50%;
}

.text {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(12px, 2vh, 17px);
  line-height: 1.4;
  font-weight: 420;
  opacity: .86;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: clamp(8px, 1.6vh, 14px) clamp(12px, 2vh, 18px);
  border-radius: 16px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--ink) 12%, transparent), color-mix(in srgb, var(--ink) 4%, transparent));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 16%, transparent),
    0 24px 40px -24px rgba(0, 0, 0, .55);
}
.card__col { display: flex; flex-direction: column; gap: 2px; }
.card__col--end { align-items: flex-end; }
.card__big {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: 'wdth' 70;
  font-size: clamp(22px, 4.4vh, 36px);
  line-height: 1;
}
.card__big small {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
  opacity: .7;
}
.card__mid {
  font-family: var(--display);
  font-weight: 760;
  font-variation-settings: 'wdth' 80;
  font-size: clamp(16px, 2.8vh, 22px);
  text-transform: uppercase;
  line-height: 1.05;
}
.card__small {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  opacity: .72;
  white-space: nowrap;
}
.card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--ink);
  white-space: nowrap;
}
.card__cut {
  align-self: stretch;
  width: 0;
  border-left: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent);
}
.card--ticket { gap: 16px; }

.faces { display: flex; }
.faces b {
  display: grid;
  place-items: center;
  width: clamp(26px, 4.6vh, 34px);
  height: clamp(26px, 4.6vh, 34px);
  margin-left: -9px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--bg);
  background: var(--ink);
  box-shadow: 0 0 0 2px var(--bg);
}
.faces b:first-child { margin-left: 0; }
.faces b:nth-child(2) { background: color-mix(in srgb, var(--ink) 78%, var(--bg)); }
.faces b:nth-child(3) { background: color-mix(in srgb, var(--ink) 60%, var(--bg)); }
.faces b:nth-child(4) { background: color-mix(in srgb, var(--ink) 42%, var(--bg)); color: var(--ink); }

.card--marks { gap: clamp(12px, 2vw, 22px); }
.mark { white-space: nowrap; line-height: 1; opacity: .88; }
.mark--a { font-family: var(--ui); font-weight: 720; font-size: 15px; letter-spacing: -.02em; }
.mark--b { font-family: var(--display); font-weight: 800; font-variation-settings: 'wdth' 62; font-size: 17px; letter-spacing: .12em; }
.mark--c { font-family: var(--ui); font-weight: 380; font-variation-settings: 'wdth' 125; font-size: 13px; }

/* ---- the three circles ---- */
.wipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.ball,
.echo {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  visibility: hidden;
}
.ball {
  background: var(--c, #000);
  /* the edge a hair lighter, and a soft shadow ahead of it: a disc of paper, not a flat shape */
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--c, #000), white 26%),
    inset 0 0 36px color-mix(in srgb, var(--c, #000), white 9%),
    0 0 60px -10px rgba(0, 0, 0, .35);
}
.echo {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 50%, transparent);
}

/* ---- grain over everything, circles included ---- */
.grain {
  position: absolute;
  inset: -50%;
  z-index: 9;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.ghost {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  fill: #fff;
  stroke: #111;
  stroke-width: 1.3;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* small screens: the name goes, the Join button goes, the card gets smaller */
@media (max-width: 720px) {
  .join { display: none; }
  .brand__name { display: none; }
}
@media (max-width: 560px) {
  .foot { flex-direction: column; align-items: flex-start; }
  .text { max-width: none; }
  .nav { padding: 3px; }
  .nav__pill, .nav__hover { top: 3px; height: calc(100% - 6px); }
  .nav__item { padding: 0 min(9px, 2.2vw); font-size: min(12px, 3.2vw); }
  .top { gap: 8px; }
}
@media (max-height: 460px) and (max-width: 560px) {
  .text { display: none; }
  .foot { margin-top: 10px; }
}
