@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171A20;
  --ink-2: #4A4E57;
  --ink-3: #6B6F78;
  --canvas: #F8F7F4;
  --grid: #DADBD8;
  --route: #C9CAC6;
  --orange: #F38020;
  --orange-deep: #D9680B;
  --green: #287B65;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --mark: clamp(64px, 7vw, 84px);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- The network field ---------- */

.field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 40%, #000 30%, transparent 100%);
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: calc(50% - 24px) calc(40% - 24px);
  opacity: 0.55;
}

.routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.routes .wire {
  fill: none;
  stroke: var(--route);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.routes .pulse {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 107;
  opacity: 0;
  animation: travel var(--dur, 4.2s) cubic-bezier(0.55, 0.05, 0.4, 1) var(--delay, 0s) infinite;
}

.routes .origin {
  fill: var(--canvas);
  stroke: var(--route);
  stroke-width: 1;
}

@keyframes travel {
  0%   { stroke-dashoffset: 107; opacity: 0; }
  8%   { opacity: 1; }
  62%  { stroke-dashoffset: 0; opacity: 1; }
  70%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- Stage ---------- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) 1.25rem 2rem;
}

.mark {
  appearance: none;
  border: 0;
  padding: 0;
  width: var(--mark);
  height: var(--mark);
  border-radius: 24%;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 30px -12px rgba(217, 104, 11, 0.55),
    0 2px 6px -2px rgba(23, 26, 32, 0.18);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.mark { position: relative; }
.mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24%;
  border: 1px solid var(--orange);
  opacity: 0;
  pointer-events: none;
}

.mark.arrive::after { animation: ring 900ms var(--ease-out); }

@keyframes ring {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}

.mark svg { width: 62%; height: 62%; overflow: visible; }
.mark polyline {
  fill: none; stroke: currentColor; stroke-width: 2.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.mark circle { fill: currentColor; }

.mark:hover { transform: translateY(-2px); }
.mark:active { transform: translateY(0) scale(0.96); transition-duration: 120ms; }
.mark[aria-expanded="true"] { transform: rotate(-8deg); }

.domain {
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  font-size: clamp(3.25rem, 13vw, 7.5rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-variation-settings: "wght" 620;
}

.domain .tld { color: #DB6A0C; } /* brand orange, deepened to clear 3:1 at display size */

.purpose {
  margin: clamp(1.25rem, 3vh, 1.75rem) 0 0;
  max-width: 26ch;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Doorman ---------- */

.doorman {
  margin-top: 2.5rem;
  width: min(18rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.doorman:not([hidden]) { animation: rise 600ms var(--ease-out) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.doorman input {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
  padding: 0.6rem 0.25rem;
  caret-color: var(--orange);
  transition: border-color 200ms;
}

.doorman input::placeholder { color: var(--ink-3); }
.doorman input:focus { outline: none; border-bottom-color: var(--orange); }

.doorman.nope input { animation: shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }

@keyframes shake {
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.doorman-note {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 clamp(1rem, 4vw, 2.5rem);
  padding: 1.1rem 0 calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--grid);
  font-size: 0.875rem;
  color: var(--ink-3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(4.5rem + env(safe-area-inset-bottom));
  margin: 0;
  transform: translate(-50%, 12px);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.9375rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Page entrance ---------- */

.mark, .domain, .purpose { animation: enter 900ms var(--ease-out) backwards; }
.domain  { animation-delay: 90ms; }
.purpose { animation-delay: 180ms; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ======================================================
   The Maurice Experience
   ====================================================== */

body.shake { animation: quake 500ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes quake {
  10%, 90% { transform: translate(-2px, 1px) rotate(-0.3deg); }
  20%, 80% { transform: translate(4px, -2px) rotate(0.4deg); }
  30%, 50%, 70% { transform: translate(-6px, 2px) rotate(-0.6deg); }
  40%, 60% { transform: translate(6px, -1px) rotate(0.6deg); }
}

.club {
  --pink: #FF2E88;
  --cyan: #2EE6FF;
  --gold: #FFC94A;
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 110%, #2A0F2E 0%, #0B0910 60%, #050407 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: inherit;
  opacity: 0;
  transition: opacity 260ms linear;
}
.club.on { opacity: 1; }
.club.off { opacity: 0; transition-duration: 700ms; }

.club-flash {
  position: absolute; inset: 0;
  background: #fff;
  animation: flash 700ms ease-out forwards;
  pointer-events: none;
}
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

/* Spotlights */
.beam {
  position: absolute;
  top: -10vh;
  width: 34vmax;
  height: 130vh;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, var(--c) 0%, transparent 85%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: 0.38;
  filter: blur(6px);
  animation: sweep var(--t) ease-in-out infinite alternate;
}
.beam.b1 { --c: var(--orange); --t: 3.1s; left: 8%;  --from: -28deg; --to: 22deg; }
.beam.b2 { --c: var(--pink);   --t: 2.4s; left: 33%; --from: 26deg;  --to: -24deg; }
.beam.b3 { --c: var(--cyan);   --t: 3.7s; left: 58%; --from: -18deg; --to: 30deg; }
.beam.b4 { --c: var(--gold);   --t: 2.8s; left: 80%; --from: 24deg;  --to: -30deg; }
@keyframes sweep {
  from { transform: translateX(-50%) rotate(var(--from)); }
  to   { transform: translateX(-50%) rotate(var(--to)); }
}

/* Mirror-ball reflections */
.specks {
  position: absolute;
  left: 50%; top: 50%;
  width: 220vmax; height: 220vmax;
  margin: -110vmax 0 0 -110vmax;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle, rgba(255,201,74,0.8) 0 1.2px, transparent 2.2px),
    radial-gradient(circle, rgba(46,230,255,0.7) 0 1.2px, transparent 2.2px);
  background-size: 90px 70px, 130px 110px, 170px 150px;
  background-position: 0 0, 40px 30px, 80px 10px;
  mix-blend-mode: screen;
  animation: spin 18s linear infinite;
  opacity: 0.8;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Mirror ball */
.ball-wrap {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -110%);
  animation: lower 1200ms var(--ease-out) 200ms forwards;
  display: grid;
  justify-items: center;
}
.ball-wrap::before {
  content: "";
  width: 2px; height: clamp(40px, 9vh, 90px);
  background: linear-gradient(#555, #aaa);
}
@keyframes lower { to { transform: translate(-50%, 0); } }

.ball {
  width: clamp(84px, 12vmin, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,0.95) 0 6%, transparent 18%),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 11px),
    conic-gradient(from 0deg, #fff, #9aa4b8, #fff, #c9d2e4, #6d7486, #fff, #b3bccd, #fff);
  background-size: auto, 22px 22px, 22px 22px, auto;
  box-shadow: 0 0 60px 10px rgba(255,255,255,0.25), 0 0 140px 40px rgba(243,128,32,0.25);
  animation: facets 1.6s linear infinite;
}
@keyframes facets { to { background-position: 0 0, 22px 0, 0 0, 0 0; } }

/* Headline */
.club-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.25rem;
  margin-top: 8vh;
}
.club-kicker {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 2.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.club-name {
  margin: 0;
  font-size: clamp(3.5rem, 17vw, 12rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.85;
  font-style: oblique 8deg;
  text-shadow:
    0 0 18px rgba(255, 46, 136, 0.75),
    0 0 50px rgba(243, 128, 32, 0.55),
    0 0 2px var(--pink);
}
.club-name span {
  display: inline-block;
  animation: bop 0.484s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.06s);
}
@keyframes bop {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-0.08em) rotate(2deg); }
}
.club-sub {
  margin: 0.9rem 0 0;
  font-size: clamp(1rem, 3.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.club-line {
  margin: 1.6rem auto 0;
  max-width: 30ch;
  min-height: 2.8em;
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.35;
  color: rgba(255,255,255,0.85);
  text-wrap: balance;
  transition: opacity 300ms, transform 300ms var(--ease-out);
}
.club-line.swap { opacity: 0; transform: translateY(8px); }

.club-confetti {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

.club-controls {
  position: absolute;
  z-index: 3;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1rem;
}
.club-btn {
  appearance: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  transition: background 200ms, transform 200ms var(--ease-out);
}
.club-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.club-btn.primary { background: var(--orange); border-color: var(--orange); color: #171A20; }
.club-btn.primary:hover { background: #ff9440; }
.club-btn[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 24px -4px var(--pink); }
.club :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

body.partying { overflow: hidden; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .routes .pulse { display: none; }
  .club-name span, .beam, .specks, .ball { animation: none !important; }
  .beam.b1 { transform: translateX(-50%) rotate(-14deg); }
  .beam.b2 { transform: translateX(-50%) rotate(12deg); }
  .beam.b3 { transform: translateX(-50%) rotate(-10deg); }
  .beam.b4 { transform: translateX(-50%) rotate(16deg); }
}

.doorman[hidden] { visibility: hidden; } /* keeps its space so the layout and routes never shift */
