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

:root {
  --void: #07060b;
  --abyss: #0c0a14;
  --surface: #12101e;
  --panel: #1a1730;
  --purple-deep: #2d1b69;
  --purple: #6b3fa0;
  --purple-light: #9b6dd7;
  --cyan: #5cffe8;
  --cyan-glow: rgba(92, 255, 232, 0.3);
  --blue: #3344cc;
  --white: #e8e4f0;
  --muted: #8a849e;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--purple-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(7, 6, 11, 0.7);
  border-bottom: 1px solid rgba(92, 255, 232, 0.08);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(7, 6, 11, 0.92);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }

.nav-socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(92, 255, 232, 0.12);
}

.nav-socials a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.3s, filter 0.3s;
}

.nav-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-socials a:hover { color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(92, 255, 232, 0.2);
  color: var(--cyan);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45, 27, 105, 0.4), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(92, 255, 232, 0.06), transparent),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(107, 63, 160, 0.2), transparent);
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: drift 8s infinite ease-in-out;
}

@keyframes drift {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.hero-title .main-text {
  background: linear-gradient(180deg, var(--white) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.hero-title .glow-text {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(30px);
  opacity: 0.5;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s 0.5s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1s 0.8s forwards;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.hero-cta:hover {
  color: var(--void);
  box-shadow: 0 0 30px var(--cyan-glow);
}

.hero-cta:hover::before { transform: translateX(0); }

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.hero-cta:hover svg { transform: translateY(3px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-line {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  opacity: 0.4;
  animation: scrollPulse 2s infinite ease-in-out;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; height: 40px; }
  50% { opacity: 0.6; height: 60px; }
}

/* ── Section styles ── */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--white) 30%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-container {
  position: relative;
}

.about-image-container img {
  width: 100%;
  border-radius: 2px;
  display: block;
  position: relative;
  z-index: 2;
}

.about-image-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 3px;
  z-index: 1;
  opacity: 0.5;
}

.about-image-container::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(92, 255, 232, 0.15);
  border-radius: 2px;
  z-index: 0;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-text p strong {
  color: var(--white);
  font-weight: 600;
}

.stat-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(92, 255, 232, 0.08);
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-image-container picture { display: block; position: relative; z-index: 2; }

/* ── Specs ── */
.specs-section {
  background: var(--abyss);
  border-top: 1px solid rgba(92, 255, 232, 0.05);
  border-bottom: 1px solid rgba(92, 255, 232, 0.05);
  padding: 5rem 2rem;
}

.specs-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spec-card {
  background: var(--surface);
  border: 1px solid rgba(92, 255, 232, 0.06);
  padding: 1.8rem;
  border-radius: 2px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.spec-card:hover {
  border-color: rgba(92, 255, 232, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.spec-card:hover::before { opacity: 1; }

.spec-icon {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

.spec-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.spec-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

/* ── Portfolio / Gallery ── */
.gallery-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(92, 255, 232, 0.15);
  color: var(--muted);
  padding: 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(92, 255, 232, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid rgba(92, 255, 232, 0.04);
  transition: all 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,6,11,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-item-tag {
  font-size: 0.75rem;
  color: var(--cyan);
  margin-top: 0.3rem;
  font-weight: 400;
}

.gallery-item:hover {
  border-color: rgba(92, 255, 232, 0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Wide items */
.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7, 6, 11, 0.95);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 80px rgba(92, 255, 232, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: 1px solid rgba(92, 255, 232, 0.3);
  color: var(--cyan);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  background: rgba(92, 255, 232, 0.1);
}

/* ── Connect section ── */
.connect-section {
  border-top: 1px solid rgba(92, 255, 232, 0.05);
  border-bottom: 1px solid rgba(92, 255, 232, 0.05);
  background: var(--abyss);
  padding: 5rem 2rem;
}

.connect-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.8rem;
  border: 1px solid rgba(92, 255, 232, 0.15);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.35s ease;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(92, 255, 232, 0.08), rgba(107, 63, 160, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(92, 255, 232, 0.1), inset 0 0 20px rgba(92, 255, 232, 0.03);
  transform: translateY(-2px);
}

.social-link:hover::before { opacity: 1; }
.social-link:hover svg { transform: scale(1.15); }

.art-credit {
  margin-top: 3rem;
  padding: 1.2rem 2rem;
  border: 1px solid rgba(155, 109, 215, 0.2);
  background: rgba(45, 27, 105, 0.15);
  border-radius: 2px;
  display: inline-block;
}

.art-credit p {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.art-credit strong {
  color: var(--purple-light);
  font-weight: 600;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(92, 255, 232, 0.06);
  background: var(--void);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

footer p {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 1rem 0;
}

.footer-socials a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.3s, filter 0.3s;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-socials a:hover { color: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }

/* ── Reveal animation ── */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Projects ── */
.projects-section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(92, 255, 232, 0.07);
  border-radius: 3px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: rgba(92, 255, 232, 0.18);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.project-card:hover::before { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
}

.project-tag {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(92, 255, 232, 0.07);
  border: 1px solid rgba(92, 255, 232, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 1px;
  white-space: nowrap;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(92, 255, 232, 0.2);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.project-link svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.project-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(92, 255, 232, 0.05);
}

.project-link.primary {
  background: rgba(92, 255, 232, 0.07);
  border-color: rgba(92, 255, 232, 0.35);
  color: var(--cyan);
}

.project-link.primary:hover {
  background: rgba(92, 255, 232, 0.15);
}

/* ── Flasher ── */
.flasher-card {
  grid-column: 1 / -1;
  background: var(--panel);
  border: 1px solid rgba(107, 63, 160, 0.25);
  border-radius: 3px;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.flasher-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--purple-light));
}

.flasher-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.flasher-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.flasher-body {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1.2rem;
  align-items: end;
}

.flasher-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.board-btns {
  display: flex;
  gap: 0.5rem;
}

.board-btn {
  flex: 1;
  padding: 0.6rem 0;
  background: var(--surface);
  border: 1px solid rgba(92, 255, 232, 0.12);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.board-btn:hover {
  border-color: rgba(92, 255, 232, 0.3);
  color: var(--white);
}

.board-btn.active {
  background: rgba(92, 255, 232, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(92, 255, 232, 0.1);
}

.flasher-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(92, 255, 232, 0.12);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.62rem 0.9rem;
  border-radius: 2px;
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%238a849e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  transition: border-color 0.25s;
}

.flasher-select:focus { border-color: rgba(92, 255, 232, 0.4); }

.flash-btn {
  padding: 0.65rem 1.8rem;
  background: linear-gradient(135deg, rgba(92, 255, 232, 0.15), rgba(107, 63, 160, 0.15));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.flash-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple-light));
  opacity: 0;
  transition: opacity 0.3s;
}

.flash-btn:hover { box-shadow: 0 0 25px rgba(92, 255, 232, 0.2); color: var(--void); }
.flash-btn:hover::before { opacity: 1; }
.flash-btn span, .flash-btn svg { position: relative; z-index: 1; }
.flash-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.flash-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.flasher-status {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-radius: 2px;
  border-left: 3px solid rgba(92, 255, 232, 0.3);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.8rem;
  transition: border-color 0.3s;
}

.flasher-status.ok { border-left-color: var(--cyan); color: var(--cyan); }
.flasher-status.err { border-left-color: #ff5c8d; color: #ff5c8d; }
.flasher-status.loading { border-left-color: var(--purple-light); color: var(--purple-light); }

.flasher-status .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(155,109,215,0.3);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.flasher-instructions {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(138, 132, 158, 0.7);
  line-height: 1.6;
}

.flasher-instructions strong { color: var(--muted); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 6, 11, 0.97);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(92, 255, 232, 0.08);
  }

  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-item.wide {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .stat-row { gap: 1rem; }

  .nav-socials {
    display: none;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    padding: 0.75rem 1.2rem;
    font-size: 0.6rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .flasher-card {
    grid-column: 1;
    padding: 1.5rem;
  }

  .flasher-body {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   Additions: shared pieces for every page
   ════════════════════════════════════════════════════════════ */

:root {
  --pink: #ff5c8d;
  --radius: 3px;
  --line: rgba(92, 255, 232, 0.08);
  --line-strong: rgba(92, 255, 232, 0.2);
}

::selection { background: rgba(92, 255, 232, 0.25); color: var(--white); }

a { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background: var(--cyan);
  color: var(--void);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.nav-links a.current { color: var(--cyan); }
.nav-links a.current::after { width: 100%; }

code, kbd {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.85em;
  color: var(--cyan);
  background: rgba(92, 255, 232, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* ── Hero actions ── */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta.alt {
  border-color: rgba(155, 109, 215, 0.6);
  color: var(--purple-light);
  animation-delay: 1s;
}
.hero-cta.alt::before { background: var(--purple-light); }

.hero-tagline {
  max-width: 34rem;
  margin: -1.5rem auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  opacity: 0;
  animation: fadeUp 1s 0.65s forwards;
}

/* ── Gallery items are buttons now ── */
button.gallery-item {
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
.gallery-item:focus-visible .gallery-item-overlay { opacity: 1; }
.gallery-item picture { display: block; width: 100%; height: 100%; }

/* ── Lightbox controls ── */
.lightbox { cursor: default; flex-direction: column; gap: 1rem; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.lightbox figcaption {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 80vw;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(7, 6, 11, 0.6);
  border: 1px solid rgba(92, 255, 232, 0.3);
  color: var(--cyan);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-nav:hover { background: rgba(92, 255, 232, 0.1); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

/* ── Featured project (radar) ── */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  background: linear-gradient(135deg, var(--surface), var(--panel));
  border-color: rgba(92, 255, 232, 0.14);
}
.project-card.featured .featured-body {
  padding: 2rem 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-card.featured .featured-shot {
  display: block;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}
.project-card.featured .featured-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.project-card.featured:hover .featured-shot img { transform: scale(1.04); }
.project-card.featured .project-title { font-size: 1.15rem; }
.project-title-row { display: flex; align-items: center; gap: 0.8rem; }
.project-title-row img { width: 40px; height: 40px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font-size: 0.8rem;
  color: var(--white);
  border: 1px solid var(--line-strong);
  background: rgba(92, 255, 232, 0.04);
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════
   Sub-pages (radar, addons)
   ════════════════════════════════════════════════════════════ */

.page-hero {
  position: relative;
  padding: 9rem 2rem 4rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 15% 30%, rgba(45, 27, 105, 0.45), transparent),
    radial-gradient(ellipse 45% 55% at 85% 20%, rgba(92, 255, 232, 0.07), transparent);
  z-index: -1;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.page-hero-inner.single { grid-template-columns: 1fr; max-width: 820px; }

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { margin: 0 0.4rem; opacity: 0.5; }

.app-id { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.app-id img { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgba(92, 255, 232, 0.25)); }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--white) 30%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 1rem 0 1.8rem;
}
.lede strong { color: var(--white); font-weight: 600; }
.name-note { font-size: 0.95rem; color: var(--muted); margin-top: -0.8rem; margin-bottom: 1.8rem; }
.name-note em { color: var(--purple-light); font-style: normal; }

.btn-row { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(92, 255, 232, 0.06); }
.btn.primary {
  background: linear-gradient(135deg, rgba(92, 255, 232, 0.18), rgba(107, 63, 160, 0.22));
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn.primary:hover { box-shadow: 0 0 25px rgba(92, 255, 232, 0.2); }
.btn.small { padding: 0.5rem 0.9rem; font-size: 0.6rem; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.meta-line { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }

.hero-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(92, 255, 232, 0.06);
  background: var(--surface);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.window-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #0d0c16;
  border-bottom: 1px solid var(--line);
}
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2640; }

.page-section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.band { background: var(--abyss); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .page-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 46rem; margin: -1rem 0 2.2rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(92, 255, 232, 0.04);
}
.pill b { color: var(--cyan); font-weight: 600; }

/* Screenshot grid */
.shots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.shot {
  grid-column: span 2;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.shot.wide { grid-column: span 3; }
.shot:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.shot span { display: block; padding: 0.8rem 1rem; }
.shot b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}
.shot small { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.feature ul { list-style: none; display: grid; gap: 0.45rem; }
.feature li { color: var(--muted); padding-left: 1rem; position: relative; line-height: 1.5; }
.feature li::before { content: '›'; position: absolute; left: 0; color: var(--purple-light); }
.feature li strong { color: var(--white); font-weight: 600; }

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
}
.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
}
.dl-card.suggested { border-color: rgba(92, 255, 232, 0.4); box-shadow: 0 0 30px rgba(92, 255, 232, 0.06); }
.dl-card.suggested::after {
  content: 'Your device';
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--cyan);
  color: var(--void);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}
.dl-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.dl-card h3 svg { width: 22px; height: 22px; fill: var(--cyan); }
.dl-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; flex: 1; }
.dl-card .btn { justify-content: center; }
.dl-extra { font-size: 0.85rem; color: var(--muted); }
.dl-extra a { color: var(--muted); }
.dl-extra a:hover { color: var(--cyan); }

pre.cmd {
  background: #09080f;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  overflow-x: auto;
  font-size: 0.85rem;
}
pre.cmd code { background: none; padding: 0; color: var(--white); }

.callout {
  border-left: 3px solid var(--purple-light);
  background: rgba(45, 27, 105, 0.18);
  padding: 1rem 1.2rem;
  color: var(--muted);
  border-radius: 0 2px 2px 0;
  margin-top: 1.5rem;
  line-height: 1.6;
}
.callout strong { color: var(--white); }

/* Addon catalog */
.addon-toolbar { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.8rem; }
.addon-search {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 2px;
}
.addon-search::placeholder { color: var(--muted); }
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}
.addon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.3s;
}
.addon-card:hover { border-color: var(--line-strong); }
.addon-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.addon-body { padding: 1.3rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.addon-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
.addon-head h3 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; }
.addon-ver { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.addon-desc { color: var(--muted); font-size: 0.97rem; line-height: 1.55; flex: 1; }
.addon-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.addon-link {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.addon-link input {
  flex: 1;
  min-width: 0;
  background: #09080f;
  border: 0;
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  padding: 0.5rem 0.7rem;
}
.addon-link button {
  background: rgba(92, 255, 232, 0.08);
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 0.9rem;
  cursor: pointer;
}
.addon-link button:hover { background: rgba(92, 255, 232, 0.16); }
.empty-note { color: var(--muted); padding: 2rem 0; }

.steps { counter-reset: step; display: grid; gap: 1rem; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  color: var(--muted);
  line-height: 1.6;
}
.steps li strong { color: var(--white); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--cyan);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  background: var(--panel);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  font-size: 0.95rem;
  z-index: 3000;
  transition: transform 0.3s ease;
}
.toast.show { transform: translate(-50%, 0); }

/* 404 */
.lost { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.lost h1 { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 9rem); color: var(--cyan); line-height: 1; text-shadow: 0 0 40px var(--cyan-glow); }
.lost p { color: var(--muted); margin: 1rem 0 2rem; font-size: 1.1rem; }

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero { padding-top: 7rem; }
  .project-card.featured { grid-template-columns: 1fr; }
  .project-card.featured .featured-body { padding: 0 1.5rem 1.8rem; }
  .project-card.featured .featured-shot { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; aspect-ratio: 16 / 10; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shot, .shot.wide { grid-column: span 1; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  nav { padding: 0.8rem 1rem; }
  nav.scrolled { padding: 0.6rem 1rem; }
  section, .projects-section, .page-section { padding-left: 1rem; padding-right: 1rem; }
  .specs-section, .connect-section, .page-hero { padding-left: 1rem; padding-right: 1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
  .stat-row { flex-wrap: wrap; }
  .lightbox-nav.prev { left: 0.5rem; }
  .lightbox-nav.next { right: 0.5rem; }
  .addon-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .shots { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .particle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════
   Home: project showcases
   ════════════════════════════════════════════════════════════ */

.proj { padding-top: 6rem; padding-bottom: 6rem; }
.band .proj { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.proj-grid.flip .proj-text { order: 2; }
.proj-grid.flip .proj-visual { order: 1; }
.proj-lede { font-size: 1.15rem; color: var(--muted); line-height: 1.7; margin: 0.4rem 0 1.4rem; }
.proj-lede strong { color: var(--white); font-weight: 600; }

.ticks { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.6rem; }
.ticks li { position: relative; padding-left: 1.4rem; color: var(--muted); line-height: 1.55; }
.ticks li strong { color: var(--white); font-weight: 600; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 6px var(--cyan-glow);
}

.release-line { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.release-line b { color: var(--white); font-weight: 600; }
.release-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* Stacked screenshots */
.proj-visual { position: relative; }
.proj-visual[data-lightbox-group] { aspect-ratio: 16 / 12.5; }
.stack-shot {
  position: absolute;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease, z-index 0s;
}
.stack-shot img { display: block; width: 100%; height: auto; }
.stack-shot.main { left: 0; top: 0; width: 82%; z-index: 3; }
.stack-shot.b { right: 0; top: 34%; width: 50%; z-index: 4; }
.stack-shot.c { left: 10%; bottom: 0; width: 46%; z-index: 2; }
.stack-shot:hover { transform: translateY(-4px) scale(1.02); z-index: 5; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(92, 255, 232, 0.1); }

.mini-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}
.mini-specs div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.6rem;
  text-align: center;
}
.mini-specs b { display: block; font-family: var(--font-display); color: var(--cyan); font-size: 1rem; }
.mini-specs span { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.visor {
  background: radial-gradient(ellipse at 50% 40%, #15122a, #07060b 75%);
  border: 1px solid var(--line-strong);
  border-radius: 40px 40px 60px 60px;
  padding: 1.6rem 1.4rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.visor canvas { display: block; width: 100%; height: auto; }

.side-card {
  margin-top: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.side-card h3 { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--white); margin-bottom: 0.3rem; }
.side-card p { color: var(--muted); font-size: 0.95rem; max-width: 26rem; }

.addon-teaser {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(92, 255, 232, 0.05), rgba(107, 63, 160, 0.12));
}
.addon-teaser .section-intro strong { color: var(--white); }
.connect-inner .section-intro { max-width: 34rem; }

@media (max-width: 900px) {
  .proj-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .proj-grid.flip .proj-text, .proj-grid.flip .proj-visual { order: 0; }
  .addon-teaser { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
  .proj { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (max-width: 520px) {
  .mini-specs { grid-template-columns: repeat(2, 1fr); }
}

/* Full-bleed hero (the generic section rule caps width at 1200px) */
section.hero { max-width: none; padding: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--cyan); }

/* Release history (filled in by the Worker from GitHub) */
.release-history { margin-top: 2rem; }
.release-history h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.rel-list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.8rem; }
.rel-list li + li { border-top: 1px solid var(--line); }
.rel-list a {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s;
}
.rel-list a:hover { background: rgba(92, 255, 232, 0.04); color: var(--white); }
.rel-list b { color: var(--white); font-weight: 600; }
.rel-list .newest b { color: var(--cyan); }
.rel-list .newest b::after {
  content: 'latest';
  margin-left: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  border: 1px solid var(--cyan);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}
.rel-list time { font-size: 0.9rem; }

/* ════════════════════════════════════════════════════════════
   Footer legal links
   ════════════════════════════════════════════════════════════ */
footer .footer-legal { margin-top: 0.4rem; font-size: 0.75rem; }

/* ════════════════════════════════════════════════════════════
   Addon gallery, addon page, upload page
   ════════════════════════════════════════════════════════════ */

.how-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: -0.6rem 0 1.6rem; }
.how-strip span {
  font-size: 0.95rem; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface);
  padding: 0.4rem 0.8rem; border-radius: 2px;
}
.how-strip b { color: var(--cyan); font-family: var(--font-display); font-size: 0.75rem; margin-right: 0.35rem; }

.account { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.account .avatar { border-radius: 50%; border: 1px solid var(--line-strong); }

.gallery-tools { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.addon-sort {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--white);
  font: inherit; font-size: 1rem; padding: 0.55rem 0.8rem; border-radius: 2px;
}

.addon-card > a { display: block; }
.addon-glyph {
  aspect-ratio: 16 / 9;
  display: flex !important; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 30% 30%, rgba(107, 63, 160, 0.35), transparent 70%), var(--panel);
  border-bottom: 1px solid var(--line); text-decoration: none;
}
.addon-glyph span { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; color: rgba(92, 255, 232, 0.55); }
.addon-head h3 a { color: var(--white); text-decoration: none; }
.addon-head h3 a:hover { color: var(--cyan); }
.badge {
  display: inline-block; font-family: var(--font-display); font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--void); background: var(--cyan); padding: 0.15rem 0.45rem; border-radius: 2px; vertical-align: middle; white-space: nowrap;
}
.addon-by { font-size: 0.9rem; color: var(--muted); }
.addon-by.big { font-size: 1.05rem; margin: 0.4rem 0 0.2rem; }
.addon-by .badge { margin-right: 0.3rem; }
.addon-summary { color: var(--white); font-weight: 600; }
.addon-summary.big { font-size: 1.15rem; color: var(--cyan); margin: 0.3rem 0 1.4rem; }
.addon-meta { font-size: 0.85rem; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wrap { overflow-wrap: anywhere; }

.install-box { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-strong); border-radius: 2px; overflow: hidden; max-width: 100%; }
.install-box .btn { border: 0; border-radius: 0; flex-shrink: 0; }
.install-url {
  flex: 1; min-width: 0; display: flex; align-items: center; background: #09080f; color: var(--muted);
  padding: 0.5rem 0.8rem; border-radius: 0; overflow-x: auto; white-space: nowrap; font-size: 0.8rem;
}
.install-box.big .btn { padding: 1rem 1.6rem; font-size: 0.75rem; }
.install-box.big .install-url { font-size: 0.9rem; }
.install-panel { margin-top: 0.4rem; max-width: 760px; }
.install-how { margin-top: 0.8rem; font-size: 1.05rem; color: var(--white); }

.page-hero-inner.wide { max-width: 1200px; }
.addon-hero { padding-bottom: 5rem; }
.addon-page-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; margin-top: 3rem; }
.mini-h {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); margin: 1.8rem 0 0.8rem;
}
.addon-page-body .mini-h:first-child, .addon-side .mini-h:first-child { margin-top: 0; }
.addon-page-body .addon-desc { font-size: 1.08rem; white-space: pre-line; }
.addon-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.addon-shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.addon-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; align-self: start; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--white); min-width: 0; overflow-wrap: anywhere; }
.version-list { list-style: none; display: grid; gap: 0.4rem; }
.version-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.version-list span { color: var(--muted); }
.side-actions { margin-top: 1.4rem; }
.btn.danger { border-color: rgba(255, 92, 141, 0.45); color: var(--pink); }
.btn.danger:hover { background: rgba(255, 92, 141, 0.08); border-color: var(--pink); color: var(--pink); }

.check-list { list-style: none; display: grid; gap: 0.5rem; }
.check-list li { position: relative; padding-left: 1.4rem; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.check-list li::before { content: '•'; position: absolute; left: 0.3rem; color: var(--purple-light); }
.check-list.bad li::before { content: '✕'; left: 0.1rem; color: var(--pink); }
.check-list.warn li::before { content: '!'; left: 0.35rem; font-weight: 700; color: #ffb45c; }
.check-box { margin: 1.4rem 0; padding: 1.4rem; border: 1px solid var(--line); border-left-width: 3px; border-radius: 2px; background: var(--surface); }
.check-box.good { border-left-color: var(--cyan); }
.check-box.bad { border-left-color: var(--pink); }
.check-box h3 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 0.8rem; color: var(--white); }
.check-box h4 { font-size: 0.95rem; color: #ffb45c; margin: 1.2rem 0 0.6rem; }
.check-box .facts { margin: 0.4rem 0 0.4rem; }
.check-box .install-box { margin: 0.6rem 0 0; }

.upload-form { display: grid; gap: 1.4rem; max-width: 900px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.4rem; }
.field label { display: block; font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input[type=file] { color: var(--muted); font: inherit; max-width: 100%; }
.field input[type=file]::file-selector-button {
  font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--surface); color: var(--cyan); border: 1px solid var(--line-strong); padding: 0.6rem 1rem; margin-right: 0.8rem; cursor: pointer;
}
.field textarea, .report-dialog textarea {
  width: 100%; background: #09080f; border: 1px solid var(--line-strong); color: var(--white); border-radius: 2px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; padding: 0.7rem 0.8rem; resize: vertical;
}
.gate { margin-bottom: 1.4rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; color: var(--muted); }
.gate[hidden] { display: none; }
.agree { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--muted); line-height: 1.5; }
.agree input { margin-top: 0.3rem; accent-color: var(--cyan); }

.report-dialog {
  background: var(--panel); color: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 1.6rem; width: min(480px, calc(100vw - 2rem));
}
.report-dialog::backdrop { background: rgba(7, 6, 11, 0.8); backdrop-filter: blur(6px); }
.report-dialog h2 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.4rem; }
.report-dialog form { display: grid; gap: 0.7rem; }
.report-dialog p { color: var(--muted); font-size: 0.95rem; }
.report-dialog label { display: flex; gap: 0.6rem; align-items: center; color: var(--white); cursor: pointer; }
.report-dialog input { accent-color: var(--cyan); }

@media (max-width: 900px) {
  .addon-page-grid, .upload-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .install-box { flex-direction: column; }
  .install-url { white-space: normal; overflow-wrap: anywhere; }
}

/* ════════════════════════════════════════════════════════════
   Legal pages
   ════════════════════════════════════════════════════════════ */
.legal { max-width: 860px; }
.legal h2 {
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; color: var(--white);
  margin: 2.6rem 0 0.9rem; scroll-margin-top: 5rem;
}
.legal p, .legal li { color: var(--muted); line-height: 1.75; font-size: 1.05rem; }
.legal p + p { margin-top: 0.8rem; }
.legal strong { color: var(--white); }
.legal ul, .legal ol { margin: 0.6rem 0 0.8rem 1.3rem; display: grid; gap: 0.35rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.legal-toc a {
  font-size: 0.85rem; color: var(--muted); text-decoration: none;
  border: 1px solid var(--line); padding: 0.25rem 0.7rem; border-radius: 999px;
}
.legal-toc a:hover { color: var(--cyan); border-color: var(--line-strong); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1rem; font-size: 0.98rem; }
.legal-table th, .legal-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.legal-table td { color: var(--muted); }
.toast:not(.show) { visibility: hidden; }
.addon-page-grid.single { grid-template-columns: minmax(0, 420px); }

/* Staff role tags (Owner / Admin / Moderator) and "your addon" */
.role-tag {
  display: inline-block; vertical-align: middle; white-space: nowrap;
  font-family: var(--font-display); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.15rem 0.45rem; border-radius: 2px; line-height: 1.4;
}
.role-owner { color: var(--void); background: linear-gradient(135deg, var(--cyan), var(--purple-light)); }
.role-admin { color: var(--void); background: var(--purple-light); }
.role-moderator { color: var(--cyan); border: 1px solid var(--cyan); }
.role-yours { color: var(--purple-light); border: 1px solid var(--purple-light); }
.addon-page-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.addon-page-top .crumbs { margin-bottom: 0; }
.you-can { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); }
