:root {
  color-scheme: dark;
  --bg: #090c12;
  --panel: #0e1420;
  --text: #eef2f8;
  --muted: #9aa5b7;
  --quiet: #667287;
  --blue: #70a7ff;
  --blue-deep: #2d6fd4;
  --line: rgba(160, 177, 205, .14);
  --page-width: 1440px;
  --page-pad: clamp(22px, 4vw, 64px);
  --sans: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse at 75% 45%, rgba(35, 70, 127, .10), transparent 38%);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { color: white; background: rgba(63, 125, 222, .55); }

.page-shell { width: min(100%, var(--page-width)); margin: 0 auto; padding: 0 var(--page-pad); }
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 650; letter-spacing: -.035em; transition: color .2s ease; }
.brand:hover { color: var(--blue); }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px rgba(112, 167, 255, .48); }
.topbar-link { color: var(--muted); font-size: 12px; transition: color .2s ease; }
.topbar-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.topbar-link:hover { color: var(--text); }
.topbar-link:hover span { transform: translate(2px, -2px); }

.hero {
  min-height: min(760px, calc(100svh - 83px));
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(410px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding: clamp(58px, 8vh, 105px) 0 clamp(56px, 7vh, 86px);
}
.intro { position: relative; z-index: 1; padding-bottom: 10px; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 14px; letter-spacing: .01em; }
.name { margin: 0; font-size: clamp(82px, 10.1vw, 148px); line-height: .92; letter-spacing: -.095em; font-weight: 760; white-space: nowrap; }
.name span { color: var(--blue); }
.role { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: #d6dfed; font-size: 13px; }
.role-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); }
.bio { max-width: 530px; margin: 27px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.telegram-button {
  min-height: 52px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(126, 174, 255, .42);
  border-radius: 9px;
  background: #286fd7;
  color: white;
  font-size: 13px;
  font-weight: 620;
  box-shadow: 0 6px 20px rgba(23, 80, 165, .16);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  will-change: transform;
}
.telegram-button svg { width: 17px; height: 17px; fill: currentColor; }
.telegram-button .arrow { margin-left: 3px; opacity: .8; transition: transform .2s ease; }
.telegram-button:hover { background: #347fe9; border-color: rgba(171, 204, 255, .7); box-shadow: 0 10px 24px rgba(23, 80, 165, .25); transform: translateY(-2px); }
.telegram-button:hover .arrow { transform: translate(2px, -2px); }
.telegram-button:active { transform: translateY(0) scale(.985); }
.handle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; transition: color .18s ease; }
.handle:hover { color: var(--text); }
.copy-mark { color: var(--quiet); font-size: 15px; transition: transform .18s ease, color .18s ease; }
.handle:hover .copy-mark { color: var(--blue); transform: translateY(-2px); }

.interests { margin-top: clamp(46px, 6vh, 66px); }
.interests-title { margin: 0 0 14px; color: var(--quiet); font-size: 11px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: rgba(17, 24, 36, .55); color: #cbd4e2; font-size: 11px; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
.tag:hover { color: white; border-color: rgba(112, 167, 255, .42); background: rgba(40, 76, 128, .22); transform: translateY(-2px); }

.art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 380px;
  min-width: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.art-backdrop {
  position: absolute;
  z-index: -1;
  inset: 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 48%, rgba(35, 83, 171, .18), rgba(16, 37, 74, .07) 42%, transparent 72%);
  filter: blur(30px);
  animation: slow-breathe 9s ease-in-out infinite;
}
.galaxy-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  overflow: visible;
}
#particle-world {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
#particle-world:active { cursor: grabbing; }
#particle-world:focus-visible { outline: 1px solid rgba(112, 167, 255, .55); outline-offset: -8px; border-radius: 12px; }
.art-note { position: absolute; z-index: 2; right: 7%; bottom: 5%; display: flex; align-items: center; gap: 9px; color: #7f8ca2; font-size: 10px; pointer-events: none; }
.note-dot { width: 5px; height: 5px; border-radius: 50%; background: #6c9df0; opacity: .85; }

.about { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(300px, 1.7fr); gap: 35px; align-items: start; padding: 28px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-heading { color: #dce4f1; font-size: 12px; font-weight: 620; }
.about p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.footer { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--quiet); font-size: 10px; }
.footer a { color: #9eacc0; transition: color .2s ease; }
.footer a:hover { color: var(--blue); }

.toast { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translate(-50%, 10px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #111a29; color: var(--text); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.js-motion [data-reveal] { opacity: 0; transform: translateY(13px); }
.js-motion [data-reveal].is-visible { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .75, .25, 1); transition-delay: var(--delay, 0ms); }

@keyframes slow-breathe { 0%, 100% { opacity: .72; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.035); } }

@media (min-width: 1500px) {
  .hero { grid-template-columns: minmax(0, .92fr) minmax(560px, 1.08fr); }
}
@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 20px; }
  .name { font-size: clamp(75px, 10vw, 112px); }
  .bio { max-width: 465px; font-size: 14px; }
}
@media (max-width: 760px) {
  .topbar { height: 70px; }
  .hero { min-height: unset; grid-template-columns: 1fr; gap: 14px; padding: 62px 0 42px; }
  .name { font-size: clamp(76px, 17vw, 118px); }
  .role { margin-top: 22px; }
  .bio { max-width: 620px; margin-top: 22px; font-size: 13px; }
  .actions { margin-top: 25px; }
  .interests { margin-top: 40px; }
  .art { width: min(100%, 560px); min-height: 0; margin: 0 auto -12px; }
  .about { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 28px; }
}
@media (max-width: 430px) {
  :root { --page-pad: 18px; }
  .name { font-size: clamp(68px, 16.8vw, 82px); }
  .telegram-button { min-height: 49px; padding: 0 14px; }
  .tag { min-height: 34px; padding: 0 10px; font-size: 10px; }
  .art { width: 112%; min-height: 0; margin-left: -6%; }
  .footer { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
}

