/* ── FluxWorkshop shared stylesheet ─────────────────────────────────────── */

:root {
  --purple:    #31094e;
  --purple-2:  #d4a8fd;
  --red:       #d9002b;
  --text:      rgba(255,255,255,0.95);
  --muted:     rgba(255,255,255,0.68);
  --border:    rgba(255,255,255,0.09);
  --glass:     rgba(10,5,20,0.60);
  --glass-nav: rgba(6,3,14,0.75);
  --radius:    16px;
  --sans:      ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--sans);
  background: #000;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── background layer ──────────────────────────────────────────────────── */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 30%, #31094e, transparent 45%),
    radial-gradient(circle at 70% 70%, #d9002b, transparent 50%),
    #000;
  filter: blur(70px) saturate(1.53);
  transform: scale(1.3);
  pointer-events: none;
}

/* ── dark tint overlay (between bg and content) ────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}

#noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── site nav ──────────────────────────────────────────────────────────── */
.site-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-nav .logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: linear-gradient(90deg, #e0b8ff, #fff 55%, #ff9ab0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav .links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav .links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 99px;
  transition: color .2s, background .2s;
}
.site-nav .links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.site-nav .links a.active {
  color: var(--text);
  background: rgba(192,132,252,0.12);
  border: 1px solid rgba(192,132,252,0.20);
}

/* ── page wrapper ──────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 80px;
}

/* ── glass card ────────────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

/* ── hero section (home) ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 52px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #e0b8ff 20%, #fff 55%, #ff9ab0 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── nav cards (home page menu) ────────────────────────────────────────── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 820px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: border-color .25s, transform .2s, box-shadow .25s;
  transform-style: preserve-3d;
}
.nav-card:hover {
  border-color: rgba(192,132,252,0.35);
  transform: translateY(-3px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5), 0 0 30px rgba(192,132,252,0.08);
}

.nav-card .card-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.nav-card .card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-card .card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.nav-card .card-arrow {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  color: rgba(192,132,252,0.9);
  letter-spacing: 0.04em;
}

/* ── page heading ──────────────────────────────────────────────────────── */
.page-head {
  text-align: center;
  margin-bottom: 48px;
  width: 100%;
  max-width: 760px;
  padding: 28px 36px;
  background: rgba(10,5,20,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #e0b8ff 20%, #fff 55%, #ff9ab0 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-head p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── content area ──────────────────────────────────────────────────────── */
.content {
  width: 100%;
  max-width: 760px;
}

/* ── project grid ──────────────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s, transform .2s;
}
.project-card:hover {
  border-color: rgba(192,132,252,0.30);
  transform: translateY(-2px);
}

.project-card .proj-tag {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(192,132,252,0.92);
}

.project-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.project-card .proj-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 14px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ── about prose ───────────────────────────────────────────────────────── */
.prose {
  padding: 36px 40px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  line-height: 1.75;
  font-size: 15px;
  color: rgba(255,255,255,0.88);
}

.prose h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.prose .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.40);
  letter-spacing: 0.04em;
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-nav { padding: 14px 18px; }
  .page { padding: 40px 16px 60px; }
  .prose { padding: 24px 20px; }
  .nav-cards { grid-template-columns: 1fr; }
}
