:root {
  --bg: #0b0d10;
  --surface: #111418;
  --muted: #9aa4b2;
  --text: #e6e9ef;
  --accent: #7c5cff;
  --accent2: #00e0ff;
  --ring: #2b2f36;
  --shadow: 0 10px 30px rgba(0,0,0,.5);
  --radius: 18px;
}
* { box-sizing: border-box }
html,body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,.15), transparent 40%), radial-gradient(800px 400px at 100% 0%, rgba(0,224,255,.1), transparent 40%), var(--bg);
  overflow-x: hidden;
}
p { line-height: 1.65 }

#bg { position: fixed; inset: 0; z-index: -1 }
.container { width: min(1100px, 92%); margin-inline: auto }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 18px }
.logo { font-weight: 800; letter-spacing: .5px; text-decoration: none; color: var(--text); font-size: 20px }
.blink { animation: blink 1.4s steps(2, start) infinite }
@keyframes blink { to { opacity: 0 } }

.links { list-style: none; display: flex; gap: 24px; padding: 0; margin: 0 }
.links a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 10px; transition: .2s ease }
.links a:hover { color: var(--text); background: rgba(255,255,255,.04) }

.hero { display: grid; place-items: center; text-align: center; padding: 40px 0 8px }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from 180deg, var(--accent), var(--accent2)) border-box;
  box-shadow: var(--shadow);
}
h1 { margin: 18px 0 8px; font-size: clamp(34px, 6vw, 52px); line-height: 1.05 }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 20px rgba(124,92,255,.15)) }
.tagline { color: var(--muted); font-size: 18px; margin-top: 4px }

.cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; justify-content: center }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--ring); transition: transform .08s ease, background .2s ease, border-color .2s ease; will-change: transform }
.btn:active { transform: translateY(1px) }
.btn.small { padding: 10px 14px; font-size: 14px }
.primary { background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(0,224,255,.16)); border-color: rgba(255,255,255,.1) }
.primary:hover { background: linear-gradient(135deg, rgba(124,92,255,.24), rgba(0,224,255,.24)); border-color: var(--accent) }
.ghost { background: transparent }
.ghost:hover { background: rgba(255,255,255,.04); border-color: var(--accent2) }
.inline-link { color: var(--text) }
.inline-link:hover { text-decoration: underline }

.section { padding: 76px 0 }          
h2 { font-size: 26px; margin: 0 0 22px }

.chips { display: flex; gap: 12px; flex-wrap: wrap }
.chip { padding: 10px 12px; border-radius: 999px; border: 1px solid var(--ring); background: rgba(255,255,255,.02); color: var(--text); display: inline-flex; align-items: center; gap: 8px }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 22px }
.card { background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02)); border: 1px solid var(--ring); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transform: translateY(4px); opacity: .97; transition: transform .2s ease, box-shadow .2s ease }
.card:hover { transform: translateY(0); box-shadow: 0 14px 40px rgba(0,0,0,.6) }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: stretch }

.work {
  display: flex;                      
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 22px;                      
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.work.feature { border-color: rgba(124,92,255,.35) }
.work h4 { margin: 0 0 6px }
.work p { margin: 0 0 8px; color: var(--muted) }

.work .pill { display: inline-block; margin-right: 8px; font-size: 12px; padding: 6px 8px; border: 1px solid var(--ring); border-radius: 999px; color: var(--muted) }
.tags { margin: 4px 0 8px; display: flex; gap: 6px; flex-wrap: wrap }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto }  
.actions .btn { align-self: flex-start }

.work::after { content: ""; position: absolute; inset: -2px; background: radial-gradient(420px 140px at var(--x, 50%) var(--y, 0%), rgba(124,92,255,.14), transparent 42%); pointer-events: none; transition: .15s }

.subtle { color: var(--muted); margin-top: 16px }
.contact-info { color: var(--muted); margin-bottom: 12px }

footer { text-align: center; color: var(--muted); padding: 48px 0 70px }

.reveal { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1) }
.reveal.show { opacity: 1; transform: translateY(0) scale(1) }

#gate { position: fixed; inset: 0; display: grid; place-items: center; background: #0b0d10; z-index: 9999; transition: opacity .5s ease }
.term { width: min(720px, 92%); background: #0e1116; border: 1px solid #232732; border-radius: 16px; box-shadow: 0 20px 80px rgba(0,0,0,.6); padding: 14px }
.term-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #232732; color: #9aa4b2 }
.term-head img { width: 20px; height: 20px; border-radius: 50% }
#term-code { margin: 0; padding: 14px; max-height: 280px; overflow: auto; color: #cfe3ff; background: #0b0f14; border-radius: 10px }
#enter { margin: 12px auto 2px; display: block; border: 1px solid #2b2f36; background: transparent; color: #e6e9ef; padding: 10px 14px; border-radius: 12px; cursor: pointer }
#enter:hover { border-color: #7c5cff }
body.open #gate { opacity: 0; pointer-events: none }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr }
  .grid { grid-template-columns: 1fr }
  .links { display: none }
  .section { padding: 60px 0 }
  .work { padding: 18px }
}
