/* Questionable Studios — qscreative.click */
:root {
  --bg-deep: #060a12;
  --bg-panel: #0c1220;
  --bg-card: #111827;
  --blue-bright: #3b82f6;
  --blue-glow: #60a5fa;
  --blue-deep: #1e3a8a;
  --cyan: #38bdf8;
  --white: #f8fafc;
  --white-muted: #cbd5e1;
  --black: #020617;
  --chalk: #e2e8f0;
  --sidebar-w: 280px;
  --header-h: 0px;
  --radius: 12px;
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.25);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--white-muted);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 40%, rgba(30, 64, 175, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 60%, rgba(56, 189, 248, 0.1), transparent 50%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(2, 6, 23, 0.9), transparent);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--blue-glow);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

/* Layout */
.app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.97) 0%, rgba(12, 18, 32, 0.95) 100%);
  border-right: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  transform: translateX(0);
  transition: transform var(--transition);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.5);
}

.sidebar-brand {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.sidebar-brand .logo-mark {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.3;
}

.sidebar-brand .logo-sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--blue-glow);
  text-transform: uppercase;
  margin-top: 0.35rem;
  opacity: 0.85;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem;
}

.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav .nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  padding: 1rem 0.75rem 0.5rem;
  font-weight: 600;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--white-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.sidebar-nav a .nav-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 0 8px var(--blue-bright);
  flex-shrink: 0;
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--white);
  border-color: rgba(59, 130, 246, 0.25);
}

.sidebar-nav a.active .nav-icon {
  background: var(--cyan);
  box-shadow: 0 0 14px var(--blue-glow);
}

.sidebar-footer {
  padding: 1rem 1.25rem 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.92);
  backdrop-filter: blur(8px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  box-shadow: var(--shadow-glow);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--transition);
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* Main content */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.png") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.92) 0%, rgba(6, 10, 18, 0.35) 45%, rgba(6, 10, 18, 0.75) 100%),
    linear-gradient(0deg, var(--bg-deep) 0%, transparent 35%, transparent 70%, rgba(6, 10, 18, 0.85) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.15), transparent 60%);
}

.hero-spotlight {
  position: absolute;
  width: 120%;
  height: 40%;
  top: 10%;
  left: -10%;
  background: radial-gradient(ellipse, rgba(96, 165, 250, 0.12) 0%, transparent 70%);
  animation: spotlight-drift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes spotlight-drift {
  from { transform: translateX(-3%) translateY(0); opacity: 0.6; }
  to { transform: translateX(5%) translateY(2%); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem 5rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-family: "Caveat", cursive;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--chalk);
  margin: 0 0 1.5rem;
  line-height: 1.4;
  opacity: 0.95;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--white-muted);
  margin: 0 0 2rem;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.55);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  border-color: var(--blue-glow);
  background: rgba(59, 130, 246, 0.1);
  color: var(--white);
}

.hero-zones {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-zone-pill {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  color: var(--blue-glow);
  backdrop-filter: blur(4px);
}

/* Sections */
.section {
  padding: 5rem 3rem;
  position: relative;
  border-top: 1px solid rgba(59, 130, 246, 0.12);
}

.section:nth-child(even) {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4) 50%, transparent);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 800px;
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chalk-slogan {
  font-family: "Caveat", cursive;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--chalk);
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--blue-bright);
}

.section-intro {
  font-size: 1.05rem;
  color: var(--white-muted);
  margin: 0;
}

/* Chalkboard panel */
.chalkboard {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  box-shadow:
    inset 0 2px 20px rgba(0, 0, 0, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
}

.chalkboard::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(100, 116, 139, 0.5);
  border-radius: 3px;
}

.chalkboard ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.chalkboard li {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  color: var(--chalk);
  padding: 0.25rem 0;
}

.chalkboard li::before {
  content: "→ ";
  color: var(--blue-glow);
}

/* Video block */
.video-block {
  margin-bottom: 3.5rem;
}

.video-block h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow:
    var(--shadow-glow),
    0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--black);
  aspect-ratio: 16 / 9;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  font-style: italic;
}

/* Experiment grid */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.experiment-card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.95), rgba(12, 18, 32, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.experiment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--cyan), var(--blue-bright));
  opacity: 0;
  transition: opacity var(--transition);
}

.experiment-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: var(--shadow-glow);
}

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

.card-visual {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-visual-aero {
  background:
    radial-gradient(circle at 70% 30%, rgba(96, 165, 250, 0.35), transparent 50%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
}

.card-visual-move {
  background:
    radial-gradient(circle at 30% 60%, rgba(56, 189, 248, 0.3), transparent 45%),
    linear-gradient(135deg, #0f172a, #172554);
}

.card-visual-grav {
  background:
    radial-gradient(circle at 50% 80%, rgba(59, 130, 246, 0.4), transparent 55%),
    linear-gradient(180deg, #0f172a, #020617);
}

.card-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.5));
  opacity: 0.9;
}

.card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.experiment-card h4 {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experiment-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.experiment-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--white-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(2, 6, 23, 0.8);
}

.site-footer .footer-logo {
  font-family: "Oswald", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  .section {
    padding: 4rem 2rem;
  }

  .hero-content {
    padding: 3rem 2rem 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: min(85vw, 300px);
  }

  .menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding-top: 0;
  }

  .hero {
    min-height: 85vh;
    align-items: flex-end;
  }

  .hero-bg {
    background-position: 65% center;
  }

  .hero-content {
    padding: 5rem 1.5rem 3rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .chalkboard {
    padding: 1.25rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-spotlight {
    animation: none;
  }

  .experiment-card:hover {
    transform: none;
  }
}
