/* Custom styling and enhancements for Jatin Bhayana Portfolio */

/* Local font declarations */
@font-face {
  font-family: 'Roslindale';
  src: url('../assets/fonts/Roslindale.woff2') format('woff2'),
       url('https://cdn.prod.website-files.com/60db5e59f76ae577e9f50d42/60e4249bd8f95b37bea9f160_RoslindaleDisplayCondensed-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mint Grotesk';
  src: url('../assets/fonts/MintGrotesk-Bold.woff2') format('woff2'),
       url('https://cdn.prod.website-files.com/60db5e59f76ae577e9f50d42/61eaf216c5a1013af31b58ec_Mint%20Grotesk%20-%20Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mint Grotesk';
  src: url('../assets/fonts/MintGrotesk-Medium.woff2') format('woff2'),
       url('https://cdn.prod.website-files.com/60db5e59f76ae577e9f50d42/61eaf39e1d62ff0d83071705_Mint%20Grotesk%20-%20Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Global reset & box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Theme variables */
:root {
  --transition-speed: 500ms;
  --dark: #121316;
  --light: #e8e5f0;
  --bg-dark: #0e1012;
  --text-dark: #f3f6fa;
}

/* Link color reset (Prevents browser default blue #0000ee links) */
a, a:link, a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

.instalink {
  color: var(--text-dark) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
  text-decoration-color: rgba(243, 246, 250, 0.4) !important;
  transition: all 0.3s ease;
}

.instalink:hover {
  text-decoration-color: var(--text-dark) !important;
  opacity: 0.9;
}

html.light-mode .instalink {
  color: var(--dark) !important;
  text-decoration-color: rgba(18, 19, 22, 0.4) !important;
}

html.light-mode .instalink:hover {
  text-decoration-color: var(--dark) !important;
}

/* Critical Visibility & Webflow Blocker Neutralization */
.page-transition {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  z-index: -9999 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
}

[text-split],
[words-rotate-in],
.intro-wrapper,
.page-paragraph {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   Hero Header & Video Alignment
   ========================================================================== */
.header {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 80px 24px 24px 24px !important;
  box-sizing: border-box !important;
  position: relative;
}

.header.page-header {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 100px 24px 28px !important;
}

.header.about-header {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 100px 24px 24px !important;
}

.header .container {
  width: 100% !important;
  max-width: 1800px !important;
  height: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.header-card {
  width: 100% !important;
  height: 100% !important;
  border-radius: 28px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.header-card-title {
  z-index: 5 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 1100px !important;
  padding: 24px !important;
  pointer-events: auto;
}

.header-background-teaser {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  overflow: hidden !important;
}

.w-background-video > video {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  z-index: 1 !important;
  pointer-events: none;
}

.header-card-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(180deg, rgba(14, 16, 18, 0.25) 0%, rgba(14, 16, 18, 0.55) 100%) !important;
  z-index: 2 !important;
  pointer-events: none;
}

/* ==========================================================================
   Refined Pill Buttons (No black borders or blue text)
   ========================================================================== */
.button,
a.button,
.button.w-button,
.button.nav-button {
  color: var(--text-dark) !important;
  text-decoration: none !important;
  border: 1px solid rgba(243, 246, 250, 0.2) !important;
  background-color: rgba(243, 246, 250, 0.04) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-family: 'Mint Grotesk', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
  cursor: pointer !important;
  line-height: 1 !important;
}

.button:hover,
a.button:hover,
.button.w-button:hover,
.button.nav-button:hover {
  background-color: rgba(243, 246, 250, 0.12) !important;
  border-color: rgba(243, 246, 250, 0.5) !important;
  transform: translateY(-1px);
}

.button:active,
a.button:active {
  transform: translateY(1px);
}

/* Navigation active indicator */
.button.nav-button.w--current,
.button.nav-button.active {
  background-color: rgba(243, 246, 250, 0.15) !important;
  border-color: rgba(243, 246, 250, 0.6) !important;
}

html {
  scroll-behavior: initial;
}

html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  font-family: 'Mint Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   Light Mode Overrides (Text is Grey, Menu / Headings are Deep Black)
   ========================================================================== */
html.light-mode {
  background-color: #f8f7f5 !important;
  color: #555962 !important;
}

html.light-mode body {
  background-color: #f8f7f5 !important;
  color: #555962 !important; /* Elegant Studio Grey */
}

/* Light Theme Menu & Action Buttons: Black pill borders & black text */
html.light-mode .button,
html.light-mode a.button,
html.light-mode .button.w-button,
html.light-mode .button.nav-button {
  color: #121316 !important; /* Deep Obsidian Black */
  border: 1px solid rgba(18, 19, 22, 0.28) !important;
  background-color: rgba(18, 19, 22, 0.04) !important;
}

html.light-mode .button:hover,
html.light-mode a.button:hover,
html.light-mode .button.w-button:hover,
html.light-mode .button.nav-button:hover {
  color: #121316 !important;
  border-color: rgba(18, 19, 22, 0.45) !important;
  background-color: rgba(18, 19, 22, 0.08) !important;
}

html.light-mode .button.nav-button.w--current,
html.light-mode .button.nav-button.active {
  color: #121316 !important;
  border-color: #121316 !important;
  background-color: rgba(18, 19, 22, 0.12) !important;
}

/* Brand Logo in Light Mode */
html.light-mode .brand-h2,
html.light-mode .nav-brand,
html.light-mode .nav-brand h2,
html.light-mode .logo-wordmark,
html.light-mode .nav-logo-link {
  color: #121316 !important;
}

/* Mobile Menu Button - Global Theme Harmonization */
.button.mobile-button {
  border: 1px solid rgba(243, 246, 250, 0.28) !important;
  background-color: rgba(243, 246, 250, 0.04) !important;
  color: #f3f6fa !important;
}

.button.mobile-button:hover {
  background-color: rgba(243, 246, 250, 0.12) !important;
  border-color: rgba(243, 246, 250, 0.5) !important;
  color: #f3f6fa !important;
}

html.light-mode .button.mobile-button {
  border: 1px solid rgba(18, 19, 22, 0.28) !important;
  background-color: rgba(18, 19, 22, 0.04) !important;
  color: #121316 !important;
}

html.light-mode .button.mobile-button .mobile-button-text {
  color: #121316 !important;
}

html.light-mode .button.mobile-button:hover {
  background-color: rgba(18, 19, 22, 0.09) !important;
  border-color: #121316 !important;
  color: #121316 !important;
}

/* Headings in Light Mode: Pure Crisp Black */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode h5,
html.light-mode h6,
html.light-mode .header-card,
html.light-mode .intro-wrapper h3,
html.light-mode .footer-email-h4,
html.light-mode .edit-hero-title,
html.light-mode .section-title h2,
html.light-mode .section-title h3,
html.light-mode .photo-cms-meta-title h2 {
  color: #121316 !important;
}

/* Body Text, Paragraphs, Subtitles in Light Mode: Neutral Grey */
html.light-mode .page-paragraph,
html.light-mode p,
html.light-mode [text-split],
html.light-mode [words-rotate-in],
html.light-mode .smallprint {
  color: #555962 !important; /* Sophisticated Neutral Studio Grey */
}

html.light-mode .label,
html.light-mode .footer-bottom-bar,
html.light-mode .copyright-year {
  color: #727783 !important;
}

/* Light mode links */
html.light-mode a {
  color: inherit;
}

html.light-mode .instalink {
  color: #121316 !important;
  text-decoration-color: rgba(18, 19, 22, 0.35) !important;
}

html.light-mode .instalink:hover {
  text-decoration-color: #121316 !important;
}

/* Aperture Button Styling (Desktop & Global) */
.button.aperture {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  padding: 6px 14px !important;
  cursor: pointer !important;
  border-radius: 24px !important;
  border: 1px solid rgba(243, 246, 250, 0.2) !important;
  background-color: rgba(243, 246, 250, 0.04) !important;
  color: var(--text-dark) !important;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
}

.button.aperture:hover {
  background-color: rgba(243, 246, 250, 0.12) !important;
  border-color: rgba(243, 246, 250, 0.5) !important;
  color: #f3f6fa !important;
  transform: translateY(-1px);
}

/* Light Mode Aperture Button */
html.light-mode .button.aperture {
  background-color: rgba(18, 19, 22, 0.04) !important;
  border: 1px solid rgba(18, 19, 22, 0.28) !important;
  color: #121316 !important;
}

html.light-mode .button.aperture:hover {
  background-color: rgba(18, 19, 22, 0.09) !important;
  border-color: #121316 !important;
  color: #121316 !important;
  transform: translateY(-1px);
}

/* 1:1 Giuli Gartner Aperture Slot-Machine Ticker */
.aperture-overflow {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 36px;
  height: 18px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.aperture-text {
  flex: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 18px;
  font-family: 'Mint Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  line-height: 18px !important;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  gap: 2px !important;
  transform: translateY(0%);
}

.aperture-text .aperture-f-sym {
  font-family: 'Roslindale', Georgia, serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  line-height: 1 !important;
  margin-top: -1px !important;
}

/* In Light Mode: Smoothly Slide Up to Reveal ƒ 1.4 */
html.light-mode .aperture-text {
  transform: translateY(-100%) !important;
}

.aperture-icon-wrap {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  flex: none !important;
  position: relative !important;
  line-height: 1 !important;
}

.aperture-ring-svg {
  stroke: currentColor !important;
  fill: none !important;
  width: 15px !important;
  height: 15px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  overflow: visible !important;
  transform: none !important;
  transition: stroke 0.3s ease !important;
}

html.light-mode .aperture-ring-svg {
  stroke: #121316 !important;
  transform: none !important;
}

.button.aperture:hover .aperture-ring-svg {
  transform: none !important;
}

html.light-mode .button.aperture:hover .aperture-ring-svg {
  transform: none !important;
}

.aperture-iris-group {
  transform-origin: 12px 12px !important;
}

.aperture-blades {
  transform-origin: 12px 12px !important;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Dark Mode: Closed Pin-Hole Iris is Active (ƒ 24) */
.aperture-blades.iris-closed {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

.aperture-blades.iris-open {
  opacity: 0 !important;
  transform: scale(0.55) !important;
  pointer-events: none !important;
}

/* Light Mode: Open Wide Iris Dilates, Closed Iris Retracts (ƒ 1.4) */
html.light-mode .aperture-blades.iris-closed {
  opacity: 0 !important;
  transform: scale(1.45) !important;
  pointer-events: none !important;
}

html.light-mode .aperture-blades.iris-open {
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
}

/* 1:1 Giuli Gartner Mobile Menu/Close Slot Ticker */
.mobile-button-overflow {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 18px;
  display: inline-flex;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.mobile-button-text {
  flex: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 18px;
  font-family: 'Mint Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 18px !important;
  transition: transform 0.45s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
  display: inline-flex !important;
  transform: translateY(0%);
}

.menu-button.w--open .mobile-button-text,
.menu-open .mobile-button-text {
  transform: translateY(-100%) !important;
}



/* Edit Hero Title Styling - Grand Editorial Headline */
.edit-hero-title {
  font-family: 'Roslindale', Georgia, serif !important;
  font-size: clamp(48px, 6.5vw, 84px) !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  margin: 18px auto 20px auto !important;
  text-align: center !important;
  max-width: 980px !important;
  display: block !important;
  width: 100% !important;
}

/* About Page Single Line Name */
.headline.about.about-single-line {
  font-family: 'Roslindale', Georgia, serif !important;
  font-size: clamp(44px, 8.5vw, 115px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -0.025em !important;
  white-space: nowrap !important;
  text-align: center !important;
  margin: 0 auto 36px auto !important;
  width: 100% !important;
  display: block !important;
}

/* Navbar adjustments for 5 items on the left */
.nav-menu-grid {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.nav-menu-item-wrapper {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.nav-menu-item-wrapper.left-menu {
  flex: 1;
  justify-content: flex-start;
}

.nav-menu-item-wrapper.right-menu {
  flex: 1;
  justify-content: flex-end;
}

/* Center Logo */
.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 32px;
  padding: 0 16px;
}

.logo-wordmark {
  font-family: 'Roslindale', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  color: currentColor;
  position: relative;
  user-select: none;
}

.logo-dot-anim {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nav-logo-link:hover .logo-dot-anim._1 {
  transform: translateY(-3px);
}

.nav-logo-link:hover .logo-dot-anim._2 {
  transform: translateY(-5px);
}


/* Noise Grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}

.grain-texture {
  background-image: url('../images/grain.png'), url('https://cdn.prod.website-files.com/60db5e59f76ae577e9f50d42/60e488bfc45685c61a395120_Grain.png');
  background-position: 50% 50%;
  background-size: 256px;
  width: 300%;
  height: 300%;
  position: absolute;
  top: -100%;
  left: -100%;
  opacity: 0.85;
  animation: noise 1.5s steps(3) infinite;
}

@keyframes noise {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(20%, 25%); }
  50% { transform: translate(-25%, 10%); }
  60% { transform: translate(15%, 5%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(25%, 35%); }
  90% { transform: translate(-10%, 10%); }
  100% { transform: translate(0, 0); }
}

/* Header typography and animations */
.header-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.25em;
}

.header-h1-wrapper {
  overflow: hidden;
  display: inline-flex;
}

.header-h1 {
  margin: 0;
  display: inline-block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, opacity 0.8s ease;
}

/* Floating Parallax for Motion items */
.motion-cms-images {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.motion-parallax-wrapper {
  position: absolute;
  z-index: 2;
  transition: transform 0.1s ease-out;
  pointer-events: none;
}

.motion-parallax-wrapper.a {
  top: -15%;
  left: -8%;
  width: 28%;
}

.motion-parallax-wrapper.b {
  top: 30%;
  right: -10%;
  width: 32%;
}

.motion-parallax-wrapper.c {
  bottom: -15%;
  left: 12%;
  width: 26%;
}

.motion-cms-image.parallax {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Lightbox Modal */
.custom-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.custom-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-lightbox-container {
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  background: #000;
}

.custom-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s ease;
}

.custom-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Before / After Slider for Edit Page */
.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  user-select: none;
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.before-after-overlay .before-after-img {
  width: 100%;
  max-width: none;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  cursor: ew-resize;
  z-index: 10;
  font-size: 14px;
  font-weight: bold;
}

.before-after-badge {
  position: absolute;
  bottom: 24px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  z-index: 5;
}

.before-after-badge.left { left: 24px; }
.before-after-badge.right { right: 24px; }

/* Contact Form Styling */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 680px;
  margin: 32px auto 0;
}

.contact-form-full {
  grid-column: 1 / -1;
}

.form-field-custom {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid currentColor;
  border-radius: 20px;
  padding: 14px 20px;
  color: currentColor;
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.form-field-custom:focus {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 2px currentColor;
}

textarea.form-field-custom {
  min-height: 120px;
  resize: vertical;
}

/* Copy notification toast */
.copy-tooltip {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 1:1 Giuli Gartner Frosted Glass Navigation (Zero harsh opaque bar, zero top flicker) */
.nav,
.w-nav,
.nav.w-nav,
.container.nav-container,
.nav-menu-grid,
.nav-menu-item-wrapper,
.nav-menu {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 64px !important;
  z-index: 1000 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: none !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform, backdrop-filter;
}

html.light-mode .nav,
html.light-mode .w-nav,
html.light-mode .nav.w-nav,
html.light-mode .container.nav-container,
html.light-mode .nav-menu-grid,
html.light-mode .nav-menu-item-wrapper,
html.light-mode .nav-menu {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Universal Silky Theme Cross-Fade (Zero snapping, microsecond flashes, or color popping) */
html.transition,
html.transition body,
html.transition header,
html.transition main,
html.transition section,
html.transition article,
html.transition footer,
html.transition .nav-bar,
html.transition .nav-menu-grid,
html.transition .nav-mobile-wrapper,
html.transition .mobile-drawer,
html.transition .mobile-menu-inner,
html.transition .button,
html.transition a,
html.transition h1,
html.transition h2,
html.transition h3,
html.transition h4,
html.transition h5,
html.transition h6,
html.transition p,
html.transition span,
html.transition div:not(.aperture-overflow):not(.aperture-text):not(.mobile-button-overflow),
html.transition svg:not(.aperture-ring-svg),
html.transition path,
html.transition circle:not(.aperture-pinhole-dot):not(.aperture-wide-ring),
html.transition line,
html.transition .reel-card,
html.transition .youtube-card,
html.transition .edit-feature-card,
html.transition .package-card,
html.transition .photo-cms-item,
html.transition .photo-cms-wrapper,
html.transition .footer {
  transition: background-color 1s cubic-bezier(0.16, 1, 0.3, 1),
              color 1s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 1s cubic-bezier(0.16, 1, 0.3, 1),
              fill 1s cubic-bezier(0.16, 1, 0.3, 1),
              stroke 1s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 1s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-background {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Desktop & iPad (>= 768px): Desktop nav is shown, mobile toggle hidden */
@media (min-width: 768px) {
  .nav-mobile-wrapper {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* iPad Portrait (768px - 991px): Compact Desktop Nav Fit */
@media (min-width: 768px) and (max-width: 991px) {
  .nav-menu-item-wrapper .button.nav-button {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  .nav-menu-item-wrapper {
    gap: 4px !important;
  }
  .logo-wordmark {
    font-size: 21px !important;
  }
  .button.aperture.desktop {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

/* Mobile Phones (< 768px): Perfectly Aligned Mobile Header & Dropdown */
/* Mobile Phones (< 768px): Perfectly Aligned Mobile Header & 1:1 Floating Card Menu */
@media (max-width: 767px) {
  .nav {
    height: 64px !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .container.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 64px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
  }

  /* Logo Link Left */
  .nav-logo-link {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 36px !important;
    z-index: 10001 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .logo-container {
    padding: 0 !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
  }

  .logo-wordmark {
    font-size: 20px !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    display: inline-flex !important;
    align-items: baseline !important;
  }

  /* Mobile Controls Right: Aperture Toggle & Menu Button */
  .nav-mobile-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    height: 36px !important;
    z-index: 10002 !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
  }

  .button.aperture.desktop {
    display: none !important;
  }

  /* Shared Exact Geometry & Border for Aperture & Menu Pills */
  .button.aperture.mobile,
  .button.mobile-button {
    font-family: 'Mint Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 1 !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: 1px solid rgba(243, 246, 250, 0.28) !important;
    background-color: rgba(243, 246, 250, 0.04) !important;
    color: #f3f6fa !important;
    cursor: pointer !important;
    vertical-align: middle !important;
    align-self: center !important;
    transition: all 0.25s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
  }

  .button.aperture.mobile {
    padding: 0 12px !important;
    gap: 4px !important;
  }

  .button.mobile-button {
    padding: 0 16px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
  }

  /* Hover States in Dark Mode */
  .button.aperture.mobile:hover,
  .button.mobile-button:hover {
    background-color: rgba(243, 246, 250, 0.12) !important;
    border-color: rgba(243, 246, 250, 0.5) !important;
    color: #f3f6fa !important;
  }

  /* Light Mode Pill States */
  html.light-mode .button.aperture.mobile,
  html.light-mode .button.mobile-button {
    border: 1px solid rgba(18, 19, 22, 0.28) !important;
    background-color: rgba(18, 19, 22, 0.04) !important;
    color: #121316 !important;
  }

  html.light-mode .button.aperture.mobile:hover,
  html.light-mode .button.mobile-button:hover {
    background-color: rgba(18, 19, 22, 0.09) !important;
    border-color: #121316 !important;
    color: #121316 !important;
  }

  .button.aperture.mobile .aperture-overflow {
    width: 36px !important;
    height: 18px !important;
  }

  .button.aperture.mobile .aperture-icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
  }

  /* Menu Toggle Button Wrapper (Strict 36px Height, Never Shift Down) */
  .menu-button,
  .menu-button.w--open,
  .menu-button.open,
  .w-nav-button,
  .w-nav-button.w--open {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    align-self: center !important;
    box-sizing: border-box !important;
  }

  .mobile-button-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Fullscreen Frosted Blur Overlay on Mobile: Drops Down from Top */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(12, 13, 16, 0.72) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 72px 20px 24px 20px !important;
    box-sizing: border-box !important;
    z-index: 999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, -100%, 0) !important;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, visibility 0.55s !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.light-mode .nav-menu {
    background: rgba(248, 247, 245, 0.78) !important;
  }

  .nav-menu.w--open,
  .nav-menu.menu-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* 1:1 Giuli Gartner Floating Modal Card in Mobile Menu Center (Exact Middle Alignment) */
  .nav-menu-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 88% !important;
    max-width: 320px !important;
    height: auto !important;
    margin: auto !important;
    background-color: #0c0d10 !important;
    border-radius: 28px !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    padding: 28px 20px !important;
    box-sizing: border-box !important;
    transform: translate3d(0, -50px, 0) scale(0.96) !important;
    opacity: 0 !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease !important;
  }

  .nav-menu.w--open .nav-menu-grid,
  .nav-menu.menu-open .nav-menu-grid {
    transform: translate3d(0, 0, 0) scale(1) !important;
    opacity: 1 !important;
  }

  html.light-mode .nav-menu-grid {
    background-color: #ffffff !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: 0 20px 50px rgba(18, 19, 22, 0.12) !important;
  }

  .nav-menu-item-wrapper,
  .nav-menu-item-wrapper.left-menu,
  .nav-menu-item-wrapper.right-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    height: auto !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Clean Roslindale Links Inside Floating Modal (No individual borders or boxes) */
  .nav-menu a,
  .nav-menu .button,
  .nav-menu .button.nav-button,
  .nav-menu .button.w-button,
  .nav-menu-item-wrapper a,
  .nav-menu-item-wrapper .button,
  .nav-menu-item-wrapper .button.nav-button,
  .nav-menu-item-wrapper .button.w-button {
    font-family: 'Roslindale', Georgia, serif !important;
    font-size: clamp(26px, 6.2vw, 34px) !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    padding: 4px 16px !important;
    width: auto !important;
    text-align: center !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-transform: lowercase !important;
    color: #f3f6fa !important;
    letter-spacing: -0.015em !important;
    display: inline-block !important;
    opacity: 0 !important;
    transform: translateY(-18px) !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, color 0.25s ease !important;
  }

  .nav-menu.w--open a,
  .nav-menu.w--open .button,
  .nav-menu.menu-open a,
  .nav-menu.menu-open .button {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* Staggered drop-down reveal delays for links */
  .nav-menu.w--open .nav-menu-item-wrapper.left-menu a:nth-child(1),
  .nav-menu.menu-open .nav-menu-item-wrapper.left-menu a:nth-child(1) { transition-delay: 0.12s !important; }

  .nav-menu.w--open .nav-menu-item-wrapper.left-menu a:nth-child(2),
  .nav-menu.menu-open .nav-menu-item-wrapper.left-menu a:nth-child(2) { transition-delay: 0.16s !important; }

  .nav-menu.w--open .nav-menu-item-wrapper.left-menu a:nth-child(3),
  .nav-menu.menu-open .nav-menu-item-wrapper.left-menu a:nth-child(3) { transition-delay: 0.20s !important; }

  .nav-menu.w--open .nav-menu-item-wrapper.left-menu a:nth-child(4),
  .nav-menu.menu-open .nav-menu-item-wrapper.left-menu a:nth-child(4) { transition-delay: 0.24s !important; }

  .nav-menu.w--open .nav-menu-item-wrapper.right-menu a:nth-child(1),
  .nav-menu.menu-open .nav-menu-item-wrapper.right-menu a:nth-child(1) { transition-delay: 0.28s !important; }

  .nav-menu.w--open .nav-menu-item-wrapper.right-menu a:nth-child(2),
  .nav-menu.menu-open .nav-menu-item-wrapper.right-menu a:nth-child(2) { transition-delay: 0.32s !important; }

  html.light-mode .nav-menu a,
  html.light-mode .nav-menu .button,
  html.light-mode .nav-menu .button.nav-button,
  html.light-mode .nav-menu .button.w-button,
  html.light-mode .nav-menu-item-wrapper a,
  html.light-mode .nav-menu-item-wrapper .button,
  html.light-mode .nav-menu-item-wrapper .button.nav-button,
  html.light-mode .nav-menu-item-wrapper .button.w-button {
    color: #121316 !important;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }

  .nav-menu a:hover,
  .nav-menu a:active,
  .nav-menu .button:hover,
  .nav-menu .button:active,
  .nav-menu .button.nav-button:hover,
  .nav-menu .button.nav-button:active,
  .nav-menu-item-wrapper a:hover,
  .nav-menu-item-wrapper a:active,
  .nav-menu-item-wrapper .button:hover,
  .nav-menu-item-wrapper .button:active,
  html.light-mode .nav-menu a:hover,
  html.light-mode .nav-menu a:active,
  html.light-mode .nav-menu .button:hover,
  html.light-mode .nav-menu .button:active,
  html.light-mode .nav-menu-item-wrapper a:hover,
  html.light-mode .nav-menu-item-wrapper a:active {
    transform: scale(1.06) !important;
    opacity: 0.7 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .nav-menu-item-wrapper.right-menu .button.aperture {
    display: none !important;
  }

  .mobile-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* About page infinite photo sliders */
@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   Comprehensive Spacing & Layout Rhythm Normalization
   Eliminating Excessive 128px-222px Blank Spaces Across All Pages
   ========================================================================== */
.section {
  width: 100% !important;
  padding-top: 44px !important;
  padding-bottom: 44px !important;
  position: relative !important;
}

.section.about-section {
  padding-top: 36px !important;
  padding-bottom: 28px !important;
  margin: 0 auto !important;
}

.section.photo,
.section.photo-section {
  margin-top: 0 !important;
  padding-top: 16px !important;
  padding-bottom: 24px !important;
}

.section.motion-section {
  padding-top: 36px !important;
  padding-bottom: 44px !important;
}

.section.large-section,
.large-section {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

.section.butter-section,
.butter-section {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

.section.about,
.section.about-awards {
  padding-top: 36px !important;
  padding-bottom: 36px !important;
}

.about-grid,
.about-story-grid {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}

.motion-credits-wrapper.last {
  margin-bottom: 36px !important;
}

/* Headers across inner pages */
.header.page-header,
.header.about-header,
.header.template-header,
.header.video-header {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-top: 90px !important;
  padding-bottom: 24px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Homepage main header */
.header:not(.page-header):not(.about-header):not(.template-header) {
  width: 100% !important;
  height: 92vh !important;
  min-height: 560px !important;
  max-height: 920px !important;
  padding: 64px 24px 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Section Titles & Intro Margins */
.section-title {
  margin-bottom: 24px !important;
  text-align: center !important;
}

.intro-wrapper {
  margin-bottom: 16px !important;
}

.button.margin-top {
  margin-top: 24px !important;
}

/* Stills & Case Study Items Scroll Distance */
.photo-cms-item {
  width: 100% !important;
  height: 100vh !important;
  min-height: 580px !important;
  max-height: 880px !important;
  margin-bottom: 0 !important;
  position: relative !important;
}

.photo-cms-sticky {
  height: 100% !important;
  min-height: 100% !important;
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: hidden !important;
  padding: 0 24px !important;
}

@media (max-width: 767px) {
  .header.page-header,
  .header.about-header,
  .header.template-header {
    padding-top: 80px !important;
    padding-bottom: 24px !important;
  }
  .section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  /* Stills Mobile Floating Layered Composition (Restored Working Flex Layout) */
  .photo-cms-item {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin-bottom: 72px !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .photo-cms-sticky {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    perspective: 1000px !important;
    transform-style: preserve-3d !important;
  }

  /* Center metadata placed neatly at the top on mobile (order: 1) */
  .photo-cms-wrapper:not(.photo) {
    order: 1 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 440px !important;
    padding: 0 8px !important;
    margin: 0 auto 24px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    z-index: 10 !important;
  }

  .photo-cms-wrapper:not(.photo) .cms-meta-banner {
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .photo-cms-wrapper:not(.photo) .photo-cms-meta-title h2 {
    font-size: clamp(24px, 6vw, 34px) !important;
    margin-bottom: 12px !important;
  }

  .photo-cms-wrapper:not(.photo) .photo-cms-meta-palette {
    width: 100% !important;
    max-width: 260px !important;
    margin: 14px auto 0 auto !important;
  }

  /* Primary photo card on mobile (order: 2, featured card with 3D tilt) */
  .photo-cms-wrapper.photo.left {
    order: 2 !important;
    position: relative !important;
    width: 88vw !important;
    max-width: 440px !important;
    height: 58vw !important;
    max-height: 290px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    z-index: 2 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55) !important;
    transform-style: preserve-3d !important;
    margin: 0 auto !important;
    will-change: transform !important;
  }

  /* Secondary companion photo card (order: 3, floating overlapping bottom-right) */
  .photo-cms-wrapper.photo.right {
    order: 3 !important;
    position: relative !important;
    width: 54vw !important;
    max-width: 250px !important;
    height: 36vw !important;
    max-height: 175px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    margin-top: -20vw !important;
    margin-left: 30vw !important;
    margin-bottom: 20px !important;
    z-index: 5 !important;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.75) !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
  }

  html.light-mode .photo-cms-wrapper.photo.left {
    box-shadow: 0 16px 38px rgba(18, 19, 22, 0.14) !important;
  }

  html.light-mode .photo-cms-wrapper.photo.right {
    border-color: rgba(18, 19, 22, 0.22) !important;
    box-shadow: 0 24px 50px rgba(18, 19, 22, 0.24) !important;
  }
}

/* ==========================================================================
   Refined Centered Footer with Full Navigation Menu
   ========================================================================== */
.footer {
  width: 100% !important;
  padding: 60px 24px 36px !important;
  text-align: center !important;
  position: relative !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.footer .container,
.footer-container {
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.footer .section-title {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto 32px auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.section-title-labels.footer-title {
  height: 24px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 auto 16px !important;
}

.section-title-labels.footer-title .label.email {
  height: 24px !important;
  line-height: 24px !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  opacity: 0.75;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  display: block;
  text-align: center;
}

.footer-email-wrapper {
  max-width: 800px !important;
  width: 100% !important;
  margin: 0 auto 32px auto !important;
  border-radius: 24px !important;
  position: relative !important;
  background: rgba(243, 246, 250, 0.02) !important;
  border: 1px dashed rgba(243, 246, 250, 0.22) !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
  overflow: hidden !important;
}

.footer-email-wrapper:hover {
  background: rgba(243, 246, 250, 0.06) !important;
  border-color: rgba(243, 246, 250, 0.5) !important;
  transform: scale(1.015);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.footer-email-h4 {
  font-family: 'Roslindale', Georgia, serif !important;
  font-size: clamp(26px, 4.2vw, 52px) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  padding: 24px 32px !important;
  margin: 0 !important;
  color: var(--text-dark) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

html.light-mode .footer-email-wrapper {
  background: rgba(18, 19, 22, 0.03) !important;
  border-color: rgba(18, 19, 22, 0.25) !important;
}

html.light-mode .footer-email-wrapper:hover {
  background: rgba(18, 19, 22, 0.08) !important;
  border-color: rgba(18, 19, 22, 0.6) !important;
}

html.light-mode .footer-email-h4 {
  color: var(--dark) !important;
}

/* Centered Footer Navigation Menu (Tabs in Footer) */
.footer-nav-menu {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 auto 36px auto !important;
  width: 100% !important;
  max-width: 860px !important;
}

.footer-nav-menu a.button {
  font-size: 11px !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  background: rgba(243, 246, 250, 0.04) !important;
  border: 1px solid rgba(243, 246, 250, 0.18) !important;
  color: var(--text-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) !important;
}

.footer-nav-menu a.button:hover {
  background: rgba(243, 246, 250, 0.14) !important;
  border-color: rgba(243, 246, 250, 0.5) !important;
  transform: translateY(-2px) !important;
}

html.light-mode .footer-nav-menu a.button {
  background: rgba(18, 19, 22, 0.04) !important;
  border-color: rgba(18, 19, 22, 0.2) !important;
  color: var(--dark) !important;
}

html.light-mode .footer-nav-menu a.button:hover {
  background: rgba(18, 19, 22, 0.1) !important;
  border-color: rgba(18, 19, 22, 0.5) !important;
}

/* Centered Bottom Bar */
.footer-bottom-bar {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(243, 246, 250, 0.1) !important;
  text-align: center !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  opacity: 0.75 !important;
}

html.light-mode .footer-bottom-bar {
  border-top-color: rgba(18, 19, 22, 0.15) !important;
}

/* ==========================================================================
   Smooth Animations: Hero Typography & Stills Cards
   ========================================================================== */
@keyframes heroWordReveal {
  0% {
    transform: translateY(115%);
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

.header-h1 {
  animation: heroWordReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-h1._1 { animation-delay: 0.1s; }
.header-h1._2 { animation-delay: 0.2s; }
.header-h1._3 { animation-delay: 0.3s; }
.header-h1._4 { animation-delay: 0.4s; }
.header-h1._5 { animation-delay: 0.5s; }

/* Stills Photo Cards Hover & Tilts */
.photo-cms-wrapper.photo {
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4) !important;
  transition: box-shadow 0.4s ease !important;
  transform-style: preserve-3d;
  will-change: transform;
}

.photo-cms-wrapper.photo:hover {
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.65) !important;
}

.photo-cms-wrapper.photo .photo-cms-image {
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform;
}

.photo-cms-wrapper.photo:hover .photo-cms-image {
  transform: scale(1.05);
}

.photo-cms-palette-color {
  opacity: 1 !important;
  cursor: pointer !important;
  transition: flex-grow 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.4s ease !important;
}

.photo-cms-palette-color:hover {
  flex-grow: 2.2 !important;
  transform: scaleY(1.08) !important;
}

.photo-card-palette-hex {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

.photo-cms-palette-color:hover .photo-card-palette-hex {
  opacity: 1 !important;
}

/* ==========================================================================
   Influencer & Creator Video Editing Styles (For Edit Page)
   ========================================================================== */
.creator-stats-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px auto 0;
}

.creator-stat-pill {
  padding: 8px 18px;
  background: rgba(243, 246, 250, 0.05);
  border: 1px solid rgba(243, 246, 250, 0.15);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
}

html.light-mode .creator-stat-pill {
  background: rgba(18, 19, 22, 0.05);
  border-color: rgba(18, 19, 22, 0.2);
  color: var(--dark);
}

/* 9:16 Vertical Reel Grid */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px;
}

.reel-card {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(243, 246, 250, 0.12);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.reel-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
  border-color: rgba(243, 246, 250, 0.3);
}

.reel-video-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.reel-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.reel-top-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.reel-views-badge {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reel-play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.reel-card:hover .reel-play-btn-circle {
  transform: translate(-50%, -50%) scale(1.15);
  background: rgba(255, 255, 255, 0.35);
}

.reel-bottom-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  text-align: left;
}

.reel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.reel-tag-pill {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* 16:9 YouTube Video Cards */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 36px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px;
}

@media (max-width: 540px) {
  .youtube-grid {
    grid-template-columns: 1fr;
  }
}

.youtube-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(243, 246, 250, 0.12);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1), box-shadow 0.5s ease;
  cursor: pointer;
}

.youtube-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
  border-color: rgba(243, 246, 250, 0.3);
}

/* Creator Pricing / Service Packages Grid */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 16px;
}

.package-card {
  padding: 36px 28px;
  border-radius: 24px;
  background: rgba(243, 246, 250, 0.03);
  border: 1px solid rgba(243, 246, 250, 0.12);
  backdrop-filter: blur(12px);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
}

.package-card.highlight {
  background: rgba(243, 246, 250, 0.07);
  border-color: rgba(243, 246, 250, 0.4);
  transform: scale(1.02);
}

.package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 246, 250, 0.45);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.package-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--text-dark);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

html.light-mode .package-card {
  background: rgba(18, 19, 22, 0.03);
  border-color: rgba(18, 19, 22, 0.15);
}

html.light-mode .package-card.highlight {
  background: rgba(18, 19, 22, 0.08);
  border-color: rgba(18, 19, 22, 0.4);
}

html.light-mode .package-badge {
  background: var(--dark);
  color: #fff;
}



/* ==========================================================================
   EDIT PAGE 3D CARDS & FEATURE GRID ENHANCEMENTS
   ========================================================================== */

/* 3D Perspective Containers */
.reels-grid,
.youtube-grid,
.edit-features-grid,
.packages-grid {
  perspective: 1200px !important;
}

/* Edit Features Grid (6 Pro Pillars) */
.edit-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 16px;
}

.edit-feature-card {
  position: relative;
  padding: 36px 30px;
  border-radius: 24px;
  background: rgba(243, 246, 250, 0.03);
  border: 1px solid rgba(243, 246, 250, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.edit-feature-card:hover {
  border-color: rgba(243, 246, 250, 0.35);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(243, 246, 250, 0.08);
  border: 1px solid rgba(243, 246, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  margin-bottom: 24px;
  transform: translateZ(30px);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.edit-feature-card:hover .feature-icon-wrap {
  transform: translateZ(45px) scale(1.08);
  background: rgba(243, 246, 250, 0.14);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text-dark);
  transform: translateZ(24px);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 246, 250, 0.65);
  margin: 0 0 24px;
  transform: translateZ(16px);
}

.feature-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(243, 246, 250, 0.06);
  border: 1px solid rgba(243, 246, 250, 0.12);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(243, 246, 250, 0.8);
  transform: translateZ(20px);
}

/* Light Mode Overrides for Features */
html.light-mode .edit-feature-card {
  background: rgba(18, 19, 22, 0.025);
  border-color: rgba(18, 19, 22, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

html.light-mode .edit-feature-card:hover {
  border-color: rgba(18, 19, 22, 0.3);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.12);
}

html.light-mode .feature-icon-wrap {
  background: rgba(18, 19, 22, 0.06);
  border-color: rgba(18, 19, 22, 0.12);
  color: var(--dark);
}

html.light-mode .edit-feature-card:hover .feature-icon-wrap {
  background: rgba(18, 19, 22, 0.1);
}

html.light-mode .feature-title {
  color: var(--dark);
}

html.light-mode .feature-desc {
  color: rgba(18, 19, 22, 0.65);
}

html.light-mode .feature-tag {
  background: rgba(18, 19, 22, 0.05);
  border-color: rgba(18, 19, 22, 0.12);
  color: rgba(18, 19, 22, 0.75);
}

/* 3D Holographic Parallax Depth for Edit Cards */
.reel-card,
.youtube-card,
.package-card {
  transform-style: preserve-3d !important;
  will-change: transform;
}

.reel-card .reel-top-bar,
.youtube-card .youtube-top-bar {
  transform: translateZ(32px);
}

.reel-card .reel-play-btn-circle,
.youtube-card .youtube-play-btn-circle {
  transform: translate(-50%, -50%) translateZ(45px);
}

.reel-card .reel-bottom-meta,
.youtube-card .youtube-bottom-meta {
  transform: translateZ(28px);
}

.package-card .package-badge {
  transform: translateZ(30px);
}

.package-card .package-price-wrap {
  transform: translateZ(24px);
}

.package-card .button {
  transform: translateZ(32px);
}

/* Dynamic Holographic Glare Sheen */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: overlay;
}

.reel-card:hover .card-glare,
.youtube-card:hover .card-glare,
.edit-feature-card:hover .card-glare,
.package-card:hover .card-glare {
  opacity: 1;
}
