/* ============================================================
   @2i60 — self-hosted Satoshi (Circular/SF-adjacent geometric sans)
   Files live in assets/fonts/ so nothing external is ever requested.
   Apple devices fall back to San Francisco before Satoshi loads.
   ============================================================ */

@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-900.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

:root {
  --red: #ff2e2e;
  --red-dim: #7a1414;
  --black: #000000;
  --panel: #0c0c0d;
  --line: #1c1c1e;
  --text: #f4f4f5;
  --text-dim: #6b6b70;
  --status-online: #23a55a;
  --status-idle: #f0b232;
  --status-dnd: var(--red);
  --status-offline: #4a4a4e;
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  min-height: 100%;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (hover: hover) and (pointer: fine) {
  /* kill the native cursor everywhere, including the pointer that
     links/buttons normally swap in — the custom ring/dot replaces it */
  html, body, * { cursor: none; }
}

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

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

/* ---------- layout ---------- */

body {
  display: flex;
  justify-content: center;
  padding: clamp(56px, 14vh, 140px) 24px 80px;
}

.wrap {
  width: 100%;
  max-width: 560px;
}

/* Each top-level block fades up on load, gently staggered. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s var(--ease) forwards;
}
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
.reveal:nth-child(5) { animation-delay: 0.45s; }
.reveal:nth-child(6) { animation-delay: 0.55s; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---------- header ---------- */

.header {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 56px;
}

.avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  flex: none;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel);
  border: 1px solid var(--line);
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 4px solid var(--black);
  background: var(--status-offline);
  transition: background 0.3s ease;
}
.status-dot.status-online { background: var(--status-online); }
.status-dot.status-idle { background: var(--status-idle); }
.status-dot.status-dnd { background: var(--status-dnd); }
.status-dot.status-offline { background: var(--status-offline); }



.identity { min-width: 0; }

.display-name {
  font-size: clamp(40px, 10vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red);
}

/* ---------- bio ---------- */

.bio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
}

.bio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
}

.bio-icon {
  width: 15px;
  height: 15px;
  fill: var(--red);
  flex: none;
}

.bio-mail {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.bio-mail:hover { color: var(--accent-2); }

/* ---------- discord presence ---------- */

.discord-presence {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 44px;
  transition: opacity 0.4s ease;
}

.discord-presence.discord-hidden { opacity: 0.4; }

.discord-activity-art-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-activity-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

/* Discord avatar decoration overlays the presence avatar, slightly
   oversized like it renders in the Discord client */
.avatar-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 130%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: none;
  z-index: 1;
}


.discord-glyph {
  width: 18px;
  height: 18px;
  fill: var(--text-dim);
}

.discord-right { flex: 1; min-width: 0; }

.discord-username {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-activity-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.discord-copy {
  flex: none;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s var(--ease);
}
.discord-copy:hover { color: var(--red); transform: scale(1.1); }
.discord-copy svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- link index — big text, brand color + icon on hover ---------- */

.index {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.link-item {
  --brand: var(--red);
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.link-item .label { flex: none; }

/* icon hides until hover, then pops in with a spin-settle */
.link-item svg.brand {
  width: 30px;
  height: 30px;
  flex: none;
  align-self: center;
  fill: var(--brand);
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
  transition: opacity 0.3s var(--ease), transform 0.45s var(--ease);
}

.link-item:hover {
  color: var(--brand);
  padding-left: 12px;
}
.link-item:hover svg.brand {
  opacity: 1;
  transform: none;
}

/* platform brand colors */
.link-item[data-platform="twitter"]   { --brand: #1da1f2; }
.link-item[data-platform="instagram"] { --brand: #e4405f; }
.link-item[data-platform="telegram"]  { --brand: #26a5e4; }
.link-item[data-platform="youtube"]   { --brand: #ff0000; }
.link-item[data-platform="tiktok"]    { --brand: #FE2C55; }
.link-item[data-platform="github"]    { --brand: #f4f4f5; }
.link-item[data-platform="spotify"]   { --brand: #1db954; }
.link-item[data-platform="steam"]     { --brand: #66c0f4; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  background: var(--red);
  color: #000;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 20px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: none;
}

/* ---------- footer ---------- */

.footer-note {
  margin-top: 48px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

/* ---------- background animation: drifting red dot grid ---------- */
/* One oversized fixed layer moved with translate3d keyframes only —
   compositor-friendly, no repaints, no gradients. */

.bg-drift {
  position: fixed;
  top: 0;
  left: 0;
  width: 200vw;
  height: 200vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ff2e2e' fill-opacity='0.16'/%3E%3C/svg%3E");
  animation: drift 60s linear infinite;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-56px, -56px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-drift { animation: none; }
}

/* ---------- audio toggle ---------- */

.audio-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: inherit;
  z-index: 20;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.audio-toggle:hover { color: var(--red); border-color: var(--red-dim); }
.audio-toggle svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- custom cursor: single easing ring + instant dot ---------- */

.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  will-change: transform;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1.5px solid var(--red);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), margin 0.2s var(--ease), background 0.2s ease;
}

.cursor-ring.is-hover {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(255, 46, 46, 0.08);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--red);
}

@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}
