/* ═══════════════════════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════════════════════ */
:root {
  --noir: #09080b; --umber: #1e1a16; --white: #fbfbfbb1;
  --rose: #c9956b; --rose-light: #dbb08a; --blush: #e8c4a8;
  --dot-red: #C41E3A; --dot-teal: #2EC4B6;
  --champagne: #f2e6d9; --ivory: #faf6f1; --parch: #f0ebe4;
  --wine: #7a3b4e; --mauve: #9b7082; --sage: #8a9a7e;
  --saffron: #e0a458;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: linear-gradient(135deg, #1a1612 0%, #0a0a0f 50%, #1a2020 100%); color: var(--umber);
  font-family: var(--font-body); font-weight: 300;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.intro-active { overflow: hidden; }
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC INTRO OVERLAY
   ═══════════════════════════════════════════════════════════ */
.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.intro-overlay.fade-out { pointer-events: none; }
.intro-overlay.fade-out .intro-bg-fade { opacity: 0; }
.intro-overlay.hidden { display: none; }
.intro-bg-fade {
  position: absolute; inset: 0; background: var(--noir);
  transition: opacity 0.8s var(--ease-smooth);
}
.intro-content-group {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 2;
  transition: transform 1s var(--ease), opacity 0.6s var(--ease-smooth);
}
.intro-flyout .intro-subtitle,
.intro-flyout .intro-tagline { opacity: 0 !important; transition: opacity 0.3s !important; }
.intro-flyout .intro-mark { margin-bottom: 0; }
.intro-flyout .intro-title { font-size: 1.25rem; letter-spacing: 0.35em; }
.intro-mark { margin-bottom: 3rem; opacity: 0; transform: scale(0.7); }
.intro-mark svg { width: 120px; height: 120px; }
.intro-mark svg path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.intro-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 7vw, 5.5rem); color: var(--ivory);
  letter-spacing: 0.35em; display: flex;
  position: relative;
}
.intro-title .letter {
  display: inline-block; opacity: 0;
  filter: blur(12px);
  transform: translateY(10px) scale(0.95);
}
.intro-subtitle {
  font-size: 0.6rem; letter-spacing: 0.6em; text-transform: uppercase;
  color: var(--rose); opacity: 0; margin-top: 1rem;
}
.intro-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 1.05rem; color: rgba(224,164,88,0.88);
  opacity: 0; margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.4rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.6s var(--ease-smooth);
  opacity: 0; transform: translateY(-20px);
  background: linear-gradient(160deg, #09080b 0%, #1e1a16 40%, #2a2520 70%, #0e0c10 100%);
  background-size: 180% 180%;
  animation: heroAtmosphere 25s ease infinite alternate;
  box-shadow: 0 1px 40px rgba(0,0,0,0.3);
}
nav.visible { opacity: 1; transform: translateY(0); }
nav.scrolled {
  /* Note: backdrop-filter has no effect on an opaque background like this gradient.
     It's commented out but can be re-enabled if you switch to a semi-transparent background. */
  /* backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); */
  padding: 0.7rem 3.5rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.9rem; }
.nav-logo svg { height: 30px; width: auto; }
.nav-logo .petal-group {
  /* The initial transform is set in the SVG, but we define it here for the transition to work on mouse-out */
  transform: translate(30px, 30px) rotate(0deg);
  transition: transform 0.8s var(--ease);
}
.nav-logo:hover .petal-group {
  transform: translate(30px, 30px) rotate(60deg);
}
.nav-logo-text {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.5rem; color: var(--ivory); letter-spacing: 0.12em;
  position: relative;
}
.nav-logo-text .nav-logo-dots {
  position: absolute;
  top: 0.4em;
  left: 0.75em;
  display: flex;
  gap: 0.16em;
}
.nav-logo-dots span {
  width: 0.12em; height: 0.12em; border-radius: 50%;
  background: var(--rose); opacity: 0.85;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250,246,241,0.45); font-weight: 300;
  transition: color 0.4s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
  background: var(--rose); transition: width 0.5s var(--ease);
}
.nav-links a:hover { color: var(--rose); }
.nav-links a.active { color: var(--rose); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--noir); background: var(--rose);
  padding: 0.55rem 1.4rem; border-radius: 2px; font-weight: 400;
  transition: all 0.4s;
}
.nav-cta:hover { background: var(--rose-light); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ivory); transition: all 0.3s; }

@keyframes heroAtmosphere {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  background: linear-gradient(135deg, #1a1612 0%, #0a0a0f 50%, #1a2020 100%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
    background: linear-gradient(to bottom,
      transparent 0%,
      rgba(26,22,18,0.12) 40%,
      rgba(26,22,18,0.22) 60%,
      rgba(26,22,18,0.32) 80%,
      rgba(26,22,18,0.42) 100%
    );
  z-index: 3; pointer-events: none;
}
.hero-bg-mark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none; z-index: 0;
}
.hero-bg-mark svg { width: 500px; height: 500px; }
.hero-grain {
  position: absolute; 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='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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5; pointer-events: none; z-index: 1;
}
.hero-mark { margin-bottom: 2.5rem; }
.hero-mark svg { width: 90px; height: 90px; }
.hero-mark .outer-ring { transform-origin: center; }
/* ─── FIX 5: 3D Floating Title (CSS layer) ────────────────────────────────
   Wrapper handles the gentle vertical float via CSS keyframe.
   The title itself handles 3D mouse-parallax rotateX/Y via JS.
   Separating the two prevents transform conflicts and keeps both
   effects composited on the GPU.
   ─────────────────────────────────────────────────────────────────────────── */
.hero-title-float {
  display: inline-flex;
  animation: heroTitleFloat 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-style: preserve-3d; /* Let 3D transforms from child pass through */
}
@keyframes heroTitleFloat {
  0%, 100% { transform: translateY(0px);  }
  50%       { transform: translateY(-8px); }
}
.hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8rem);
  letter-spacing: 0.18em; line-height: 1; margin-bottom: 0.5rem;
  position: relative; display: inline-flex;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--rose-light) 50%, var(--ivory) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Depth layers via drop-shadow (works on gradient/transparent text) */
  filter: drop-shadow(0 4px 18px rgba(201,149,107,0.18))
          drop-shadow(0 12px 40px rgba(0,0,0,0.35));
  will-change: transform;
  transform-style: preserve-3d;
}
/* hero-content gets perspective so child 3D transforms are projected correctly */
.hero-content {
  position: relative; z-index: 2;
  perspective: 900px;
  perspective-origin: 50% 30%;
}
.hero-title .v-dots {
  position: absolute; top: 0.14em; left: 0.9em;
  display: flex; gap: 0.14em;
}
.hero-title .v-dots span {
  width: 0.09em; height: 0.09em; border-radius: 50%;
  background: var(--rose); opacity: 0.85;
}
.hero-subtitle {
  font-family: var(--font-body); font-weight: 200; font-size: 0.6rem;
  color: var(--rose); letter-spacing: 0.5em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-separator {
  position: relative; width: 180px; height: 1px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(90deg, transparent, #b8956a 30%, #b8956a 70%, transparent);
  opacity: 0.4;
}
.hero-separator .sep-diamond {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6px; color: #b8956a; line-height: 1;
  background: #09080b; padding: 0 6px;
}
.hero-tagline {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(224,164,88,0.88); letter-spacing: 0.04em; margin-bottom: 3rem;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ivory); font-weight: 300; padding: 1rem 2.5rem;
  border: 1px solid rgba(201,149,107,0.35);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease);
}
.hero-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--rose);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.hero-cta:hover::before { transform: scaleX(1); }
.hero-cta:hover { color: var(--noir); border-color: var(--rose); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,149,107,0.3); }
.hero-cta span { position: relative; z-index: 1; }
.hero-cta svg { transition: transform 0.4s var(--ease); position: relative; z-index: 1; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ── Split CTA group ── */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero-cta-ghost {
  border-color: rgba(250,246,241,0.12) !important;
}
.hero-cta-ghost::before { display: none !important; }
.hero-cta-ghost:hover {
  color: var(--rose) !important;
  border-color: rgba(201,149,107,0.4) !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Service card tags */
.sov-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.3rem;
}
.sov-tags span {
  font-size: 0.47rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(155, 112, 130, 0.6); /* Changed from --rose to --mauve */
  border: 1px solid rgba(155, 112, 130, 0.2); /* Changed from --rose to --mauve */
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
/* Card-specific tag colors to match stamps */
.sov-card--couple .sov-tags span,
.sov-card--maternity .sov-tags span {
  color: rgba(232, 196, 168, 0.7); /* --blush */
  border-color: rgba(232, 196, 168, 0.25); /* --blush */
}
.sov-card--celebrations .sov-tags span {
  color: rgba(224, 164, 88, 0.7); /* --saffron */
  border-color: rgba(224, 164, 88, 0.25); /* --saffron */
}
/* Commercial and Conceptual tags already use --mauve, which is the default. */

/* Pricing anchor */
.sov-price {
  font-size: 0.68rem;
  color: rgba(250,246,241,0.2);
  letter-spacing: 0.06em;
  margin: 0.1rem 0 0.2rem;
}
.sov-price strong { color: var(--rose); font-weight: 400; }
@media (max-width: 600px) {
  .hero-cta-group { flex-direction: column; }
}
.hero-scroll {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll span { font-size: 0.45rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(250,246,241,0.15); }
.scroll-line { width: 1px; height: 30px; position: relative; overflow: hidden; background: rgba(201,149,107,0.06); }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%; background: var(--rose); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════════════════════ */
.section { padding: 7rem 3.5rem; position: relative; }
.section-dark { background: linear-gradient(170deg, #0e0c10, #1e1a16 50%, #0e0c10); color: var(--ivory); }
.section-warm { background: var(--champagne); }
#contact { background: var(--ivory); }
.container { max-width: 1140px; margin: 0 auto; }
.section-tag {
  font-size: 0.55rem; letter-spacing: 0.5em;
  text-transform: uppercase; color: var(--rose); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: 0.04em;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-desc {
  font-size: 0.85rem; color: rgba(205, 115, 25, 0.4); max-width: 520px;
  line-height: 1.85; margin-bottom: 3rem;
}
.section-dark .section-desc { color: rgba(250,246,241,0.3); }

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO - SECTION INTRO ANIMATION
   ═══════════════════════════════════════════════════════════ */
/* Hide containers initially to prevent FOUC before JS runs */
#portfolio:not(.is-animated) .container > *:not(.ethereal-carousel) {
  opacity: 0;
}

/* Title: Cinematic word-mask reveal (film-title style) */
#portfolioTitle {
  overflow: visible; /* words clip themselves */
}

/* Thin accent rule that sweeps in before the words */
#portfolioTitle::before {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--rose);
  margin-bottom: 0.75rem;
  opacity: 0;
  transition: width 0.65s var(--ease), opacity 0.35s ease;
}

/* Each word gets a mask wrapper — text rises from beneath it */
#portfolioTitle .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.25;
}
#portfolioTitle .word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease), opacity 0.55s var(--ease-smooth);
}

/* Description: Dissolve effect */
#portfolioDesc {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(10px);
  transition: opacity 1.2s var(--ease-smooth), filter 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
}

/* When the section is animated by JS, apply final states */
#portfolio.is-animated .section-tag {
  opacity: 1;
  transition: opacity 0.9s ease;
}

#portfolio.is-animated #portfolioTitle::before {
  width: 2.8rem;
  opacity: 1;
}

#portfolio.is-animated #portfolioTitle .word-inner,
#portfolio.is-animated #portfolioDesc {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
#portfolio.is-animated .portfolio-filters button {
  animation: filterPillIn 0.5s var(--ease) forwards;
}
#portfolio.is-animated .portfolio-filters button:nth-child(1)  { animation-delay: 0.05s; }
#portfolio.is-animated .portfolio-filters button:nth-child(2)  { animation-delay: 0.1s; }
#portfolio.is-animated .portfolio-filters button:nth-child(3)  { animation-delay: 0.15s; }
#portfolio.is-animated .portfolio-filters button:nth-child(4)  { animation-delay: 0.2s; }
#portfolio.is-animated .portfolio-filters button:nth-child(5)  { animation-delay: 0.25s; }
#portfolio.is-animated .portfolio-filters button:nth-child(6)  { animation-delay: 0.3s; }
#portfolio.is-animated .portfolio-filters button:nth-child(7)  { animation-delay: 0.35s; }
#portfolio.is-animated .portfolio-filters button:nth-child(8)  { animation-delay: 0.4s; }
#portfolio.is-animated .portfolio-filters button:nth-child(9)  { animation-delay: 0.45s; }
#portfolio.is-animated .portfolio-filters button:nth-child(10) { animation-delay: 0.5s; }
#portfolio.is-animated .portfolio-filters button:nth-child(11) { animation-delay: 0.55s; }
#portfolio.is-animated .portfolio-filters button:nth-child(12) { animation-delay: 0.6s; }

@keyframes filterPillIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════════════ */
.portfolio-tools {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 3.5rem;
}
.portfolio-filters { display: flex; gap: 0.3rem; flex-wrap: wrap; flex: 1; }
.portfolio-filters button {
  font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,246,241,0.4); font-weight: 300;
  padding: 0.5rem 1.3rem;
  border: 1px solid rgba(250,246,241,0.08);
  border-radius: 30px;
  background: rgba(250, 246, 241, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Hidden until intro animation fires */
  opacity: 0;
  transform: translateY(20px);

  /* Snappy transitions for user interactions (click/hover) */
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
}
.portfolio-filters button:hover,
.portfolio-filters button.active { 
  color: var(--rose); background: rgba(201, 149, 107, 0.1); border-color: rgba(201,149,107,0.4);
}
/* Apply transform lift only after the intro animation is complete to avoid conflicts */
#portfolio.is-animated .portfolio-filters button:hover,
#portfolio.is-animated .portfolio-filters button.active { transform: translateY(-1px); }
.portfolio-actions { display: flex; gap: 1.5rem; align-items: center; }
.portfolio-select { position: relative; min-width: 160px; }
.portfolio-select select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(250,246,241,0.15);
  padding: 0.5rem 1.5rem 0.5rem 0;
  color: var(--ivory); font-family: var(--font-body); font-size: 0.8rem;
  outline: none; transition: border-color 0.3s; cursor: pointer;
  border-radius: 0;
}
.portfolio-select select:focus { border-color: var(--rose); }
.portfolio-select svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: rgba(250,246,241,0.3); pointer-events: none; }
.portfolio-select select option { background: var(--umber); color: var(--ivory); }

.portfolio-search { position: relative; min-width: 160px; }
.portfolio-search input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(250,246,241,0.15);
  padding: 0.5rem 1.5rem 0.5rem 0;
  color: var(--ivory); font-family: var(--font-body); font-size: 0.8rem;
  outline: none; transition: border-color 0.3s;
}
.portfolio-search input:focus { border-color: var(--rose); }
.portfolio-search svg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: rgba(250,246,241,0.3); pointer-events: none; }

.gallery-no-results {
  display: none; text-align: center; padding: 4rem 0;
  color: rgba(250,246,241,0.4); font-size: 0.9rem;
  letter-spacing: 0.05em; width: 100%;
  font-family: var(--font-body);
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 2px;
  cursor: none; aspect-ratio: 4/5; background: #0e0c10;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Accessibility: Focus state for keyboard navigation */
.gallery-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--rose), 0 12px 32px rgba(0,0,0,0.5);
  z-index: 5;
}
.gallery-item:hover { transform: translateY(-9px); box-shadow: 0 32px 72px rgba(0,0,0,0.58), 0 10px 24px rgba(0,0,0,0.3); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: unset; }
/* ─── FIX 2: No Aggressive Cropping ───────────────────────────────────────
   Root cause: background-size:cover clips any image that doesn't match the
   container's 4:5 ratio. A landscape photo loses its top and bottom thirds.

   Fix: Switch to background-size:contain so the full image is always visible.
   The ::before pseudo-element inherits the same background-image and renders
   it blurred + darkened, filling the surrounding space with an atmospheric
   "ambient" layer — a common cinema/magazine technique.
   ─────────────────────────────────────────────────────────────────────────── */
.gallery-item .gi-bg {
  position: absolute;
  inset: 0;
  background-size: cover;       /* Fill card completely — no black bars */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0e0c10;   /* Clean dark fill behind image */
  z-index: 1;
  filter: grayscale(100%) brightness(0.9) contrast(1.05);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle inner vignette blends image edges with ambient layer */
.sw-gallery-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit; /* Dynamically pulls the current photo */
  background-size: cover;
  background-position: center;
  filter: blur(80px) brightness(0.3);
  opacity: 0.6;
  z-index: 1;
}
.gallery-item:hover .gi-bg { transform: scale(1.05); filter: grayscale(0%) brightness(1) contrast(1); }
/* ─── FIX 1: View Pill ─────────────────────────────────────────────────────
   Root cause of lag: setting top/left every rAF frame triggers layout reflow
   (browser must recalculate geometry for every pixel change). Also, CSS
   transition on `transform` conflicted with the JS-driven transform, causing
   a fight between the two animation systems.

   Fix: Anchor at top:0/left:0 and drive ALL movement through translate3d()
   in the JS rAF loop. GPU-composited, zero layout reflow. Opacity-only CSS
   transition for show/hide — no transform in the transition rule.
   ─────────────────────────────────────────────────────────────────────────── */
.cursor-follow {
  position: fixed; top: 0; left: 0; z-index: 9998;
  padding: 0.5rem 1.2rem; border-radius: 50px;
  /* margin-left/top removed — centering handled by JS offset in translate3d */
  pointer-events: none;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.32);
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: #fff; font-weight: 500; font-family: var(--font-body);
  white-space: nowrap;
  /* Promote to own GPU compositor layer — prevents repaints from affecting layout */
  will-change: transform, opacity;
  opacity: 0;
  /* Only transition opacity — transform is fully driven by rAF for zero-jank tracking */
  transition: opacity 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.cursor-follow.active { opacity: 1; }
.gallery-item .gi-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,8,11,0.94) 0%, rgba(9,8,11,0.28) 52%, transparent 100%);
  opacity: 0; transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; align-items: flex-end; padding: 1.7rem 1.9rem; z-index: 2;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay > div { transform: translateY(12px); transition: transform 0.82s cubic-bezier(0.16, 1, 0.3, 1); }
.gallery-item:hover .gi-overlay > div { transform: translateY(0); }
.gi-overlay h4 { font-family: var(--font-display); font-weight: 300; font-size: 1.14rem; color: var(--ivory); letter-spacing: 0.055em; margin-bottom: 0.32rem; }
.gi-overlay p { font-size: 0.51rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); margin-top: 0; opacity: 0.9; }
.gi-count {
  position: absolute; top: 1.1rem; right: 1.1rem;
  font-size: 0.51rem; letter-spacing: 0.13em; color: rgba(250,246,241,0.82);
  background: rgba(9,8,11,0.44);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 0.28rem 0.74rem; border-radius: 20px;
  display: flex; align-items: center; gap: 0.32rem;
  border: 1px solid rgba(250,246,241,0.07);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}
.gallery-item:hover .gi-count { opacity: 1; transform: translateY(0); }
.gi-count svg { width: 10px; height: 10px; }

/* ─── Cinematic Story Reveal (Conceptual Cards) ─── */
.gi-story {
  font-family: var(--font-body); font-size: 0.72rem; line-height: 1.6;
  color: rgba(250,246,241,0.7); margin-top: 0;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 300; width: 100%;
}
.gallery-item:hover .gi-story {
  margin-top: 0.8rem; max-height: 160px; opacity: 1; transition-delay: 0.1s;
}

/* ─── Focus Pull Reveal (Cinematic Cards) ─── */
.gallery-item.gi-cinematic {
  overflow: hidden;
}

/* Image — smooth blur + dim on hover (like racking focus away) */
.gallery-item.gi-cinematic .gi-bg {
  transition: filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 8s var(--ease);
}
.gallery-item.gi-cinematic:hover .gi-bg {
  filter: blur(8px) brightness(0.35) saturate(0.7);
  transform: scale(1.08);
}

/* Overlay — centered flex column, no gradient needed (blur handles contrast) */
.gallery-item.gi-cinematic .gi-overlay {
  align-items: center;
  justify-content: center;
  padding: 2rem 1.8rem;
  z-index: 5;
  background: none;
  flex-direction: column;
}

/* Reset default overlay slide-up animation */
.gallery-item.gi-cinematic .gi-overlay > div {
  transform: none !important;
}

/* Title group — centered, all text stacked */
.gi-cinematic .gi-title-group {
  text-align: center;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Subtitle — small caps above title */
.gi-cinematic .gi-subtitle {
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #daa06d;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s;
}
.gallery-item.gi-cinematic:hover .gi-subtitle {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* Title — large, elegant */
.gi-cinematic .gi-title-group h4 {
  font-size: 1.7rem;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
  letter-spacing: 0.02em;
  transform: scale(0.92);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
}
.gallery-item.gi-cinematic:hover .gi-title-group h4 {
  transform: scale(1);
}

/* Divider — thin gold line, grows on hover */
.gi-cinematic .gi-divider {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #daa06d, transparent);
  margin: 0.8rem 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s;
}
.gallery-item.gi-cinematic:hover .gi-divider {
  width: 80px;
  transition-delay: 0.3s;
}

/* Story text — fades in below divider */
.gi-cinematic .gi-story {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.8;
  color: rgba(250,246,241,0.9);
  margin: 0;
  opacity: 1;
  max-height: none;
  font-weight: 300;
  text-align: center;
  overflow: visible;
  text-shadow: none;
}

/* Staggered story lines — float up into place */
.gi-cinematic .story-line {
  display: block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item.gi-cinematic:hover .story-line {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.gi-cinematic:hover .story-line:nth-child(1) { transition-delay: 0.5s; }
.gallery-item.gi-cinematic:hover .story-line:nth-child(2) { transition-delay: 0.7s; }
.gallery-item.gi-cinematic:hover .story-line:nth-child(3) { transition-delay: 0.9s; }

.gi-1 .gi-bg { background-image: linear-gradient(135deg, #d4a574, #8b6f5c, #c9956b); }
.gi-2 .gi-bg { background-image: linear-gradient(135deg, #b8967a, #7a3b4e, #dbb08a); }
.gi-3 .gi-bg { background-image: linear-gradient(135deg, #9b7082, #c9956b, #e8c4a8); }
.gi-4 .gi-bg { background-image: linear-gradient(135deg, #8a9a7e, #c9956b, #f0ebe4); }
.gi-5 .gi-bg { background-image: linear-gradient(135deg, #7a3b4e, #1e1a16, #c9956b); }
.gi-6 .gi-bg { background-image: linear-gradient(135deg, #dbb08a, #9b7082, #c9956b); }
.gi-7 .gi-bg { background-image: linear-gradient(135deg, #c9956b, #1e1a16, #7a3b4e); }
.gi-8 .gi-bg { background-image: linear-gradient(135deg, #e8c4a8, #8a9a7e, #c9956b); }

/* ═══════════════════════════════════════════════════════════
   ETHEREAL COVERFLOW CAROUSEL
   ═══════════════════════════════════════════════════════════ */

/* Container — open, frameless: cards float in page space */
.ethereal-carousel {
  position: relative;
  width: 100%;
  height: 580px;
  perspective: 1200px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* body already has overflow-x:hidden — floating cards won't cause scrollbar */

/* Track — override grid to positioning container */
.ethereal-carousel .ec-track {
  display: block !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Cards — absolute positioning, JS controls transforms */
.ethereal-carousel .gallery-item,
.ethereal-carousel .vw-card {
  position: absolute !important;
  top: 50%;
  left: 50%;
  width: 380px;
  height: auto;
  aspect-ratio: 4/5;
  margin: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 6px;
}

/* Fast transition for category spin animation */
.ethereal-carousel.fast-transition .gallery-item,
.ethereal-carousel.fast-transition .vw-card {
  transition-duration: 0.1s;
}

/* Carousel cards: JS inline transforms override all stylesheet hover rules naturally.
   Only suppress box-shadow lift since glow is handled by data-ec-offset selectors. */
.ethereal-carousel .gallery-item:hover,
.ethereal-carousel .vw-card:hover {
  box-shadow: none;
}

/* Video cards — cinematic 16:9 wide ratio */
.ethereal-carousel .vw-card {
  aspect-ratio: 16/9;
  width: 640px;
}
.ethereal-carousel .vw-card.wide {
  grid-column: unset;
  aspect-ratio: 16/9;
  width: 760px;
}

/* ── Active card (center, offset 0) — hero floating card ── */
.ethereal-carousel .gallery-item[data-ec-offset="0"],
.ethereal-carousel .vw-card[data-ec-offset="0"] {
  z-index: 5;
  opacity: 1;
  filter: blur(0) brightness(1);
  box-shadow:
    0 25px 50px rgba(0,0,0,0.55),
    0 0 100px rgba(201,149,107,0.08);
  border: 1px solid rgba(201,149,107,0.15);
}
.ethereal-carousel .gallery-item[data-ec-offset="0"]:hover,
.ethereal-carousel .vw-card[data-ec-offset="0"]:hover {
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 120px rgba(201,149,107,0.1) !important;
}

/* ── Offset ±1 (side cards) — visible recessed depth ── */
.ethereal-carousel .gallery-item[data-ec-offset="1"],
.ethereal-carousel .gallery-item[data-ec-offset="-1"],
.ethereal-carousel .vw-card[data-ec-offset="1"],
.ethereal-carousel .vw-card[data-ec-offset="-1"] {
  z-index: 3;
  opacity: 0.5;
  filter: blur(1.5px) brightness(0.7) saturate(0.6);
  cursor: pointer;
  border: 1px solid rgba(250,246,241,0.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* ── Hidden (beyond ±1) ── */
.ethereal-carousel .gallery-item[data-ec-offset="hidden"],
.ethereal-carousel .vw-card[data-ec-offset="hidden"] {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  visibility: hidden;
}

/* ── Glassmorphic Navigation Arrows ── */
.ec-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(9,8,11,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201,149,107,0.22);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}
.ec-nav:hover {
  background: rgba(201,149,107,0.15);
  border-color: var(--rose);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.ec-nav:active {
  transform: translateY(-50%) scale(0.95);
}
.ec-prev { left: 2rem; }
.ec-next { right: 2rem; }
.ec-nav.ec-disabled {
  opacity: 0.12;
  pointer-events: none;
}

/* ── Counter Pill ── */
.ec-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(250,246,241,0.35);
  background: rgba(9,8,11,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(250,246,241,0.06);
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
}
.ec-counter-current {
  color: var(--rose);
  font-weight: 400;
}
.ec-counter-sep {
  margin: 0 0.25em;
  opacity: 0.3;
}

/* ── Center card always in color ── */
.ethereal-carousel .gallery-item[data-ec-offset="0"] .gi-bg {
  filter: grayscale(0%) brightness(1) contrast(1);
}
/* ── Kill scroll parallax on ALL carousel cards — image stays still ── */
.ethereal-carousel .gallery-item .gi-bg {
  transform: none !important;
}
/* ── But allow hover zoom on center card ── */
.ethereal-carousel .gallery-item[data-ec-offset="0"]:hover .gi-bg {
  transform: scale(1.06) !important;
  filter: grayscale(0%) brightness(1) contrast(1);
}

/* ═══════════════════════════════════════════════════════════
   NYC PORTRAITS
   ═══════════════════════════════════════════════════════════ */
#nyc { overflow: hidden; padding-bottom: 11rem; }
.nyc-skyline { position: absolute; bottom: 0; left: 0; right: 0; height: 250px; pointer-events: none; opacity: 0; transition: opacity 1.5s var(--ease-smooth); }
#nyc.nyc-visible .nyc-skyline { opacity: 1; }
.nyc-content { position: relative; z-index: 2; }
.nyc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.nyc-list { display: flex; flex-direction: column; }
.nyc-loc { padding: 1rem 0; border-bottom: 1px solid rgba(201,149,107,0.05); cursor: pointer; transition: all 0.4s; display: flex; align-items: center; justify-content: space-between; }
.nyc-loc:hover { padding-left: 1rem; }
.nyc-loc-left { display: flex; align-items: center; gap: 1.2rem; }
.nyc-loc .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 300; color: var(--rose); opacity: 0.15; min-width: 36px; transition: opacity 0.4s; }
.nyc-loc:hover .num { opacity: 0.5; }
.nyc-loc h4 { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; color: var(--ivory); letter-spacing: 0.03em; transition: color 0.3s; }
.nyc-loc:hover h4 { color: var(--rose); }
.nyc-loc .nyc-sub-text { font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(250,246,241,0.15); margin-top: 0.1rem; }
.nyc-loc .nyc-arrow { opacity: 0; transform: translateX(-8px); transition: all 0.4s var(--ease); }
.nyc-loc:hover .nyc-arrow { opacity: 0.4; transform: translateX(0); }
.nyc-preview { position: relative; height: 380px; align-self: center; border-radius: 6px; overflow: hidden; background: rgba(30,26,22,0.4); border: 1px solid rgba(201,149,107,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.nyc-preview-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.nyc-preview-img.active {
    opacity: 1;
    visibility: visible;
}
/* Background image with subtle zoom */
.preview-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center center;
    transform: scale(1.08); 
    transition: transform 1.5s var(--ease);
}

.nyc-preview-img.active .preview-bg {
    transform: scale(1);
}

/* Bottom text overlay */
.nyc-preview-info { 
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 3rem 2.5rem;
    z-index: 5;
    background: linear-gradient(to top, rgba(9, 8, 11, 0.95) 0%, transparent 100%);
    pointer-events: none; /* Allows click to pass through to the button */
}

/* Re-enable clicks for the button */
.nyc-maps-link {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    color: var(--ivory);
    border: 1px solid rgba(250, 246, 241, 0.2);
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.nyc-maps-link:hover {
    border-color: var(--rose);
    background: rgba(201, 149, 107, 0.1);
}
.nyc-maps-link svg { width: 10px; height: 10px; }
.nyc-cp .preview-bg {
    position: absolute;
    inset: 0;
    background-size: contain; 
    background-position: center; /* Keeps the subject centered */
    background-repeat: no-repeat;
    /* Reduced scale from 1.15 to 1.05 for a subtler cinematic movement */
    transform: scale(1.05); 
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nyc-preview-img.active .preview-bg {
    transform: scale(1); /* Smoothly settles into the frame */
}
.nyc-dumbo .preview-bg { background: linear-gradient(145deg, #3a3540, #7a3b4e, #c9956b, #e8c4a8); }
.nyc-bb .preview-bg { background: linear-gradient(145deg, #2a2832, #6b7280, #c9956b, #faf6f1); }
.nyc-subway .preview-bg { background: linear-gradient(145deg, #1e1a16, #3a3530, #c9956b, #7a3b4e); }
.nyc-lib .preview-bg { background: linear-gradient(145deg, #d4c5b0, #c9956b, #7a3b4e, #1e1a16); }
.nyc-st .preview-bg { background: linear-gradient(145deg, #09080b, #2a2832, #c9956b, #e8c4a8); }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: center; }
.about-image {
  aspect-ratio: 3/4; border-radius: 6px; max-height: 650px;
  position: relative; overflow: hidden;
  /* Placeholder color while image lazy-loads */
  background-color: #1e1a16;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  filter: sepia(20%) contrast(1.1); /* Adds a cinematic film look */
  transition: background-image 0.8s var(--ease-smooth);
}
.about-image::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(250,246,241,0.06); border-radius: 3px; }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p { font-size: 0.85rem; line-height: 1.95; color: rgba(30,26,22,0.7); margin-bottom: 1rem; }
.about-quote {
  font-style: italic;
  color: rgba(30,26,22,0.6) !important; /* Increased opacity for visibility */
  font-size: 0.82rem;
  line-height: 1.9;
  border-left: 2px solid rgba(201,149,107,0.3);
  padding-left: 1.2rem;
  margin-top: 1.5rem !important;
}
.about-sanskrit { font-size: 1.1rem; margin-top: 2rem; letter-spacing: 0.04em; line-height: 2.2; }
.about-sanskrit .telugu { font-family: 'p22-mackinac-pro', 'Noto Sans Telugu', sans-serif; color: var(--saffron); font-weight: 400; font-size: 1.3em; }
.about-sanskrit .devnag { font-family: 'p22-mackinac-pro', 'Noto Sans Devanagari', sans-serif; color: var(--wine); font-weight: 400; font-size: 1.15em; }
.about-sanskrit .english { font-family: var(--font-display); font-style: italic; color: var(--rose); font-weight: 400; }
.about-symbolism {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30,26,22,0.05);
}
.symbol-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--rose);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.symbol-dots { display: flex; flex-direction: column; gap: 4px; }
.symbol-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); opacity: 0.6; }
.symbol-desc {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(30,26,22,0.45);
  padding-left: calc(4px + 0.8rem); /* Align with text, not dots */
}
.about-stats { display: flex; gap: 3rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(30,26,22,0.05); }
.about-stats .stat h4 { font-family: var(--font-display); font-weight: 300; font-size: 2rem; color: var(--rose); line-height: 1; }
.about-stats .stat p { font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(30,26,22,0.25); margin-top: 0.3rem; }

/* ═══════════════════════════════════════════════════════════
   SERVICES OVERVIEW GRID
   ═══════════════════════════════════════════════════════════ */
.sov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,149,107,0.06);
  border: 1px solid rgba(201,149,107,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.sov-card {
  background: rgba(14,12,16,0.85);
  padding: 1.8rem 1.6rem;
  position: relative;
  transition: background 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sov-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 2rem; right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,149,107,0.12), transparent);
}
.sov-card:hover { background: rgba(30,26,22,0.9); }
.sov-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: rgba(201,149,107,0.08);
  line-height: 1;
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  letter-spacing: 0.04em;
  transition: color 0.4s;
}
.sov-card:hover .sov-num { color: rgba(201,149,107,0.14); }
.sov-icon {
  color: var(--rose);
  opacity: 0.7;
  margin-bottom: 0.4rem;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.sov-card:hover .sov-icon { opacity: 1; transform: translateY(-2px); }
.sov-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.12rem;
  color: var(--ivory);
  letter-spacing: 0.04em;
  /* Pushed down to clear the stamp */
  margin-top: 4rem;
}
.sov-desc {
  font-size: 0.72rem;
  color: rgba(250,246,241,0.45);
  line-height: 1.7;
  flex: 1;
}
.sov-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,149,107,0.5);
  margin-top: 0.4rem;
  transition: color 0.3s, gap 0.3s var(--ease);
}
.sov-link:hover { color: var(--rose); gap: 0.9rem; }
/* ── Cinematic Stamps ── */
.sov-stamp {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  width: 72px;
  height: 72px;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
}
.sov-stamp svg {
  width: 100%;
  height: 100%;
}

/* Weddings — film frame, warm rose */
.sov-stamp--wedding { color: var(--saffron); transform: rotate(-3deg) scale(1); }

/* Couple — infinity film loop, soft blush */
.sov-stamp--couple { color: var(--blush); transform: rotate(2deg) scale(1.02); }

/* Maternity — crescent moon & star, gentle sage */
.sov-stamp--maternity { color: var(--blush); transform: rotate(-4deg) scale(1.04); }

/* Celebrations — clapperboard, warm saffron */
.sov-stamp--celebration { color: var(--saffron); transform: rotate(-2deg) scale(1); }

/* Commercial — aperture iris, cool mauve */
.sov-stamp--commercial { color: var(--mauve); transform: rotate(15deg) scale(1); }

/* Conceptual — golden spiral, deep wine */
.sov-stamp--conceptual { color: var(--mauve); transform: rotate(0deg) scale(1); }
.sov-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,241,0.35);
  border-bottom: 1px solid rgba(201,149,107,0.15);
  padding-bottom: 0.3rem;
  transition: color 0.3s, border-color 0.3s;
}
.sov-cta:hover { color: var(--rose); border-color: var(--rose); }
@media (max-width: 900px) {
  .sov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .sov-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   CINEMATIC SERVICES — SCROLL STACK
   ═══════════════════════════════════════════════════════════ */
#services {
  padding: 0 !important;
  background: transparent !important;
  position: relative;
}
/* ─── FIX 3: Maternity removed → 5 panels → height reduced by 1 viewport ── */
/* Now 6 panels (intro + 5 services) */
.cs-wrapper {
  height: calc(7 * 100vh);
  position: relative;
}
.cs-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}
.cs-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translateY(100%);
  /* z-index set by JS: active=2, incoming=1, past/waiting=0 */
  z-index: 0;
}
.cs-panel:first-child {
  transform: translateY(0%);
  z-index: 2;
}
.cs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  will-change: transform;
  z-index: 0;
}
/* Video fills the bg layer exactly like a background-image */
.cs-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.cs-video.cs-vid-ready {
  opacity: 1;
}
.cs-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,8,11,0.92) 0%, rgba(9,8,11,0.45) 35%, rgba(9,8,11,0.08) 60%, transparent 100%);
  /* Vignette above bg, below text */
  z-index: 1;
  pointer-events: none;
}
.cs-vignette::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9,8,11,0.15) 0%, transparent 30%, transparent 70%, rgba(9,8,11,0.1) 100%);
  pointer-events: none;
}
.cs-counter {
  position: absolute;
  top: 2.8rem;
  right: 3rem;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  pointer-events: none;
}
.cs-counter-current {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  color: rgba(250,246,241,0.18);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-counter-divider {
  width: 28px;
  height: 1px;
  background: rgba(201,149,107,0.35);
  margin-left: auto;
}
.cs-counter-total {
  font-family: var(--font-body);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  color: rgba(250,246,241,0.2);
  text-transform: uppercase;
}
.cs-dots {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}
.cs-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(250,246,241,0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.cs-dot.active {
  background: var(--rose);
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(201,149,107,0.4);
}
/* ── Shared text overlay — lives ABOVE all panels in the sticky zone ── */
.cs-text-overlay {
  position: absolute;
  bottom: 6rem;
  left: 3.5rem;
  right: 8rem;
  z-index: 100;
  max-width: 540px;
  pointer-events: none;
  perspective: 1000px;
}
.cs-text-slide {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(22px) rotateX(14deg) translateZ(-90px);
  transform-style: preserve-3d;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cs-text-slide.cs-slide-active {
  opacity: 1;
  pointer-events: auto;
  animation: csSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             csFloat 4.5s ease-in-out 0.8s infinite;
}
.cs-text-slide.cs-slide-exit {
  opacity: 0;
  pointer-events: none;
  animation: csSlideOut 0.52s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}
@keyframes csSlideIn {
  from { opacity: 0; transform: translateY(22px) rotateX(14deg) translateZ(-90px); }
  to   { opacity: 1; transform: translateY(0)    rotateX(0deg)  translateZ(0);     }
}
@keyframes csFloat {
  0%,100% { transform: translateY(0)    rotateX(0deg)   translateZ(0);    }
  50%     { transform: translateY(-9px) rotateX(1.8deg) translateZ(20px); }
}
@keyframes csSlideOut {
  from { opacity: 1; transform: translateY(0)     rotateX(0deg)   translateZ(0);    }
  to   { opacity: 0; transform: translateY(-18px) rotateX(-11deg) translateZ(-65px);}
}
/* cs-text-slide initial state handled above */
.cs-label {
  font-family: var(--font-body);
  font-size: 0.5rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--rose);
  opacity: 0.9;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.cs-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rose);
  opacity: 0.5;
  flex-shrink: 0;
}
.cs-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  color: var(--ivory);
  letter-spacing: 0.05em;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  /* Let text wrap naturally — no forced breaks needed */
  word-break: normal;
  overflow-wrap: normal;
}
.cs-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: rgba(250,246,241,0.4);
  line-height: 1.9;
  margin-bottom: 1.8rem;
  max-width: 400px;
}
.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250,246,241,0.6);
  font-weight: 300;
  border-bottom: 1px solid rgba(250,246,241,0.12);
  padding-bottom: 0.35rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cs-link:hover { color: var(--rose); border-bottom-color: var(--rose); gap: 1.2rem; }
.cs-link svg { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0.7; }
.cs-link:hover svg { transform: translateX(5px); opacity: 1; }

/* Styles for the new intro text slide */
.cs-text-slide[data-slide="0"] {
  text-align: center;
}
.cs-text-slide[data-slide="0"] .section-tag {
  justify-content: center;
}
.cs-text-slide[data-slide="0"] .cs-title {
  font-family: var(--font-display);
  font-weight: 300;
  /* Cinematic title styling */
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.3em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.cs-text-slide[data-slide="0"] .cs-desc {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(224,164,88,0.5);
  max-width: none;
  margin: 0 auto;
}

/* Rule from old intro, now used in first text slide */
.cs-intro-rule {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem auto;
  width: 200px;
}
.cs-intro-rule span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,149,107,0.3), transparent); }
.cs-intro-rule i { width: 5px; height: 5px; border: 1px solid rgba(201,149,107,0.5); transform: rotate(45deg); display: block; flex-shrink: 0; }

.cs-sticky-zone {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  /* Tell the browser this is a self-contained compositing layer */
  contain: layout style;
  /* Force GPU layer for the whole sticky zone — all children compose on GPU */
  transform: translateZ(0);
  /* Add perspective to enable 3D transforms on child panels */
  perspective: 1500px;
}
.cs-scroll-hint {
  position: absolute;
  bottom: 3.5rem;
  right: 50%;
  transform: translateX(50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.cs-mute-toggle {
  position: absolute; bottom: 3.5rem; left: 3.5rem; z-index: 20;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(250,246,241,0.15);
  background: rgba(9,8,11,0.3); backdrop-filter: blur(5px);
  color: rgba(250,246,241,0.6); display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.cs-mute-toggle:hover { background: var(--rose); color: var(--noir); border-color: var(--rose); }
.cs-mute-toggle .cs-icon-unmuted { display: none; }
.cs-mute-toggle.unmuted .cs-icon-unmuted { display: block; }
.cs-mute-toggle.unmuted .cs-icon-muted { display: none; }
.cs-scroll-hint.visible { opacity: 1; }
.cs-scroll-hint span { font-size: 0.44rem; letter-spacing: 0.4em; text-transform: uppercase; color: rgba(250,246,241,0.2); }
.cs-scroll-line { width: 1px; height: 28px; position: relative; overflow: hidden; background: rgba(201,149,107,0.08); }
.cs-scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%; background: var(--rose); animation: scrollPulse 2.2s ease-in-out infinite; }
.cs-bg-intro { background: linear-gradient(170deg, #0e0c10, #1e1a16 50%, #0e0c10); }
.cs-bg-1 { background: linear-gradient(145deg, #2a1f1a, #7a3b4e, #c9956b, #dbb08a); }
.cs-bg-2 { background: linear-gradient(145deg, #0e0d10, #1e1a16, #9b7082, #dbb08a); }
.cs-bg-3 { background: linear-gradient(145deg, #1a1520, #7a4060, #c9956b, #f0ebe4); }
.cs-bg-4 { background: linear-gradient(145deg, #121a10, #4a6741, #8a9a7e, #c9956b); }
.cs-bg-5 { background: linear-gradient(145deg, #09080b, #1e1a16, #4a3a30, #c9956b); }
.cs-bg-6 { background: linear-gradient(145deg, #0a0810, #1c1628, #3a2858, #c9956b); }
.cs-bg-7 { background: linear-gradient(145deg, #3a3540, #1e1a16, #7a3b4e, #c9956b); }

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.testimonial-stars svg { width: 12px; height: 12px; fill: var(--rose); opacity: 0.5; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--wine)); flex-shrink: 0; }
.testimonial-author p { font-size: 0.6rem; color: rgba(250,246,241,0.2); letter-spacing: 0.06em; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
#contact .section-tag {
  font-size: 0.65rem; /* Increased from default 0.55rem for emphasis */
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.6rem; margin-bottom: 1.5rem; }
.contact-info > p {
  font-size: 1.05rem; /* Increased size for visibility */
  color: rgba(30,26,22,0.75); /* Darker for better contrast */
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-detail { display: flex; align-items: center; gap: 0.9rem; }
.cd-icon { width: 36px; height: 36px; border: 1px solid rgba(201,149,107,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cd-icon svg { width: 14px; height: 14px; }
.contact-detail h5 { font-weight: 400; font-size: 0.8rem; }
.contact-detail p { font-size: 0.7rem; color: rgba(30,26,22,0.3); margin: 0; }
.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.form-group label { font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(30,26,22,0.3); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-weight: 300; font-size: 0.82rem;
  padding: 0.8rem 1rem; border: 1px solid rgba(125, 63, 5, 0.08);
  border-radius: 3px; background: var(--champagne);
  color: var(--umber); transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--rose); }
.form-group textarea { resize: vertical; min-height: 100px; }
/* Style the placeholder text to match the theme */
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(30, 26, 22, 0.4); opacity: 1;
}
.form-submit { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); background: var(--umber); padding: 0.9rem 2rem; border-radius: 3px; font-weight: 400; transition: all 0.4s; align-self: flex-start; }
.form-submit:hover { background: var(--rose); transform: translateY(-2px); }

/* ─── Contact Form Status ─── */
#formStatus {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  display: none; /* Hidden by default */
  text-align: center;
  transition: all 0.3s;
}
#formStatus.success {
  display: block;
  background: rgba(138, 154, 126, 0.15); /* --sage, but lighter */
  color: var(--sage);
  border: 1px solid rgba(138, 154, 126, 0.2);
}
#formStatus.error {
  display: block;
  background: rgba(122, 59, 78, 0.1); /* --wine, but lighter */
  color: var(--wine);
  border: 1px solid rgba(122, 59, 78, 0.2);
}

/* ═══════ CUSTOM FLATPCIKR STYLING (CINEMATIC CALENDAR) ═══════ */
.flatpickr-calendar {
  background: var(--umber) !important;
  border: 1px solid rgba(201,149,107,0.2) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
  font-family: var(--font-body) !important;
  border-radius: 4px !important;
  /* Ensure it's above other elements but below modals */
  z-index: 1000 !important;
}

/* Month/Year header */
.flatpickr-months .flatpickr-month {
  background: var(--umber) !important;
  color: var(--ivory) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: var(--umber) !important;
  border: 1px solid rgba(201,149,107,0.1) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-month {
  background: var(--umber) !important;
  color: var(--ivory) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-month:hover {
  background: rgba(201,149,107,0.1) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-month.selected {
  background: rgba(201,149,107,0.2) !important;
  color: var(--rose) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-month.selected:hover {
  background: rgba(201,149,107,0.3) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after,
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-color: var(--rose) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
  color: var(--ivory) !important;
}

/* Weekdays */
.flatpickr-weekdays {
  background: var(--umber) !important;
}
.flatpickr-weekday {
  color: rgba(250,246,241,0.4) !important;
  font-weight: 300 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* Days */
.flatpickr-day {
  color: var(--ivory) !important;
  font-weight: 300 !important;
  border-radius: 2px !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}
.flatpickr-day.today {
  border-color: var(--rose) !important;
  background: rgba(201,149,107,0.1) !important;
  color: var(--rose) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
  color: var(--noir) !important; /* Text color on selected date */
}
.flatpickr-day.inRange {
  background: rgba(201,149,107,0.2) !important;
  border-color: rgba(201,149,107,0.2) !important;
  color: var(--ivory) !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(250,246,241,0.15) !important;
}
.flatpickr-day:hover {
  background: rgba(201,149,107,0.15) !important;
  color: var(--ivory) !important;
}

/* Navigation arrows */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--rose) !important;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
  fill: var(--rose-light) !important;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
footer { background: var(--noir); color: var(--ivory); padding: 4.5rem 3.5rem 2rem; position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,149,107,0.1), transparent); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 3.5rem; }
.footer-brand p {
  font-family: 'p22-mackinac-pro', var(--font-display);
  font-size: 0.9rem;
  color: rgba(250, 246, 241, 0.45);
  line-height: 1.8;
  max-width: 280px;
}
.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}
.footer-logo-container svg {
  height: 30px;
  width: auto;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  color: var(--ivory);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
.footer-logo-dots {
  position: absolute;
  top: 0.32em;
  left: 1.0em;
  display: flex;
  gap: 0.16em;
}
.footer-logo-dots span {
  width: 0.12em; height: 0.12em;
  border-radius: 50%;
  background: var(--rose); opacity: 0.85;
}
.footer-col h5 { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rose); margin-bottom: 1rem; font-weight: 400; }
.footer-col a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(250,246,241,0.3); margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-col a svg { flex-shrink: 0; opacity: 0.5; transition: opacity 0.3s; }
.footer-col a:hover svg { opacity: 1; }
.footer-col a:hover { color: var(--rose); }
.footer-bottom { border-top: 1px solid rgba(250,246,241,0.025); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.7rem; color: rgba(250,246,241,0.12); letter-spacing: 0.06em; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(250,246,241,0.04); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.footer-social a:hover { border-color: var(--rose); background: rgba(201,149,107,0.06); }
.footer-social a svg { width: 13px; height: 13px; fill: rgba(250,246,241,0.3); }
.footer-social a:hover svg { fill: var(--rose); }

/* ═══════════════════════════════════════════════════════════
   CINEMATIC GALLERY VIEWER
   ═══════════════════════════════════════════════════════════ */
.sw-gallery { position: fixed; inset: 0; z-index: 10001; display: none; background: var(--noir); overflow: hidden; }
.sw-gallery.sw-open { display: flex; flex-direction: column; }
.sw-gallery-enter { animation: swGalleryIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.sw-gallery-exit  { animation: swGalleryOut 0.55s cubic-bezier(0.87, 0, 0.13, 1) both; }
@keyframes swGalleryIn  { from { opacity: 0; transform: scale(0.97) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes swGalleryOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.96); } }
.sw-gallery-bar { position: absolute; top: 0; left: 0; right: 0; padding: 2rem 3rem; display: flex; justify-content: space-between; align-items: center; z-index: 10; background: linear-gradient(to bottom, rgba(9,8,11,0.82), transparent); }
.sw-gallery-title-wrap { display: flex; flex-direction: column; }
.sw-gallery-title  { font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; color: var(--ivory); letter-spacing: 0.04em; }
.sw-gallery-subtitle { font-size: 0.52rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--rose); opacity: 0.7; margin-top: 0.2rem; }
.sw-gallery-counter { font-family: var(--font-display); font-size: 1.1rem; color: rgba(250,246,241,0.2); letter-spacing: 0.1em; }
.sw-gallery-close { display: flex; align-items: center; gap: 0.5rem; font-size: 0.55rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(250,246,241,0.4); cursor: pointer; transition: color 0.3s; background: none; border: none; font-family: var(--font-body); }
.sw-gallery-close:hover { color: var(--rose); }
.sw-gallery-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sw-gallery-img { position: absolute; inset: -5%; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: transform; transition: background-image 0s; }
.sw-gallery-img.sw-img-enter { animation: swImgIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) both; }
.sw-gallery-img.sw-img-exit  { animation: swImgOut 0.3s cubic-bezier(0.87, 0, 0.13, 1) both; }
@keyframes swImgIn  { from { opacity: 0; filter: blur(5px) brightness(0.65); transform: scale(1.05); } to { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); } }
@keyframes swImgOut { from { opacity: 1; } to { opacity: 0; transform: scale(0.975); } }
.sw-gallery-stage::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 38%; background: linear-gradient(to top, rgba(9,8,11,0.92), transparent); z-index: 2; pointer-events: none; }
.sw-gallery-stage.sw-bg-anim::before { animation: swBgZoom 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes swBgZoom { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1); opacity: 0.6; } }
.sw-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(250,246,241,0.08); background: rgba(9,8,11,0.4); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; cursor: pointer; color: rgba(250,246,241,0.5); transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
.sw-gallery-nav:hover { border-color: var(--rose); color: var(--rose); background: rgba(9,8,11,0.7); transform: translateY(-50%) scale(1.08); }
.sw-gallery-prev { left: 2.5rem; }
.sw-gallery-next { right: 2.5rem; }
.sw-gallery-strip { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 1.5rem 3rem 2rem; display: flex; gap: 0.5rem; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sw-gallery-strip::-webkit-scrollbar { display: none; }
.sw-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: rgba(250,246,241,0.06); z-index: 10; pointer-events: none; }
.sw-progress-fill { height: 100%; background: var(--rose); transition: width 0.52s cubic-bezier(0.16, 1, 0.3, 1); width: 0%; }
.sw-strip-thumb {
  width: 48px; height: 36px; border-radius: 2px; flex-shrink: 0;
  cursor: pointer; overflow: visible; position: relative;
  border: 1px solid rgba(250,246,241,0.05); background: var(--umber);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  /* Scale upward (toward images) for natural dock feel */
  transform-origin: bottom center;
  will-change: transform;
}
.sw-strip-thumb > * { overflow: hidden; border-radius: 2px; }
.sw-strip-thumb.active { width: 72px; border-color: var(--rose); box-shadow: 0 0 0 1px rgba(201,149,107,0.3); }
.sw-strip-thumb-img { position: absolute; inset: 0; background-size: cover; background-position: center; filter: grayscale(60%); transition: filter 0.4s; border-radius: 2px; }
.sw-strip-thumb.active .sw-strip-thumb-img { filter: grayscale(0%); }
.sw-strip-thumb:hover .sw-strip-thumb-img { filter: grayscale(20%); }
/* Mac Dock Effect: smooth transform on interact, gentle return on leave */
.sw-gallery-strip:hover .sw-strip-thumb { transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s, box-shadow 0.4s; }
/* Disable dock scale on touch/mobile — use normal tap instead */
@media (hover: none) {
  .sw-gallery-strip:hover .sw-strip-thumb { transition: all 0.4s cubic-bezier(0.16,1,0.3,1); }
  .sw-strip-thumb { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/5; }
  .nyc-layout { grid-template-columns: 1fr; }
  .nyc-preview { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  /* Carousel responsive */
  .ethereal-carousel { height: 480px; }
  .ethereal-carousel .gallery-item { width: 300px; }
  .ethereal-carousel .vw-card,
  .ethereal-carousel .vw-card.wide { width: 500px; }
  .ec-prev { left: 1rem; }
  .ec-next { right: 1rem; }
}
/* ── iPad landscape / small desktop (1024px–768px) ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .portfolio-tools { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .portfolio-actions { width: 100%; justify-content: flex-start; }
  .sov-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-text-overlay { left: 2rem; right: 5rem; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.6rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 4rem 1.5rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { max-height: 450px; }
  .gallery-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .form-row, .date-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .about-stats { gap: 2rem; }
  .intro-mark svg { width: 80px; height: 80px; }
  .cs-text-overlay { left: 1.5rem; right: 1.5rem; bottom: 3rem; max-width: none; }
  .cs-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .cs-counter { top: 1.5rem; right: 1.5rem; }
  .cs-dots { right: 1rem; }
  .cs-intro-title { font-size: clamp(2rem, 10vw, 3.5rem); }

  /* Services scroll-stack: same slide-over effect on mobile as desktop */

  /* ── Filter pills: horizontal scroll strip on mobile ── */
  .portfolio-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
    max-width: 100%;
  }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-filters button {
    flex-shrink: 0;
    font-size: 0.52rem;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
  }

  .sw-gallery-bar { padding: 1.2rem 1.5rem; }
  .sw-gallery-prev { left: 0.8rem; }
  .sw-gallery-next { right: 0.8rem; }
  .sw-gallery-nav { width: 40px; height: 40px; }
  .sw-gallery-strip { padding: 1rem 1.5rem 1.5rem; gap: 0.4rem; }
  /* Portfolio tools: stack vertically on mobile */
  .portfolio-tools { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .portfolio-actions { width: 100%; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .portfolio-select, .portfolio-search { min-width: unset; width: 100%; }
  /* Filmstrip thumbs slightly larger on mobile for easier tapping */
  .sw-strip-thumb { width: 52px; height: 40px; }
  .sw-strip-thumb.active { width: 78px; }
  /* Hero 3D float — reduce bob amplitude on mobile */
  .hero-title-float { animation: heroTitleFloat 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
  /* About stats: wrap on very small screens */
  .about-stats { flex-wrap: wrap; }
  /* Carousel responsive — mobile: clip overflow to prevent iOS Safari viewport expansion */
  .ethereal-carousel { height: 400px; overflow: hidden; perspective: 800px; }
  .ethereal-carousel .gallery-item { width: min(260px, 70vw); }
  .ethereal-carousel .vw-card,
  .ethereal-carousel .vw-card.wide { width: min(380px, 85vw); }
  .ec-nav { width: 38px; height: 38px; }
  .ec-prev { left: 0.5rem; }
  .ec-next { right: 0.5rem; }

  .nav-links.show { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(9,8,11,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 2rem; gap: 1.5rem; max-height: 85vh; overflow-y: auto; }

  /* Disable custom cursor on touch devices */
  .gallery-item { cursor: pointer; }
  .vw-card { cursor: pointer; }

  /* Video filter pills: horizontal scroll strip (matches portfolio filters) */
  .vw-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .vw-filters::-webkit-scrollbar { display: none; }
  .vw-filters button { flex-shrink: 0; white-space: nowrap; }

}

/* ── Small phones (≤480px) — prevent text overflow, tighten spacing ── */
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 9vw, 3rem); }
  .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .section { padding: 3rem 1.2rem; }
  .sw-strip-thumb { width: 44px; height: 34px; }
  .sw-strip-thumb.active { width: 62px; }
  .ethereal-carousel { height: 340px; }
}

/* ═══════════════════════════════════════════════════════════
   FIX 4 — VIDEO WORKS SECTION
   ═══════════════════════════════════════════════════════════ */

/* Filters — identical pattern to portfolio filters */
.vw-filters { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.vw-filters button {
  font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,246,241,0.32); font-weight: 300;
  padding: 0.5rem 1.3rem; border: 1px solid rgba(250,246,241,0.09);
  border-radius: 0; background: transparent;
  transition: color 0.1s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.vw-filters button:hover,
.vw-filters button.active { color: var(--rose); border-color: rgba(201,149,107,0.5); }

/* Grid */
.vw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.vw-card {
  position: relative; overflow: hidden; border-radius: 2px;
  cursor: none; aspect-ratio: 4/5;
  background: var(--umber);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.vw-card.wide { grid-column: span 2; aspect-ratio: 8/5; }
.vw-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.55), 0 8px 20px rgba(0,0,0,0.3);
}

/* Poster / thumbnail */
.vw-poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: grayscale(55%) brightness(0.7);
  z-index: 1;
}
.vw-card:hover .vw-poster { transform: scale(1.06); filter: grayscale(0%) brightness(0.85); }

/* Inline hover-preview video (lazy-loaded on first hover) */
.vw-poster video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.vw-card:hover .vw-poster video,
.vw-poster.active video { opacity: 1; }

/* Gradient fallback swatches — use background-image to preserve background-size */
.vw-gi-1 { background-image: linear-gradient(135deg, #2a1f1a, #7a3b4e, #c9956b, #dbb08a); }
.vw-gi-2 { background-image: linear-gradient(135deg, #0e0d10, #1e1a16, #9b7082, #dbb08a); }
.vw-gi-3 { background-image: linear-gradient(135deg, #121a10, #4a6741, #8a9a7e, #c9956b); }
.vw-gi-4 { background-image: linear-gradient(135deg, #1a1520, #7a4060, #c9956b, #e8c4a8); }
.vw-gi-5 { background-image: linear-gradient(145deg, #09080b, #1e1a16, #3a3530, #c9956b); }
.vw-gi-6 { background-image: linear-gradient(135deg, #1a1012, #4a2030, #9b7082, #c9956b); }
.vw-gi-7 { background-image: linear-gradient(135deg, #0e1010, #1e2a20, #8a9a7e, #dbb08a); }
.vw-gi-8 { background-image: linear-gradient(135deg, #1a1612, #3a2a1e, #c9956b, #e8c4a8); }

/* ── Cinematic Play button ── */
.vw-play-wrap {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.vw-card:hover .vw-play-wrap { transform: translate(-50%, -50%) scale(1.15); }

/* Expanding ring pulse on hover */
.vw-play-ring {
  position: absolute;
  inset: -10px; border-radius: 50%;
  border: 1px solid rgba(201,149,107,0.4);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
}
.vw-card:hover .vw-play-ring { transform: scale(1.35); opacity: 0; }

.vw-play-icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(201,149,107,0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,149,107,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s, border-color 0.4s;
}
.vw-card:hover .vw-play-icon {
  background: rgba(201,149,107,0.28); border-color: var(--rose);
}
.vw-play-icon svg { width: 18px; height: 18px; margin-left: 3px; color: var(--rose); }

/* ── Info overlay ── */
.vw-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,8,11,0.93) 0%, rgba(9,8,11,0.18) 52%, transparent 100%);
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem 2rem; z-index: 3;
}
.vw-card:hover .vw-overlay { opacity: 1; }
.vw-overlay > * { transform: translateY(10px); transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1); }
.vw-card:hover .vw-overlay > * { transform: translateY(0); }
.vw-badge {
  font-size: 0.47rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 0.45rem;
}
.vw-overlay h4 {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.1rem; color: var(--ivory); letter-spacing: 0.04em; margin-bottom: 0.2rem;
}
.vw-overlay p {
  font-size: 0.49rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(250,246,241,0.45);
}

/* Duration badge */
.vw-duration {
  position: absolute; top: 1rem; right: 1rem; z-index: 5;
  font-size: 0.49rem; letter-spacing: 0.08em;
  color: rgba(250,246,241,0.8);
  background: rgba(9,8,11,0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(250,246,241,0.08);
  padding: 0.25rem 0.65rem; border-radius: 20px;
  opacity: 0; transition: opacity 0.4s;
}
.vw-card:hover .vw-duration { opacity: 1; }

/* ── Video Modal ── */
.video-modal {
  position: fixed; inset: 0; z-index: 10002;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.vm-open { opacity: 1; pointer-events: auto; }
.vm-backdrop {
  position: absolute; inset: 0;
  background: rgba(9,8,11,0.96);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.vm-player {
  position: relative; z-index: 2;
  width: min(92vw, 960px);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-modal.vm-open .vm-player { transform: translateY(0) scale(1); }
.vm-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(201,149,107,0.08);
  margin-bottom: 1.2rem;
}
.vm-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.4rem; color: var(--ivory); letter-spacing: 0.04em;
}
.vm-subtitle {
  font-size: 0.49rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose); opacity: 0.75; margin-top: 0.3rem;
}
.vm-close {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(250,246,241,0.35); cursor: pointer;
  transition: color 0.3s; background: none; border: none;
  font-family: var(--font-body); white-space: nowrap;
}
.vm-close:hover { color: var(--rose); }
.vm-stage {
  position: relative; background: #000;
  aspect-ratio: 16/9; border-radius: 2px; overflow: hidden;
}
#vmVideo {
  width: 100%; height: 100%; object-fit: contain;
  display: none;
}
.vm-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  background: linear-gradient(145deg, #1e1a16, #2a2520, rgba(201,149,107,0.06));
}
.vm-placeholder-icon svg { width: 56px; height: 56px; opacity: 0.25; }
.vm-placeholder p {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(250,246,241,0.18);
}
/* Toggle video/placeholder visibility */
.vm-stage.vm-has-video .vm-placeholder { display: none; }
.vm-stage.vm-has-video #vmVideo { display: block; }

/* Custom Video Controls */
.vm-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; transition: opacity 0.3s;
}
.vm-stage:hover .vm-controls { opacity: 1; }
.vm-ctrl-btn { color: var(--ivory); opacity: 0.8; transition: opacity 0.3s; display: flex; align-items: center; }
.vm-ctrl-btn:hover { opacity: 1; color: var(--rose); }

/* Skip overlays — YouTube-style on-screen indicators */
.vm-skip-overlay {
  position: absolute; top: 0; bottom: 0; width: 35%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0; z-index: 5;
  transition: opacity 0.15s;
}
.vm-skip-back { left: 0; border-radius: 0 50% 50% 0; }
.vm-skip-fwd { right: 0; border-radius: 50% 0 0 50%; }
.vm-skip-overlay.vm-skip-active {
  opacity: 1;
  animation: vmSkipFlash 0.6s ease forwards;
}
.vm-skip-overlay svg { color: var(--ivory); filter: drop-shadow(0 0 8px rgba(0,0,0,0.5)); }
.vm-skip-ripple {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 70%);
  opacity: 0;
}
.vm-skip-overlay.vm-skip-active .vm-skip-ripple {
  animation: vmSkipRipple 0.6s ease forwards;
}
@keyframes vmSkipFlash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes vmSkipRipple {
  0% { opacity: 0; transform: scale(0.6); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}
.vm-progress-track {
  flex: 1; height: 3px; background: rgba(255,255,255,0.2);
  cursor: pointer; position: relative; border-radius: 2px;
  transition: height 0.2s;
}
.vm-progress-track:hover { height: 5px; }
.vm-progress-fill { height: 100%; background: var(--rose); width: 0%; border-radius: 2px; position: relative; }
.vm-progress-fill::after { content: ''; position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: var(--ivory); border-radius: 50%; opacity: 0; transition: opacity 0.2s; }
.vm-progress-track:hover .vm-progress-fill::after { opacity: 1; }
.vm-time { font-size: 0.65rem; font-family: var(--font-body); color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; min-width: 35px; text-align: right; }

/* Responsive Video Grid */
@media (max-width: 1024px) {
  .vw-grid { grid-template-columns: repeat(2, 1fr); }
  .vw-card.wide { grid-column: span 2; aspect-ratio: 8/5; }
}
@media (max-width: 768px) {
  .vw-grid { grid-template-columns: 1fr; }
  .vw-card.wide { grid-column: span 1; aspect-ratio: 4/5; }
  .vm-player { width: 95vw; }
  .vw-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
    max-width: 100%;
  }
  .vw-filters::-webkit-scrollbar { display: none; }
  .vw-filters button {
    flex-shrink: 0;
    font-size: 0.52rem;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
  }
}

@media (hover: none) {
  .gallery-item .gi-bg { filter: grayscale(0%) brightness(1) contrast(1); }
  .gallery-item:hover { transform: none; box-shadow: none; }
  .gallery-item:active { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(0,0,0,0.5); }
  .gallery-item .gi-overlay { opacity: 1; background: linear-gradient(to top, rgba(9,8,11,0.88) 0%, rgba(9,8,11,0.22) 48%, transparent 100%); }
  .gallery-item .gi-overlay > div { transform: translateY(0); }
  .gallery-item .gi-count { opacity: 1; transform: translateY(0); }
  .cs-dot.active { background: var(--rose); }
  .testimonial-card:hover { transform: none; }
  .testimonial-card:active { transform: translateY(-3px); }
  .hero-cta:active::before { transform: scaleX(1); }
  .hero-cta:active { color: var(--noir); border-color: var(--rose); }
  .nav-links a:active { color: var(--rose); }
  .nyc-loc:hover { padding-left: 0; }
  .cursor-follow { display: none !important; }
  .gallery-item { cursor: pointer; }
  .gallery-item, .portfolio-filters button, .nyc-loc, .hero-cta, .nav-cta { touch-action: manipulation; }
  /* Video card touch overrides */
  .vw-card:hover { transform: none; box-shadow: none; }
  .vw-card:active { transform: translateY(-3px); }
  .vw-card .vw-overlay { opacity: 1; background: linear-gradient(to top, rgba(9,8,11,0.88) 0%, rgba(9,8,11,0.22) 48%, transparent 100%); }
  .vw-card .vw-overlay > * { transform: translateY(0); }
  .vw-card .vw-duration { opacity: 1; }
  .vw-card .vw-play-wrap { transform: translate(-50%, -50%) scale(1); }
  .vw-card .vw-play-ring { transform: scale(1); opacity: 0.25; }
  .vw-card .vw-poster { filter: grayscale(0%) brightness(0.85); }
  /* Carousel touch overrides */
  .ethereal-carousel .gallery-item[data-ec-offset="0"] .gi-overlay { opacity: 1; }
  .ethereal-carousel .gallery-item[data-ec-offset="0"] .gi-overlay > div { transform: translateY(0); }
  .ethereal-carousel .gallery-item[data-ec-offset="0"] .gi-count { opacity: 1; transform: translateY(0); }
  .ethereal-carousel .vw-card[data-ec-offset="0"] .vw-overlay { opacity: 1; }
  .ethereal-carousel .vw-card[data-ec-offset="0"] .vw-overlay > * { transform: translateY(0); }
  .ethereal-carousel .vw-card[data-ec-offset="0"] .vw-duration { opacity: 1; }
  .ec-nav { width: 42px; height: 42px; opacity: 0.85; }
  .ec-nav:hover { transform: translateY(-50%); }
}

/* Testimonials — placed after responsive block so mobile override (768px) takes effect */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 149, 107, 0.1);
  padding: 3rem;
  position: relative;
  transition: all 0.6s var(--ease);
}

.testimonial-card:hover {
  background: rgba(201, 149, 107, 0.05);
  border-color: var(--rose);
  transform: translateY(-6px);
}

.testimonial-card blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(250,246,241,0.55);
  margin-bottom: 1.8rem;
}

.testimonial-author h5 {
  color: var(--rose);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 400;
}
.sov-link-view {
    color: var(--ivory) !important;
    opacity: 0.6;
    border-bottom: 1px solid rgba(250, 246, 241, 0.2);
    padding-bottom: 2px;
    transition: all 0.4s var(--ease);
}

.sov-link-view:hover {
    opacity: 1;
    border-bottom-color: var(--rose);
    letter-spacing: 0.1em;
}

/* ═══════ STATIC GALLERY MODE ═══════ */
.sw-gallery.sw-static .sw-gallery-img {
    inset: 12% 15%; /* Reduced size */
    transform: none !important; /* Disable parallax */
}
.sw-gallery.sw-static .sw-gallery-img.sw-img-enter {
    animation-name: swImgInStatic; /* Disable zoom-in animation */
}
@keyframes swImgInStatic {
    from { opacity: 0; filter: blur(5px); }
    to { opacity: 1; filter: blur(0); }
}

/* ═══════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(9,8,11,0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201,149,107,0.3); color: var(--rose);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0; transform: translateY(10px); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--rose); color: var(--noir); border-color: var(--rose); transform: translateY(-3px); }
@media (max-width: 768px) {
  .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 38px; height: 38px; }
}

/* Specific filter for Abhinav & Megha in Weddings */
.gallery-item[data-cat="wedding"][data-title="Abhinav & Megha"] .gi-bg {
  filter: grayscale(100%) brightness(0.8) contrast(1.12);
}
.gallery-item[data-cat="wedding"][data-title="Abhinav & Megha"]:hover .gi-bg {
  filter: grayscale(0%) brightness(1.03) contrast(1);
}

/* ═══════════════════════════════════════════════════════════
   SUBTITLE FONT OVERRIDE
   ═══════════════════════════════════════════════════════════ */
#about .about-text > p,
#contact .contact-info > p {
  font-family: 'p22-mackinac-pro', var(--font-display);
}
#portfolio .section-desc,
#video-works .section-desc {
  font-family: 'p22-mackinac-pro', var(--font-display);
  font-size: 1.1rem; /* Increased size for more prominence */
  color: rgba(250,246,241,0.5); /* Slightly increased opacity for better contrast */
  line-height: 1.8;
  max-width: none; /* Allow text to span a single line */
}
#services-overview .section-desc {
  max-width: none; /* Allow text to span a single line */
  font-family: 'p22-mackinac-pro', var(--font-display);
  font-size: 1.1rem; /* Increased size for more prominence */
  color: rgba(250,246,241,0.5); /* Consistent with other subtitles */
  margin: 0 auto;
  text-align: center;
}
