/* ═══════════════════════════════════════════════
   73 PRODUCTIONS — PREMIUM LAYER
   Loaded on every page. Adds ambient background,
   refined nav, micro-interactions, elevated type.
═══════════════════════════════════════════════ */

/* ── AMBIENT GRADIENT ORBS ───────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,0,0,0.07) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: orb1 22s ease-in-out infinite alternate;
}

.bg-orb-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(235,216,172,0.04) 0%, transparent 70%);
  top: 30%;
  right: -200px;
  animation: orb2 28s ease-in-out infinite alternate;
}

.bg-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,0,0,0.05) 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  animation: orb3 18s ease-in-out infinite alternate;
}

.bg-orb-4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(235,216,172,0.03) 0%, transparent 70%);
  top: 60%;
  left: 10%;
  animation: orb4 24s ease-in-out infinite alternate;
}

@keyframes orb1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(120px, 80px) scale(1.1); }
  66%  { transform: translate(60px, 200px) scale(0.95); }
  100% { transform: translate(200px, 100px) scale(1.05); }
}
@keyframes orb2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-150px, 120px) scale(1.08); }
  100% { transform: translate(-80px, -80px) scale(0.92); }
}
@keyframes orb3 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-100px, -60px) scale(1.12); }
  100% { transform: translate(80px, -120px) scale(0.98); }
}
@keyframes orb4 {
  0%   { transform: translate(0, 0); }
  60%  { transform: translate(80px, -100px); }
  100% { transform: translate(-60px, 60px); }
}

/* ── PREMIUM NAV ──────────────────────────────── */
nav {
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(235,216,172,0.06) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 500 !important;
  transition: background 0.3s !important;
}

.nav-logo {
  background: linear-gradient(135deg, #EBD8AC 0%, rgba(235,216,172,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--red, #FF0000);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* ── PAGE INTRO — bigger, more air ───────────────*/
.page-intro {
  padding: 100px 60px 80px !important;
}
.page-intro h1 {
  font-size: clamp(64px, 10vw, 128px) !important;
  line-height: .84 !important;
  letter-spacing: -.04em !important;
}
.page-intro-right {
  font-size: 17px !important;
  line-height: 1.9 !important;
}

/* ── SECTION TEXT — more refined ──────────────── */
.svc-name {
  font-size: clamp(32px, 4vw, 52px) !important;
  letter-spacing: -.025em !important;
}
.svc-desc {
  font-size: 15px !important;
  line-height: 1.85 !important;
}

/* ── BUTTONS — sharper, more confident ────────── */
.btn-red, .btn-outline, .sc-btn, .submit-btn, .btn-action, .btn-main {
  letter-spacing: .2em !important;
  font-size: 10px !important;
}

.btn-red {
  position: relative;
  overflow: hidden;
}
.btn-red::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s cubic-bezier(.76,0,.24,1);
}
.btn-red:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-red:hover { color: #000 !important; }
.btn-red > * { position: relative; z-index: 2; }

/* ── STATS — bigger numbers ───────────────────── */
.stat-n, .stat-big, .sc-n, .story-num-n {
  font-size: clamp(64px, 7vw, 96px) !important;
  letter-spacing: -.04em !important;
}

/* ── LINK UNDERLINES ──────────────────────────── */
.svc-cta, .hero-cta-link, .sc-email, .btn-mono, .btn-ghost-link {
  transition: gap .25s, color .25s, letter-spacing .25s !important;
}
.svc-cta:hover, .hero-cta-link:hover {
  letter-spacing: .22em !important;
}

/* ── SCROLLBAR — minimal ──────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(235,216,172,0.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,0,0,0.4); }

/* ── SELECTION ────────────────────────────────── */
::selection {
  background: rgba(255, 0, 0, 0.25);
  color: #EBD8AC;
}

/* ── FOCUS RING ───────────────────────────────── */
:focus-visible {
  outline: 1px solid rgba(255,0,0,0.5);
  outline-offset: 3px;
}

/* ── FOOTER — refined ─────────────────────────── */
footer {
  background: rgba(0,0,0,0.9) !important;
  backdrop-filter: blur(12px) !important;
}

/* ── PHIL CARDS — glow on hover ───────────────── */
.phil-card {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s !important;
}
.phil-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 60px rgba(255,0,0,0.08) !important;
}

/* ── SVC ROWS — refined hover ─────────────────── */
.svc-row::before, .svc-line::before {
  transition: transform .5s cubic-bezier(.76,0,.24,1) !important;
}

/* ── ABOUT PHOTO — subtle glow ────────────────── */
.about-photo img {
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .6s !important;
  filter: brightness(0.92);
}
.about-photo:hover img {
  transform: scale(1.025) !important;
  filter: brightness(1) !important;
}

/* ── PAGE TRANSITIONS ─────────────────────────── */
body {
  animation: pageIn .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── MARQUEE — slow it down ───────────────────── */
.marquee-track {
  animation-duration: 40s !important;
}

/* ── MOBILE SAFE ──────────────────────────────── */
@media (max-width: 768px) {
  .page-intro { padding: 64px 24px 52px !important; }
  .bg-orb-1 { width: 300px; height: 300px; filter: blur(80px); }
  .bg-orb-2 { width: 400px; height: 400px; filter: blur(100px); }
  .bg-orb-3, .bg-orb-4 { display: none; }
}

/* ── IMAGE LIGHTBOX (trio images) ─────────────── */
.img-trio-frame, .contact-trio-frame { cursor: pointer; }

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
#lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
#lightbox.open img {
  transform: scale(1);
}
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(235,216,172,0.2);
  color: #EBD8AC;
  font-size: 18px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
#lightbox-close:hover {
  border-color: rgba(255,0,0,0.6);
  color: #FF0000;
}

/* ── MOBILE HAMBURGER + DROPDOWN ─────────────────────────── */
#nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(235,216,172,0.15);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  margin-left: auto;
  transition: border-color 0.2s;
}
#nav-burger:hover { border-color: rgba(235,216,172,0.4); }
#nav-burger span {
  display: block;
  width: 16px;
  height: 1px;
  background: #EBD8AC;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), opacity 0.2s;
  transform-origin: center;
}
#nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#nav-dropdown {
  position: fixed;
  top: 64px; /* overridden by JS to match actual nav height */
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(235,216,172,0.08);
  z-index: 499;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), opacity 0.25s ease;
}
#nav-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#nav-dropdown a {
  display: block;
  padding: 18px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(235,216,172,0.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(235,216,172,0.06);
  transition: color 0.2s, padding-left 0.2s;
}
#nav-dropdown a:last-child { border-bottom: none; }
#nav-dropdown a:hover { color: #EBD8AC; padding-left: 36px; }
#nav-dropdown a.active { color: #FF0000; }

@media(max-width:768px) {
  #nav-burger { display: flex !important; }
}
@media(min-width:769px) {
  #nav-burger { display: none !important; }
  #nav-dropdown { display: none !important; }
}
