@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #080808;
  --bg-soft: #0d0d0d;
  --panel: #111111;
  --panel-2: #151515;
  --text: #f6f6f2;
  --muted: #929292;
  --line: rgba(255,255,255,.1);
  --yellow: #ffe619;
  --yellow-2: #fff47a;
  --blue: #0f7fe5;
  --red: #e21d2f;
  --silver: #d8d8d8;
  --radius: 28px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--yellow); color: #000; }

.noise {
  position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .035;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.cursor-glow {
  position: fixed; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,230,25,.09), transparent 65%);
  transform: translate(-50%, -50%); left: 50%; top: 30%; transition: opacity .3s ease;
}

.site-header {
  position: fixed; z-index: 100; left: 50%; top: 20px; transform: translateX(-50%);
  width: min(calc(100% - 32px), var(--max)); height: 54px; display: flex; align-items: center; justify-content: flex-end;
  padding: 0; border: 0; border-radius: 0; background: transparent; backdrop-filter: none; box-shadow: none;
  transition: .3s ease;
}
.site-header.scrolled { top: 12px; background: transparent; border: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 "Space Grotesk", sans-serif; letter-spacing: .15em; }
.brand-mark { display:inline-flex; align-items:center; justify-content:center; min-width:auto; height:auto; padding:0; background:transparent; color:var(--yellow); font-size:24px; letter-spacing:0; line-height:1; text-shadow:0 0 18px rgba(255,230,25,.16); }
.nav-links { display: flex; align-items: center; gap: 28px; padding:10px 12px; border-radius:14px; background:rgba(8,8,8,.44); backdrop-filter:blur(12px); }
.nav-links > a { color: #bdbdbd; font-size: 13px; font-weight: 600; transition: .2s ease; }
.nav-links > a:hover { color: #fff; }
.nav-links .nav-cta { padding: 0; border: 0; border-radius: 0; color: #fff; }
.nav-links .nav-cta span { color: var(--yellow); margin-left: 6px; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 1px; background: #fff; transition: .25s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 24px; }

.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 40px; padding: 130px max(5vw, 24px) 70px; overflow: hidden; isolation: isolate;
}
.hero::before { content:""; position:absolute; inset:0; z-index:-5; background: linear-gradient(180deg,#080808 0%,#090909 70%,#0d0d0d 100%); }
.hero-grid { position:absolute; inset:0; z-index:-4; opacity:.16; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.05) 1px, transparent 1px); background-size:64px 64px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.orb { position:absolute; z-index:-3; border-radius:50%; filter:blur(10px); }
.orb-a { width:480px; height:480px; right:-120px; top:5%; background:radial-gradient(circle,rgba(255,230,25,.14),transparent 70%); }
.orb-b { width:360px; height:360px; left:38%; bottom:0; background:radial-gradient(circle,rgba(15,127,229,.08),transparent 70%); }
.hero-copy { width: min(700px, 100%); justify-self: end; }
.eyebrow { display:inline-flex; align-items:center; gap:10px; padding:0; border:0; border-radius:0; color:#c8c8c8; font-size:11px; font-weight:700; letter-spacing:.16em; position:relative; }
.eyebrow::before { content:""; width:34px; height:2px; border-radius:999px; background:linear-gradient(90deg,var(--yellow),rgba(255,230,25,.2)); display:inline-block; }
.status-dot { display:none; }
.hero h1 { margin: 23px 0 24px; max-width: 830px; font: 700 clamp(54px, 6.8vw, 105px)/.91 "Space Grotesk", sans-serif; letter-spacing:-.055em; }
.accent-word { color: var(--yellow); position:relative; white-space:nowrap; }
.accent-word::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:6px; border-radius:999px; background:linear-gradient(90deg,var(--yellow),transparent); opacity:.55; }
.hero-lead { width:min(620px,100%); color:#a9a9a9; font-size:clamp(16px,1.4vw,20px); line-height:1.7; }
.hero-lead strong { color:#fff; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:32px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:18px; min-height:52px; padding:0 20px; border-radius:13px; font-size:13px; font-weight:800; letter-spacing:.02em; transition:.25s ease; border:1px solid transparent; }
.btn span { font-size:17px; }
.btn-primary { background:var(--yellow); color:#050505; box-shadow:0 13px 40px rgba(255,230,25,.11); }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 16px 45px rgba(255,230,25,.2); }
.btn-ghost { border-color:var(--line); background:rgba(255,255,255,.025); color:#e8e8e8; }
.btn-ghost:hover { border-color:rgba(255,255,255,.28); transform:translateY(-3px); }
.hero-meta { display:flex; gap:35px; margin-top:42px; padding-top:24px; border-top:1px solid var(--line); }
.hero-meta div { display:flex; flex-direction:column; gap:6px; }
.meta-label { color:#676767; font-size:9px; letter-spacing:.17em; font-weight:800; }
.hero-meta strong { font:600 14px/1.2 "Space Grotesk",sans-serif; }

.hero-visual { position:relative; display:grid; place-items:center; min-height:620px; }
.avatar-frame { width:min(560px, 95%); aspect-ratio:1; position:relative; display:grid; place-items:center; border-radius:50%; }
.avatar-frame::before { content:""; position:absolute; width:86%; height:86%; border-radius:50%; background:linear-gradient(145deg,#ffe719,#f9d910); box-shadow:0 45px 100px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06) inset; }
.avatar-frame::after { content:""; position:absolute; inset:4%; border-radius:50%; border:1px solid rgba(255,255,255,.09); border-top-color:rgba(255,230,25,.7); animation:spin 16s linear infinite; }
.avatar-ring { position:absolute; width:94%; height:94%; border-radius:50%; border:1px dashed rgba(255,255,255,.14); animation:spin 28s linear reverse infinite; }
.avatar-frame img { width:84%; height:84%; object-fit:cover; border-radius:50%; position:relative; z-index:2; box-shadow:0 24px 60px rgba(0,0,0,.24); transition:.35s ease; }
.avatar-frame.is-switching img { transform:scale(.94); opacity:.4; }
.avatar-chip { position:absolute; z-index:4; display:flex; align-items:center; gap:7px; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(12,12,12,.82); backdrop-filter:blur(10px); font-size:10px; font-weight:800; letter-spacing:.09em; box-shadow:0 14px 35px rgba(0,0,0,.3); }
.avatar-chip span { color:var(--yellow); }
.chip-code { top:18%; left:1%; transform:rotate(-7deg); }
.chip-lua { right:0; top:27%; transform:rotate(7deg); }
.chip-build { bottom:17%; left:7%; transform:rotate(4deg); }
.avatar-switcher { display:none; }
.avatar-dot { display:none; }
.avatar-dot.active { display:none; }
.scroll-hint { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); display:flex; align-items:center; gap:10px; color:#696969; text-transform:uppercase; font-size:9px; font-weight:800; letter-spacing:.18em; }
.scroll-hint span { width:30px; height:1px; background:#515151; position:relative; overflow:hidden; }
.scroll-hint span::after { content:""; position:absolute; inset:0; background:var(--yellow); transform:translateX(-100%); animation:scrollLine 1.8s infinite; }

.logo-strip { border-block:1px solid var(--line); background:#0b0b0b; padding:18px 0; display:grid; grid-template-columns:auto 1fr; align-items:center; overflow:hidden; }
.strip-label { padding:0 25px; color:#626262; font-size:9px; font-weight:800; letter-spacing:.16em; white-space:nowrap; }
.marquee { overflow:hidden; mask-image:linear-gradient(90deg,transparent,black 4%,black 96%,transparent); }
.marquee-track { display:flex; width:max-content; animation:marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state:paused; }
.server-pill { height:60px; display:grid; grid-template-columns:60px auto; grid-template-rows:1fr 1fr; column-gap:12px; align-items:center; padding:0 28px; border-left:1px solid var(--line); min-width:245px; }
.server-pill img { grid-row:1/3; width:54px; height:40px; object-fit:contain; filter:saturate(.9); }
.server-pill span { align-self:end; font:700 13px/1 "Space Grotesk",sans-serif; letter-spacing:.03em; }
.server-pill b { align-self:start; margin-top:5px; color:#666; font-size:8px; letter-spacing:.12em; }
.server-pill.muted { grid-template-columns:1fr; min-width:200px; }

.section { width:min(calc(100% - 48px),var(--max)); margin:0 auto; padding:125px 0; }
.section-kicker { color:var(--yellow); font-size:10px; font-weight:800; letter-spacing:.2em; margin-bottom:24px; }
.section-kicker.red { color:#ff4a57; }
.section h2 { margin:0; font:700 clamp(42px,5.5vw,78px)/.98 "Space Grotesk",sans-serif; letter-spacing:-.045em; }
.section h2 em { font-style:normal; color:#676767; }
.about-layout { display:grid; grid-template-columns:1fr .9fr; gap:80px; align-items:start; }
.about-copy { padding-top:32px; }
.about-copy p { color:#8e8e8e; font-size:15px; line-height:1.8; }
.about-copy .large-copy { color:#d6d6d6; font:500 clamp(22px,2.2vw,31px)/1.45 "Space Grotesk",sans-serif; margin-top:0; }
.about-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; }
.about-badges span { padding:9px 11px; border:1px solid var(--line); border-radius:9px; color:#aaa; font-size:10px; font-weight:700; letter-spacing:.05em; }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:50px; margin-bottom:55px; }
.section-heading > p { width:min(390px,100%); margin:0 0 8px; color:#7d7d7d; font-size:14px; line-height:1.7; }

.stack { border-top:1px solid var(--line); }
.skills-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.skill-card { position:relative; min-height:170px; display:flex; align-items:center; gap:20px; padding:26px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,#111,#0c0c0c); overflow:hidden; transform-style:preserve-3d; transition:border-color .25s, transform .15s; }
.skill-card::before { content:""; position:absolute; width:140px; height:140px; right:-50px; top:-50px; border-radius:50%; background:radial-gradient(circle,rgba(255,230,25,.08),transparent 68%); }
.skill-card:hover { border-color:rgba(255,230,25,.28); }
.skill-card > span { position:absolute; top:17px; right:18px; color:#444; font-size:9px; font-weight:800; }
.skill-icon { width:58px; height:58px; padding:10px; display:grid; place-items:center; border-radius:14px; background:#1a1a1a; border:1px solid var(--line); flex:0 0 auto; }
.skill-icon img { width:38px; height:38px; object-fit:contain; }
.skill-card h3 { margin:0 0 7px; font:700 18px/1.1 "Space Grotesk",sans-serif; }
.skill-card p { margin:0; color:#6f6f6f; font-size:12px; }

.experience { border-top:1px solid var(--line); }
.experience-list { border-top:1px solid var(--line); }
.exp-row { display:grid; grid-template-columns:110px 1fr 190px 36px; align-items:center; gap:24px; min-height:135px; border-bottom:1px solid var(--line); transition:.25s; }
.exp-row:hover { background:rgba(255,255,255,.025); padding-inline:12px; }
.exp-logo { width:85px; height:70px; display:grid; place-items:center; border-radius:18px; background:linear-gradient(180deg,#101010,#0b0b0b); border:1px solid var(--line); overflow:hidden; }
.exp-logo img { width:72px; height:58px; object-fit:contain; }
.exp-logo.logo-wide img { width:78px; }
.exp-main h3 { margin:0 0 8px; font:700 23px/1.1 "Space Grotesk",sans-serif; }
.exp-main p { margin:0; color:#727272; font-size:12px; line-height:1.6; }
.exp-role { color:#bdbdbd; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.exp-arrow { font-size:24px; color:#4f4f4f; }
.exp-index { width:70px; height:70px; display:grid; place-items:center; color:var(--yellow); font:500 36px/1 "Space Grotesk",sans-serif; }

.empire { padding-top:80px; }
.empire-card { position:relative; min-height:630px; overflow:hidden; display:grid; grid-template-columns:1fr 1fr; align-items:center; border-radius:34px; border:1px solid rgba(255,255,255,.11); background:radial-gradient(circle at 77% 40%,rgba(226,29,47,.16),transparent 33%),linear-gradient(140deg,#111 0%,#0a0a0a 60%,#15090b 100%); box-shadow:0 30px 100px rgba(0,0,0,.35); }
.empire-card::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(110deg,transparent 46%,rgba(255,255,255,.025) 50%,transparent 54%); }
.empire-bg-word { position:absolute; left:-20px; bottom:-45px; color:transparent; -webkit-text-stroke:1px rgba(255,255,255,.045); font:800 clamp(130px,18vw,260px)/1 "Space Grotesk",sans-serif; letter-spacing:-.08em; }
.empire-content { position:relative; z-index:4; padding:65px; }
.empire-content h2 span { color:#ff3d4f; }
.empire-content > p { max-width:520px; margin:28px 0; color:#8b8b8b; line-height:1.8; font-size:14px; }
.empire-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.btn-red { background:var(--red); color:#fff; box-shadow:0 15px 40px rgba(226,29,47,.16); }
.btn-red:hover { transform:translateY(-3px); box-shadow:0 20px 50px rgba(226,29,47,.25); }
.discord-url { color:#5b5b5b; font-size:11px; letter-spacing:.08em; }
.empire-art { position:relative; min-height:630px; align-self:stretch; }
.empire-penguin {
  position:absolute;
  width:min(565px,104%);
  right:12px;
  bottom:-74px;
  border-radius:28px;
  filter:drop-shadow(0 30px 42px rgba(0,0,0,.42));
  transform:none;
  z-index:2;
}

.services { border-top:1px solid var(--line); }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.service-card { min-height:280px; padding:30px; border:1px solid var(--line); border-radius:22px; background:#0d0d0d; position:relative; overflow:hidden; }
.service-card::after { content:""; position:absolute; width:180px; height:180px; right:-80px; bottom:-80px; border-radius:50%; border:1px solid rgba(255,230,25,.12); box-shadow:0 0 0 30px rgba(255,230,25,.015),0 0 0 60px rgba(255,230,25,.01); transition:.3s; }
.service-card:hover::after { transform:scale(1.25); }
.service-card > span { color:#555; font-size:10px; font-weight:800; }
.service-card h3 { margin:90px 0 12px; font:700 25px/1.1 "Space Grotesk",sans-serif; }
.service-card p { margin:0; max-width:310px; color:#777; font-size:13px; line-height:1.7; }

.contact-section { width:min(calc(100% - 48px),var(--max)); margin:0 auto 120px; }
.contact-card { position:relative; min-height:440px; display:grid; grid-template-columns:.85fr 1.15fr; align-items:center; overflow:hidden; border-radius:30px; background:var(--yellow); color:#060606; }
.contact-card::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.7),transparent 25%),linear-gradient(135deg,transparent,rgba(0,0,0,.05)); }
.contact-card > img { position:relative; z-index:2; width:470px; align-self:end; margin-bottom:-75px; margin-left:-18px; border-radius:50%; mix-blend-mode:multiply; }
.contact-card > div { position:relative; z-index:3; padding:55px; }
.contact-card .section-kicker { color:#5b5200; margin-bottom:18px; }
.contact-card h2 { font:700 clamp(46px,5vw,72px)/.95 "Space Grotesk",sans-serif; margin:0 0 18px; letter-spacing:-.05em; }
.contact-card p { color:#4e4800; font-size:14px; margin-bottom:28px; }
.contact-card .btn-primary { background:#060606; color:#fff; box-shadow:none; }
.contact-card .btn-primary span { color:var(--yellow); }

footer { width:min(calc(100% - 48px),var(--max)); margin:0 auto; min-height:120px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:35px; border-top:1px solid var(--line); color:#666; font-size:11px; }
.footer-brand { color:#fff; }
.footer-brand .brand-mark { color:var(--yellow); text-shadow:0 0 18px rgba(255,230,25,.14); }
.copyright { text-align:right; }
.to-top { position:fixed; right:20px; bottom:20px; z-index:60; width:44px; height:44px; display:grid; place-items:center; border-radius:12px; border:1px solid var(--line); background:rgba(15,15,15,.8); backdrop-filter:blur(12px); color:#fff; cursor:pointer; opacity:0; transform:translateY(15px); pointer-events:none; transition:.25s; }
.to-top.show { opacity:1; transform:none; pointer-events:auto; }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1); transition-delay:var(--delay,0ms); }
.reveal.in-view { opacity:1; transform:none; }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes scrollLine { 0%{transform:translateX(-100%)} 45%,55%{transform:translateX(0)} 100%{transform:translateX(100%)} }

@media (max-width: 1050px) {
  .hero { grid-template-columns:1fr; padding-top:140px; text-align:center; }
  .hero-copy { justify-self:center; }
  .hero-lead { margin-inline:auto; }
  .eyebrow { margin-inline:auto; }
  .hero-actions,.hero-meta { justify-content:center; }
  .hero-visual { min-height:520px; margin-top:-40px; }
  .avatar-frame { width:min(520px,80vw); }
  .about-layout { grid-template-columns:1fr; gap:25px; }
  .about-copy { padding-top:0; max-width:760px; }
  .skills-grid { grid-template-columns:repeat(2,1fr); }
  .empire-card { grid-template-columns:1fr; }
  .empire-art { min-height:460px; }
  .empire-content { padding-bottom:0; }
  .empire-penguin { width:520px; right:12px; }
  .service-grid { grid-template-columns:1fr; }
  .service-card { min-height:220px; }
  .service-card h3 { margin-top:60px; }
}

@media (max-width: 760px) {
  .site-header { height:48px; top:10px; padding:0 2px; }
  .menu-toggle { display:block; }
  .menu-toggle.open span:first-child { transform:rotate(45deg); top:20px; }
  .menu-toggle.open span:last-child { transform:rotate(-45deg); top:20px; }
  .nav-links { position:fixed; top:72px; left:16px; right:16px; display:flex; flex-direction:column; align-items:stretch; gap:0; padding:10px; border:1px solid var(--line); border-radius:16px; background:rgba(8,8,8,.96); backdrop-filter:blur(20px); opacity:0; pointer-events:none; transform:translateY(-10px); transition:.25s; }
  .nav-links.open { opacity:1; pointer-events:auto; transform:none; }
  .nav-links > a { padding:14px 13px; border-bottom:1px solid rgba(255,255,255,.055); }
  .nav-links .nav-cta { margin-top:7px; border-bottom:1px solid var(--line); text-align:center; }
  .hero { min-height:auto; padding:115px 20px 70px; }
  .hero h1 { font-size:clamp(49px,15vw,78px); }
  .hero-lead { font-size:15px; }
  .hero-meta { gap:18px; justify-content:space-between; text-align:left; }
  .hero-meta strong { font-size:12px; }
  .hero-visual { min-height:430px; margin-top:-10px; }
  .avatar-frame { width:min(390px,95vw); }
  .avatar-chip { font-size:8px; padding:8px 9px; }
  .scroll-hint { display:none; }
  .logo-strip { grid-template-columns:1fr; }
  .strip-label { padding:0 20px 15px; }
  .section { width:min(calc(100% - 32px),var(--max)); padding:85px 0; }
  .section-heading { display:block; margin-bottom:35px; }
  .section-heading > p { margin-top:18px; }
  .skills-grid { grid-template-columns:1fr; }
  .skill-card { min-height:130px; }
  .exp-row { grid-template-columns:76px 1fr 28px; gap:12px; min-height:120px; }
  .exp-logo { width:66px; height:58px; }
  .exp-logo img { width:56px; height:46px; }
  .exp-role { grid-column:2/3; font-size:9px; margin-top:-15px; color:#777; }
  .exp-arrow { grid-column:3; grid-row:1/3; }
  .exp-main h3 { font-size:19px; }
  .exp-main p { display:none; }
  .exp-index { width:65px; }
  .empire { width:min(calc(100% - 20px),var(--max)); }
  .empire-card { min-height:830px; border-radius:25px; }
  .empire-content { padding:42px 26px 0; }
  .empire-content h2 { font-size:52px; }
  .empire-art { min-height:490px; }
  .empire-penguin { width:450px; right:-45px; bottom:-65px; }
  .contact-section { width:min(calc(100% - 20px),var(--max)); margin-bottom:70px; }
  .contact-card { grid-template-columns:1fr; min-height:660px; align-content:start; text-align:center; }
  .contact-card > img { position:absolute; left:50%; bottom:-80px; transform:translateX(-50%); width:430px; margin:0; opacity:.3; }
  .contact-card > div { padding:55px 25px; }
  footer { width:min(calc(100% - 32px),var(--max)); grid-template-columns:1fr; gap:16px; padding:32px 0; text-align:center; }
  .footer-brand { justify-self:center; }
  .copyright { text-align:center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

#avatarFrame { cursor:pointer; }

.site-header > .brand, .footer-brand { display:none !important; }

.empire-inline-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin: 0 0 22px;
  filter: drop-shadow(0 10px 28px rgba(226,29,47,.22));
}

@media (max-width: 760px) {
  .empire-inline-logo { width:68px; height:68px; margin-bottom:18px; }
}
