/* ============================================
   RICH CAMPBELL PORTFOLIO — SHARED STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Mono:wght@300;400&display=swap');

:root {
  --ink:      #0A031D;
  --cream:    #f0f2f8;
  --rust:     #0075FF;
  --warm-mid: #5a6a8a;
  --pale:     #dde2f0;
  --white:    #f6f8fc;
  --dark:     #06011a;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --font-mono:    'DM Mono', monospace;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ---- CURSOR ---- */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--rust);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.5;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(240,242,248,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10,3,29,0.08);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { opacity: 1; color: var(--rust); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  padding: 10px 20px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--rust); opacity: 1 !important; }

/* ---- MARQUEE ---- */
.marquee-strip {
  background: var(--ink);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 22s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--cream);
  padding: 0 36px;
  opacity: 0.45;
}
.marquee-dot { color: var(--rust); opacity: 1 !important; padding: 0 0 0 36px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(244,240,232,0.06);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.15em;
  color: rgba(244,240,232,0.35);
  text-decoration: none;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(244,240,232,0.25);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--rust); }

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  display: block;
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  padding: 160px 48px 80px;
  border-bottom: 1px solid rgba(13,13,11,0.12);
  position: relative;
  overflow: hidden;
}
.page-header-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 20px;
  display: block;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 130px);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* ---- GRAIN ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes growDown {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,3,29,0.96);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.lightbox-caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: rgba(240,242,248,0.6);
  text-align: center;
  max-width: 640px;
  line-height: 1.6;
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,242,248,0.5);
  background: none;
  border: none;
  cursor: none;
  transition: color 0.2s;
  z-index: 9001;
}
.lightbox-close:hover { color: var(--rust); }
.lightbox-nav { display: flex; gap: 16px; }
.lightbox-nav button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,242,248,0.45);
  background: none;
  border: 1px solid rgba(240,242,248,0.15);
  padding: 8px 20px;
  cursor: none;
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-nav button:hover { color: var(--rust); border-color: var(--rust); }

/* Gallery image hover */
.img-row img[data-lightbox] {
  cursor: none;
}
.img-row img[data-lightbox]:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* Fix image overflow on desktop */
.img-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
  overflow: hidden;
}
.img-row img {
  min-width: 0;
  flex-shrink: 1;
  width: 0;
  height: 280px;
  object-fit: cover;
}

/* ---- SHARED JS (cursor + scroll + nav) ---- */
/* included via shared.js */

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav-links { gap: 16px; }
  .nav-cta { display: inline-flex; padding: 8px 20px; font-size: 10px; }
  .footer { flex-direction: column; text-align: center; padding: 24px; }
  .page-header { padding: 120px 24px 60px; }
}
@media (max-width: 600px) {
  .nav-links li:not(:last-child):not(:nth-last-child(2)):not(:nth-last-child(3)) { display: none; }
}

/* ---- WAVE PILL BUTTONS ---- */
.btn-solid { border-radius: 100px !important; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; height: 40px; padding: 0 28px; white-space: nowrap; transition: background .25s, color .25s; }
.btn-outline-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  border-radius: 100px; padding: 16px 36px;
  border: 1px solid currentColor; transition: gap .2s, opacity .2s;
}
.wave-btn { position: relative; overflow: hidden; }
.wave-btn .wave-letter {
  display: inline-block;
  transform-origin: bottom center;
  will-change: transform, color;
}
