/* ============================================
   PHOTOBOOTH GOA — Cinematic Luxury Design System
   Dark · Ivory · Champagne Gold
   Cormorant Garamond + Sora
   ============================================ */

:root {
  --black: #0A0A0A;
  --black-soft: #111111;
  --dark: #1A1A1A;
  --dark-mid: #222222;
  --gray-800: #2A2A2A;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-300: #AAAAAA;
  --ivory: #F5F0E8;
  --ivory-soft: #EDE8DE;
  --white: #FAF8F4;
  --gold: #C9A96E;
  --gold-light: #D4B87A;
  --gold-dark: #A88B52;
  --gold-glow: rgba(201, 169, 110, 0.12);

  /* accent role — driven by tweaks (default gold) */
  --accent: #C9A96E;
  --accent-soft: rgba(201,169,110,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Sora', 'Helvetica Neue', sans-serif;
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-speed: 1;
  --grain-opacity: 0.035;

  --section-y: clamp(64px, 9vw, 128px);
  --container-max: 1300px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--black); }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--accent); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---- Loading Screen ---- */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 1s var(--ease-smooth), visibility 1s;
}
.loading-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 300;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ivory); margin-bottom: 2.5rem;
  opacity: 0; animation: fadeIn 1s var(--ease-smooth) 0.2s forwards;
}
.loading-logo span { color: var(--accent); }
.loading-line {
  width: 180px; height: 1px;
  background: var(--gray-800); position: relative; overflow: hidden;
}
.loading-line::after {
  content: ''; position: absolute; left: 0; top: 0;
  height: 100%; width: 0%; background: var(--accent);
  animation: loadLine 1.8s var(--ease-in-out) 0.5s forwards;
}

/* ---- Custom Cursor ---- */
.cursor-dot {
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 99999; mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-smooth);
}
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid var(--accent);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 99998; opacity: 0.4;
  transition: width 0.35s var(--ease-out-expo), height 0.35s var(--ease-out-expo), opacity 0.35s;
}
.cursor-dot.hovering { transform: scale(4) !important; }
.cursor-ring.hovering { width: 60px; height: 60px; opacity: 0.15; }

/* ---- Navigation ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.5rem clamp(20px,5vw,48px); display: flex;
  align-items: center; justify-content: space-between;
  transition: all 0.5s var(--ease-smooth);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 1rem clamp(20px,5vw,48px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 400; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ivory);
}
.nav-logo-mark {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(201,169,110,0.3); letter-spacing: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gray-300); transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); padding: 0.6rem 1.5rem;
  border: 1px solid rgba(201,169,110,0.4);
  background: transparent; transition: all 0.4s;
}
.nav-cta:hover { background: var(--accent); color: var(--black); }

/* ---- Mobile hamburger + fullscreen overlay menu ---- */
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: transparent; cursor: pointer;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--ivory); border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}
.nav-burger span:nth-child(2) { width: 16px; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--black); display: flex; flex-direction: column;
  padding: clamp(18px,4vw,30px) clamp(20px,5vw,48px) clamp(24px,5vw,40px);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), visibility 0.4s;
  overflow-y: auto;
}
.nav-overlay.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-overlay-top { display: flex; align-items: center; justify-content: space-between; }
.nav-close {
  width: 46px; height: 46px; background: transparent; border: 1px solid rgba(201,169,110,0.25);
  color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-overlay-list { flex: 1; display: flex; flex-direction: column; justify-content: center; margin: 2rem 0; }
.nav-overlay-row {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(13px,2.2vh,22px) 0; border-top: 1px solid rgba(201,169,110,0.12);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.nav-overlay.open .nav-overlay-row { opacity: 1; transform: translateY(0); }
.nav-row-eyebrow {
  font-family: var(--font-body); font-size: 0.55rem; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent);
}
.nav-row-title {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem,7vw,2.8rem);
  color: var(--ivory); line-height: 1.05;
}
.nav-overlay-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.nav-overlay-social { display: flex; gap: 1.5rem; }
.nav-overlay-social a {
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-400); transition: color 0.3s;
}
.nav-overlay-social a:hover { color: var(--accent); }

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out-expo), transform 1.1s var(--ease-out-expo);
}
.reveal-scale.active { opacity: 1; transform: scale(1); }
.stagger > * {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.stagger.active > *:nth-child(1) { transition-delay: 0s; }
.stagger.active > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.active > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.active > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.active > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.active > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.active > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.active > *:nth-child(8) { transition-delay: 0.56s; }
.stagger.active > *:nth-child(9) { transition-delay: 0.64s; }
.stagger.active > * { opacity: 1; transform: translateY(0); }

/* ---- Buttons: ghost / fill-on-hover (no pills) ---- */
.mag-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1rem 2.5rem; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent);
  background: transparent; position: relative; overflow: hidden;
  transition: color 0.4s, transform 0.4s var(--ease-out-expo);
}
.mag-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); transform: scaleX(0);
  transform-origin: right; transition: transform 0.5s var(--ease-in-out);
  z-index: -1;
}
.mag-btn:hover { color: var(--black); }
.mag-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.mag-btn.filled { background: var(--accent); color: var(--black); }
.mag-btn.filled::before { background: var(--ivory); }
/* aliases so warm-theme class names still render as dark ghost buttons */
.mag-btn.ghost { background: transparent; color: var(--accent); }
.mag-btn.on-dark.ghost { color: var(--ivory); border-color: var(--ivory); }
.mag-btn.on-dark.ghost::before { background: var(--ivory); }
.mag-btn.on-dark.ghost:hover { color: var(--black); }

/* ---- Section Label ---- */
.s-label {
  font-family: var(--font-body); font-size: 0.65rem;
  font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
}
.s-title {
  font-family: var(--font-display); font-weight: 300;
  line-height: 1.08; color: var(--ivory);
}

/* ---- Protection gradient ---- */
.protect-grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,0) 45%, rgba(10,10,10,0.72) 100%);
}

/* ---- Hide scrollbar (video carousel) ---- */
.pbg-hide-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.pbg-hide-scroll::-webkit-scrollbar { display: none; }

/* ---- Grain Overlay ---- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9990;
  opacity: var(--grain-opacity, 0.035);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ---- Keyframes ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes loadLine { to { width: 100%; } }
@keyframes floatBokeh {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-30px) scale(1.08); }
  66% { transform: translate(-15px,20px) scale(0.92); }
}
@keyframes scrollPulse {
  0% { top:0; opacity:0; } 30% { opacity:1; } 100% { top:40px; opacity:0; }
}
@keyframes marquee { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
@keyframes waveBar { 0%,100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ---- Nav collapses to burger below 1024px (row needs ~1000px) ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 1025px) {
  .nav-overlay { display: none; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-links { gap: 1.6rem; }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  .story-grid { grid-template-columns: 1fr !important; }
  /* Hero: keep only the middle 3 images on mobile */
  [data-hero-edge] { display: none !important; }
  /* Frame intro: center text on mobile, keep stacked images within viewport */
  .frame-intro-text { text-align: center; }
  .frame-intro-text p { margin-left: auto; margin-right: auto; }
  .frame-intro-stack { max-width: 100%; overflow: visible; }
  /* Reels: push carousel arrows to the right on mobile, keep gallery button */
  .reels-actions { width: 100%; }
  .reels-nav { margin-left: auto; }
}
@media (min-width: 769px) {
  .nav-overlay-only { display: none; }
}
