/* vpxr — nullzone theme */
:root {
  --background: #0a0a0a;
  --background-elevated: #0f0f0f;
  --surface: #141414;
  --surface-hover: #1b1b1b;
  --foreground: #f4f4f4;
  --muted: #a1a1a1;
  --muted-foreground: #6e6e6e;
  --border: #ffffff14;
  --border-strong: #ffffff26;
  --brand-400: #e8e8e8;
  --brand-600: #d6d6d6;
  --accent-500: #8a8a8a;
  --success: #6fcf97;
  --success-bg: #6fcf971a;
  --warning: #d9b25f;
  --warning-bg: #d9b25f1a;
  --danger: #e5675f;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60rem 30rem at 50% -10rem, #ffffff0d, transparent 70%);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--foreground); color: var(--background); }

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: 48rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
main { flex: 1; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #2a2a2a, #0f0f0f);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  object-fit: cover;
}
.nav { display: none; align-items: center; gap: .25rem; }
.nav a, .menu-panel a {
  border-radius: .5rem;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover, .menu-panel a:hover { background: var(--surface); color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
@media (min-width: 768px) { .nav { display: flex; } .menu { display: none; } }

.menu { position: relative; }
.menu summary {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface); color: var(--foreground); }
.menu-panel {
  position: absolute;
  right: 0;
  margin-top: .5rem;
  width: 14rem;
  padding: .5rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: var(--background-elevated);
  box-shadow: 0 25px 50px -12px #000;
}
.menu-panel a { display: block; }
.menu-panel hr { margin: .4rem .25rem; border: 0; border-top: 1px solid var(--border); }
.nav-sep { width: 1px; height: 1rem; margin: 0 .35rem; background: var(--border-strong); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.btn-primary { background: var(--foreground); color: var(--background); }
.btn-primary:hover { background: #fff; }
.btn-primary:active { background: var(--brand-600); }
.btn-secondary { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-sm { height: 2rem; padding: 0 .75rem; }
.btn-lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:focus-visible, .nav a:focus-visible, .footer-links a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

/* ---------- shared bits ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .375rem 1rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}
.dot { width: .375rem; height: .375rem; border-radius: 999px; background: var(--success); flex: none; }
.dot-pulse { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.gradient-text {
  background: linear-gradient(100deg, var(--accent-500) 0%, var(--brand-400) 30%, #fff 45%, var(--brand-400) 60%, var(--accent-500) 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 2s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.mono { font-family: var(--font-mono); }

.card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 20px 25px -5px #00000033, 0 8px 10px -6px #00000033;
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--surface-hover) 70%, transparent); }

/* cursor glow: a soft spotlight inside the hovered card, plus a lit border on nearby cards */
.card-hover > * { position: relative; z-index: 1; }
.card-hover::before,
.card-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card-hover::before {
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), #ffffff0f, transparent 45%);
}
.card-hover::after {
  padding: 1px;
  background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 50%), #ffffff59, transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card-hover:hover::before { opacity: 1; }
.glow-group:hover .card-hover::after { opacity: 1; }
@media (hover: none) { .card-hover::before, .card-hover::after { display: none; } }

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, var(--surface-hover), var(--background-elevated));
  color: var(--foreground);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: var(--background);
  white-space: nowrap;
}
.badge-success { color: var(--success); background: var(--success-bg); border-color: #6fcf9733; }

.chip {
  border-radius: .5rem;
  border: 1px solid var(--border);
  background: var(--background-elevated);
  padding: .3rem .65rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero { padding: 4rem 0 2.5rem; text-align: center; }
@media (min-width: 640px) { .hero { padding: 5.5rem 0 3rem; } }
.hero-avatar {
  display: block;
  width: 6rem;
  height: 6rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 0 6px #ffffff08, 0 0 70px -10px #ffffff2e;
}
.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero p {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--muted);
  text-wrap: balance;
}
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-bottom: 4rem; max-width: 28rem; margin: 0 auto; }
.stat { padding: 1.25rem 1rem; text-align: center; }
.stat strong { display: block; font-variant-numeric: tabular-nums; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.stat span { font-size: .8rem; color: var(--muted); }
@media (max-width: 479px) { .stat strong { font-size: 1.35rem; } .stat span { font-size: .7rem; } }

/* ---------- sections ---------- */
.section { padding: 3rem 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .section { padding: 4rem 0; } }
.section-head { margin-bottom: 1.75rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.section-head h2 { margin: .5rem 0 0; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; letter-spacing: -.03em; }
.section-head p { margin: .75rem 0 0; color: var(--muted); max-width: 36rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }

.grid { display: grid; gap: 1rem; }
.grid > * { min-width: 0; }
.show-sm { display: none; }
@media (max-width: 479px) { .hide-sm { display: none; } .show-sm { display: inline; } }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.card p { margin: 0; font-size: .875rem; color: var(--muted); }
.card-row { display: flex; align-items: center; gap: .75rem; }
.card-row > div { min-width: 0; }
.stack { display: flex; flex-direction: column; height: 100%; }
.stack > .grow { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* projects */
.project-num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted-foreground); }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.placeholder {
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: linear-gradient(135deg, var(--background-elevated), var(--surface));
}
.placeholder .icon-tile { border: 0; background: var(--surface-hover); color: var(--muted-foreground); }

/* experience */
.subhead {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--foreground);
}
.subhead-past { margin-top: 2.5rem; color: var(--muted); }
.subhead .count {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .05rem .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
}
.community { padding: 1.1rem 1.25rem; }
.community-current {
  padding: 1.5rem;
  border-color: #6fcf9726;
  background:
    radial-gradient(30rem 10rem at 0% 0%, #6fcf970d, transparent 70%),
    color-mix(in srgb, var(--surface) 60%, transparent);
}
.community-current .card-row > div { flex: 1; }
.community-current h3 { font-size: 1.1rem; }
.community.community-current .role { flex-direction: column; align-items: flex-start; gap: .2rem; margin-top: 1.25rem; padding-top: 1.1rem; }
.community-current .role .eyebrow { font-size: .65rem; }
.community-current .role strong { font-size: .95rem; font-weight: 500; color: var(--foreground); }
.community h3 { font-size: .925rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community .meta { margin-top: .1rem; font-size: .8rem; color: var(--muted); }
.community .meta .sep { margin: 0 .35rem; color: var(--muted-foreground); }
.community .role { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
.community[hidden] { display: none; }

/* services */
.service { display: flex; flex-direction: column; gap: .75rem; }
.service .icon-tile { margin-bottom: .25rem; }
.service h3 { font-size: 1.05rem; }
.ticks { margin: auto 0 0; padding: .9rem 0 0; border-top: 1px solid var(--border); list-style: none; display: grid; gap: .45rem; }
.ticks li { display: flex; align-items: center; gap: .55rem; font-size: .825rem; color: var(--muted); }
.ticks li::before {
  content: "";
  flex: none;
  width: .9rem;
  height: .9rem;
  border-radius: 999px;
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fcf97' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .55rem no-repeat;
}
.cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background:
    radial-gradient(40rem 12rem at 100% 100%, #ffffff0a, transparent 70%),
    linear-gradient(135deg, var(--background-elevated), var(--surface));
  border-color: var(--border-strong);
}
.cta h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.cta p { margin-top: .35rem; font-size: .9rem; }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.25rem; } }

/* click-to-copy + toast */
.copy {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0 0 0 -.35rem;
  padding: .1rem .35rem;
  border: 0;
  border-radius: .35rem;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.copy:hover { background: var(--surface-hover); color: var(--foreground); }
.copy:focus-visible { outline: 2px solid var(--foreground); outline-offset: 1px; }
.copy .icon-check { display: none; color: var(--success); }
.copy.copied { color: var(--success); }
.copy.copied .icon-copy { display: none; }
.copy.copied .icon-check { display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  padding: .6rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border-strong);
  background: var(--background-elevated);
  box-shadow: 0 20px 40px -12px #000;
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 479px) { .toast { bottom: 5rem; } }

/* contact */
.brand-tile { transition: transform .2s var(--ease); }
.card-hover:hover .brand-tile { transform: scale(1.06) rotate(-3deg); }
.brand-discord { background: #5865f2; border-color: #7983f5; color: #fff; }
.brand-guns { background: #170f1d; border-color: #9b4dca55; }
.brand-guns img { width: 1.85rem; height: 1.85rem; }
.brand-img { overflow: hidden; background: #000; }
.brand-img img { width: 100%; height: 100%; object-fit: cover; }
.brand-roblox img { transform: scale(.85); }
.brand-tiktok img { transform: scale(1.9); }
.handle { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------- legal pages ---------- */
.legal-hero { padding: 4rem 0 2.5rem; }
.legal-hero h1 { margin: .75rem 0 0; font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.legal-hero .pill { margin-top: 1.25rem; }
.legal-intro { font-size: .95rem; line-height: 1.7; color: var(--muted); }
.legal-intro strong, .term strong { color: var(--foreground); font-weight: 600; }
.legal-toc { margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.legal-toc a { font-size: .75rem; }
.legal-toc a:hover { color: var(--foreground); border-color: var(--border-strong); }
.terms { padding: 1rem 0 5rem; }
.term { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.term h2 { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.term h2 .num { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.term p, .term li { font-size: .925rem; line-height: 1.75; color: var(--muted); }
.term p { margin: 0 0 1rem; }
.term p:last-child { margin-bottom: 0; }
.term ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.term li { position: relative; padding-left: 1.25rem; margin: .35rem 0; }
.term li::before { content: ""; position: absolute; left: .2rem; top: .75em; width: .35rem; height: 1px; background: var(--muted-foreground); }
.term a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.term a:hover { text-decoration-color: var(--foreground); }
.highlight { color: var(--foreground); background: var(--surface-hover); border-radius: .3rem; padding: .05rem .35rem; }
.callout {
  margin: 1.25rem 0;
  border-radius: .75rem;
  border: 1px solid #d9b25f33;
  background: var(--warning-bg);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--brand-400);
}
.callout-label { display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--warning); }
.callout-neutral { border-color: var(--border-strong); background: var(--surface); margin-top: 3rem; }
.callout-neutral .callout-label { color: var(--muted); }

/* ---------- click to enter ---------- */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.gate { display: none; }
html.gated .gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  background:
    radial-gradient(40rem 28rem at 50% 45%, #ffffff0b, transparent 70%),
    var(--background);
  --hole: 0px;
  -webkit-mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--hole), #000 calc(var(--hole) + 1px));
  transition: --hole 1s cubic-bezier(.7, 0, .2, 1) .15s;
}
html.gated .gate.leaving { --hole: 150vmax; }
html.locked { overflow: hidden; }
html.locked .animate-fade-in,
html.locked .player { animation-play-state: paused; }

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  transition: transform .5s var(--ease), opacity .4s var(--ease), filter .5s var(--ease);
}
.gate.leaving .gate-inner { transform: scale(1.12); opacity: 0; filter: blur(10px); }

.gate-mark { position: relative; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; }
.gate-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #2a2a2a, #0f0f0f);
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  box-shadow: 0 0 60px -10px #ffffff26;
  object-fit: cover;
  animation: gate-pop .8s cubic-bezier(.2, .9, .3, 1.3) both;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid #ffffff2e;
  animation: ripple 3s cubic-bezier(.2, .6, .3, 1) infinite;
}
.ring:nth-child(2) { animation-delay: 1s; }
.ring:nth-child(3) { animation-delay: 2s; }
.gate:hover .ring, .gate:focus-visible .ring { border-color: #ffffff4d; }

.gate-name {
  display: flex;
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
}
.gate-name span {
  background: linear-gradient(180deg, #fff, var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: letter-up .7s cubic-bezier(.2, .8, .2, 1) both;
}
.gate-name span:nth-child(1) { animation-delay: .15s; }
.gate-name span:nth-child(2) { animation-delay: .22s; }
.gate-name span:nth-child(3) { animation-delay: .29s; }
.gate-name span:nth-child(4) { animation-delay: .36s; }

.gate-hint {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fade-in .6s var(--ease) .7s both, breathe 2.4s ease-in-out 1.3s infinite;
}
.caret { margin-left: .15em; animation: blink 1s steps(1) infinite; }

@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes gate-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes letter-up { from { transform: translateY(.5em); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@keyframes breathe { 50% { color: var(--foreground); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- music player ---------- */
.player {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: .7rem;
  max-width: calc(100vw - 2rem);
  padding: .4rem .9rem .4rem .4rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--background-elevated) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -12px #000;
  animation: fade-in .5s var(--ease) .4s both;
}
.player-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  cursor: pointer;
  transition: transform .15s var(--ease), background .15s var(--ease);
}
.player-btn:hover { background: #fff; transform: scale(1.06); }
.player-btn:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
.player-btn .icon-play { margin-left: 2px; }
.player[data-state="playing"] .icon-play,
.player[data-state="paused"] .icon-pause { display: none; }
.player-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.player-title { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.player-time { font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.player-time::before { content: "·"; margin: 0 .35rem; }
.player::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--foreground), var(--accent-500));
  transform-origin: left;
  transform: scaleX(var(--progress, 0));
  transition: transform .25s linear;
}

.eq { display: flex; align-items: flex-end; gap: 2px; height: .9rem; flex: none; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: var(--success); opacity: .5; transition: opacity .3s; }
.player[data-state="playing"] .eq i { opacity: 1; animation: eq 1s ease-in-out infinite; }
.player[data-state="playing"] .eq i:nth-child(2) { animation-delay: -.4s; }
.player[data-state="playing"] .eq i:nth-child(3) { animation-delay: -.7s; }
.player[data-state="playing"] .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.player-volume {
  width: 4.5rem;
  height: 4px;
  margin: 0;
  accent-color: var(--foreground);
  cursor: pointer;
}
@media (max-width: 479px) { .player-volume { display: none; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding-bottom: 4rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; padding: 2rem 0; font-size: .875rem; color: var(--muted-foreground); }
.footer-inner p { margin: 0; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--foreground); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

/* ---------- motion ---------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .5; } }
.animate-fade-in { animation: fade-in .5s var(--ease) both; }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* avatar gif has lots of black padding: zoom in on the face inside the round frame */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35) translateY(-2%); }
