/*
  VOICE   hushed, ceremonial, precise
  IDEA    a reliquary seen by candlelight: a silver-edged glass case in a dark nave
  PICTURE the haloed portrait, the turning sigil, dust in slow beams of light
  COLOUR  black, silver, muted white; one cool glow
  TYPE    Cormorant Garamond for names, Inter for text, JetBrains Mono for small marks
*/

:root {
  --bg: #050506;
  --ink: #e9e7e2;
  --muted: #8d8b88;
  --accent: #c9ccd3;
  --glow: #dfe6ff;
  --glow-k: .6;
  --f-display: "Cormorant Garamond";
  --f-body: "Inter";
  --f-mono: "JetBrains Mono";
  --glass: rgba(14, 14, 18, .42);
  --line: rgba(230, 232, 240, .09);
  --line-2: rgba(230, 232, 240, .16);
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; min-width: 0; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--f-body), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100svh;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
img { display: block; }
::selection { background: rgba(220, 226, 255, .22); color: #fff; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* ═════════ atmosphere ═════════ */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmos::before { /* the faint pool of light the card sits in */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 32% at 50% 38%, color-mix(in srgb, var(--glow) 9%, transparent), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(255,255,255,.035), transparent 70%);
}
.bg-media { position: absolute; inset: 0; }
.bg-media img, .bg-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: var(--media-filter, none); transform: scale(1.04);
}
.bg-media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--media-dark, .55)); }
.bg-media .mist { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bg-media.is-mist::after { display: none; }
#void { position: absolute; inset: 0; width: 100%; height: 100%; }

.rays { position: absolute; inset: -10% -20% 0; mix-blend-mode: screen; opacity: .9; }
.rays i {
  position: absolute; top: -20%; left: 50%; width: 18vmax; height: 140%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--glow) 14%, transparent), transparent 75%);
  filter: blur(28px); transform-origin: 50% 0;
  animation: sway 22s ease-in-out infinite alternate;
}
.rays i:nth-child(1) { --r: 14deg; margin-left: -22vmax; animation-duration: 26s; }
.rays i:nth-child(2) { --r: -6deg; width: 10vmax; opacity: .7; animation-duration: 19s; animation-delay: -6s; }
.rays i:nth-child(3) { --r: -22deg; margin-left: 12vmax; width: 14vmax; opacity: .55; animation-duration: 31s; animation-delay: -12s; }
@keyframes sway { from { transform: rotate(calc(var(--r) - 4deg)); opacity: .45; } to { transform: rotate(calc(var(--r) + 4deg)); opacity: 1; } }

.vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0,0,0,.82) 100%); }
.grain {
  position: absolute; inset: -100px; opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0) } 20% { transform: translate(-40px,22px) } 40% { transform: translate(28px,-36px) }
  60% { transform: translate(-18px,-48px) } 80% { transform: translate(44px,30px) } 100% { transform: translate(0,0) }
}
.no-rays .rays, .no-grain .grain, .no-vignette .vignette { display: none; }

/* ═════════ the veil (click to enter) ═════════ */
.veil {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: radial-gradient(70% 60% at 50% 48%, rgba(10,10,13,.55), rgba(3,3,4,.96));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity 1.4s var(--ease), visibility 0s 1.4s, filter 1.4s var(--ease);
}
.veil.gone { opacity: 0; visibility: hidden; filter: blur(12px); }
.veil-btn {
  position: relative; display: grid; place-items: center;
  width: min(300px, 74vw); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer;
}
.sigil { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform 1.2s var(--ease); }
.veil-btn:hover .sigil { transform: scale(1.04); }
.sig-line { fill: none; stroke: var(--accent); stroke-width: .6; opacity: .55; }
.sig-line.faint { opacity: .22; }
.sig-dot { fill: var(--glow); filter: drop-shadow(0 0 6px var(--glow)); }
.sig-text { fill: var(--muted); font: 400 10.5px var(--f-mono), ui-monospace, monospace; letter-spacing: .05em; text-transform: lowercase; }
.sig-spin-slow { transform-origin: 150px 150px; animation: spin 90s linear infinite; }
.sig-spin-rev { transform-origin: 150px 150px; animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.no-sigil .sigil { display: none; }
.veil-word {
  position: relative; font: 300 italic clamp(34px, 7vw, 46px)/1 var(--f-display), Georgia, serif;
  letter-spacing: .02em; color: var(--ink);
  text-shadow: 0 0 calc(24px * var(--glow-k)) color-mix(in srgb, var(--glow) 55%, transparent);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .55; } }
.veil-sub {
  margin: 0; color: var(--muted); font: 400 12px/1.4 var(--f-mono), ui-monospace, monospace;
  letter-spacing: .08em; text-align: center; padding: 0 24px;
}

/* ═════════ stage ═════════ */
.stage {
  position: relative; z-index: 2; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: max(28px, 5vh) 16px 28px; perspective: 1400px;
}
.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; width: min(460px, 100%);
  padding: 92px 30px 26px; margin-top: 62px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 40%), var(--glass);
  border: 1px solid var(--line); border-radius: 26px;
  backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.07);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  text-align: center;
}
.card::before { /* silver edge that is brighter at the top, like rim light */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(235,238,248,.42), rgba(235,238,248,.06) 35%, rgba(235,238,248,.02) 70%, rgba(235,238,248,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-sheen { /* light that follows the pointer across the glass */
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255,255,255,.06), transparent 60%);
}

/* entry choreography */
.is-veiled .stage > * { opacity: 0; }
.rise { animation: rise 1.6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes rise { from { opacity: 0; translate: 0 18px; filter: blur(8px); } to { opacity: 1; translate: none; filter: none; } }
.card > .rise { animation-duration: 1.4s; }

/* ═════════ avatar ═════════ */
.avatar {
  position: absolute; left: 50%; top: 0; width: 132px; height: 132px;
  transform: translate(-50%, -50%) translateZ(40px);
}
#avatarImg {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: #0b0b0e; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px rgba(5,5,6,.75), 0 18px 50px rgba(0,0,0,.7);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-5px); } }
.avatar-overlay { position: absolute; z-index: 3; inset: -18%; width: 136%; height: 136%; pointer-events: none; object-fit: contain; }
.deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco svg { position: absolute; overflow: visible; }

/* orbit */
.deco-orbit svg { inset: -22px; width: calc(100% + 44px); height: calc(100% + 44px); animation: spin 40s linear infinite; }
.deco-orbit .o1 { fill: none; stroke: var(--accent); stroke-width: .7; opacity: .45; stroke-dasharray: 1 5.2; }
.deco-orbit .o2 { fill: none; stroke: var(--accent); stroke-width: .5; opacity: .2; }
.deco-orbit .moon { fill: var(--ink); filter: drop-shadow(0 0 5px var(--glow)); }
/* halo */
.deco-halo::before, .deco-halo::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  box-shadow: 0 0 calc(40px * var(--glow-k) + 10px) color-mix(in srgb, var(--glow) 40%, transparent), inset 0 0 22px color-mix(in srgb, var(--glow) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  animation: halo 5s ease-in-out infinite;
}
.deco-halo::after { inset: -30px; opacity: .4; animation-delay: -2.5s; border-color: color-mix(in srgb, var(--accent) 14%, transparent); }
@keyframes halo { 50% { transform: scale(1.05); opacity: .35; } }
/* eclipse */
.deco-eclipse::before {
  content: ""; position: absolute; inset: -16px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--glow) 70%, transparent) 12%, transparent 26%, transparent 50%, color-mix(in srgb, var(--accent) 50%, transparent) 62%, transparent 76%);
  filter: blur(9px); animation: spin 14s linear infinite;
}
.deco-eclipse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: #050506; }
/* bow (lace frame + satin ribbon, jirai kei mood) */
.deco-bow { z-index: 3; --b1: #2b2b32; --b2: #0a0a0c; --b3: #3a3a44; --edge: #d6d9e0; --lace: #c9ccd3; }
.deco-bow.bow-pink { --b1: #f6c9d8; --b2: #d98aa6; --b3: #ffe3ec; --edge: #fff3f7; --lace: #f1bfd0; }
.deco-bow.bow-white { --b1: #ffffff; --b2: #cfd2d9; --b3: #f4f5f8; --edge: #ffffff; --lace: #e9e7e2; }
.deco-bow svg { inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); }
.deco-bow .s1 { stop-color: var(--b1); } .deco-bow .s2 { stop-color: var(--b2); } .deco-bow .s3 { stop-color: var(--b3); }
.deco-bow .lace circle { fill: none; stroke: var(--lace); stroke-width: .7; opacity: .5; }
.deco-bow .lace-dots circle { fill: var(--lace); opacity: .45; }
.deco-bow .ribbon { fill: url(#satin); stroke: var(--edge); stroke-width: .8; stroke-linejoin: round; }
.deco-bow .fold { fill: none; stroke: var(--edge); stroke-width: .6; opacity: .45; stroke-linecap: round; }
.deco-bow .bow { transform-box: fill-box; transform-origin: 50% 30%; animation: bowsway 6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)) drop-shadow(0 0 calc(8px * var(--glow-k)) color-mix(in srgb, var(--glow) 30%, transparent)); }
@keyframes bowsway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.deco-bow .chain { stroke: var(--lace); stroke-width: .8; stroke-dasharray: 1.4 1.6; opacity: .7; }
.deco-bow .heart { fill: url(#satin); stroke: var(--edge); stroke-width: .7; transform-box: fill-box; transform-origin: 50% 0; animation: bowsway 4.5s ease-in-out infinite reverse; }
.deco-bow ~ #avatarImg { box-shadow: 0 0 0 4px rgba(5,5,6,.85), 0 18px 50px rgba(0,0,0,.7); }

/* knife */
.deco-knife { z-index: 3; }
.deco-knife svg { inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); }
.deco-knife .knife { transform-box: fill-box; transform-origin: 30% 50%; animation: knifefloat 7s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0,0,0,.7)) drop-shadow(0 0 calc(7px * var(--glow-k)) color-mix(in srgb, var(--glow) 35%, transparent)); }
@keyframes knifefloat { 50% { transform: translate(1.5px, -2px) rotate(-1.5deg); } }
.deco-knife .k-blade { fill: url(#blade); stroke: #fff; stroke-opacity: .55; stroke-width: .5; }
.deco-knife .k-line { stroke: #6f747e; stroke-width: .6; opacity: .6; }
.deco-knife .k-guard { fill: #c9ccd3; stroke: #fff; stroke-opacity: .4; stroke-width: .4; }
.deco-knife .k-grip { fill: url(#grip); stroke: #c9ccd3; stroke-opacity: .5; stroke-width: .5; }
.deco-knife .k-wrap { stroke: #c9ccd3; stroke-width: .5; opacity: .35; }
.deco-knife .k-pommel { fill: #c9ccd3; stroke: #fff; stroke-opacity: .4; stroke-width: .4; }
.deco-knife .k-glint { animation: glint 5s ease-in-out infinite; }
@keyframes glint { 0%, 55% { transform: translateX(0); } 85%, 100% { transform: translateX(86px); } }

/* sigil */
.deco-sigil svg { inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); animation: spin 60s linear infinite; }
.deco-sigil path, .deco-sigil circle { fill: none; stroke: var(--accent); stroke-width: .55; opacity: .38; }

.status-dot {
  position: absolute; z-index: 4; right: 9px; bottom: 9px; width: 20px; height: 20px; border-radius: 50%;
  border: 4px solid #0a0a0d; background: var(--s, #747f8d);
  box-shadow: 0 0 12px color-mix(in srgb, var(--s, #747f8d) 70%, transparent);
}

/* ═════════ identity ═════════ */
.ident { display: grid; justify-items: center; gap: 8px; }
.name {
  margin: 0; font: 500 clamp(44px, 11vw, 62px)/1 var(--f-display), Georgia, serif; letter-spacing: .01em;
  background: linear-gradient(100deg, var(--muted) 0%, var(--ink) 30%, #fff 46%, var(--accent) 54%, var(--ink) 70%, var(--muted) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(18px * var(--glow-k)) color-mix(in srgb, var(--glow) 45%, transparent));
  animation: shimmer 9s ease-in-out infinite;
  text-wrap: balance; overflow-wrap: anywhere; padding: 0 .06em .06em;
}
@keyframes shimmer { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.badge {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: var(--accent); background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s, color .35s, box-shadow .35s;
}
.badge .ic, .badge img { width: 15px; height: 15px; }
.badge:hover, .badge:focus-visible { transform: translateY(-2px); color: #fff; border-color: var(--line-2); box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 22%, transparent); }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  font: 400 11px/1.2 var(--f-mono), ui-monospace, monospace; letter-spacing: .03em; color: var(--ink);
  background: rgba(12,12,16,.92); border: 1px solid var(--line-2); opacity: 0;
  transition: opacity .25s, transform .25s var(--ease); z-index: 5;
}
.badge:hover .tip, .badge:focus-visible .tip, .social:hover .tip, .social:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.tagline { margin: 2px 0 0; color: var(--muted); font: 400 12px/1.4 var(--f-mono), ui-monospace, monospace; letter-spacing: .04em; }
.tagline:empty { display: none; }

/* ═════════ bio ═════════ */
.bio {
  min-height: 2.9em; margin: 18px auto 0; max-width: 34ch;
  font: 400 italic 19px/1.45 var(--f-display), Georgia, serif; color: color-mix(in srgb, var(--ink) 88%, transparent);
  text-shadow: 0 0 calc(14px * var(--glow-k)) color-mix(in srgb, var(--glow) 25%, transparent);
}
.bio .scr { color: var(--muted); font-style: normal; font-family: var(--f-mono), ui-monospace, monospace; font-size: .8em; }
.bio .fade-in { animation: rise 1.4s var(--ease) both; display: inline-block; }
.caret { display: inline-block; width: 1px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
.no-caret .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }

/* ═════════ socials ═════════ */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; }
.social {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--accent); text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.02);
  transition: transform .45s var(--ease), color .3s, border-color .3s, background .3s, box-shadow .45s;
}
.social .ic { width: 20px; height: 20px; transition: transform .45s var(--ease); }
.social::after { /* a ring that blooms outward on hover */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent);
  opacity: 0; transform: scale(.8); transition: opacity .45s, transform .6s var(--ease);
}
.social:hover, .social:focus-visible {
  color: #fff; transform: translateY(-3px); background: rgba(255,255,255,.05); border-color: var(--line-2);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.8), 0 0 26px color-mix(in srgb, var(--glow) calc(30% * var(--glow-k) + 6%), transparent);
}
.social:hover .ic { transform: scale(1.1); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 70%, transparent)); }
.social:hover::after { opacity: .35; transform: scale(1.22); }

/* ═════════ shared glass panel ═════════ */
.presence, .player {
  margin-top: 18px; padding: 14px; border-radius: 18px; text-align: left;
  background: rgba(255,255,255,.025); border: 1px solid var(--line);
}

/* ═════════ discord presence ═════════ */
.presence { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; }
.presence[hidden] { display: none; }
.pr-art { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #0d0d11; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.pr-art img { width: 100%; height: 100%; object-fit: cover; }
.pr-art .ic { width: 22px; height: 22px; }
.pr-small { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #0d0d11; object-fit: cover; }
.pr-body { display: grid; gap: 1px; font-size: 12.5px; line-height: 1.4; }
.pr-head { display: flex; align-items: center; gap: 7px; font: 400 10.5px/1.4 var(--f-mono), ui-monospace, monospace; letter-spacing: .06em; color: var(--muted); text-transform: lowercase; }
.pr-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--s, #747f8d); box-shadow: 0 0 8px var(--s, #747f8d); flex: none; }
.pr-name { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.pr-line { color: var(--muted); }
.pr-name, .pr-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-bar { height: 2px; margin-top: 6px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pr-bar b { display: block; height: 100%; width: 0; background: var(--accent); }

/* ═════════ music player ═════════ */
.player { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-areas: "disc track" "ctl ctl"; gap: 12px 14px; align-items: center; }
.player[hidden] { display: none; }
.disc {
  grid-area: disc; position: relative; width: 48px; height: 48px; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 1px, #18181c 1.5px 3px); border: 1px solid var(--line-2);
  animation: spin 6s linear infinite; animation-play-state: paused;
}
.disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent, rgba(255,255,255,.18) 8%, transparent 18%, transparent 50%, rgba(255,255,255,.1) 58%, transparent 68%); }
.disc i { position: absolute; inset: 35%; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 3px #222; }
.playing .disc { animation-play-state: running; }
.track { grid-area: track; display: grid; gap: 6px; }
.track-meta { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.track-title { color: var(--ink); font: 500 italic 17px/1.2 var(--f-display), Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { color: var(--muted); font: 400 10.5px var(--f-mono), ui-monospace, monospace; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 0; }
.seek { position: relative; height: 14px; cursor: pointer; touch-action: none; }
.seek::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--line-2); }
.seek-fill { position: absolute; left: 0; top: 6px; height: 2px; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--muted), var(--ink)); box-shadow: 0 0 10px color-mix(in srgb, var(--glow) 60%, transparent); }
.seek-fill::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--glow); }
.times { display: flex; justify-content: space-between; margin-top: -4px; color: var(--muted); font: 400 10px var(--f-mono), ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.controls { grid-area: ctl; display: flex; align-items: center; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.ctl { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--accent); cursor: pointer; transition: color .25s, background .25s, transform .25s var(--ease); }
.ctl .ic { width: 18px; height: 18px; }
.ctl:hover { color: #fff; background: rgba(255,255,255,.05); }
.ctl:active { transform: scale(.92); }
.ctl-main { width: 44px; height: 44px; border: 1px solid var(--line-2); color: var(--ink); }
.ctl-main .ic { width: 16px; height: 16px; }
.vol { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.vol input { width: 92px; height: 20px; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
.vol input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--v, 45%), var(--line-2) var(--v, 45%)); }
.vol input::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--v, 45%), var(--line-2) var(--v, 45%)); }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 10px var(--glow); }
.vol input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 10px var(--glow); }

/* ═════════ below the card ═════════ */
.below { display: grid; justify-items: center; gap: 6px; }
.views, .foot { margin: 0; color: var(--muted); font: 400 10.5px/1.4 var(--f-mono), ui-monospace, monospace; letter-spacing: .08em; text-align: center; }
.views[hidden] { display: none; }
.views b { color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.foot { opacity: .55; }
.foot:empty { display: none; }

/* ═════════ cursor ═════════ */
.cursor, #trail { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor .cursor { display: block; }
.has-trail #trail { display: block; }
#trail { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 98; pointer-events: none; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none;
  width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 70%, transparent);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s, opacity .3s;
  will-change: transform;
}
.cursor::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px var(--glow); }
.cursor.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255,255,255,.05); border-color: var(--accent); }
.cursor.is-down { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
.cursor.is-out { opacity: 0; }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border: 0; background: #fff; box-shadow: 0 0 12px var(--glow); }
.cursor-dot::after { display: none; }
.cursor-dot.is-hover { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; }
.cursor-cross { border: 0; border-radius: 0; }
.cursor-cross::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--ink),var(--ink)) center/1px 100% no-repeat, linear-gradient(var(--ink),var(--ink)) center/100% 1px no-repeat; opacity: .8; filter: drop-shadow(0 0 3px var(--glow)); transition: transform .4s var(--ease), opacity .3s; }
.cursor-cross.is-hover { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: none; }
.cursor-cross.is-hover::before { transform: rotate(45deg); opacity: 1; }
.cursor-cross.is-down::before { transform: rotate(45deg) scale(.7); }

/* ═════════ phones ═════════ */
@media (max-width: 520px) {
  .stage { padding: 24px 12px 22px; align-content: start; }
  .card { padding: 78px 18px 18px; margin-top: 64px; border-radius: 22px; }
  .avatar { width: 112px; height: 112px; }
  .bio { font-size: 17.5px; margin-top: 16px; }
  .social { width: 44px; height: 44px; }
  .vol input { width: 70px; }
  .rays i { filter: blur(20px); }
}
@media (max-width: 360px) { .vol input { display: none; } }

/* ═════════ calmer motion when the visitor asks for it ═════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { animation: none; }
}
