/* ───── tokens ───── */
:root {
  --bg: #0a0b10;
  --bg-2: #0e1018;
  --surface: #14171f;
  --surface-2: #1a1e29;
  --border: #232732;
  --border-2: #2d3240;
  --text: #e8eaef;
  --text-dim: #a5a9b5;
  --text-mute: #6e7383;
  --accent: #7c5cff;
  --accent-2: #2dd4ff;
  --accent-rgb: 124, 92, 255;
  --success: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --space: 16px;
  --maxw: 1180px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .18s;
  --t: .35s;
  --t-slow: .7s;
}

/* density variations */
[data-density="compact"] { --space: 12px; }
[data-density="comfy"]   { --space: 20px; }
[data-radius="sharp"] { --radius: 4px; --radius-sm: 2px; --radius-lg: 8px; }
[data-radius="soft"]  { --radius: 14px; --radius-sm: 8px; --radius-lg: 22px; }
[data-radius="pill"]  { --radius: 22px; --radius-sm: 14px; --radius-lg: 32px; }

[data-animations="off"] *,
[data-animations="off"] *::before,
[data-animations="off"] *::after {
  animation-duration: 0ms !important;
  transition-duration: 0ms !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: 0;
}

::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ───── background canvas ───── */
.bg-fx {
  position: absolute; inset: 0 0 auto; height: 100vh; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-dot {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.045) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-aurora {
  position: absolute; inset: 0;
  opacity: .75;
  background:
    radial-gradient(720px circle at 8% -10%, rgba(var(--accent-rgb),0.18), transparent 58%),
    radial-gradient(620px circle at 92% -8%, rgba(45, 212, 255, 0.13), transparent 58%);
}
.bg-aurora::before, .bg-aurora::after {
  display: none;
}

[data-bg="grid"] .bg-aurora { display: none; }
[data-bg="minimal"] .bg-aurora, [data-bg="minimal"] .bg-dot { display: none; }

/* ───── layout ───── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: clamp(80px, 12vw, 140px) 0; position: relative; z-index: 1; }
section.hero { padding: 100px 0 0; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.section-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  margin-top: 16px;
  text-wrap: balance;
}
.section-sub {
  color: var(--text-dim);
  margin-top: 12px;
  max-width: 560px;
  font-size: 15.5px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

@media (min-width: 720px) {
  .section-title { font-size: 38px; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 44px; }
}

/* ───── nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  width: 100%; max-width: var(--maxw);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14, 16, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 14px; letter-spacing: 0;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #0a0b10; font-weight: 700; font-size: 13px;
  font-family: var(--font-display);
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.35);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-size: 13px; color: var(--text-dim);
  padding: 8px 12px; border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.lang-toggle {
  display: inline-flex; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 8px; padding: 2px;
}
.lang-toggle button {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 5px 9px; border-radius: 6px; color: var(--text-mute);
  transition: all var(--t-fast); letter-spacing: 0.05em;
}
.lang-toggle button.active { background: var(--text); color: var(--bg); }
.clock {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  padding: 5px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .clock { display: none; }
}

/* ───── hero ───── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px;
}
.hero-inner { width: 100%; }
.avail-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 8px 14px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 999px;
}
.avail-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); position: relative;
}
.avail-pill .dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; background: var(--success);
  opacity: .18;
}

.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 54px; line-height: 0.95;
  letter-spacing: 0;
  margin-top: 28px;
  text-wrap: balance;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero h1 .accent {
  background: none;
  color: var(--accent-2);
  font-style: italic; font-weight: 400;
}

@media (min-width: 720px) {
  .hero h1 { font-size: 82px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 96px; }
}
.hero-role {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim); margin-top: 24px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-role::before { content: "//"; color: var(--accent); }
.hero-intro {
  margin-top: 24px; max-width: 580px;
  color: var(--text-dim); font-size: 17px; line-height: 1.6;
  overflow-wrap: break-word;
}
.hero-intro b { color: var(--text); font-weight: 500; }
.hero-actions {
  display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: all var(--t-fast);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.btn:hover { background: rgba(255,255,255,0.06); border-color: var(--border-2); transform: translateY(-1px); }
.btn-primary {
  background: var(--text); color: var(--bg); border-color: var(--text);
}
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-primary .arrow { transition: transform var(--t-fast); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--text-mute); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, transparent, var(--text-mute), transparent);
}

/* ───── about ───── */
.about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-bio p { color: var(--text-dim); margin-bottom: 18px; font-size: 16.5px; line-height: 1.7; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio b { color: var(--text); font-weight: 500; }
.about-bio .hl { color: var(--accent); font-weight: 500; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-content: start;
}
.stat {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  position: relative; overflow: hidden;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); margin-top: 4px;
}
.stat.full { grid-column: 1 / -1; }
.stat-toolbox { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--text-dim);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}

/* ───── projects ───── */
.proj-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 820px) { .proj-grid { grid-template-columns: 1fr; } }

.proj {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  padding: 22px;
  display: flex; flex-direction: column;
  transition: transform var(--t), border-color var(--t), background var(--t);
  min-height: 380px;
  contain: content;
}
.proj::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(var(--accent-rgb), 0.13), transparent 40%);
  opacity: 0; transition: opacity var(--t);
}
.proj:hover { transform: translateY(-4px); border-color: var(--border-2); }
.proj:hover::before { opacity: 1; }

.proj-thumb {
  height: 200px; border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden; position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.proj-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  margin-bottom: 8px; letter-spacing: 0.05em;
}
.proj-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.18);
  color: #86efac;
}
.proj-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.proj-status.wip {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}
.proj-status.wip .dot { background: var(--warn); }

.proj h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 24px; letter-spacing: 0;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.proj p { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; flex: 1; }
.proj-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.proj-link {
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap var(--t-fast);
}
.proj:hover .proj-link { gap: 12px; color: var(--accent-2); }
.proj-tags { display: flex; gap: 6px; }

/* ───── now ───── */
.now-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 820px) { .now-grid { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.005));
  padding: 24px;
  contain: content;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 18px; letter-spacing: 0;
}
.now-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.now-item:last-child { border-bottom: 0; padding-bottom: 0; }
.now-item:first-child { padding-top: 0; }
.now-bullet {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px; flex: none;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.now-bullet.b2 { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.now-bullet.b3 { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.now-item .t { font-weight: 500; color: var(--text); margin-bottom: 2px; }
.now-item .d { font-size: 13.5px; color: var(--text-dim); }
.now-item .when {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-mute); margin-top: 4px; letter-spacing: 0.08em;
}

/* music widget */
.music {
  display: flex; gap: 16px; align-items: center;
}
.music-art {
  width: 84px; height: 84px; flex: none;
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #6d28d9, #db2777, #f59e0b);
  position: relative;
  box-shadow: 0 8px 24px rgba(109, 40, 217, 0.4);
}
.music-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
}
.music-info { flex: 1; min-width: 0; }
.music-track { font-weight: 500; font-size: 15px; margin-bottom: 2px; }
.music-artist { color: var(--text-dim); font-size: 13px; }
.music-bars {
  display: flex; gap: 3px; align-items: end; height: 18px; margin-top: 10px;
}
.music-bars span {
  width: 3px; background: var(--accent);
  border-radius: 2px;
}
.music-bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.music-bars span:nth-child(4) { height: 70%; animation-delay: 0.45s; }
.music-bars span:nth-child(5) { height: 50%; animation-delay: 0.6s; }

.music-progress {
  margin-top: 12px; height: 3px;
  background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden;
}
.music-progress > div {
  height: 100%; width: 38%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.music-times {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-mute); margin-top: 4px;
}

/* ───── guestbook ───── */
.gb-form {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.005));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px;
}
.gb-row { display: flex; gap: 10px; }
.gb-row > * { flex: 1; }
.gb-form input, .gb-form textarea {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text); font: inherit; font-size: 14px;
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: var(--font-body);
  width: 100%;
  resize: vertical;
}
.gb-form input:focus, .gb-form textarea:focus {
  outline: none; border-color: var(--accent);
  background: rgba(0,0,0,0.4);
}
.gb-form textarea { min-height: 80px; line-height: 1.5; }
.gb-submit {
  background: var(--text); color: var(--bg);
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px;
  transition: all var(--t-fast);
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
}
.gb-submit:hover { background: #fff; }
.gb-submit:disabled { opacity: .5; cursor: not-allowed; }

.gb-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.gb-msg {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255,255,255,0.015);
}
.gb-msg-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.gb-msg-name { font-weight: 500; font-size: 14px; }
.gb-msg-name .you {
  font-family: var(--font-mono); font-size: 9.5px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(var(--accent-rgb), 0.15); color: var(--accent);
  margin-left: 8px; letter-spacing: 0.05em;
}
.gb-msg-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.gb-msg-body { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ───── footer ───── */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-grid {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
}
.footer-credit {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-mute); letter-spacing: 0.04em;
}
.footer-credit .heart { color: var(--accent); }
.footer-socials { display: flex; gap: 6px; }
.soc {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--t-fast);
  background: rgba(255,255,255,0.02);
}
.soc:hover { color: var(--text); border-color: var(--border-2); background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.soc svg { width: 16px; height: 16px; }

/* ───── reveal animation ───── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-aurora::before,
  .bg-aurora::after,
  .avail-pill .dot::after,
  .hero-scroll .line,
  .music-bars span {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ───── project thumbnail styles (privacy-safe mini previews) ───── */
.thumb {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 12px;
  font-size: 10px;
  color: #fff;
}

.thumb-ani {
  background: #060a14;
  gap: 10px;
}
.ani-top {
  display: flex; align-items: center; gap: 8px;
  height: 24px; color: #738098;
  font-family: var(--font-mono); font-size: 8px;
}
.ani-mark {
  width: 18px; height: 18px; border-radius: 6px;
  display: grid; place-items: center;
  background: #1dd6c7; color: #061014; font-weight: 800;
}
.ani-brand { color: #e8fff9; font-weight: 700; font-size: 10px; margin-right: auto; }
.ani-tab {
  color: #1dd6c7; background: rgba(29,214,199,.12);
  padding: 4px 7px; border-radius: 6px;
}
.ani-hero {
  flex: 1; min-height: 0; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(6,10,20,.92), rgba(6,10,20,.35)),
    radial-gradient(circle at 72% 42%, rgba(31,214,199,.34), transparent 28%),
    linear-gradient(135deg, #11213b, #251024 55%, #071624);
}
.ani-copy { display: flex; flex-direction: column; gap: 7px; max-width: 62%; }
.ani-copy strong { font-family: var(--font-display); font-size: 18px; line-height: 1.05; }
.ani-pill {
  width: max-content; padding: 4px 8px; border-radius: 999px;
  background: rgba(29,214,199,.18); color: #2fffe8;
  font-family: var(--font-mono); font-size: 7px; font-weight: 700;
}
.ani-meta { color: rgba(255,255,255,.58); font-size: 8px; }
.ani-poster {
  width: 54px; height: 76px; border-radius: 8px;
  background:
    radial-gradient(circle at 52% 22%, #fff, transparent 10%),
    linear-gradient(155deg, #243dff, #23d8c9 45%, #111827 46%, #0b1020);
  border: 1px solid rgba(29,214,199,.4);
}
.ani-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ani-strip span {
  height: 36px; border-radius: 7px;
  background: linear-gradient(135deg, #14213a, #1dd6c7);
}
.ani-strip span:nth-child(2) { background: linear-gradient(135deg, #342447, #f59e0b); }
.ani-strip span:nth-child(3) { background: linear-gradient(135deg, #102a43, #8b5cf6); }
.ani-strip span:nth-child(4) { background: linear-gradient(135deg, #263238, #22c55e); }

.thumb-valo {
  background: #0c1720;
  border-top: 2px solid #ff4655;
  gap: 12px;
  font-family: var(--font-mono);
}
.valo-head { display: flex; justify-content: space-between; align-items: center; }
.valo-head span {
  color: #ff4655; font-weight: 800; font-size: 13px; letter-spacing: .18em;
}
.valo-head button {
  background: #ff4655; color: #fff; border-radius: 6px;
  padding: 5px 9px; font-size: 8px; font-weight: 800;
}
.valo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.valo-stats div {
  border: 1px solid rgba(255,255,255,.1); border-radius: 8px;
  background: rgba(255,255,255,.03); padding: 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.valo-stats b { color: #ff4655; font-size: 15px; }
.valo-stats span { color: rgba(255,255,255,.5); font-size: 7px; text-transform: uppercase; }
.valo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.valo-card {
  min-width: 0; border-radius: 10px; padding: 9px 6px;
  background: #111d29; border: 1px solid rgba(255,255,255,.09);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.rank-gem {
  width: 28px; height: 28px; display: block;
  clip-path: polygon(50% 0, 88% 24%, 78% 80%, 50% 100%, 22% 80%, 12% 24%);
  background: linear-gradient(180deg, #facc15, #92400e);
}
.rank-gem.g1 { background: linear-gradient(180deg, #67e8f9, #155e75); }
.rank-gem.g2 { background: linear-gradient(180deg, #6ee7b7, #047857); }
.valo-card strong { font-size: 8px; }
.valo-card small { color: #19d3d1; font-size: 7px; }

.thumb-portf {
  background: #130d09;
  padding: 0;
  color: #f6efe7;
}
.portf-layout { display: grid; grid-template-columns: 62px 1fr; height: 100%; }
.portf-layout aside {
  border-right: 1px solid rgba(246,239,231,.08);
  padding: 12px 8px; display: flex; flex-direction: column; gap: 10px;
  background: #17100b; font-weight: 700;
}
.portf-logo {
  width: 22px; height: 22px; border-radius: 8px;
  display: grid; place-items: center;
  background: #f2a85a; color: #140d08;
}
.portf-layout aside i {
  height: 8px; border-radius: 4px; background: rgba(246,239,231,.12);
}
.portf-layout main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.portf-greeting { font-size: 13px; font-weight: 800; }
.portf-total {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 600;
  color: #fff;
}
.portf-pills { display: flex; gap: 6px; }
.portf-pills span {
  color: #6ee7a0; background: rgba(94,176,109,.17);
  border-radius: 999px; padding: 4px 7px; font-size: 8px;
}
.portf-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; flex: 1; }
.portf-grid span {
  border: 1px solid rgba(246,239,231,.08);
  border-radius: 10px;
  background: #231a14;
}
.portf-grid span:first-child { grid-row: span 2; }

.thumb-ludex {
  background: #0f0c08;
  color: #f6f0e7;
  gap: 10px;
}
.ludex-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ludex-mark { font-family: serif; font-style: italic; font-size: 18px; }
.ludex-search {
  margin-left: auto; color: rgba(246,240,231,.48);
  border: 1px solid rgba(246,240,231,.1); border-radius: 999px;
  padding: 5px 12px; font-size: 8px;
}
.ludex-hero { display: flex; flex-direction: column; gap: 4px; }
.ludex-hero strong {
  font-family: Georgia, serif; font-size: 24px; font-weight: 500;
}
.ludex-hero span { color: #d8b27a; }
.ludex-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid rgba(246,240,231,.1); }
.ludex-metrics span { padding: 7px 4px; font-size: 8px; color: #d8b27a; text-transform: uppercase; }
.ludex-metrics b { display: block; color: #f6f0e7; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.ludex-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-height: 0; }
.ludex-cover {
  border-radius: 9px 9px 0 0; padding: 8px 7px;
  display: flex; align-items: end;
  font-family: Georgia, serif; font-size: 14px;
  background: linear-gradient(160deg, #111827, #2563eb);
}
.ludex-cover.c1 { background: linear-gradient(160deg, #7c4a12, #2a1a0b); }
.ludex-cover.c2 { background: linear-gradient(160deg, #083344, #d97706); }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 10px 12px; }
  .bg-aurora::before,
  .bg-aurora::after {
    animation: none;
  }
  .nav-inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-inner {
    width: auto;
    max-width: calc(100vw - 24px);
    flex: 1 1 auto;
    padding-left: 12px;
    gap: 10px;
    min-width: 0;
  }
  .nav-right { flex: none; }
  .lang-toggle button { padding: 5px 8px; }
  .logo { font-size: 13px; min-width: 0; }
  .avail-pill { max-width: 100%; font-size: 10px; }
  section.hero { padding-top: 84px; }
  .hero { min-height: 92vh; }
  .hero h1 { font-size: 34px; line-height: 1.06; overflow-wrap: anywhere; }
  .hero h1 .accent { display: block; }
  .hero-intro {
    max-width: calc(100vw - 32px);
    font-size: 15.5px;
    overflow-wrap: anywhere;
  }
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }
  .hero-scroll { bottom: 22px; }
  .stats { grid-template-columns: 1fr; }
  .proj { min-height: auto; padding: 16px; }
  .proj-thumb { height: 176px; }
  .proj-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .proj-tags { flex-wrap: wrap; }
  .gb-row { flex-direction: column; }
  .gb-submit { width: 100%; justify-content: center; }
  .gb-msg-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .music {
    flex-direction: column;
    align-items: flex-start;
  }
  .music-art { width: 72px; height: 72px; }
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
