/* ==========================================================================
   TOKENS
   ========================================================================== */
:root{
  --bg: #08070c;
  --surface: #14111c;
  --surface-2: #1c1826;
  --ink: #f2ede2;
  --ink-muted: #948da0;
  --magenta: #ff2d78;
  --violet: #7c3aed;
  --line: rgba(242,237,226,0.10);

  --font-display: "Anton", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(.16,.84,.44,1);
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; background: var(--bg); }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

button{ font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ==========================================================================
   INTRO / WELCOME GATE
   ========================================================================== */
.intro{
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: #060509; overflow: hidden; cursor: pointer;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.intro.is-leaving{ opacity: 0; visibility: hidden; pointer-events: none; }

.intro__glow{
  position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,45,120,0.22), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(124,58,237,0.26), transparent 55%);
  animation: introdrift 10s ease-in-out infinite alternate;
}
@keyframes introdrift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-2%, 2%) scale(1.08); }
}

.intro__content{
  position: relative; z-index: 1; text-align: center;
  padding: 24px; max-width: 640px;
  animation: introin .9s var(--ease) both;
}
@keyframes introin{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

.intro__eyebrow{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.35em;
  color: var(--magenta); text-transform: uppercase; margin-bottom: 18px;
}
.intro__title{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 7vw, 76px); line-height: 1; text-transform: uppercase;
  letter-spacing: 0.01em; white-space: pre-line;
  background: linear-gradient(115deg, var(--ink) 40%, var(--magenta) 75%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro__message{
  margin-top: 18px; font-size: 15px; color: var(--ink-muted); line-height: 1.6;
}

.intro__hint{
  margin-top: 40px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--magenta);
  animation: hintpulse 1.8s ease-in-out infinite;
}
@keyframes hintpulse{
  0%,100%{ opacity: 0.5; }
  50%{ opacity: 1; }
}

/* Lock scroll on the site behind the gate while it's open */
body.intro-open{ overflow: hidden; height: 100vh; }

/* ==========================================================================
   AMBIENT LAYERS
   ========================================================================== */
.grain{
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow{
  position: fixed; z-index: 0; border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: 0.35; will-change: transform;
}
.glow--a{
  top: -10%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
}
.glow--b{
  bottom: -10%; right: -15%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, var(--violet), transparent 70%);
}

/* ==========================================================================
   DOT NAV
   ========================================================================== */
.dotnav{
  position: fixed; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 18px;
}
.dotnav__dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-muted); opacity: 0.4;
  position: relative; transition: all .3s var(--ease);
}
.dotnav__dot span{
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em;
  white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease);
  color: var(--ink-muted);
}
.dotnav__dot:hover span{ opacity: 1; }
.dotnav__dot.active{
  background: var(--magenta); opacity: 1;
  box-shadow: 0 0 0 4px rgba(255,45,120,0.18);
}

/* ==========================================================================
   SHARED SECTION STYLES
   ========================================================================== */
.section{
  position: relative; z-index: 1;
  min-height: 100vh; width: 100%;
  padding: clamp(24px, 6vw, 80px) clamp(24px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}

.eyebrow{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em;
  color: var(--magenta); text-transform: uppercase; margin-bottom: 18px;
}

.section__title{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: 0.01em;
  text-transform: uppercase; margin-bottom: 40px;
}

/* scroll reveal */
.reveal{
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero{
  align-items: flex-start; justify-content: center; padding-top: 0; padding-bottom: 0;
  overflow: hidden;
}
.hero__bg{
  position: absolute; inset: -10% -5% -5% -5%; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255,45,120,0.20), transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(124,58,237,0.24), transparent 55%),
    linear-gradient(180deg, #0a0810 0%, #08070c 60%, #060509 100%);
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__bg.has-image::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,7,12,0.35) 0%, rgba(8,7,12,0.55) 55%, rgba(8,7,12,0.95) 100%);
}
.hero__content{ max-width: 900px; }

.hero__title{
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 13vw, 168px); line-height: 0.88;
  text-transform: uppercase; letter-spacing: 0.01em; white-space: pre-line;
  background: linear-gradient(115deg, var(--ink) 40%, var(--magenta) 75%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform;
}

.hero__tagline{
  margin-top: 22px; font-family: var(--font-mono); font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted);
}

.scrollcue{
  position: absolute; bottom: 40px; left: clamp(24px, 8vw, 120px);
  display: flex; align-items: center; gap: 10px;
}
.scrollcue span{
  width: 1px; height: 36px; background: linear-gradient(var(--magenta), transparent);
  display: block; animation: scrolldown 1.8s ease-in-out infinite;
}
.scrollcue em{
  font-style: normal; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.25em; color: var(--ink-muted);
}
@keyframes scrolldown{
  0%{ transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%{ transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid{
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(32px, 6vw, 90px);
  align-items: center; max-width: 1200px; margin: 0 auto; width: 100%;
}
@media (max-width: 860px){ .about__grid{ grid-template-columns: 1fr; } }

.about__photo{
  aspect-ratio: 4/5; border-radius: 18px; overflow: hidden;
  background: linear-gradient(155deg, var(--surface-2), var(--bg) 70%),
              radial-gradient(circle at 30% 20%, rgba(255,45,120,0.35), transparent 60%),
              radial-gradient(circle at 80% 90%, rgba(124,58,237,0.35), transparent 60%);
  border: 1px solid var(--line);
  background-size: cover; background-position: center;
}

.about__paragraphs p{
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.7; color: var(--ink-muted);
  margin-bottom: 16px; max-width: 52ch;
}

.discord-card{
  margin-top: 32px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; max-width: 380px;
}
.discord-card__top{ display: flex; align-items: center; gap: 14px; }
.discord-card__avatarwrap{ position: relative; flex-shrink: 0; }
.discord-card__avatar{
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); border: 1px solid var(--line);
}
.discord-card__statusdot{
  position: absolute; bottom: -1px; right: -1px; width: 15px; height: 15px;
  border-radius: 50%; border: 3px solid var(--surface); background: var(--ink-muted);
}
.discord-card__statusdot.online{ background: #23a55a; }
.discord-card__statusdot.idle{ background: #f0b232; }
.discord-card__statusdot.dnd{ background: #f23f42; }
.discord-card__statusdot.offline{ background: #80848e; }
.discord-card__statusdot.online, .discord-card__statusdot.idle{
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(35,165,90,0.4); }
  50%{ box-shadow: 0 0 0 4px rgba(35,165,90,0); }
}
.discord-card__id{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.discord-card__tag{ font-weight: 600; font-size: 15px; }
.discord-card__status{
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
}
.discord-card__activity{
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-muted); display: none;
}
.discord-card__activity.show{ display: block; }

.links{ margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.links a{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px;
  transition: all .25s var(--ease);
}
.links a:hover{ border-color: var(--magenta); color: var(--magenta); transform: translateY(-2px); }

/* ==========================================================================
   JOURNEY
   ========================================================================== */
.journey{ max-width: 900px; margin: 0 auto; width: 100%; }

.timeline{ position: relative; padding-left: 32px; }
.timeline__line{
  position: absolute; left: 3px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.timeline__fill{
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(var(--magenta), var(--violet));
  transition: height .1s linear;
}
.timeline__items{ display: flex; flex-direction: column; gap: 56px; }

.timeline__item{ position: relative; }
.timeline__item::before{
  content: ""; position: absolute; left: -32px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink-muted);
  transition: all .4s var(--ease);
}
.timeline__item.is-visible::before{
  border-color: var(--magenta); background: var(--magenta);
  box-shadow: 0 0 0 5px rgba(255,45,120,0.18);
}

.timeline__year{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  color: var(--magenta); margin-bottom: 6px; display: block;
}
.timeline__title{
  font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase; margin-bottom: 8px;
}
.timeline__desc{ color: var(--ink-muted); font-size: 15px; line-height: 1.6; max-width: 55ch; }

/* ==========================================================================
   MUSIC PLAYER
   ========================================================================== */
.player{
  position: fixed; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  z-index: 60; display: flex; align-items: center; gap: 0;
}

.player__toggle{
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
  position: relative; z-index: 2;
}
.player__toggle:hover{ border-color: var(--magenta); transform: scale(1.05); }

.player__bars{ display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.player__bars i{
  width: 3px; border-radius: 2px; background: var(--ink-muted);
  height: 4px; transition: background .25s var(--ease);
}
.player.is-playing .player__bars i{ background: var(--magenta); }
.player.is-playing .player__bars i:nth-child(1){ animation: eq 0.9s ease-in-out infinite; }
.player.is-playing .player__bars i:nth-child(2){ animation: eq 0.7s ease-in-out infinite .1s; }
.player.is-playing .player__bars i:nth-child(3){ animation: eq 1.1s ease-in-out infinite .05s; }
.player.is-playing .player__bars i:nth-child(4){ animation: eq 0.8s ease-in-out infinite .15s; }
@keyframes eq{
  0%,100%{ height: 4px; }
  50%{ height: 16px; }
}

.player__panel{
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 100px; height: 48px;
  padding: 0 20px 0 24px; margin-left: -24px; padding-left: 44px;
  max-width: 0; overflow: hidden; opacity: 0;
  transition: max-width .4s var(--ease), opacity .3s var(--ease), padding .4s var(--ease);
  white-space: nowrap;
}
.player:hover .player__panel,
.player:focus-within .player__panel{
  max-width: 280px; opacity: 1;
}

.player__track{ display: flex; flex-direction: column; line-height: 1.3; }
.player__label{ font-size: 12px; font-weight: 600; }
.player__hint{ font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--ink-muted); }

.player__volrow{ display: flex; align-items: center; gap: 8px; }
.player__mute{ font-size: 14px; opacity: 0.8; flex-shrink: 0; }
.player__mute:hover{ opacity: 1; }

.player__vol{
  -webkit-appearance: none; appearance: none; width: 90px; height: 3px;
  border-radius: 2px; background: var(--line); outline: none; flex-shrink: 0;
}
.player__vol::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--magenta); cursor: pointer;
  border: 2px solid var(--bg);
}
.player__vol::-moz-range-thumb{
  width: 12px; height: 12px; border-radius: 50%; background: var(--magenta);
  cursor: pointer; border: 2px solid var(--bg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{
  position: relative; z-index: 1; text-align: center; padding: 40px 24px 60px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink-muted); text-transform: uppercase;
}
