/* ============================================================
   ZAZA — style.css  (premium cinematic redesign)
   Fonts are loaded via <link> in each HTML page — no @import here,
   it would duplicate the request and block first render.
   ============================================================ */

/* ── Variables ── */
:root {
  --accent:        #ffffff;
  --accent2:       #ffffff;
  --accent-glow:   rgba(255, 255, 255,0.3);
  --bg:            #08080f;
  --text:          #f0f0f8;
  --text-muted:    rgba(240,240,248,0.50);
  --text-dim:      rgba(240,240,248,0.72);
  --glass-bg:      rgba(255,255,255,0.030);
  --glass-border:  rgba(255,255,255,0.075);
  --glass-border2: rgba(255,255,255,0.040);
  --glass-blur:    blur(40px) saturate(1.8);
  --font:          'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --ease:          cubic-bezier(0.4,0,0.2,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);
  --radius:        20px;
  --shadow:        0 8px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3);
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #08080f; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

/* Keep off-screen content out of layout/paint until it is needed. */
.about-section, .work-section, .contact-section, footer { content-visibility: auto; contain-intrinsic-size: 1px 600px; }

/* Avoid expensive glass blur on devices that advertise limited rendering power. */
@media (prefers-reduced-transparency: reduce), (max-width: 700px) {
  :root { --glass-blur: none; }
  .glass-mode .card, .glass-mode .profile-card, .glass-mode .music-bar { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ── Body ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100dvh;
  width: 100vw;
  cursor: none;
  letter-spacing: -0.01em;
  /* Disable text selection */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a, button, [role="button"], label, select, input, textarea { cursor: none; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; font-family: var(--font); }
/* Allow selection in inputs/textareas */
input, textarea, [contenteditable="true"] { -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
body.a-admin input, body.a-admin textarea, body.a-admin [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }
html, html * { cursor: none !important; }
.admin-body, .admin-body * { cursor: auto !important; }

/* ── Custom Cursor ── */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width .15s var(--ease), height .15s var(--ease), opacity .2s;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}
#cursor-follower { display: none; }
body.cursor-hover #cursor { width: 16px; height: 16px; opacity: 0.7; }
body.cursor-hover #cursor-follower { width: 44px; height: 44px; border-color: var(--accent2); }
body.cursor-click #cursor { transform: translate(-50%,-50%) scale(0.6); }
@media (hover: none) { #cursor, #cursor-follower, #mouse-light { display: none !important; } }

#mouse-light { display: none; }

/* ── Background ── */
#bg-layer {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}

/* ── Blur layer — sits directly on top of video/image, softens artifacts ── */
#bg-blur-layer {
  position: absolute; inset: -10px; z-index: 1;
  pointer-events: none;
  /* Populated via JS with same image, heavily blurred — hides compression edges */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(0.6);
  contain: strict;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity .6s ease;
}
#bg-blur-layer.visible { opacity: 1; }

/* ── Video background ── */
#bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform 0.12s linear;
  will-change: transform, opacity;
  /* GPU acceleration */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
#bg-video.loaded { opacity: 0.72; }

/* ── Image background ── */
#bg-image-wrap {
  position: absolute; inset: 0; z-index: 2;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: local;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 0.12s linear;
  will-change: transform, opacity;
  /* GPU layer */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* High-quality scaling */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
#bg-image-wrap.loaded { opacity: 0.82; }

/* ── Dark overlay — text readability ── */
#bg-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: rgba(0,0,0,0.25);
  /* Gradient darkens edges, keeps center bright */
  background: linear-gradient(
    160deg,
    rgba(8,8,15,0.68) 0%,
    rgba(8,8,15,0.38) 30%,
    rgba(8,8,15,0.18) 55%,
    rgba(8,8,15,0.42) 100%
  );
  transition: background .6s ease;
}

/* ── Vignette — depth, edges ── */
#bg-vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 35%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Ambient blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.22;
  animation: blobFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
}
.blob-1 { width: 700px; height: 700px; background: radial-gradient(circle,#ffffff,transparent 70%); top: -200px; left: -200px; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle,#ffffff,transparent 70%); bottom: -150px; right: -150px; animation-delay: -9s; }
.blob-3 { width: 400px; height: 400px; background: radial-gradient(circle,#3b82f6,transparent 70%); top: 40%; left: 60%; animation-delay: -4s; opacity: 0.14; }
@keyframes blobFloat {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.05); }
  100% { transform: translate(-20px,35px) scale(0.96); }
}
#particles-canvas { position: fixed; inset: 0; z-index: 5; pointer-events: none; contain: strict; transform: translate3d(0,0,0); }

/* Only promote elements while they are actively animated. */
.spring-reveal { will-change: opacity, transform; }
.spring-reveal.spring-revealed { will-change: auto; }

/* ══════════════════════════════════════════
   TERMINAL LOADING SCREEN
══════════════════════════════════════════ */
#loading-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
#loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.terminal-window {
  width: min(540px, 92vw);
  background: rgba(6,6,12,0.98);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255, 255, 255,0.08);
  animation: fadeUp .4s var(--ease) both;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }
.term-title { flex: 1; text-align: center; font-size: .68rem; color: rgba(255,255,255,0.25); font-family: var(--font-mono); margin-left: -66px; }
.terminal-body {
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: .72rem; line-height: 1.85;
  color: #22c55e; min-height: 180px;
}
.term-line { display: flex; gap: 0; align-items: baseline; flex-wrap: wrap; }
.term-line .prompt { color: #22c55e; flex-shrink: 0; font-weight: 600; margin-right: 6px; }
.term-line .term-text { color: rgba(240,240,248,0.75); }
.term-line .term-text.ok   { color: #22c55e; }
.term-line .term-text.warn { color: #fbbf24; }
.term-cursor-blink { display: inline-block; width: 7px; height: .85em; background: #22c55e; vertical-align: middle; animation: twBlink .7s step-end infinite; margin-left: 2px; }
@keyframes twBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ══════════════════════════════════════════
   ENTER SCREEN
══════════════════════════════════════════ */
#enter-screen {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
#enter-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.enter-title {
  font-size: clamp(3.5rem,9vw,6.5rem);
  font-weight: 900; letter-spacing: -.06em; line-height: 1;
  color: #fff;
  text-shadow: 0 0 80px rgba(255, 255, 255,0.35), 0 0 160px rgba(255, 255, 255,0.15);
  animation: fadeUp .8s var(--ease) both;
  pointer-events: none;
}
.enter-sub {
  font-size: .72rem; color: var(--text-muted);
  letter-spacing: .22em; text-transform: uppercase;
  animation: fadeUp .8s .1s var(--ease) both;
  pointer-events: none;
}
.enter-btn {
  position: relative; padding: 13px 52px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 99px; color: var(--text-dim);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  pointer-events: auto; backdrop-filter: blur(16px);
  animation: fadeUp .8s .22s var(--ease) both;
  overflow: hidden;
  --mx: 0px; --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: transform .6s cubic-bezier(0.23,1,0.32,1), border-color .3s, box-shadow .3s, color .3s;
}
.enter-btn span { position: relative; z-index: 1; }
.enter-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity .35s;
}
.enter-btn:hover { border-color: transparent; box-shadow: 0 0 40px var(--accent-glow); color: #fff; }
.enter-btn:hover::before { opacity: 1; }
.enter-btn:active { transform: translate(var(--mx),var(--my)) scale(0.97); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes blurIn {
  from { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0px);  transform: translateY(0); }
}

/* ══════════════════════════════════════════
   MAIN PAGE LAYOUT
══════════════════════════════════════════ */
#main-page {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: flex-end;
  padding: 0 0 60px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
#main-page.visible { opacity: 1; visibility: visible; pointer-events: auto; }

.layout {
  width: 100%; display: flex;
  align-items: flex-end; justify-content: space-between;
  padding: 0 5vw 0 4vw; gap: 32px;
}

/* ══════════════════════════════════════════
   PROFILE CARD — ultra-light glassmorphism
══════════════════════════════════════════ */
.profile-left {
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  min-height: 180px;
  height: auto;
  flex: none;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 24px 28px 22px;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
  animation: blurIn .9s .1s var(--ease) both;
  transform: none;
  filter: none;
  transition: none;
}
.profile-left::before { display: none; }
.profile-left > * { position: relative; z-index: 1; }

/* Section eyebrow — hidden by default */
.section-eyebrow { display: none; }

/* ── Avatar ── */
.name-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.avatar-wrap { position: relative; width: 62px; height: 62px; flex-shrink: 0; }
.avatar-ring { display: none; }
@keyframes ringRotate { to { transform: rotate(360deg); } }
.avatar-img, .avatar-initial {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid rgba(8,8,15,0.6); z-index: 1;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  transition: opacity .4s ease;
}
.avatar-initial {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
}
.online-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid rgba(8,8,15,0.8); z-index: 2;
}
.online-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid currentColor; opacity: 0;
  animation: dotRipple 2.5s ease-out infinite;
}
@keyframes dotRipple { 0% { transform: scale(.8); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
.avail-online  { background: #22c55e; color: #22c55e; }
.avail-idle    { background: #fbbf24; color: #fbbf24; }
.avail-busy    { background: #ef4444; color: #ef4444; }
.avail-away    { background: #fbbf24; color: #fbbf24; }
.avail-offline { background: rgba(255,255,255,0.25); color: rgba(255,255,255,0.25); }

/* ── Name & greeting ── */
.name-text-wrap { min-width: 0; }
.name-greeting {
  font-size: .68rem; color: var(--text-muted);
  letter-spacing: .08em; margin-bottom: 2px; font-weight: 400;
}
.name-main {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -.05em; line-height: 1;
  color: #fff;
  background: linear-gradient(90deg,
    #fff 0%, #fff 30%,
    rgba(255,255,255,0.55) 44%,
    #fff 50%,
    rgba(255,255,255,0.85) 56%,
    #fff 70%, #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chromeShimmer 4s linear infinite;
}
@keyframes chromeShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Bio ── */
.bio-text {
  font-size: .82rem; color: var(--text-dim);
  line-height: 1.7; max-width: 380px;
  margin-bottom: 0; font-weight: 400;
  letter-spacing: .005em;
}

/* Badges — hidden */
.badges-row { display: none; }

/* ══════════════════════════════════════════
   SPOTIFY WIDGET — premium minimal
══════════════════════════════════════════ */
.spotify-widget, .spotify-widget.spotify-idle {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 13px;
  background: rgba(30,215,96,0.06);
  border: 1px solid rgba(30,215,96,0.14);
  border-radius: 12px;
  margin-top: 12px;
  backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s;
  max-width: 100%;
}
.spotify-widget:hover { border-color: rgba(30,215,96,0.3); box-shadow: 0 0 20px rgba(30,215,96,0.08); }
.spotify-widget.spotify-idle { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.spotify-icon { font-size: 1.1rem; color: #1ed760; flex-shrink: 0; }
.spotify-idle .spotify-icon { color: rgba(255,255,255,.25); }
.spotify-cover { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(30,215,96,0.2); animation: coverSpin 8s linear infinite; }
@keyframes coverSpin { to { transform: rotate(360deg); border-radius: 50%; } }
.spotify-info { flex: 1; min-width: 0; }
.spotify-label { font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(30,215,96,0.65); margin-bottom: 2px; }
.spotify-idle .spotify-label { color: rgba(240,240,248,.3); }
.spotify-track { font-size: .78rem; font-weight: 600; color: #f0f0f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify-idle .spotify-track { color: rgba(240,240,248,.35); font-weight: 400; }
.spotify-artist { font-size: .65rem; color: var(--text-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spotify-bars { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex-shrink: 0; }
.spotify-bars span { display: block; width: 3px; border-radius: 2px; background: #1ed760; animation: spotBar .9s ease-in-out infinite; }
.spotify-bars span:nth-child(1){ height:6px;  animation-delay:0s; }
.spotify-bars span:nth-child(2){ height:12px; animation-delay:.12s; }
.spotify-bars span:nth-child(3){ height:8px;  animation-delay:.24s; }
.spotify-bars span:nth-child(4){ height:5px;  animation-delay:.36s; }
@keyframes spotBar { 0%,100%{ transform:scaleY(1); } 50%{ transform:scaleY(.25); } }
.spotify-bars.paused span { animation-play-state: paused; }

/* ══════════════════════════════════════════
   RIGHT COLUMN — socials
══════════════════════════════════════════ */
.profile-right {
  display: flex; flex-direction: column; align-items: flex-end;
  min-width: 200px; max-width: 260px;
  animation: blurIn .9s .22s var(--ease) both;
}
.right-eyebrow {
  font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.right-eyebrow::after {
  content: ''; display: block; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--text-muted), var(--accent));
}
.status-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: .7rem; color: var(--text-dim); margin-bottom: 14px;
  height: 18px; overflow: hidden;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.online { background: #22c55e; box-shadow: 0 0 6px #22c55e88; }
.tw-cursor {
  display: inline-block; width: 1.5px; height: .75em;
  background: var(--accent); vertical-align: middle; margin-left: 1px;
  animation: twBlink .85s step-end infinite;
}

/* ── Social rows ── */
.social-list { display: flex; flex-direction: column; gap: 1px; width: 100%; }
.social-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 10px;
  border-radius: 11px; cursor: pointer;
  transition: background .18s, padding-left .2s var(--ease), transform .15s;
  color: var(--text); position: relative; overflow: hidden;
  margin-bottom: 1px;
}
.social-row:hover { background: rgba(255,255,255,0.05); padding-left: 14px; }
.social-row:hover .sr-label { color: #fff; }
.social-row:hover .sr-icon  { color: var(--icon-color, var(--accent)); }
.social-row:active { transform: scale(0.99); }
/* Circuit underline */
.social-row::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 50%, transparent 100%);
  transition: width .3s var(--ease);
  box-shadow: 0 0 5px var(--accent);
}
.social-row:hover::after { width: 100%; }
.sr-left { display: flex; align-items: center; gap: 9px; }
.sr-icon { font-size: .85rem; color: var(--text-muted); transition: color .2s; width: 16px; text-align: center; }
.sr-label { font-size: .8rem; font-weight: 500; color: var(--text-dim); transition: color .2s; }
.sr-value { font-size: .68rem; color: var(--text-muted); font-family: var(--font-mono); }
.sr-copy-hint { font-size: .56rem; color: var(--accent); opacity: 0; transition: opacity .2s; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.social-row:hover .sr-copy-hint { opacity: 1; }

/* ══════════════════════════════════════════
   MUSIC BAR — premium floating
══════════════════════════════════════════ */
.music-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 5vw;
  background: rgba(6,6,12,0.65);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  border-top: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 -1px 0 rgba(255, 255, 255,0.06);
}
.music-cover-mini {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #fff;
  overflow: hidden; background-size: cover; background-position: center;
  transition: border-radius .4s;
}
.music-cover-mini.playing { animation: coverSpin 8s linear infinite; }
.music-info-mini { flex: 1; min-width: 0; }
.music-title-mini { font-size: .76rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-artist-mini { font-size: .62rem; color: var(--text-muted); margin-top: 1px; }
.music-progress-mini {
  flex: 1; max-width: 160px; height: 3px;
  background: rgba(255,255,255,0.08); border-radius: 99px; cursor: pointer; position: relative;
}
.music-progress-fill-mini {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 99px; width: 0%; transition: width .3s linear; pointer-events: none;
}
.music-time-mini { font-size: .6rem; color: var(--text-muted); min-width: 28px; text-align: right; flex-shrink: 0; font-family: var(--font-mono); }
.music-controls-mini { display: flex; align-items: center; gap: 5px; }
.music-btn-mini {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  font-size: .68rem; transition: background .2s, color .2s, transform .15s;
}
.music-btn-mini:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); }
.music-btn-mini.play-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent; color: #fff;
  width: 32px; height: 32px;
  box-shadow: 0 0 14px var(--accent-glow);
}
.music-btn-mini.play-btn:hover { box-shadow: 0 0 22px var(--accent-glow); transform: scale(1.1); }
.vol-row { display: flex; align-items: center; gap: 5px; }
.vol-row i { font-size: .65rem; color: var(--text-muted); }
.vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--accent) var(--pct,50%), rgba(255,255,255,0.10) var(--pct,50%));
  border-radius: 99px; outline: none; cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: #fff; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--accent); box-shadow: 0 0 5px rgba(255, 255, 255,.5);
  transition: transform .15s;
}
.vol-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
#visualizer-canvas { width: 72px; height: 22px; opacity: .65; flex-shrink: 0; }

/* ══════════════════════════════════════════
   TOAST & COPY
══════════════════════════════════════════ */
#toast, .copy-toast {
  position: fixed; bottom: 72px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 8px 18px;
  background: rgba(8,8,15,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px; backdrop-filter: blur(16px);
  font-size: .73rem; color: var(--text); z-index: 9999;
  opacity: 0; transition: opacity .22s, transform .22s;
  pointer-events: none; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
#toast.show, .copy-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ══════════════════════════════════════════
   THEME FAB
══════════════════════════════════════════ */
.theme-fab {
  position: fixed; top: 20px; right: 20px; z-index: 200;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .75rem;
  transition: border-color .2s, color .2s, transform .3s, opacity .3s;
  opacity: 0; pointer-events: none;
}
.theme-fab.visible { opacity: 1; pointer-events: auto; }
.theme-fab:hover { border-color: var(--accent); color: var(--accent); transform: rotate(25deg) scale(1.1); }

/* ══════════════════════════════════════════
   ADMIN CORNER LINK
══════════════════════════════════════════ */
.admin-corner-link {
  position: fixed; bottom: 14px; right: 18px; z-index: 100;
  font-size: .58rem; color: rgba(255,255,255,0.10);
  transition: color .2s; letter-spacing: .08em;
}
.admin-corner-link:hover { color: var(--accent); }

/* ══════════════════════════════════════════
   CURSOR STYLES
══════════════════════════════════════════ */
body.cursor-ring #cursor {
  background: transparent; border: 2px solid var(--accent);
  width: 18px; height: 18px; mix-blend-mode: normal;
}
body.cursor-crosshair #cursor {
  background: transparent; border: none; border-radius: 0;
  width: 2px; height: 18px; mix-blend-mode: normal;
}
body.cursor-crosshair #cursor::after {
  content: ''; position: absolute; left: 50%; top: -8px;
  transform: translateX(-50%); width: 18px; height: 2px;
  background: var(--accent); display: block;
}
body.cursor-emoji #cursor {
  background: transparent; border: none; mix-blend-mode: normal;
  width: 22px; height: 22px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
}
body.cursor-emoji #cursor::after { content: '•'; font-size: 17px; line-height: 1; }

/* ══════════════════════════════════════════
   CURSOR TRAIL
══════════════════════════════════════════ */
.cursor-trail-dot {
  position: fixed; pointer-events: none; z-index: 99997;
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(1);
  will-change: left, top, opacity, transform;
}
body.trail-dots    .cursor-trail-dot { width:6px;  height:6px;  background:#d8d8d8; box-shadow:0 0 5px rgba(255,255,255,.35); }
body.trail-sparkle .cursor-trail-dot { width:4px;  height:4px;  background:#fff; box-shadow:0 0 4px rgba(255,255,255,.45); }
body.trail-comet   .cursor-trail-dot { width:8px;  height:2px;  border-radius:99px; background:linear-gradient(90deg,#fff,transparent); box-shadow:0 0 6px rgba(255,255,255,.35); }
body.trail-rings   .cursor-trail-dot { width:11px; height:11px; background:transparent; border:1.5px solid rgba(255,255,255,.7); box-shadow:0 0 6px rgba(255,255,255,.3); }
body.trail-none    .cursor-trail-dot { display: none; }

/* ══════════════════════════════════════════
   GRAIN & SCANLINES
══════════════════════════════════════════ */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 99990;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px
  );
  background-size: 100% 4px;
  mix-blend-mode: multiply;
}
#grain-overlay {
  /* Disabled: the full-screen animated feTurbulence filter re-rasterizes the whole
     viewport ~6-7x/second and flickers on some Windows GPU drivers.
     The grain was at 1.8% opacity (nearly invisible) so the loss is negligible. */
  display: none;
}
@keyframes grainShift {
  0%  { transform:translate(0,0); }    10% { transform:translate(-2%,-3%); }
  20% { transform:translate(3%,2%); }  30% { transform:translate(-1%,4%); }
  40% { transform:translate(4%,-1%); } 50% { transform:translate(-3%,1%); }
  60% { transform:translate(2%,-4%); } 70% { transform:translate(-4%,3%); }
  80% { transform:translate(1%,-2%); } 90% { transform:translate(-2%,4%); }
  100%{ transform:translate(3%,-3%); }
}

/* ══════════════════════════════════════════
   RIGHT-CLICK CONTEXT MENU
══════════════════════════════════════════ */
#ctx-menu {
  position: fixed; z-index: 999999; min-width: 210px;
  background: rgba(7,7,14,0.94);
  backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,.1), 0 14px 44px rgba(0,0,0,.6),
              inset 0 1px 0 rgba(255,255,255,0.05);
  opacity: 0; transform: scale(.92) translateY(-6px);
  transform-origin: top left; pointer-events: none;
  transition: opacity .14s ease, transform .14s ease; user-select: none;
}
#ctx-menu.open { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.ctx-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  font-size: .78rem; font-weight: 500; color: rgba(240,240,248,.7);
  cursor: pointer; transition: background .11s, color .11s, transform .1s; outline: none;
}
.ctx-item:hover, .ctx-item:focus { background: rgba(255, 255, 255,.12); color: #f0f0f8; transform: translateX(2px); }
.ctx-item:active { transform: translateX(2px) scale(.98); }
.ctx-item.focused { background: rgba(255, 255, 255,.15); color: var(--accent); }
.ctx-item i { width: 15px; text-align: center; font-size: .75rem; color: var(--accent); flex-shrink: 0; transition: transform .2s; }
.ctx-item:hover i { transform: scale(1.15); }
.ctx-item .ctx-label { flex: 1; }
.ctx-item .ctx-kbd { font-size: .56rem; font-family: var(--font-mono); color: rgba(240,240,248,.22); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 2px 5px; }
.ctx-sep { height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.07) 20%,rgba(255,255,255,.07) 80%,transparent); margin: 4px 6px; }
.ctx-section-lbl { font-size: .5rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255,.4); padding: 7px 12px 3px; }
.ctx-item.danger { color: rgba(248,113,113,.65); }
.ctx-item.danger i { color: #f87171; }
.ctx-item.danger:hover { background: rgba(248,113,113,.08); color: #f87171; }
.ctx-item.accent { color: var(--accent); }
.ctx-item.accent i { color: var(--accent); }

/* ══════════════════════════════════════════
   BACKGROUND PATTERN CANVAS
══════════════════════════════════════════ */
#bg-pattern-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .65; }

/* ══════════════════════════════════════════
   WEATHER
══════════════════════════════════════════ */
.tw-cursor {
  display: inline-block; width: 1.5px; height: .75em;
  background: var(--accent); vertical-align: middle; margin-left: 1px;
  animation: twBlink .85s step-end infinite;
  box-shadow: 0 0 6px var(--accent);
}

/* ══════════════════════════════════════════
   FONT SWITCHING
══════════════════════════════════════════ */
body.font-space { --font: 'Space Grotesk', sans-serif; }
body.font-mono  { --font: 'JetBrains Mono', monospace; }
body.glass-mode .profile-right {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  body { overflow-y: auto; height: auto; }
  #main-page {
    position: relative; height: auto; min-height: 100dvh;
    align-items: flex-start; padding: 80px 0 80px;
  }
  .layout { flex-direction: column; align-items: flex-start; padding: 0 20px; gap: 32px; }
  .profile-right { align-items: flex-start; width: 100%; max-width: 100%; }
  .right-eyebrow::after { display: none; }
}
@media (max-width: 560px) {
  .profile-left { border-radius: 16px; padding: 18px 20px; }
  .name-main { font-size: 2rem; }
}
@media (max-width: 480px) {
  .music-bar { padding: 9px 14px; gap: 8px; }
  #visualizer-canvas { display: none; }
  .music-progress-mini { max-width: 60px; }
  .vol-row { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media (min-width: 701px) and (update: slow) {
  .blob { display: none; }
  #particles-canvas { display: none; }
}
@media (hover: none) {
  #cursor, #cursor-follower, #mouse-light { display: none !important; }
}

/* ══════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════ */
.admin-body {
  background: #06060b; min-height: 100vh;
  font-family: var(--font); color: var(--text);
  cursor: auto; overflow-y: auto;
  background-image:
    radial-gradient(ellipse 80% 40% at 20% -10%, rgba(255, 255, 255,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 80% 110%, rgba(255, 255, 255,.05) 0%, transparent 60%);
}
.admin-body *, .admin-body *::before, .admin-body *::after { box-sizing: border-box; }
.admin-body a, .admin-body button { cursor: pointer; }
.hidden { display: none !important; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
.shake { animation: shake .4s ease; }
.fade-out { opacity: 0 !important; transition: opacity .35s !important; pointer-events: none !important; }

/* Login */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card {
  width: 100%; max-width: 360px;
  background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 40px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: fadeUp .5s var(--ease) both;
}
.admin-logo { font-size: 1.4rem; font-weight: 900; letter-spacing: -.04em; background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 6px; }
.admin-login-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.admin-login-sub { font-size: .76rem; color: var(--text-muted); margin-bottom: 26px; }
.admin-form-group { margin-bottom: 14px; }
.admin-form-group label, .admin-form-row label { display: block; font-size: .67rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.admin-input {
  width: 100%; padding: 10px 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--text); font-family: var(--font); font-size: .875rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.admin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.admin-input::placeholder { color: var(--text-muted); }
.admin-btn {
  width: 100%; padding: 11px; border: none;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  border-radius: 10px; color: #fff; font-family: var(--font);
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 0 18px var(--accent-glow);
}
.admin-btn:hover { opacity: .9; transform: translateY(-1px); }
.admin-btn:active { transform: scale(.98); }
.admin-error { font-size: .74rem; color: #f87171; margin-top: 10px; display: none; text-align: center; }
.admin-error.show { display: block; }

/* Admin dashboard shell */
.admin-dashboard { display: none; min-height: 100vh; flex-direction: column; }
.admin-dashboard.visible { display: flex; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 60px;
  background: rgba(6,6,11,.88);
  border-bottom: 1px solid rgba(255, 255, 255,.10);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255,.07), 0 4px 20px rgba(0,0,0,.3);
}
.admin-topbar-logo { font-size: 1rem; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: center; gap: 8px; }
.admin-topbar-logo::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.admin-topbar-right { display: flex; align-items: center; gap: 8px; }
.admin-status-badge { padding: 4px 11px; border-radius: 99px; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 5px; }
.admin-status-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-saved { background: rgba(34,197,94,.1); color: #22c55e; border: 1px solid rgba(34,197,94,.2); }
.badge-saved::before { background: #22c55e; box-shadow: 0 0 5px #22c55e; }
.badge-unsaved { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.2); }
.badge-unsaved::before { background: #f87171; box-shadow: 0 0 5px #f87171; }
.preview-link { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--text-muted); padding: 6px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; text-decoration: none; transition: all .2s; }
.preview-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(255, 255, 255,.06); }
.admin-save-all-btn { padding: 7px 18px; background: linear-gradient(135deg,var(--accent),var(--accent2)); border: none; border-radius: 99px; color: #fff; font-family: var(--font); font-size: .76rem; font-weight: 700; cursor: pointer; transition: opacity .2s, transform .1s, box-shadow .2s; box-shadow: 0 0 16px rgba(255, 255, 255,.4); }
.admin-save-all-btn:hover { opacity: .9; box-shadow: 0 0 24px rgba(255, 255, 255,.6); }
.admin-save-all-btn:active { transform: scale(.97); }
.admin-logout-btn { padding: 7px 13px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 99px; color: var(--text-muted); font-family: var(--font); font-size: .76rem; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.admin-logout-btn:hover { border-color: rgba(248,113,113,.4); color: #f87171; background: rgba(248,113,113,.05); }
.admin-content { display: grid; grid-template-columns: 220px 1fr; flex: 1; min-height: 0; }
.admin-sidebar { border-right: 1px solid rgba(255, 255, 255,.07); padding: 16px 12px 24px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; background: rgba(6,6,11,.55); backdrop-filter: blur(10px); scrollbar-width: none; }
.admin-sidebar::-webkit-scrollbar { display: none; }
.nav-lbl { font-size: .54rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255,.45); padding: 16px 10px 6px; display: flex; align-items: center; gap: 8px; }
.nav-lbl::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,rgba(255, 255, 255,.18),transparent); }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: rgba(240,240,248,.4); font-size: .8rem; font-weight: 500; cursor: pointer; margin-bottom: 2px; border: 1px solid transparent; background: none; font-family: var(--font); width: 100%; text-align: left; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.admin-nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); transform: translateX(2px); }
.admin-nav-item.active { background: rgba(255, 255, 255,.1); border-color: rgba(255, 255, 255,.22); color: var(--accent); box-shadow: 0 0 12px rgba(255, 255, 255,.1); }
.admin-nav-item i { width: 16px; text-align: center; font-size: .8rem; flex-shrink: 0; transition: transform .2s; }
.admin-nav-item:hover i { transform: scale(1.1); }
.admin-nav-item.active i { filter: drop-shadow(0 0 4px var(--accent)); }
.admin-main { padding: 32px 36px; overflow-y: auto; }
.admin-section { display: none; animation: fadeUp .25s var(--ease) both; }
.admin-section.active { display: block; }
.admin-section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; background: linear-gradient(135deg,#fff 60%,var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.admin-section-desc { font-size: .78rem; color: var(--text-muted); margin-bottom: 28px; }

/* Admin cards + forms */
.admin-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 20px; margin-bottom: 16px; transition: border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.admin-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255, 255, 255,.03) 0%,transparent 60%); pointer-events: none; }
.admin-card:hover { border-color: rgba(255, 255, 255,.18); box-shadow: 0 0 24px rgba(255, 255, 255,.05); }
.admin-card-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-card-title i { font-size: .75rem; opacity: .9; }
.admin-card-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,rgba(255, 255, 255,.18),transparent); }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-row { margin-bottom: 14px; }
.admin-form-group label, .admin-form-row label { display: block; font-size: .67rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.admin-input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: .875rem; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.admin-input:hover { background: rgba(255,255,255,.06); }
.admin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255,.14); background: rgba(255,255,255,.06); }
.admin-input::placeholder { color: rgba(240,240,248,.22); }
.admin-textarea { width: 100%; padding: 10px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: .875rem; resize: vertical; min-height: 80px; outline: none; transition: border-color .2s, box-shadow .2s; }
.admin-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255,.14); }
.admin-color-row { display: flex; align-items: center; gap: 10px; }
.admin-color-preview { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); cursor: pointer; flex-shrink: 0; transition: transform .15s, box-shadow .2s; }
.admin-color-preview:hover { transform: scale(1.1); box-shadow: 0 0 12px rgba(255, 255, 255,.3); }
input[type="color"] { opacity: 0; width: 0; height: 0; position: absolute; }
.social-admin-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; margin-bottom: 8px; transition: border-color .2s, background .2s; }
.social-admin-item:hover { background: rgba(255,255,255,.04); border-color: rgba(255, 255, 255,.14); }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,.1); border-radius: 99px; transition: .25s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + .toggle-slider { background: var(--accent); box-shadow: 0 0 8px rgba(255, 255, 255,.4); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }
.info-box { background: rgba(255, 255, 255,.05); border: 1px solid rgba(255, 255, 255,.14); border-radius: 10px; padding: 11px 14px; font-size: .74rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; }
.info-box i { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.info-box.success { background: rgba(34,197,94,.05); border-color: rgba(34,197,94,.14); }
.info-box.success i { color: #22c55e; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: linear-gradient(90deg,var(--accent) var(--pct,50%),rgba(255,255,255,.1) var(--pct,50%)); border-radius: 99px; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: #fff; border-radius: 50%; cursor: pointer; border: 2px solid var(--accent); box-shadow: 0 0 6px rgba(255, 255, 255,.4); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.avatar-upload-zone { border: 2px dashed rgba(255, 255, 255,.2); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: rgba(255, 255, 255,.02); }
.avatar-upload-zone:hover { border-color: var(--accent); background: rgba(255, 255, 255,.05); }
.avatar-upload-zone input { display: none; }
#avatar-preview-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: none; border: 2px solid var(--accent); box-shadow: 0 0 14px rgba(255, 255, 255,.3); }
.admin-select { width: 100%; padding: 10px 13px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: .875rem; outline: none; transition: border-color .2s; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.admin-select:focus { border-color: var(--accent); }
.admin-select option { background: #12121a; color: #f0f0f8; }
.avail-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.avail-opt { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; cursor: pointer; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); font-size: .72rem; font-weight: 600; transition: background .15s, border-color .15s; }
.avail-opt input { display: none; }
.avail-opt.selected-online  { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.4);  color: #22c55e; }
.avail-opt.selected-busy    { background: rgba(239,68,68,.12);   border-color: rgba(239,68,68,.4);   color: #ef4444; }
.avail-opt.selected-away    { background: rgba(251,191,36,.12);  border-color: rgba(251,191,36,.4);  color: #fbbf24; }
.avail-opt.selected-offline { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: var(--text-muted); }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.avail-online  { background: #22c55e; }
.avail-busy    { background: #ef4444; }
.avail-away    { background: #fbbf24; }
.avail-offline { background: rgba(255,255,255,0.25); }
.cursor-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cursor-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); font-size: .64rem; font-weight: 600; color: var(--text-muted); transition: background .15s, border-color .15s, color .15s; }
.cursor-opt:hover { background: rgba(255,255,255,.07); color: var(--text); }
.cursor-opt.active { background: rgba(255, 255, 255,.1); border-color: var(--accent); color: var(--accent); }
.cursor-opt-icon { font-size: 1.1rem; margin-bottom: 2px; }
.badge-admin-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,255,255,.025); border: 1px solid var(--glass-border); border-radius: 10px; margin-bottom: 7px; }
.badge-admin-preview { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
.admin-bug-btn { padding: 8px 18px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); border-radius: 99px; color: #fbbf24; font-family: var(--font); font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; display: inline-flex; align-items: center; gap: 6px; }
.admin-bug-btn:hover { background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.5); }
@media (max-width: 768px) {
  .admin-content { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--glass-border); display: flex; gap: 3px; padding: 8px 10px; overflow-x: auto; }
  .admin-nav-item { white-space: nowrap; flex-shrink: 0; }
  .admin-main { padding: 16px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

/* Admin cursor/trail picker aliases */
.a-section { margin-bottom: 32px; }
.a-section-head { margin-bottom: 20px; }
.a-section-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; background: linear-gradient(135deg,#fff 60%,var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.a-section-desc { font-size: .78rem; color: var(--text-muted); }
.a-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.a-card-title { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.a-card-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,rgba(255, 255, 255,.18),transparent); }
.a-row { margin-bottom: 14px; }
.a-row label { display: block; font-size: .67rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.a-input { width: 100%; padding: 10px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text); font-family: var(--font); font-size: .875rem; outline: none; transition: border-color .2s; }
.a-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255,.14); }
.a-info { background: rgba(255, 255, 255,.05); border: 1px solid rgba(255, 255, 255,.14); border-radius: 10px; padding: 11px 14px; font-size: .74rem; color: var(--text-dim); line-height: 1.55; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; }
.a-info i { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.a-info.success { background: rgba(34,197,94,.05); border-color: rgba(34,197,94,.14); }
.a-info.success i { color: #22c55e; }
.a-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; display: inline-block; }
.a-toggle input { opacity: 0; width: 0; height: 0; }
.a-toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,.1); border-radius: 99px; transition: .25s; }
.a-toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s; }
.a-toggle input:checked + .a-toggle-slider { background: var(--accent); }
.a-toggle input:checked + .a-toggle-slider::before { transform: translateX(16px); }
.a-btn-sm { padding: 8px 18px; background: rgba(255, 255, 255,.1); border: 1px solid rgba(255, 255, 255,.25); border-radius: 99px; color: var(--accent); font-family: var(--font); font-size: .76rem; font-weight: 600; cursor: pointer; transition: background .2s; display: inline-flex; align-items: center; gap: 6px; }
.a-btn-sm:hover { background: rgba(255, 255, 255,.18); }
.a-cursor-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.a-cursor-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); font-size: .64rem; font-weight: 600; color: var(--text-muted); transition: background .15s, border-color .15s, color .15s; }
.a-cursor-opt:hover { background: rgba(255,255,255,.07); color: var(--text); }
.a-cursor-opt.active { background: rgba(255, 255, 255,.1); border-color: var(--accent); color: var(--accent); }
.a-cursor-opt-icon { font-size: 1.1rem; margin-bottom: 2px; }
.a-color-row { display: flex; align-items: center; gap: 10px; }
.a-color-swatch { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.a-color-swatch:hover { transform: scale(1.1); }
.lockout-overlay { position: fixed; inset: 0; z-index: 20000; background: rgba(6,6,11,.95); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; animation: fadeUp .3s ease both; }
.lockout-icon { font-size: 2.5rem; color: #f87171; }
.lockout-title { font-size: 1.1rem; font-weight: 800; color: #f87171; }
.lockout-sub { font-size: .8rem; color: var(--text-muted); }
.lockout-timer { font-size: 2rem; font-weight: 900; color: #fbbf24; font-family: var(--font-mono); letter-spacing: .05em; }
.lockout-msg { font-size: .72rem; color: rgba(240,240,248,.3); }

/* Editorial portfolio experience */
:root{--accent:#fff;--accent2:#aaa;--bg:#090909;--text:#f4f4f0;--text-muted:rgba(244,244,240,.55);--font:'Inter',system-ui,sans-serif}
html{background:var(--bg);scroll-behavior:smooth}body{background:var(--bg);color:var(--text);cursor:none;user-select:none;-webkit-user-select:none;letter-spacing:-.02em}body:after{content:'';position:fixed;inset:0;pointer-events:none;z-index:20;opacity:.08;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E")}
#loading-screen{display:none}.blob,#particles-canvas{display:none}#cursor{background:#f4f4f0;mix-blend-mode:difference;width:7px;height:7px;box-shadow:0 0 12px rgba(255,255,255,.18)}#bg-layer{position:fixed;opacity:.32;filter:grayscale(1);animation:cinematicDrift 32s ease-in-out infinite alternate}#bg-overlay{background:linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.76))!important}#bg-vignette{background:radial-gradient(ellipse at center,transparent 15%,rgba(0,0,0,.78) 100%)}@keyframes cinematicDrift{from{transform:scale(1)}to{transform:scale(1.025) translate3d(.4%,-.3%,0)}}
.editorial-page{position:relative;z-index:6}.editorial-section{width:min(1240px,calc(100% - 10vw));margin:auto}.hero{height:100svh;min-height:650px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;position:relative}.hero-time{position:absolute;top:7vh;font:500 .72rem var(--font-mono);letter-spacing:.12em;color:var(--text-muted)}.hero-copy{font-size:clamp(1.2rem,2vw,1.7rem);line-height:1.55;color:var(--text-muted)}.hero-name{margin-top:7vh}.hero-name h1{font-size:clamp(5rem,15vw,13rem);font-weight:400;letter-spacing:-.1em;line-height:.8}.hero-name p{margin-top:2rem;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--text-muted)}.scroll-cue{position:absolute;bottom:6vh;font-size:1.5rem;color:var(--text-muted);transition:transform .3s}.scroll-cue:hover{transform:translateY(5px);color:#fff}
.about-section{padding-block:clamp(10rem,16vw,17rem);display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,2fr);gap:clamp(3rem,8vw,8vw)}.section-label{font-size:.65rem;letter-spacing:.3em;color:var(--text-muted);padding-top:.75rem}.about-content{max-width:690px}.about-content h2,.work-intro h2,.contact-content h2{font-size:clamp(2.7rem,6vw,6rem);font-weight:400;line-height:1;letter-spacing:-.07em;margin-bottom:4rem}.about-content p,.contact-content>p{font-size:clamp(1.15rem,2vw,1.65rem);line-height:1.5;color:var(--text-muted);max-width:600px;margin-bottom:1.6rem}.metadata{display:flex;gap:clamp(2rem,8vw,8rem);border-top:1px solid rgba(255,255,255,.18);margin-top:6rem;padding-top:1.3rem}.metadata dt{font-size:.6rem;letter-spacing:.2em;color:var(--text-muted);margin-bottom:.8rem}.metadata dd{font-size:.9rem;color:#ddd}
.work-section{padding-block:clamp(8rem,14vw,15rem)}.work-intro{margin:0 0 12vh 25%}.work-intro h2{margin-bottom:1.4rem}.work-note{color:var(--text-muted);font-size:1rem}.project{display:grid;grid-template-columns:1fr 1.35fr;gap:7vw;align-items:center;margin:0 0 18vh}.project.reverse{grid-template-columns:1.35fr 1fr}.project.reverse .project-copy{grid-column:2;grid-row:1}.project.reverse .project-media{grid-column:1;grid-row:1}.project-copy{padding:2rem 0}.project-number{font:500 .7rem var(--font-mono);color:var(--text-muted);letter-spacing:.12em}.project h3{font-size:clamp(2rem,4vw,4.5rem);font-weight:400;letter-spacing:-.07em;margin:1.5rem 0}.project p{color:var(--text-muted);line-height:1.6;max-width:360px}.project-tech{font-size:.7rem!important;letter-spacing:.12em;text-transform:uppercase;margin:2rem 0!important;color:#ddd!important}.project-link{display:inline-flex;gap:.6rem;border-bottom:1px solid rgba(255,255,255,.45);padding-bottom:.5rem;font-size:.8rem;transition:gap .3s}.project:hover .project-link{gap:1rem}.project-media{aspect-ratio:1.4/1;overflow:hidden;background:#171717;border:1px solid rgba(255,255,255,.13);position:relative}.project-media img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.05);transition:transform .8s cubic-bezier(.2,.7,.2,1),filter .8s}.project:hover img{transform:scale(1.02);filter:grayscale(.7) contrast(1.05)}.project-placeholder{height:100%;display:grid;place-items:center;color:#777;font:1.4rem var(--font-mono);letter-spacing:.15em;text-transform:uppercase}
.contact-section{padding-block:clamp(9rem,15vw,16rem);display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,2fr);gap:clamp(3rem,8vw,8vw)}.contact-content p{max-width:500px}.contact-links{display:flex;flex-wrap:wrap;gap:2.5rem;margin-top:5rem}.contact-links a{font-size:1.1rem;border-bottom:1px solid rgba(255,255,255,.4);padding-bottom:.6rem;transition:color .25s,border-color .25s}.contact-links a:hover{color:#aaa;border-color:#aaa}.final-message{padding:clamp(10rem,18vw,18rem) 5vw clamp(12rem,20vw,20rem);font-size:clamp(3.5rem,8vw,8rem);letter-spacing:-.09em;line-height:.92}.final-message p:last-child{color:#777}footer{border-top:1px solid rgba(255,255,255,.16);padding:1.5rem 5vw 2rem;display:flex;justify-content:space-between;color:#777;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase}.reveal{opacity:0;transform:translateY(22px);filter:blur(7px);transition:opacity .9s ease,transform .9s ease,filter .9s ease}.reveal.in-view{opacity:1;transform:none;filter:none}

/* Shared spring-motion states. Movement stays on the compositor; color/blur remain CSS transitions. */
.spring-reveal{will-change:opacity,transform;transition:opacity .72s cubic-bezier(.22,1,.36,1) var(--spring-delay,0ms),filter .72s cubic-bezier(.22,1,.36,1) var(--spring-delay,0ms),transform .72s cubic-bezier(.22,1,.36,1) var(--spring-delay,0ms)}
.editorial-section{--section-focus:0;transform:translate3d(0,calc((1 - var(--section-focus)) * 4px),0);transition:transform 1.1s cubic-bezier(.22,1,.36,1);}
.editorial-section .section-label{transition:color .7s ease,opacity .7s ease;opacity:calc(.62 + var(--section-focus) * .38)}
.editorial-page .project-media,.editorial-page .contact-link,.editorial-page .project-link{will-change:transform}
.editorial-page .project-media{transition:transform .8s cubic-bezier(.22,1,.36,1),border-color .5s ease,box-shadow .8s ease}
.editorial-page .project-media:hover{transform:translateY(-6px);border-color:rgba(255,255,255,.34);box-shadow:0 18px 45px rgba(0,0,0,.24)}
.editorial-page .project-media img{transition:transform 1.1s cubic-bezier(.22,1,.36,1),filter 1.1s ease}
.editorial-page .contact-link,.editorial-page .project-link{transition:color .35s ease,border-color .35s ease,transform .35s cubic-bezier(.22,1,.36,1)}
.editorial-page .contact-link:hover,.editorial-page .project-link:hover{transform:translateX(5px)}

/* Soft interaction polish */
html{scroll-behavior:smooth;scroll-padding-top:3rem}
.editorial-page a,.editorial-page button{ -webkit-tap-highlight-color:transparent }
.editorial-page a:focus-visible,.editorial-page button:focus-visible{outline:1px solid rgba(255,255,255,.72);outline-offset:6px;transition:outline-offset .35s cubic-bezier(.22,1,.36,1)}
.editorial-page .project-media,.editorial-page .project-link,.editorial-page .contact-link,.editorial-page .scroll-cue{backface-visibility:hidden;transform-origin:center;}
.editorial-page .project-media{isolation:isolate}
.editorial-page .project-media::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(120deg,rgba(255,255,255,.14),transparent 34%,transparent 68%,rgba(255,255,255,.04));opacity:0;transform:translateX(-12%);transition:opacity .8s ease,transform 1.1s cubic-bezier(.22,1,.36,1)}
.editorial-page .project-media:hover::after{opacity:1;transform:translateX(8%)}
.editorial-page .project-media img{will-change:transform,filter;transform:scale(1.001);}
.editorial-page .project:hover .project-media img{transform:scale(1.035);filter:grayscale(.65) contrast(1.04)}
.editorial-page .project-copy{transition:transform .8s cubic-bezier(.22,1,.36,1),opacity .5s ease}
.editorial-page .project:hover .project-copy{transform:translateX(4px)}
.editorial-page .contact-links{perspective:700px}
.editorial-page .contact-link::after,.editorial-page .project-link::after{content:'';display:block;height:1px;margin-top:.6rem;background:#fff;transform:scaleX(0);transform-origin:right;transition:transform .55s cubic-bezier(.22,1,.36,1)}
.editorial-page .contact-link:hover::after,.editorial-page .project-link:hover::after{transform:scaleX(1);transform-origin:left}
.editorial-page .hero-name h1{animation:heroSettle 1.1s cubic-bezier(.22,1,.36,1) both}
@keyframes heroSettle{from{opacity:0;transform:translateY(14px) scale(.97);filter:blur(9px)}to{opacity:1;transform:none;filter:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.editorial-page .project-media::after{display:none}.editorial-page .project-copy,.editorial-page .project:hover .project-copy{transform:none}.editorial-page .hero-name h1{animation:none}}

@media (prefers-reduced-motion: reduce){
  .spring-reveal{transition:opacity .08s linear!important;transform:none!important}
  .editorial-section{transform:none!important;transition:none!important}
  .editorial-page .project-media,.editorial-page .contact-link,.editorial-page .project-link{transition:none!important;transform:none!important}
}
@media (hover:none){
  .spring-reveal{transition-delay:0ms}
}
@media(max-width:700px){body{cursor:auto}html,html *{cursor:auto!important}.editorial-section{width:calc(100% - 12vw)}.hero{min-height:580px}.blob{display:none}#bg-vignette{display:none}.about-section,.contact-section{display:block;padding:16vh 0}.about-content,.contact-content{margin-top:5rem}.about-content h2,.work-intro h2,.contact-content h2{font-size:clamp(2.8rem,13vw,5rem);margin-bottom:2.5rem}.metadata{gap:1.4rem;flex-wrap:wrap;margin-top:4rem}.work-section{padding:8vh 0 12vh}.work-intro{margin:0 0 8vh}.project,.project.reverse{display:flex;flex-direction:column;gap:2rem;margin-bottom:13vh;align-items:stretch}.project.reverse .project-copy,.project.reverse .project-media{order:initial}.project h3{margin:1rem 0}.project-media{aspect-ratio:1.15/1}.contact-links{margin-top:3.5rem;gap:1.8rem}.final-message{padding:14vh 6vw 18vh;font-size:clamp(3.2rem,14vw,7rem)}footer{padding-inline:6vw;line-height:1.7;gap:1rem;flex-direction:column}}

/* New page takes precedence over the legacy presentation styles */
#main-page.editorial-page{position:relative;inset:auto;display:block;opacity:1;visibility:visible;pointer-events:auto;min-height:100vh;padding:0;background:transparent}.editorial-page .hero,.editorial-page .about-section,.editorial-page .work-section,.editorial-page .contact-section,.editorial-page .final-message,.editorial-page footer{position:relative;z-index:7}.editorial-page .hero-name h1,.editorial-page .hero-name p,.editorial-page .hero-copy,.editorial-page .hero-time{position:relative;z-index:8}
.editorial-page .contact-link{display:inline-flex!important;width:auto!important;align-items:center;gap:.25rem;color:inherit!important;background:none!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.4)!important;border-radius:0!important;padding:0 0 .6rem!important;font-size:1.1rem!important;transition:color .25s,border-color .25s!important}.editorial-page .contact-link:hover{padding-left:0!important;color:#aaa!important;border-color:#aaa!important}.editorial-page .contact-link span{font-size:inherit!important;color:inherit!important}.empty-work{color:var(--text-muted);font-size:1.1rem;padding:5rem 0;border-top:1px solid rgba(255,255,255,.16)}

/* Compact rounded type scale inspired by the reference */
:root{--font:'Nunito', 'Inter', system-ui, sans-serif}
.editorial-page{font-family:var(--font);letter-spacing:0}
.editorial-page .hero-copy{font-size:1rem;line-height:1.7}.editorial-page .hero-name{margin-top:3.5rem}.editorial-page .hero-name h1{font-size:clamp(3.5rem,8vw,7rem);font-weight:800;letter-spacing:-.07em}.editorial-page .hero-name p{margin-top:1rem;font-size:.7rem;font-weight:700;letter-spacing:.14em}
.editorial-page .section-label{font-size:.68rem;font-weight:800;letter-spacing:.22em}.editorial-page .about-content h2,.editorial-page .work-intro h2,.editorial-page .contact-content h2{font-size:clamp(1.8rem,3.2vw,3rem);font-weight:800;letter-spacing:-.045em;margin-bottom:2rem}.editorial-page .about-content p,.editorial-page .contact-content>p{font-size:1rem;line-height:1.7;max-width:560px}.editorial-page .metadata{margin-top:3rem}.editorial-page .metadata dt,.editorial-page .metadata dd{font-size:.68rem}.editorial-page .work-intro{margin-bottom:7vh}.editorial-page .work-note{font-size:.9rem}.editorial-page .project{margin-bottom:12vh}.editorial-page .project h3{font-size:clamp(1.5rem,3vw,2.7rem);font-weight:800;letter-spacing:-.05em;margin:1rem 0}.editorial-page .project p{font-size:.9rem}.editorial-page .project-tech{font-size:.65rem!important}.editorial-page .project-link,.editorial-page .contact-links a{font-size:.8rem;font-weight:700}.editorial-page .final-message{font-size:clamp(2.8rem,7vw,7rem);font-weight:800;letter-spacing:-.075em}

/* Final type reduction */
.editorial-page .hero-copy{font-size:.9rem;line-height:1.8}.editorial-page .hero-copy p:first-child{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:rgba(244,244,240,.46)}.editorial-page .hero-name{margin-top:4.5rem}.editorial-page .hero-name h1{font-size:clamp(3.5rem,7vw,6.5rem);font-weight:800;letter-spacing:-.08em}.editorial-page .hero-name p{font-size:.65rem;font-weight:500;letter-spacing:.18em}.editorial-page .section-label{color:rgba(244,244,240,.42);font-weight:500}.editorial-page .about-content h2,.editorial-page .work-intro h2,.editorial-page .contact-content h2{font-size:clamp(1.8rem,3.4vw,3.2rem);font-weight:600;letter-spacing:-.055em;margin-bottom:2.6rem}.editorial-page .about-content p,.editorial-page .contact-content>p{font-size:clamp(.95rem,1.3vw,1.08rem);line-height:1.9;max-width:560px;color:rgba(244,244,240,.7)}.editorial-page .about-content p{white-space:pre-wrap}.editorial-page #profile-about-extra{padding-top:.4rem;color:rgba(244,244,240,.52)}.editorial-page .metadata{margin-top:4.5rem;gap:clamp(2.5rem,7vw,7rem);border-color:rgba(255,255,255,.14)}.editorial-page .metadata dt{font-size:.56rem;color:rgba(244,244,240,.4)}.editorial-page .metadata dd{font-size:.78rem;color:rgba(244,244,240,.75)}.editorial-page .work-intro{margin-bottom:4rem}.editorial-page .work-note{font-size:.92rem;color:rgba(244,244,240,.48)}.editorial-page .project h3{font-size:clamp(1.35rem,2.5vw,2.2rem)}.editorial-page .project p{font-size:.84rem}.editorial-page .empty-work{padding:3.5rem 0;border-top:1px solid rgba(255,255,255,.14);font-size:clamp(1rem,1.7vw,1.35rem);line-height:1.8;color:rgba(244,244,240,.55);max-width:560px}.editorial-page .final-message{font-size:clamp(2.35rem,5.8vw,5.8rem)}
@media(max-width:700px){.editorial-page .hero-name h1{font-size:clamp(2.8rem,16vw,5rem)}.editorial-page .about-content h2,.editorial-page .work-intro h2,.editorial-page .contact-content h2{font-size:clamp(1.55rem,9vw,2.3rem)}.editorial-page .about-section,.editorial-page .contact-section{padding-block:clamp(8rem,20vw,12rem)}.editorial-page .about-content,.editorial-page .contact-content{margin-top:3.5rem}.editorial-page .final-message{font-size:clamp(2.3rem,11vw,5rem)}}

/* Final monochrome editorial overrides */
.editorial-page .hero-time,.editorial-page .section-label,.editorial-page .work-note,.editorial-page .metadata dt{color:rgba(244,244,240,.48)}
.editorial-page .contact-link:hover,.editorial-page .project-link:hover{color:#fff!important}
@media(prefers-reduced-motion:reduce){#bg-layer{animation:none}.reveal{transition:none}.editorial-section{--section-focus:1}}
/* Prevent the blue browser selection highlight on the public profile. */
body:not(.a-admin) ::selection{background:transparent;color:inherit}
body:not(.a-admin) *{-webkit-user-select:none!important;user-select:none!important}
body.a-admin input,body.a-admin textarea,body.a-admin [contenteditable="true"]{-webkit-user-select:text!important;user-select:text!important}

/* ── Breadcrumbs (monochrome editorial) ── */
.page-crumbs{position:relative;z-index:9;display:flex;align-items:center;gap:.6rem;padding:1.4rem clamp(1.5rem,6vw,5rem);font-size:.62rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:rgba(244,244,240,.42)}
.page-crumbs a{color:inherit;border-bottom:1px solid transparent;padding-bottom:.15rem;transition:color .25s,border-color .25s}
.page-crumbs a:hover{color:#fff;border-color:#fff}
.page-crumbs a[aria-current]{color:rgba(244,244,240,.75);border-color:rgba(244,244,240,.4)}
.crumb-sep{opacity:.4;user-select:none}

/* Skills stack */
.editorial-page .skills-section{display:grid;grid-template-columns:minmax(110px,18%) 1fr;gap:clamp(2rem,7vw,8rem);padding:11vh 0 9vh;border-top:1px solid rgba(255,255,255,.1)}
.editorial-page .skills-content{max-width:680px}.editorial-page .skills-kicker{margin:0 0 .5rem;font-size:.66rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:rgba(244,244,240,.48)}
.editorial-page .skills-content h2{margin:0 0 1.2rem;font-size:clamp(2rem,3.6vw,3.4rem);font-weight:600;letter-spacing:-.05em}.editorial-page .skills-intro{margin:0 0 3rem;max-width:610px;font-size:clamp(.92rem,1.25vw,1.05rem);line-height:1.8;color:rgba(244,244,240,.62)}
.editorial-page .skill-group{margin-top:2.25rem}.editorial-page .skill-group h3{margin:0 0 1rem;font-size:.72rem;font-weight:700;color:rgba(244,244,240,.65)}
.editorial-page .skill-chips{display:flex;flex-wrap:wrap;gap:.65rem}.editorial-page .skill-chip{display:inline-flex;align-items:center;gap:.48rem;min-height:30px;padding:.3rem .72rem;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:rgba(255,255,255,.025);font-size:.75rem;font-weight:600;color:rgba(244,244,240,.73)}
.editorial-page .skill-chip i{width:1rem;text-align:center;font-size:.86rem;color:rgba(244,244,240,.8)}
.editorial-page .skill-chip .skill-chip-icon{width:12px;height:12px;object-fit:contain;flex:none}
@media(max-width:700px){.editorial-page .skills-section{display:block;padding-block:clamp(7rem,18vw,10rem)}.editorial-page .skills-content{margin-top:3.5rem}.editorial-page .skills-content h2{font-size:clamp(1.8rem,10vw,2.6rem)}.editorial-page .skill-chip{font-size:.72rem}}

/* ════════════════════════════════════════════════════════════
   PRESENCE — Discord status + Spotify now playing (Lanyard)
   GPU-only animations (transform/opacity). Skeletons have fixed
   heights so nothing shifts when content lands.
   ════════════════════════════════════════════════════════════ */
.presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.presence-grid.single { grid-template-columns: 1fr; }
.presence-card {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.015) 55%),
    var(--bg, #08080f);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .45s var(--spring), border-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
.presence-card:hover {
  transform: translate3d(0,-3px,0) scale(1.008);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
}
.presence-card.ready { animation: pcPop .55s var(--spring) both; }
.presence-card.pop .pc-avatar-wrap, .presence-card.pop .sp-art-wrap { animation: pcPop .55s var(--spring) both; }
@keyframes pcPop {
  0%   { transform: scale(.92) translate3d(0,6px,0); opacity: 0; }
  100% { transform: scale(1) translate3d(0,0,0); opacity: 1; }
}
.presence-card.degraded { border-style: dashed; opacity: .75; }
/* Discord card stacks head above activity row (the card flex is row by default,
   which crushed the name/status column to zero width). */
#presence-discord.presence-card { flex-direction: column; }
#presence-discord .pc-activity { width: 100%; }

/* ── Skeletons ── */
.pc-skel {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
}
.pc-skel::after {
  content: ''; position: absolute; inset: 0;
  transform: translate3d(-100%,0,0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  animation: pcShimmer 1.4s ease-in-out infinite;
}
@keyframes pcShimmer { to { transform: translate3d(100%,0,0); } }
.pc-skel-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.pc-skel-art { width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; }
.pc-skel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.pc-skel-line { height: 11px; }
.pc-skel-line.w40 { width: 40%; } .pc-skel-line.w50 { width: 50%; }
.pc-skel-line.w60 { width: 60%; } .pc-skel-line.w75 { width: 75%; }
.pc-skel-line.w90 { width: 90%; height: 8px; }

/* ── Discord card ── */
.pc-head { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.pc-avatar-wrap { position: relative; flex-shrink: 0; width: 64px; height: 64px; }
.pc-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 1px solid rgba(255,255,255,.12);
  opacity: 0; transition: opacity .35s ease;
  background: rgba(255,255,255,.05);
}
.pc-status-dot {
  position: absolute; right: 0; bottom: 1px;
  width: 15px; height: 15px; border-radius: 50%;
  border: 3px solid var(--bg, #08080f);
  background: #747f8d;
  transform: translateZ(0);
}
.pc-status-dot[data-status="online"]  { background: #9a9a9a; }
.pc-status-dot[data-status="idle"]    { background: #6e6e6e; }
.pc-status-dot[data-status="dnd"]     { background: #4a4a4a; }
.pc-status-dot[data-status="online"]::after,
.pc-status-dot[data-status="idle"]::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  color: inherit;
  animation: pcPing 2.2s ease-out infinite;
}
.pc-status-dot[data-status="online"]::after  { border-color: rgba(154,154,154,.5); }
.pc-status-dot[data-status="idle"]::after    { border-color: rgba(110,110,110,.5); }
@keyframes pcPing {
  0%   { transform: scale(1); opacity: .9; }
  80%, 100% { transform: scale(1.65); opacity: 0; }
}
.pc-id { min-width: 0; flex: 1; }
.pc-name { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-status { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.pc-brand { margin-left: auto; color: rgba(160,160,160,.45); font-size: 1rem; transition: color .25s ease, transform .45s var(--spring); }
.presence-card:hover .pc-brand { color: rgba(200,200,200,.8); transform: translate3d(0,-1px,0) scale(1.08); }

/* Activity row */
.pc-activity {
  display: flex; gap: 13px; align-items: center;
  width: 100%; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: opacity .35s ease, transform .45s var(--spring);
}
.pc-activity.hidden { display: none; }
.pc-act-img-wrap { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.pc-act-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; }
.pc-act-img-wrap::after { content: ''; position: absolute; inset: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.pc-act-ph {
  position: absolute; inset: 0; border-radius: 10px;
  display: none; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); color: var(--text-muted); font-size: .95rem;
}
.pc-act-ph.show { display: flex; }
.pc-act-small {
  position: absolute; right: -5px; bottom: -5px;
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--bg, #08080f);
  background: var(--bg, #08080f);
}
.pc-act-small[data-on=""] { display: none; }
.pc-act-small:not([data-on]) { display: none; }
.pc-act-body { min-width: 0; flex: 1; }
.pc-act-type { font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.pc-act-name { font-size: .84rem; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-act-detail, .pc-act-state { font-size: .72rem; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-act-detail:empty, .pc-act-state:empty { display: none; }
.pc-act-elapsed { font-size: .62rem; color: var(--text-muted); font-family: var(--font-mono, monospace); margin-top: 4px; }
.pc-act-elapsed:empty { display: none; }
.pc-error { font-size: .72rem; color: var(--text-muted); margin-top: 10px; font-style: italic; }

/* ── Spotify card ── */
.sp-art-wrap { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.sp-art-wrap.hidden { display: none; }
.sp-art {
  width: 72px; height: 72px; border-radius: 12px;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .4s ease, transform .5s var(--spring);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.6);
}
.presence-card:hover .sp-art { transform: scale(1.045) rotate(-1.2deg); }
.sp-art-ph {
  position: absolute; inset: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(160,160,160,.09);
  color: rgba(170,170,170,.6); font-size: 1.35rem;
}
.sp-art[src]:not([src=""]) ~ .sp-art-ph { display: none; }
.sp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sp-kicker { display: flex; align-items: center; gap: 5px; font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(160,160,160,.7); }
.sp-kicker i { font-size: .62rem; }
.sp-state { display: flex; align-items: center; gap: 5px; font-size: .6rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.sp-state-dot { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; box-shadow: 0 0 6px rgba(160,160,160,.6); animation: spPulse 1.6s ease-in-out infinite; }
.sp-state-dot[data-on=""] { background: var(--text-muted); box-shadow: none; animation: none; }
@keyframes spPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.sp-title { font-size: .92rem; font-weight: 600; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-artist { font-size: .72rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-progress {
  height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.09);
  margin-top: 12px; overflow: hidden;
}
.sp-progress-fill {
  height: 100%; width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8a8a8a, #5f5f5f);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.sp-progress-knob {
  display: block; float: right;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; margin-top: -2px;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  opacity: 0; transition: opacity .3s ease;
}
.presence-card:hover .sp-progress-knob { opacity: 1; }
.sp-times { display: flex; justify-content: space-between; font-size: .58rem; color: var(--text-muted); font-family: var(--font-mono, monospace); margin-top: 5px; }

/* Fallback state — replaces the whole card body, never empty space */
.sp-fallback {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center; gap: 10px;
  font-size: .78rem; color: var(--text-muted);
}
.sp-fallback i { color: rgba(170,170,170,.45); font-size: 1rem; }
.presence-card.fallback .sp-body,
.presence-card.fallback .sp-top { display: none; }
.presence-card.fallback .sp-fallback { display: flex; }
.presence-card.fallback { min-height: 96px; align-items: center; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .presence-grid { grid-template-columns: 1fr; gap: 14px; }
  .presence-card { padding: 16px; min-height: 116px; }
}
@media (prefers-reduced-motion: reduce) {
  .presence-card, .presence-card * { animation: none !important; transition-duration: .01ms !important; }
}

/* ══════════ GSAP motion system overrides ══════════ */
/* Masked text reveal primitives */
.gs-mask{display:inline-block;overflow:hidden;vertical-align:bottom;padding-bottom:0.08em;margin-bottom:-0.08em}
.gs-line-inner{display:inline-block;will-change:transform,opacity;backface-visibility:hidden}
/* When GSAP owns motion: strip CSS transitions that fight GSAP tweens */
[data-gsap-motion="1"] .reveal{transition:none!important;filter:none!important;transform:none!important;opacity:1}
[data-gsap-motion="1"] .spring-reveal{transition:none!important}
/* Pre-intro states (avoid any flash before GSAP tweens run) */
html[data-gsap-motion="1"] #bg-layer{opacity:0}
html[data-gsap-motion="1"] .page-crumbs a,
html[data-gsap-motion="1"] .page-crumbs .crumb-sep,
html[data-gsap-motion="1"] .hero-time,
html[data-gsap-motion="1"] .hero-copy p,
html[data-gsap-motion="1"] .scroll-cue{opacity:0}
html[data-gsap-motion="1"] .gs-line-inner{transform:translateY(110%);opacity:0}
@media (prefers-reduced-motion: reduce){
  html[data-gsap-motion="1"] #bg-layer,
  html[data-gsap-motion="1"] .page-crumbs a,
  html[data-gsap-motion="1"] .hero-time,
  html[data-gsap-motion="1"] .hero-copy p,
  html[data-gsap-motion="1"] .scroll-cue{opacity:1}
  html[data-gsap-motion="1"] .gs-line-inner{transform:none!important;opacity:1!important}
  .gs-mask{overflow:visible}
}
