/* ==========================================================================
   RAWMEN STUDIOS — Official Studio & Project Portal Stylesheet
   Domain: https://rawmenstudios.com | First Flagship Project: Dravis (dravis.fun)
   ========================================================================== */

:root {
  --bg: #030712;
  --bg-elevated: #0b1120;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --border: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(34, 211, 238, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --cyan: #22d3ee;
  --indigo: #818cf8;
  --purple: #a855f7;
  --emerald: #10b981;
  --amber: #f59e0b;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 24px 70px -20px rgba(34, 211, 238, 0.22);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.08), transparent 42%),
              radial-gradient(circle at 82% 24%, rgba(129, 140, 248, 0.09), transparent 44%),
              radial-gradient(circle at 50% 88%, rgba(168, 85, 247, 0.06), transparent 50%),
              var(--bg);
  overflow-x: hidden;
  position: relative;
}

#studio-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cursor-aura {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, rgba(129, 140, 248, 0.04) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.page-shell {
  position: relative;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.28);
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #030712;
  box-shadow: 0 10px 30px -8px rgba(34, 211, 238, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px -6px rgba(34, 211, 238, 0.72);
}

.btn-glass {
  background: rgba(15, 23, 42, 0.78);
  border-color: var(--border);
  color: var(--text);
}

.btn-glass:hover {
  border-color: var(--border-accent);
  background: rgba(30, 41, 59, 0.85);
}

.mobile-menu-btn {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.96);
}

.mobile-drawer.open {
  display: flex;
}

/* Hero Section */
.hero {
  padding: 78px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-accent);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(120deg, #f8fafc 15%, #22d3ee 55%, #818cf8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.stat-val {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.stat-lbl {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Flagship Spotlight Card */
.spotlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(10, 15, 30, 0.95));
  border: 1px solid var(--border-accent);
  padding: 20px;
  box-shadow: var(--shadow-glow);
}

.spotlight-badge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill-cyan {
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.pill-emerald {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.pill-indigo {
  background: rgba(129, 140, 248, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.spotlight-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: #020617;
  margin-bottom: 16px;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Sections */
section {
  padding: 68px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.section-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  max-width: 560px;
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* Organization Grid */
.org-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.glass-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.glass-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.leadership-strip {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Project #01 Deep-Dive */
.flagship-box {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border-accent);
  padding: 32px;
  box-shadow: var(--shadow-glow);
}

.flagship-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 26px;
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(99, 102, 241, 0.25));
  border-color: var(--cyan);
  color: #ffffff;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.check-icon {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.gallery-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #020617;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.shot-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot-caption {
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Studio Projects Filter & Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* Roadmap Timeline */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.phase-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 22px;
}

.phase-card.active-phase {
  border-color: var(--border-accent);
  background: rgba(15, 23, 42, 0.9);
}

.phase-step {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

/* Architecture Grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Contact & Footer */
.contact-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(9, 13, 28, 0.96));
  border: 1px solid var(--border);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 42px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy-app-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.policy-stack {
  display: grid;
  gap: 22px;
}

.policy-body {
  display: grid;
  gap: 20px;
}

.policy-block h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--cyan);
}

.policy-block p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 920px;
  width: 100%;
  background: #0b1120;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}

.lightbox-inner img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #020617;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .feature-split,
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .org-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roadmap-grid,
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .org-grid,
  .gallery-grid,
  .projects-grid,
  .roadmap-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }
  .flagship-box {
    padding: 22px 18px;
  }
  .hero {
    padding: 46px 0 36px;
  }
}
