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

:root{
  --bg:#07050d;
  --fg:#e9e6ff;
  --muted:#a39cc9;
  --cyan:#2ff3ff;
  --mag:#ff2bd6;
  --lime:#b6ff2e;
  --warn:#ffcc33;
  --card:rgba(12,10,24,.78);
  --stroke:rgba(255,255,255,.10);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: JetBrains Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  overflow-x:hidden;
}

a{color:var(--cyan); text-decoration:none}
a:hover{opacity:.88; text-decoration:underline}

code{font-family:inherit; font-size:.95em; color:var(--lime)}

/* Ambient cyber background */
.bg{position:fixed; inset:0; z-index:-1; pointer-events:none;}
.bg::before{
  content:"";
  position:absolute; inset:-20%;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(255,43,214,.20), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(47,243,255,.18), transparent 60%),
    radial-gradient(700px 500px at 60% 90%, rgba(182,255,46,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%, rgba(255,255,255,.03));
  filter: blur(0.2px);
}
.grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(47,243,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,43,214,.08) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px;
  opacity:.20;
  transform: perspective(900px) rotateX(58deg) translateY(8%);
  transform-origin: bottom;
}
.scanlines{
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.05),
    rgba(255,255,255,.05) 1px,
    transparent 2px,
    transparent 7px
  );
  opacity:.08;
  mix-blend-mode: overlay;
}
.noise{
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  opacity:.07;
  animation: flicker 6s infinite linear;
}
@keyframes flicker{0%,100%{opacity:.06}50%{opacity:.10}}

/* Top bar */
.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 18px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(7,5,13,.78), rgba(7,5,13,.40));
  border-bottom:1px solid rgba(255,255,255,.08);
  z-index:10;
}
.brand{display:flex; flex-direction:column; gap:2px}
.sig{font-family: Orbitron, system-ui; font-weight:900; letter-spacing:.18em; font-size:14px}
.tag{color:var(--muted); font-size:11px; letter-spacing:.12em}
.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.nav a{font-size:12px; letter-spacing:.10em; text-transform:uppercase; padding:6px 8px; border-radius:10px}
.nav a:hover{background:rgba(255,255,255,.06); text-decoration:none}

.wrap{max-width:1100px; margin:0 auto; padding:28px 18px 46px}

/* Hero */
.hero{display:grid; grid-template-columns: 1.35fr .95fr; gap:18px; align-items:stretch}
@media (max-width: 920px){.hero{grid-template-columns:1fr}}
.hero-left{padding:18px}
.hero-right{padding:18px}

.glitch{
  position:relative;
  font-family: Orbitron, system-ui;
  font-weight:900;
  letter-spacing:.04em;
  font-size:48px;
  line-height:1.05;
  margin:0 0 10px;
  text-shadow: 0 0 18px rgba(47,243,255,.16);
}
@media (max-width: 520px){.glitch{font-size:36px}}
.glitch::before,.glitch::after{
  content: attr(data-text);
  position:absolute; inset:0;
  opacity:.85;
}
.glitch::before{color:var(--cyan); transform: translate(2px, -1px); clip-path: inset(0 0 62% 0);}
.glitch::after{color:var(--mag); transform: translate(-2px, 1px); clip-path: inset(48% 0 0 0);}

.lede{color:var(--muted); font-size:14px; line-height:1.6; max-width:56ch}
.pill{display:inline-block; margin-left:8px; padding:2px 8px; border:1px solid rgba(255,255,255,.12); border-radius:999px; color:var(--fg); font-size:11px; letter-spacing:.08em}

.cta-row{display:flex; gap:10px; margin:16px 0 18px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--fg);
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.btn:hover{background: rgba(255,255,255,.10); text-decoration:none}
.btn.primary{
  border-color: rgba(47,243,255,.35);
  box-shadow: 0 0 0 1px rgba(255,43,214,.16) inset, 0 0 30px rgba(47,243,255,.10);
}
.btn.small{padding:8px 10px; font-size:11px}

.terminal{margin-top:14px; border-radius:14px; background: var(--card); border:1px solid var(--stroke); box-shadow: var(--shadow); overflow:hidden}
.terminal-title{padding:10px 12px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid rgba(255,255,255,.08)}
.terminal-body{margin:0; padding:12px; font-size:12px; line-height:1.5; color: #d9d5ff}

.frame{height:100%; border-radius:16px; background: var(--card); border:1px solid var(--stroke); box-shadow: var(--shadow); overflow:hidden}
.frame-head{padding:10px 12px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid rgba(255,255,255,.08)}
.frame-body{padding:12px}
.featured{width:100%; height:320px; object-fit:contain; border-radius:14px; background: rgba(0,0,0,.30); border:1px solid rgba(255,255,255,.08)}
.frame-foot{margin-top:10px; font-size:11px; color:var(--muted)}

/* Panels */
.panel{margin-top:18px; border-radius:18px; background: rgba(12,10,24,.60); border:1px solid rgba(255,255,255,.10); box-shadow: var(--shadow); overflow:hidden}
.panel-head{display:flex; gap:12px; align-items:center; justify-content:space-between; padding:14px 14px; border-bottom:1px solid rgba(255,255,255,.08)}
.panel h2{margin:0; font-family: Orbitron, system-ui; letter-spacing:.08em; font-size:16px}
.panel-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.search{min-width:220px; padding:10px 12px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.28); color:var(--fg); outline:none}
.search::placeholder{color: rgba(233,230,255,.50)}

.gallery{padding:14px}
.gallery.grid-view{display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px}
@media (max-width: 920px){.gallery.grid-view{grid-template-columns: repeat(2, minmax(0, 1fr));}}
@media (max-width: 520px){.gallery.grid-view{grid-template-columns: 1fr;}}
.gallery.list-view{display:flex; flex-direction:column; gap:10px}

.tile{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  overflow:hidden;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tile:hover{transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.35)}
.tile img{display:block; width:100%; height:220px; object-fit:cover; background: rgba(0,0,0,.25)}
.tile-body{padding:10px 10px 12px}
.tile-title{font-size:12px; font-weight:800; letter-spacing:.04em}
.tile-tags{margin-top:6px; display:flex; gap:6px; flex-wrap:wrap}
.chip{font-size:10px; color: rgba(233,230,255,.80); padding:2px 7px; border-radius:999px; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.05)}

.hint{padding:0 14px 14px; color:var(--muted); font-size:11px}

.two-col{padding:14px; display:grid; grid-template-columns: 1.2fr .8fr; gap:12px}
@media (max-width: 920px){.two-col{grid-template-columns:1fr}}
.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.6}

.callout{border-radius:16px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.20); overflow:hidden}
.callout-title{padding:10px 12px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); border-bottom:1px solid rgba(255,255,255,.08)}
.callout-body{padding:12px}
.small{font-size:12px; color:var(--muted); line-height:1.6}
.meter{height:10px; border-radius:999px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); overflow:hidden}
.meter span{display:block; height:100%; width:60%; background: linear-gradient(90deg, var(--mag), var(--cyan), var(--lime)); filter:saturate(1.2); animation: sweep 2.6s infinite linear}
@keyframes sweep{0%{transform: translateX(-25%)}100%{transform: translateX(25%)}}

.contact{padding:14px; display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 920px){.contact{grid-template-columns:1fr}}
.contact-card{border-radius:16px; border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.20); padding:12px}
.contact-title{font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:8px}
.contact-links{display:flex; flex-direction:column; gap:8px}

.footer{margin-top:18px; padding:16px 4px 0; display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:center; color:rgba(233,230,255,.70); font-size:11px}
.sep{opacity:.35}

/* Lightbox */
.lightbox{border:none; padding:0; background: transparent}
.lightbox::backdrop{background: rgba(0,0,0,.65)}
.lightbox-inner{width:min(980px, 92vw); border-radius:18px; border:1px solid rgba(255,255,255,.14); background: rgba(10,8,18,.92); box-shadow: var(--shadow); overflow:hidden; padding:0; position:relative}
.lightbox-inner img{display:block; width:100%; height:min(70vh, 720px); object-fit:contain; background: rgba(0,0,0,.35)}
.x{position:absolute; top:10px; right:12px; width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color:var(--fg); font-size:22px; cursor:pointer}
.x:hover{background: rgba(255,255,255,.12)}
.meta{padding:12px 14px; display:flex; flex-direction:column; gap:6px; border-top:1px solid rgba(255,255,255,.08)}
.meta-title{font-family: Orbitron, system-ui; font-size:14px; letter-spacing:.06em}
.meta-tags{display:flex; flex-wrap:wrap; gap:6px; color:var(--muted); font-size:11px}

