:root {
  color-scheme: dark;
  --bg: #05050b;
  --violet: #9a65ff;
  --purple: #6d42ff;
  --blue: #38baff;
  --muted: #89849e;
  --line: rgba(166, 130, 255, .22);
  font-family: Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100svh; overflow-x: hidden; color: #f7f4ff;
  background: radial-gradient(ellipse at 50% 42%, #15102a 0%, #090812 41%, #040409 78%);
}
#universe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .86; }
.ambient { position: fixed; z-index: 0; width: 38vw; height: 38vw; min-width: 230px; min-height: 230px; border-radius: 50%; filter: blur(85px); opacity: .17; pointer-events: none; }
.ambient-one { background: #6b28ff; left: -16vw; top: 18vh; }
.ambient-two { background: #087bd8; right: -18vw; bottom: 4vh; opacity: .12; }
.cat-ghost {
  position: fixed; z-index: 0; left: -8vw; top: 12vh; width: min(62vw, 720px); height: min(30vw, 340px);
  background: url("tero-cat.jpg") center / cover no-repeat; opacity: .085; filter: grayscale(1) contrast(1.2);
  mask-image: radial-gradient(ellipse at 42% 48%, #000 0%, transparent 72%); pointer-events: none;
}
.topbar {
  position: absolute; z-index: 3; top: 0; left: 0; width: 100%; padding: 28px clamp(22px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: center;
}
.wordmark { color: #f5f0ff; font: 700 17px Orbitron, sans-serif; letter-spacing: .34em; text-decoration: none; text-shadow: 0 0 18px rgba(149, 102, 255, .6); }
.wordmark span { color: var(--violet); }
.topbar-right { display: flex; align-items: center; gap: 9px; color: #aaa4bd; font: 500 8px Orbitron, sans-serif; letter-spacing: .18em; }
.topbar-right i { width: 1px; height: 12px; margin: 0 4px; background: rgba(185, 170, 220, .3); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #70d8ff; box-shadow: 0 0 10px #52bfff; animation: pulse 1.8s infinite; }
main { min-height: 100svh; width: 100%; position: relative; z-index: 1; display: grid; place-items: center; padding: 90px 18px 64px; isolation: isolate; }
.profile-card {
  position: relative; width: min(100%, 370px); padding: 20px 23px 17px; overflow: hidden; z-index: 2;
  border: 1px solid rgba(158, 119, 255, .32); border-radius: 26px;
  background: linear-gradient(145deg, rgba(19, 16, 35, .91), rgba(6, 7, 16, .93) 62%, rgba(12, 13, 29, .94));
  box-shadow: 0 0 0 1px rgba(79, 158, 255, .06), 0 24px 90px rgba(0,0,0,.68), 0 0 52px rgba(109,66,255,.17), inset 0 0 42px rgba(109,66,255,.045);
  backdrop-filter: blur(18px);
  animation: card-enter 1s cubic-bezier(.2,.8,.2,1) both;
}
.profile-card::before, .profile-card::after { content: ""; position: absolute; pointer-events: none; }
.profile-card::before { inset: 7px; border: 1px solid rgba(255,255,255,.035); border-radius: 20px; }
.profile-card::after { top: 0; left: 18%; width: 64%; height: 1px; background: linear-gradient(90deg, transparent, #a17aff, #49baff, transparent); box-shadow: 0 0 14px #986bff; }
.card-glow { position: absolute; width: 240px; height: 180px; top: 10px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(113,63,255,.2), transparent 68%); pointer-events: none; }
.card-topline, .card-footer { display: flex; align-items: center; position: relative; z-index: 1; color: #8e88a5; font: 500 8px Orbitron, sans-serif; letter-spacing: .2em; }
.card-topline { justify-content: space-between; padding: 2px 2px 0; }
.tiny-squares { color: #9b76ff; letter-spacing: .3em; }
.portrait-wrap { position: relative; height: 172px; margin: 17px auto 2px; display: grid; place-items: center; }
.portrait-aura { position: absolute; width: 156px; height: 156px; border: 1px solid rgba(149,104,255,.3); border-radius: 50%; box-shadow: 0 0 30px rgba(120,74,255,.16), inset 0 0 30px rgba(120,74,255,.12); animation: aura 9s linear infinite; }
.portrait-aura::before, .portrait-aura::after { content: ""; position: absolute; inset: 10px -8px; border: 1px solid rgba(70,184,255,.3); border-radius: 50%; transform: rotate(56deg); }
.portrait-aura::after { inset: -8px 12px; border-color: rgba(163,104,255,.22); transform: rotate(-42deg); }
.portrait-frame { position: relative; width: 128px; height: 128px; border-radius: 23px; padding: 3px; background: linear-gradient(145deg, #a16cff, #27204c 47%, #40baff); box-shadow: 0 0 28px rgba(123,78,255,.35), 0 0 55px rgba(63,177,255,.11); transform: rotate(-3deg); }
.portrait-main { display: block; width: 100%; height: 100%; border-radius: 20px; object-fit: cover; object-position: 50% 40%; filter: grayscale(1) contrast(1.06); }
.portrait-mini { position: absolute; bottom: 5px; left: calc(50% - 88px); width: 56px; height: 56px; border-radius: 50%; padding: 3px; background: linear-gradient(140deg, #4dbdff, #9260ff 75%); box-shadow: 0 0 24px rgba(98,112,255,.45); z-index: 2; }
.portrait-mini img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 55% 38%; filter: grayscale(1) contrast(1.05); }
.portrait-cross { position: absolute; color: #b8a0ff; text-shadow: 0 0 12px #986bff; }
.cross-one { top: 8px; right: calc(50% - 103px); font-size: 15px; }
.cross-two { bottom: 22px; right: calc(50% - 96px); color: #62caff; font-size: 12px; }
.identity { text-align: center; position: relative; z-index: 1; margin: 4px 0 16px; }
.eyebrow { display: flex; justify-content: center; align-items: center; gap: 9px; color: #9c90ba; font: 500 8px Orbitron, sans-serif; letter-spacing: .28em; }
.eyebrow span { width: 17px; height: 1px; background: linear-gradient(90deg, transparent, #9271ff); }
.eyebrow span:last-child { transform: rotate(180deg); }
h1 { margin: 8px 0 4px; font: 700 31px Orbitron, sans-serif; letter-spacing: .3em; padding-left: .3em; color: #fff; text-shadow: 0 0 18px rgba(157,111,255,.66), 0 0 34px rgba(76,173,255,.18); }
.identity p { margin: 0; color: #77718e; font: 500 8px Orbitron, sans-serif; letter-spacing: .34em; }
.link-list { display: grid; gap: 9px; position: relative; z-index: 1; }
.social-link {
  min-height: 59px; padding: 9px 13px; display: flex; align-items: center; gap: 13px; text-decoration: none; color: #f7f5ff;
  border: 1px solid rgba(154,126,220,.17); border-radius: 12px;
  background: linear-gradient(100deg, rgba(28,25,49,.82), rgba(13,16,30,.83));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.social-link:hover, .social-link:focus-visible { transform: translateY(-2px); border-color: rgba(114,181,255,.7); box-shadow: 0 7px 25px rgba(71,93,255,.16), inset 0 0 18px rgba(114,85,255,.08); background: linear-gradient(100deg, rgba(42,31,71,.92), rgba(13,26,47,.9)); outline: none; }
.social-icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(131,89,255,.15); border: 1px solid rgba(155,111,255,.25); }
.social-icon svg { width: 17px; height: 17px; fill: #b79aff; filter: drop-shadow(0 0 5px rgba(152,116,255,.45)); }
.social-icon.youtube { background: rgba(65,148,255,.12); border-color: rgba(65,177,255,.24); }
.social-icon.youtube svg { fill: #69c7ff; }
.social-icon.channel { background: rgba(119,87,255,.12); }
.link-copy { min-width: 0; display: grid; gap: 4px; }
.link-copy small { color: #938aa9; font: 500 8px Orbitron, sans-serif; letter-spacing: .18em; }
.link-copy strong { color: #f2efff; font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: .02em; }
.link-arrow { margin-left: auto; color: #8e79ca; font-size: 19px; transition: transform .25s ease, color .25s ease; }
.social-link:hover .link-arrow { transform: translate(2px,-2px); color: #73caff; }
.card-footer { gap: 10px; margin-top: 17px; font-size: 7px; letter-spacing: .15em; }
.footer-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(137,109,205,.05), rgba(115,170,255,.4), rgba(137,109,205,.05)); }
.bottom-note { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: rgba(164,153,192,.52); white-space: nowrap; font: 500 7px Orbitron, sans-serif; letter-spacing: .3em; }
.bottom-note span { color: #8c6cff; font-size: 10px; }
.orbit { position: absolute; z-index: 0; pointer-events: none; left: 50%; top: 50%; border: 1px solid rgba(134,91,255,.24); transform: translate(-50%,-50%); }
.orbit-a { width: min(88vw, 690px); height: min(88vw, 690px); clip-path: polygon(50% 0, 93% 19%, 100% 50%, 82% 91%, 50% 100%, 12% 82%, 0 50%, 18% 12%); animation: spin 48s linear infinite; }
.orbit-b { width: min(72vw, 560px); height: min(72vw, 560px); border-color: rgba(62,171,255,.18); clip-path: polygon(50% 0, 100% 34%, 83% 100%, 17% 100%, 0 34%); transform: translate(-50%,-50%) rotate(23deg); animation: spin-rev 39s linear infinite; }
.orbit-c { width: min(104vw, 820px); height: min(50vw, 390px); border-color: rgba(130,90,255,.19); border-radius: 50%; transform: translate(-50%,-50%) rotate(-32deg); animation: drift 22s ease-in-out infinite alternate; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin-rev { to { transform: translate(-50%,-50%) rotate(-337deg); } }
@keyframes drift { from { transform: translate(-50%,-50%) rotate(-36deg) scale(1); } to { transform: translate(-50%,-50%) rotate(-24deg) scale(1.08); } }
@keyframes aura { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 3px #52bfff; } }
@keyframes card-enter { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(6px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@media (min-width: 760px) {
  main { padding-top: 80px; padding-bottom: 70px; }
  .profile-card { width: 390px; padding: 22px 25px 18px; }
  .portrait-wrap { height: 180px; }
}
@media (max-width: 420px) {
  .topbar { padding: 22px 19px; }
  .topbar-right { font-size: 7px; gap: 7px; letter-spacing: .12em; }
  main { padding: 78px 15px 58px; }
  .profile-card { padding: 17px 17px 15px; border-radius: 22px; }
  .portrait-wrap { height: 160px; margin-top: 13px; }
  .portrait-aura { width: 145px; height: 145px; }
  .portrait-frame { width: 119px; height: 119px; }
  .portrait-mini { left: calc(50% - 83px); width: 51px; height: 51px; }
  .social-link { min-height: 56px; }
}
@media (max-height: 690px) {
  main { padding-top: 72px; padding-bottom: 48px; }
  .profile-card { padding-top: 14px; padding-bottom: 12px; }
  .portrait-wrap { height: 139px; margin-top: 8px; }
  .portrait-aura { width: 126px; height: 126px; }
  .portrait-frame { width: 108px; height: 108px; }
  .portrait-mini { width: 45px; height: 45px; left: calc(50% - 75px); }
  .identity { margin-bottom: 11px; }
  .social-link { min-height: 52px; }
  .link-list { gap: 7px; }
  .card-footer { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
