/* ========= AQ Base ========= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --color-text: #fff;
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-hover-overlay: rgba(0, 0, 0, 0.2);
  --color-moss: #7b886f;
  --color-sand: #c19a82;
  --color-clay: #9fb8a3;
  --color-slate: #5784ba;
  --transition-speed: 0.6s ease;
  --font-body: "Nunito", sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;

  /* Earth-tone rotation for Q3 sections */
  --tone1: linear-gradient(180deg, #2f3e46 0%, #354f52 100%);
  --tone2: linear-gradient(180deg, #52796f 0%, #84a98c 100%);
  --tone3: linear-gradient(180deg, #7b886f 0%, #c19a82 100%);
  --tone4: linear-gradient(180deg, #5d738b 0%, #9fb8a3 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #0f0f0f;
}

/* shared top-nav (already used sitewide) */
.top-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 1.25rem;
  z-index: 50;
  font-family: "IBM Plex Sans", "Nunito", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  background: transparent;
}
.top-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}
.top-nav a:hover {
  color: #fff;
  opacity: 1;
}

/* Shared “Back” button component (used by Q3, Q4, etc.) */
a.back-link,
.back-link,
.q3 .back-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
a.back-link:hover,
.back-link:hover,
.q3 .back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Reusable overlay + bounce */
@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* (Landing-specific axes will remain in that page’s CSS to prevent leaks) */
