*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0e0e0e;
  --ink2:   #131313;
  --card:   #191919;
  --surf:   #202020;
  --surf2:  #2a2a2a;
  --line:   rgba(255,255,255,0.07);
  --line-hi:rgba(255,255,255,0.13);

  --a:      #e8c547;
  --a2:     #c9a832;
  --a3:     #f5d462;
  --am:     rgba(232,197,71,0.12);
  --am2:    rgba(232,197,71,0.06);

  --green:  #22c55e;
  --red:    #ef4444;
  --amber:  #f59e0b;
  --cyan:   #06b6d4;

  --t:      #efefef;
  --t2:     #8a8a8a;
  --t3:     #4a4a4a;
  --t4:     #2e2e2e;

  --display: 'Space Grotesk', sans-serif;
  --inter:   'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --rad:    6px;
  --rad-md: 10px;
  --rad-lg: 16px;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tr:     0.22s var(--ease);

  --sh1: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.6);
  --sh2: 0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
  --sh3: 0 12px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  --sh4: 0 24px 80px rgba(0,0,0,0.7), 0 8px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--ink);
  color: var(--t);
  font-family: var(--inter);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(232,197,71,0.4); color: #0e0e0e; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; color: var(--a3); }

.cursor {
  width: 5px; height: 5px;
  background: var(--a);
  border-radius: 50%;
  position: fixed; z-index: 9999;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .12s, height .12s;
}
.cursor-follower {
  width: 24px; height: 24px;
  border: 1px solid rgba(232,197,71,0.4);
  border-radius: 50%;
  position: fixed; z-index: 9998;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 12px; height: 12px; }
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower { width: 44px; height: 44px; border-color: rgba(232,197,71,0.6); }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surf2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--a); }

.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--a);
  z-index: 9997; width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(232,197,71,0.7);
}

.nav {
  position: fixed; inset: 0 0 auto;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 60px;
  transition: padding var(--tr), background var(--tr);
}
.nav.scrolled {
  padding: 14px 60px;
  background: rgba(14,14,14,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--a);
  transition: color var(--tr);
}
.nav-logo:hover { color: var(--a3); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.82rem; font-family: var(--inter); font-weight: 400;
  color: var(--t2); padding: 7px 13px; border-radius: var(--rad);
  transition: color var(--tr), background var(--tr);
}
.nav-link:hover { color: var(--t); background: var(--line); }
.nl-sep { width: 1px; height: 18px; background: var(--line-hi); margin: 0 6px; align-self: center; }

.nl-cta {
  color: var(--a) !important; font-weight: 500;
  border: 1px solid rgba(232,197,71,0.3);
  background: var(--am2);
}
.nl-cta:hover { background: var(--am) !important; border-color: rgba(232,197,71,0.6); color: var(--a3) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--t2); transition: var(--tr);
}

.hero {
  position: relative; min-height: 100svh;
  overflow: hidden; display: flex; align-items: center;
  background: var(--ink);
}

#particleCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; z-index: 0; opacity: 0.4;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(255,255,255,0.025) 79px,
    rgba(255,255,255,0.025) 80px
  );
  mask-image: radial-gradient(ellipse 80% 80% at 30% 50%, black 20%, transparent 100%);
}

.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 80% 100% at 100% 50%, transparent 40%, rgba(14,14,14,0.98) 80%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(14,14,14,0.7) 0%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute; z-index: 1;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,197,71,0.14) 0%, transparent 65%);
  top: -100px; left: 10%;
  border-radius: 50%; pointer-events: none;
  animation: blobDrift 18s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute; z-index: 1;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 65%);
  bottom: -100px; right: 15%;
  border-radius: 50%; pointer-events: none;
  animation: blobDrift 14s 5s ease-in-out infinite reverse;
}
@keyframes blobDrift {
  0%,100% { transform: translate(0,0); }
  40%      { transform: translate(30px,-20px); }
  70%      { transform: translate(-15px,25px); }
}

@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.04); }
  66%      { transform: translate(-15px,25px) scale(0.97); }
}

.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: 140px 60px 100px;
  display: flex; align-items: center; gap: 80px;
}

.hero-left { flex: 1; max-width: 600px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  color: var(--t3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 36px;
  animation: fadeUp .6s ease both;
}
.hk-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(4.5rem, 10vw, 9rem);
  font-weight: 700; line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  white-space: nowrap;
  color: var(--t);
  animation: fadeUp .7s .08s ease both;
}
.hn-accent { color: var(--a); font-style: normal; }

.hero-role-line {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--t2); font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  animation: fadeUp .6s .14s ease both;
  border-left: 2px solid var(--a);
  padding-left: 14px;
}

.hero-bio {
  font-size: 1rem; color: var(--t2); line-height: 1.85;
  max-width: 460px; margin-bottom: 44px;
  animation: fadeUp .6s .24s ease both;
}

.hero-actions {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 60px;
  animation: fadeUp .6s .32s ease both;
}

.ha-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 28px; border-radius: var(--rad);
  background: var(--a); color: #fff;
  font-weight: 600; font-size: 0.88rem; font-family: var(--inter);
  letter-spacing: -0.01em;
  transition: var(--tr);
  box-shadow: 0 0 0 1px var(--a2), 0 4px 20px rgba(232,197,71,0.35);
  position: relative; overflow: hidden;
}
.ha-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.ha-primary svg { transition: transform var(--tr); }
.ha-primary:hover {
  background: var(--a2);
  box-shadow: 0 0 0 1px var(--a2), 0 6px 28px rgba(232,197,71,0.5);
  transform: translateY(-1px);
}
.ha-primary:hover svg { transform: translateX(3px); }
.ha-primary:active { transform: translateY(0); }

.ha-secondary {
  padding: 11px 26px; border-radius: var(--rad);
  border: 1px solid var(--line-hi); color: var(--t2);
  font-size: 0.88rem; font-family: var(--inter); font-weight: 500;
  transition: var(--tr);
  background: var(--surf);
}
.ha-secondary:hover { border-color: rgba(255,255,255,0.25); color: var(--t); background: var(--surf2); }

.hero-facts {
  display: flex; align-items: center; gap: 0;
  animation: fadeUp .6s .4s ease both;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hf-item { padding: 0 24px; text-align: center; }
.hf-item:first-child { padding-left: 0; }
.hf-val {
  display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 700;
  color: var(--a); line-height: 1; letter-spacing: -0.03em;
}
.hf-key {
  font-size: 0.7rem; color: var(--t3);
  letter-spacing: 0.06em; margin-top: 4px;
  font-family: var(--mono);
}
.hf-div { width: 1px; height: 32px; background: var(--line); }

.hero-right {
  flex: 0 0 auto;
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp .8s .1s ease both;
}
.skin-scene {
  position: relative; width: 320px; height: 480px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.sr-ring {
  position: absolute; border-radius: 0;
  border: 1px solid rgba(232,197,71,0.08);
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) rotate(45deg);
  animation: diamondSpin 20s linear infinite;
}
.sr-ring-1 { width: 200px; height: 200px; animation-delay: 0s; }
.sr-ring-2 { width: 300px; height: 300px; animation-delay: 0s; border-color: rgba(232,197,71,0.05); animation-direction: reverse; }
.sr-ring-3 { width: 420px; height: 420px; animation-delay: 0s; border-color: rgba(232,197,71,0.03); }
@keyframes diamondSpin {
  from { transform: translate(-50%,-50%) rotate(45deg); }
  to   { transform: translate(-50%,-50%) rotate(405deg); }
}

.skin-float {
  position: relative; z-index: 2;
  animation: skinBob 5s ease-in-out infinite;
}
@keyframes skinBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.skin-glow-halo {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 40px;
  background: radial-gradient(ellipse, rgba(232,197,71,0.5) 0%, transparent 70%);
  filter: blur(18px);
  animation: haloBreath 4s ease-in-out infinite;
}
@keyframes haloBreath {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 0.9; transform: translateX(-50%) scaleX(1.1); }
}
.skin-img {
  width: 180px; image-rendering: pixelated;
  filter:
    drop-shadow(0 0 30px rgba(232,197,71,0.4))
    drop-shadow(0 0 60px rgba(232,197,71,0.15))
    drop-shadow(0 24px 40px rgba(0,0,0,0.9));
}

.skin-nametag {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 3; text-align: center;
  animation: skinBob 5s ease-in-out infinite;
}
.snt-name {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
  background: rgba(0,0,0,0.75); border: 1px solid var(--line-hi);
  padding: 5px 18px; border-radius: 4px;
  color: var(--t); letter-spacing: 0.1em;
  backdrop-filter: blur(12px);
}

.s-chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--line-hi);
  padding: 7px 14px; border-radius: var(--rad);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: var(--sh2);
  color: var(--t2);
}
.chip-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.chip-a { top: 14%; left: -70px; animation: chipFloat 5s ease-in-out infinite; }
.chip-b { top: 44%; right: -80px; animation: chipFloat 6s .7s ease-in-out infinite; }
.chip-c { bottom: 20%; left: -55px; animation: chipFloat 4.5s 1.4s ease-in-out infinite; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.6rem; color: var(--t3);
  letter-spacing: 0.14em; text-transform: uppercase;
  z-index: 3; animation: fadeIn 1.5s 1s ease both;
}
.hs-scroll-icon {
  width: 22px; height: 36px;
  border: 1.5px solid var(--t3);
  border-radius: 11px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hs-scroll-dot {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--a);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(8px); opacity: 0; }
  61%      { transform: translateY(0); opacity: 0; }
  80%      { opacity: 1; }
}

.about, .skills, .projects, .host, .contact { padding: 120px 0; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 60px; }

.sec-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.se-num { font-family: var(--mono); font-size: 0.65rem; color: var(--a); letter-spacing: 0.1em; }
.se-line { flex: 1; max-width: 40px; height: 1px; background: var(--line-hi); }
.se-text {
  font-family: var(--mono); font-size: 0.65rem; color: var(--t3);
  text-transform: uppercase; letter-spacing: 0.14em;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; color: var(--t); margin-bottom: 18px;
}
.sec-title em { font-style: normal; color: var(--a); }
.sec-title.text-center { text-align: center; }

.sec-sub {
  font-size: 0.97rem; color: var(--t2); line-height: 1.85;
  max-width: 500px; margin-bottom: 52px;
}
.sec-sub.text-center { text-align: center; margin: 0 auto 52px; }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  filter: blur(4px);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

.about {
  background: var(--ink2);
  position: relative; overflow: hidden;
}
.about::before {
  content: '';
  position: absolute; right: -100px; top: 10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 60%);
  filter: blur(80px); pointer-events: none;
}

.about-layout {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 96px; align-items: start;
}
.about-headline h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.1; color: var(--t);
}
.about-headline h2 em { font-style: normal; color: var(--a); }

.about-skin { margin-top: 40px; display: flex; justify-content: center; }
.about-skin-img {
  width: 200px; image-rendering: pixelated;
  filter:
    drop-shadow(0 0 28px rgba(232,197,71,0.3))
    drop-shadow(0 16px 36px rgba(0,0,0,0.8));
  transition: transform .5s var(--ease), filter .5s;
}
.about-skin-img:hover {
  transform: translateY(-10px) scale(1.04);
  filter:
    drop-shadow(0 0 40px rgba(232,197,71,0.5))
    drop-shadow(0 24px 48px rgba(0,0,0,0.9));
}

.ab-text p { color: var(--t2); line-height: 1.9; margin-bottom: 18px; font-size: 0.97rem; }
.ab-text p:last-child { margin-bottom: 28px; }
.ab-pillars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.pillar {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: var(--rad);
  border: 1px solid var(--line);
  background: var(--card);
  transition: var(--tr); position: relative; overflow: hidden;
}
.pillar::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
}
.p-dev::before { background: var(--a); }
.p-cfg::before { background: var(--cyan); }
.p-mgr::before { background: var(--amber); }
.pillar:hover { border-color: var(--line-hi); transform: translateX(4px); background: var(--surf); }

.pi-icon {
  width: 36px; height: 36px; border-radius: var(--rad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.p-dev .pi-icon { background: var(--am); color: var(--a); }
.p-cfg .pi-icon { background: rgba(6,182,212,0.1); color: var(--cyan); }
.p-mgr .pi-icon { background: rgba(245,158,11,0.1); color: var(--amber); }

.pi-content h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; color: var(--t); }
.pi-content p { font-size: 0.82rem; color: var(--t2); line-height: 1.5; }

.ab-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.ab-tags span {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 4px 11px; border-radius: var(--rad);
  background: var(--surf); border: 1px solid var(--line);
  color: var(--t3); transition: var(--tr);
}
.ab-tags span:hover { border-color: rgba(232,197,71,0.4); color: var(--a3); background: var(--am2); }

.skills { background: var(--ink); position: relative; overflow: hidden; }
.skills::before {
  content: '';
  position: absolute; left: -150px; bottom: -50px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,197,71,0.07) 0%, transparent 60%);
  filter: blur(80px); pointer-events: none;
}

.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.sk-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 32px 28px;
  transition: var(--tr); position: relative; overflow: hidden;
}
.sk-cat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--a); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.sk-cat:hover { border-color: var(--line-hi); box-shadow: var(--sh2); }
.sk-cat:hover::before { transform: scaleX(1); }

.skc-top {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px;
}
.skc-icon-wrap {
  width: 40px; height: 40px; border-radius: var(--rad); flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
}
.skc-top h3 { font-family: var(--display); font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.skc-top p { font-size: 0.76rem; color: var(--t3); }

.skc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skt {
  font-family: var(--mono); font-size: 0.74rem;
  padding: 5px 12px; border-radius: var(--rad);
  background: var(--surf); border: 1px solid var(--line);
  color: var(--t2); transition: var(--tr);
}
.skt:hover { border-color: var(--line-hi); color: var(--t); }
.skt-hi {
  background: var(--am2); border-color: rgba(232,197,71,0.22);
  color: var(--a3);
}
.skt-hi:hover { background: var(--am); border-color: rgba(232,197,71,0.4); color: var(--a); }

.projects { background: var(--ink2); position: relative; overflow: hidden; }

.pbadge {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pb-mod   { background: rgba(6,182,212,0.1);   color: var(--cyan);  border: 1px solid rgba(6,182,212,0.2); }
.pb-dev   { background: var(--am);              color: var(--a3);    border: 1px solid rgba(232,197,71,0.2); }
.pb-staff { background: rgba(245,158,11,0.08);  color: var(--amber); border: 1px solid rgba(245,158,11,0.18); }
.pb-hm    { background: rgba(245,158,11,0.08);  color: var(--amber); border: 1px solid rgba(245,158,11,0.18); }
.pb-cfg   { background: rgba(6,182,212,0.08);   color: var(--cyan);  border: 1px solid rgba(6,182,212,0.18); }
.pb-owner { background: rgba(239,68,68,0.08);   color: #fca5a5;      border: 1px solid rgba(239,68,68,0.18); }

.pstatus {
  font-family: var(--mono); font-size: 0.62rem;
  padding: 2px 8px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 5px;
}
.ps-live   { background: rgba(34,197,94,0.08); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.ps-closed { background: rgba(74,74,74,0.2); color: var(--t3); border: 1px solid var(--line); }
.pst-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: pulse-dot 2.5s infinite;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.bento-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.bento-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--a);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.bento-card:hover::after { transform: scaleX(1); }
.bento-card:hover {
  border-color: var(--line-hi);
  box-shadow: var(--sh3);
}

.bc-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(120deg,
    transparent 0%, rgba(255,255,255,0.04) 40%,
    rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 60%,
    transparent 100%);
  transform: translateX(-100%) skewX(-20deg);
  transition: transform 0s;
}
.bento-card:hover .bc-shine {
  transform: translateX(200%) skewX(-20deg);
  transition: transform .6s var(--ease);
}

.bc-glow {
  position: absolute; bottom: -50px; right: -50px; z-index: 0;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gc, var(--a)) 25%, transparent) 0%, transparent 70%);
  filter: blur(45px); pointer-events: none; opacity: 0;
  transition: opacity .4s;
}
.bento-card:hover .bc-glow { opacity: 1; }

.bento-featured {
  grid-column: span 2;
  background: var(--surf);
  border-color: rgba(232,197,71,0.15);
}
.bento-featured:hover { border-color: rgba(232,197,71,0.35); box-shadow: var(--sh3), 0 0 60px rgba(232,197,71,0.06); }

.bento-tall {
  grid-row: span 2;
  background: var(--surf);
  border-color: rgba(239,68,68,0.12);
}
.bento-tall:hover { border-color: rgba(239,68,68,0.3); box-shadow: var(--sh3), 0 0 60px rgba(239,68,68,0.05); }

.bento-card[data-color="#8b5cf6"]:hover { border-color: rgba(232,197,71,0.3); }
.bento-card[data-color="#f59e0b"]:hover { border-color: rgba(245,158,11,0.3); }

.bc-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.bc-logo {
  width: 52px; height: 52px; border-radius: var(--rad); flex-shrink: 0;
  background: var(--surf2); border: 1px solid var(--line-hi);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.bc-logo img { width: 100%; height: 100%; object-fit: contain; }
.bc-fallback {
  font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: var(--t);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.bc-meta { flex: 1; }
.bc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.bc-meta h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--t);
}
.bento-featured .bc-meta h3 { font-size: 1.5rem; }

.bc-desc {
  font-size: 0.85rem; color: var(--t2); line-height: 1.75;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.bc-list {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
  position: relative; z-index: 1;
}
.bc-list li {
  font-size: 0.8rem; color: var(--t3); padding-left: 16px; position: relative;
}
.bc-list li::before {
  content: '–'; position: absolute; left: 0; color: var(--a); font-size: 0.8rem;
}

.bc-tag-line {
  position: absolute; bottom: 18px; right: 22px;
  font-family: var(--mono); font-size: 0.62rem;
  color: var(--a3); opacity: 0.4;
  letter-spacing: 0.1em; text-transform: uppercase; z-index: 1;
}

.bc-closed-ribbon {
  position: absolute; top: 20px; right: -28px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 0.5rem; font-weight: 800;
  letter-spacing: 0.15em; padding: 5px 50px;
  transform: rotate(35deg); z-index: 10;
  box-shadow: 0 2px 12px rgba(239,68,68,0.4);
}

.bc-stat-row {
  display: flex; gap: 0; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--rad);
  overflow: hidden; position: relative; z-index: 1;
}
.bc-stat {
  flex: 1; padding: 12px 10px; text-align: center;
  border-right: 1px solid var(--line);
}
.bc-stat:last-child { border-right: none; }
.bcs-n {
  display: block; font-family: var(--display); font-size: 1.4rem;
  font-weight: 700; color: var(--a); letter-spacing: -0.04em; line-height: 1;
}
.bcs-l {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  color: var(--t3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px;
}

.bc-tech-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin-top: 14px; margin-bottom: 6px;
  position: relative; z-index: 1;
}
.bc-tech-tags span {
  font-family: var(--mono); font-size: 0.62rem;
  padding: 3px 9px; border-radius: 3px;
  background: var(--surf2); border: 1px solid var(--line);
  color: var(--t3);
}

.bc-links-row {
  display: flex; gap: 10px; margin-top: 16px;
  position: relative; z-index: 1;
}
.bc-links-row .bc-link { margin-top: 0; }
.bc-link-discord { color: #7dcff7 !important; }
.bc-link-discord:hover { color: #b8e8ff !important; }

.bc-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 16px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  color: var(--t2); transition: color var(--tr);
  position: relative; z-index: 1;
}
.bc-link:hover { color: var(--t); }

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-featured { grid-column: span 2; }
  .bento-tall { grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-featured, .bento-tall { grid-column: span 1; grid-row: span 1; }
}

.host { background: var(--ink); position: relative; overflow: hidden; }
.host::before {
  content: '';
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,197,71,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.host-stage {
  background: var(--card);
  border: 1px solid var(--line-hi);
  border-radius: var(--rad);
  overflow: hidden;
  display: flex; position: relative;
  box-shadow: var(--sh4);
}
.hs-glow {
  position: absolute; top: -100px; left: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,197,71,0.08) 0%, transparent 65%);
  filter: blur(60px); pointer-events: none;
}

.hs-main {
  flex: 1; padding: 48px;
  display: flex; gap: 32px; align-items: flex-start;
  border-right: 1px solid var(--line);
  position: relative; z-index: 1;
}

.hs-logo-block { flex-shrink: 0; text-align: center; }
.hs-logo-frame {
  width: 80px; height: 80px; border-radius: var(--rad-md);
  background: var(--surf); border: 1px solid var(--line-hi);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 10px;
  box-shadow: var(--sh2);
}
.hs-logo-frame img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.hs-endorsed {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.62rem; color: var(--amber);
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.18);
  padding: 3px 9px; border-radius: 3px; white-space: nowrap;
}

.hs-info { flex: 1; }
.hs-info h3 {
  font-family: var(--display); font-size: 1.6rem; font-weight: 700;
  letter-spacing: -0.04em; margin-bottom: 10px;
}
.hs-info p { font-size: 0.9rem; color: var(--t2); line-height: 1.85; margin-bottom: 22px; }

.hs-features { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hsf-item { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--t2); }
.hsf-check { color: var(--a); font-weight: 700; font-size: 0.82rem; }

.hs-discount {
  width: 280px; flex-shrink: 0;
  padding: 44px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(232,197,71,0.06) 0%, transparent 60%);
  position: relative; z-index: 1;
}

.hsd-label {
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--t3); text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.hsd-code {
  font-family: var(--display); font-size: 4rem; font-weight: 700;
  letter-spacing: 0.04em; line-height: 1;
  color: var(--a);
  margin-bottom: 10px; cursor: pointer;
  transition: color var(--tr);
}
.hsd-code:hover { color: var(--a3); }
.hsd-pct { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.hsd-n { font-family: var(--display); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--t); }
.hsd-sym { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--t2); }
.hsd-off { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--a); letter-spacing: 0.08em; }
.hsd-note { font-size: 0.74rem; color: var(--t3); margin-bottom: 22px; line-height: 1.5; }

.hsd-btn-copy {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 12px;
  background: var(--a); color: #fff;
  font-weight: 600; font-size: 0.86rem; font-family: var(--inter);
  border: none; border-radius: var(--rad); cursor: none;
  margin-bottom: 8px; transition: var(--tr);
  box-shadow: 0 0 0 1px var(--a2), 0 4px 16px rgba(232,197,71,0.35);
}
.hsd-btn-copy:hover { background: var(--a2); transform: translateY(-1px); }

.hsd-btn-visit {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px;
  border: 1px solid var(--line-hi); border-radius: var(--rad);
  font-size: 0.84rem; font-weight: 500; color: var(--t2);
  background: var(--surf); transition: var(--tr);
}
.hsd-btn-visit:hover { border-color: rgba(255,255,255,0.22); color: var(--t); }

.contact { background: var(--ink2); position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
  width: 700px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,197,71,0.05) 0%, transparent 65%);
  filter: blur(80px); pointer-events: none;
}

.contact-bg-text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--display); font-size: clamp(6rem, 15vw, 13rem); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.018);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -0.06em;
}

.contact > .container { position: relative; z-index: 1; }

.contact-cards {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 600px; margin: 0 auto 24px;
}

.ccard {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--rad); transition: var(--tr);
  box-shadow: var(--sh1);
}
.ccard:hover { border-color: var(--line-hi); transform: translateY(-2px); box-shadow: var(--sh2); }
.ccard-email:hover   { border-color: rgba(232,197,71,0.3); }
.ccard-discord:hover { border-color: rgba(90,200,250,0.25); }

.ccard-icon {
  width: 44px; height: 44px; border-radius: var(--rad);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ccard-email .ccard-icon   { background: var(--am); color: var(--a); }
.ccard-discord .ccard-icon { background: rgba(90,200,250,0.08); color: #7dcff7; }

.ccard-info { flex: 1; }
.ccard-label {
  display: block; font-family: var(--mono); font-size: 0.66rem;
  color: var(--t3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px;
}
.ccard-val { font-size: 0.96rem; font-weight: 600; color: var(--t); font-family: var(--mono); }

.ccard-arrow { color: var(--t3); transition: transform var(--tr), color var(--tr); }
.ccard:hover .ccard-arrow { color: var(--a); transform: translateX(4px); }

.contact-note {
  text-align: center; font-family: var(--mono); font-size: 0.72rem;
  color: var(--t3); letter-spacing: 0.04em; line-height: 2;
  max-width: 580px; margin: 0 auto;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 60px; background: var(--ink2);
}
.footer-inner {
  max-width: 1220px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.f-center { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.f-logo {
  font-family: var(--mono); font-size: 1rem; font-weight: 700;
  color: var(--a); transition: color var(--tr); letter-spacing: -0.02em;
}
.f-logo:hover { color: var(--a3); }
.f-tagline { font-size: 0.8rem; color: var(--t2); }
.f-copy { font-size: 0.72rem; color: var(--t3); }
.f-links { display: flex; gap: 12px; font-size: 0.78rem; font-family: var(--mono); align-items: center; }
.f-links a { color: var(--t3); transition: color var(--tr); }
.f-links a:hover { color: var(--t2); }
.f-links span { color: var(--t4); }
.f-inicio {
  color: var(--a) !important; font-weight: 600;
  border: 1px solid rgba(232,197,71,0.25);
  padding: 5px 12px; border-radius: var(--rad);
  background: var(--am2);
  transition: var(--tr);
}
.f-inicio:hover { background: var(--am) !important; border-color: rgba(232,197,71,0.5); color: var(--a3) !important; }

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(70px);
  display: flex; align-items: center; gap: 8px;
  background: var(--surf2);
  border: 1px solid var(--line-hi);
  color: var(--t); padding: 11px 24px; border-radius: var(--rad);
  font-size: 0.8rem; font-family: var(--inter); font-weight: 500;
  box-shadow: var(--sh3);
  z-index: 9999; opacity: 0; pointer-events: none;
  transition: transform .45s var(--spring), opacity .35s var(--ease);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@keyframes fadeUp { from { opacity:0; transform: translateY(24px); filter: blur(4px); } to { opacity:1; transform: translateY(0); filter: blur(0); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes gridPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (max-width: 1200px) {
  .hero-inner { gap: 48px; }
}

@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; padding-top: 130px; }
  .hero-left { max-width: 100%; }
  .hero-kicker, .hero-actions { justify-content: center; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-role-line { text-align: left; }
  .hero-facts { justify-content: center; }
  .hero-scroll { display: none; }
  .skin-scene { width: 260px; height: 380px; }
  .skin-img { width: 145px; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-headline h2 { position: static; }
  .about-skin { margin-top: 28px; }
  .about-skin-img { width: 160px; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .host-stage { flex-direction: column; }
  .hs-main { border-right: none; border-bottom: 1px solid var(--line); }
  .hs-discount { width: 100%; }
}

@media (max-width: 768px) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }

  .nav { padding: 14px 20px; }
  .nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(14,14,14,0.98);
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    z-index: 999;
  }
  .nav-links.open .nav-link { padding: 10px 14px; font-size: 0.9rem; }
  .nl-sep { display: none; }

  .hero-inner { padding: 100px 20px 70px; gap: 32px; }
  .hero-name { font-size: clamp(2.8rem, 12vw, 4.5rem); white-space: normal; }
  .hero-role-line { font-size: 0.9rem; text-align: center; }
  .hero-bio { font-size: 0.92rem; text-align: center; }
  .hero-kicker { justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .ha-primary, .ha-secondary { width: 100%; justify-content: center; }
  .hero-facts { gap: 0; padding-top: 28px; }
  .hf-item { padding: 0 14px; }
  .hf-val { font-size: 1.2rem; }
  .hf-key { font-size: 0.6rem; }

  .skin-scene { width: 220px; height: 320px; }
  .skin-img { width: 120px; }
  .sr-ring-1 { width: 160px; height: 160px; }
  .sr-ring-2 { width: 230px; height: 230px; }
  .sr-ring-3 { width: 320px; height: 320px; }
  .chip-a, .chip-b, .chip-c { display: none; }
  .skin-nametag { bottom: 8px; }

  .container { padding: 0 20px; }
  .about, .skills, .projects, .host, .contact { padding: 64px 0; }
  .sec-title { font-size: 1.85rem; }
  .sec-sub { font-size: 0.88rem; }

  .about-layout { gap: 32px; }
  .about-headline h2 { font-size: 1.7rem; text-align: center; }
  .about-skin { justify-content: center; margin-top: 20px; }
  .about-skin-img { width: 140px; }
  .ab-text p { font-size: 0.9rem; }
  .ab-pillars { gap: 8px; }
  .pillar { padding: 14px 16px; gap: 12px; }
  .pi-icon { width: 32px; height: 32px; }
  .ab-tags { gap: 6px; }
  .ab-tags span { font-size: 0.68rem; }

  .skills-grid { grid-template-columns: 1fr; gap: 10px; }
  .sk-cat { padding: 22px 20px; }

  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-featured, .bento-tall { grid-column: span 1; grid-row: span 1; }
  .bento-card { padding: 22px 20px; }
  .bc-header { gap: 12px; }
  .bc-logo { width: 44px; height: 44px; }
  .bc-meta h3 { font-size: 1rem; }
  .bento-featured .bc-meta h3 { font-size: 1.15rem; }
  .bc-stat-row { gap: 0; }
  .bcs-n { font-size: 1.1rem; }
  .bc-tech-tags span { font-size: 0.58rem; }
  .bc-closed-ribbon { font-size: 0.42rem; top: 16px; right: -26px; padding: 4px 44px; }

  .host-stage { flex-direction: column; }
  .hs-main { flex-direction: column; padding: 28px 24px; border-right: none; border-bottom: 1px solid var(--line); }
  .hs-logo-frame { width: 64px; height: 64px; }
  .hs-info h3 { font-size: 1.3rem; }
  .hs-info p { font-size: 0.84rem; }
  .hs-features { grid-template-columns: 1fr; gap: 7px; }
  .hs-discount { width: 100%; padding: 28px 24px; }
  .hsd-code { font-size: 3rem; }
  .hsd-n { font-size: 2.2rem; }
  .hsd-btn-copy, .hsd-btn-visit { font-size: 0.82rem; }

  .contact-cards { gap: 8px; }
  .ccard { padding: 18px 20px; gap: 14px; }
  .ccard-icon { width: 38px; height: 38px; }
  .ccard-val { font-size: 0.85rem; }
  .contact-note { font-size: 0.68rem; line-height: 1.9; padding: 0 8px; }

  .footer { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .f-center { align-items: center; }
  .f-tagline { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero-inner { padding: 90px 16px 60px; }
  .container { padding: 0 16px; }
  .hf-item { padding: 0 10px; }
  .hf-val { font-size: 1.05rem; }
  .hf-key { font-size: 0.55rem; letter-spacing: 0.04em; }
  .hf-div { height: 24px; }
  .skin-scene { width: 180px; height: 270px; }
  .skin-img { width: 100px; }
  .bento-card { padding: 18px 16px; }
  .bc-stat { padding: 10px 6px; }
  .bcs-n { font-size: 1rem; }
  .sec-title { font-size: 1.65rem; }
  .about-skin-img { width: 120px; }
  .ccard { padding: 14px 16px; }
  .ccard-val { font-size: 0.78rem; word-break: break-all; }
  .hsd-code { font-size: 2.4rem; }
}
