/* 
  Awwwards-Quality Design System
  Tokens for Typography, Colour, and Scale
*/
:root {
  --bg-color: #0c0c0c;
  --bg-surface: #141414;
  --text-primary: #f4f0ea;
  --text-secondary: #a3a09a;
  --accent: #c49a6c;
  
  --font-display: 'Cormorant Garamond', serif;
  --font-sans: 'Manrope', sans-serif;
  
  --size-display: clamp(3rem, 6vw, 6.5rem); 
  --size-h1: clamp(2.5rem, 6vw, 4.5rem);
  --size-h3: clamp(1.75rem, 4vw, 3rem);
  --size-h4: clamp(1.25rem, 2vw, 1.5rem);
  --size-body: clamp(1rem, 1.2vw, 1.125rem);
  
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

p {
  color: var(--text-secondary);
  font-weight: 300;
  text-wrap: pretty;
  margin-bottom: 1.5rem;
}

/* Navbar */
#mynav {
  transition: background-color 300ms var(--ease-in-out), 
              backdrop-filter 300ms var(--ease-in-out),
              padding 300ms var(--ease-in-out);
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(12, 12, 12, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 240, 234, 0.05);
}

#mynav.nav-transparent {
  background-color: transparent !important;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

#mynav.nav-colored {
  background-color: rgba(12, 12, 12, 0.85) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 240, 234, 0.05);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text-primary) !important;
  max-width: 70vw;
  transition: opacity 300ms ease;
  width: clamp(180px, 60vw, 340px);
  display: flex;
  align-items: center;
  padding: 0;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.navbar-brand img {
  width: 100%;
  height: auto;
  max-width: 280px; 
}

@media (max-width: 576px) {
  .navbar-brand {
    width: 65vw !important; 
  }
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary) !important;
  transition: color 250ms ease;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--accent) !important;
}

.navbar-toggler {
  transition: opacity 250ms ease, transform 250ms ease;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}

.navbar-toggler:focus, .navbar-toggler:active {
  box-shadow: none;
  opacity: 0.7;
}

.navbar-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 300ms var(--ease-in-out);
  transform-origin: center;
}

.navbar-toggler.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggler.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sections */
.section { padding: 10rem 0; position: relative; overflow: hidden; }
.section h1 { font-size: var(--size-h1); position: relative; z-index: 2; }
.section h2 { font-size: var(--size-display); color: var(--text-primary); }
.section h3 { font-size: var(--size-h3); color: var(--text-primary); position: relative; z-index: 2; }
.section h4 { font-size: var(--size-h4); color: var(--text-primary); }

.bg-light { background-color: var(--bg-surface) !important; }
.section .container { position: relative; z-index: 2; }

/* Buttons */
.btn-light, .btn-dark {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(244, 240, 234, 0.3);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem 3rem !important; 
  transition: all 400ms var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .btn-light:hover, .btn-dark:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
    transform: translateY(-2px);
  }
}

/* Carousel */
.carousel-caption { z-index: 10; }
.carousel-caption h1 { font-size: var(--size-display); margin-bottom: 1.5rem; text-transform: capitalize; }
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600; 
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-primary); 
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.carousel-control-prev, .carousel-control-next { width: 15%; min-width: 80px; z-index: 20; opacity: 1 !important; }
.carousel-control-prev-icon, .carousel-control-next-icon { 
  width: 3rem; 
  height: 3rem; 
  mix-blend-mode: difference; 
  background-color: transparent !important; 
}

.carousel-indicators { margin-bottom: 2rem; z-index: 20; }
.carousel-indicators [data-bs-target], .carousel-indicators button {
  width: 32px; height: 2px; background-color: rgba(244, 240, 234, 0.3); border: none; margin: 0 6px; transition: width 400ms var(--ease-out), background-color 400ms var(--ease-out); padding: 0;
}
.carousel-indicators .active { width: 64px; background-color: var(--accent); }

.hero-overlay { position: absolute; inset: 0; background-color: rgba(12, 12, 12, 0.2); pointer-events: none; }
.hero-gradient-top { position: absolute; top: 0; left: 0; right: 0; height: 30%; background: linear-gradient(rgba(12, 12, 12, 0.9), transparent); pointer-events: none; }
.hero-gradient-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(transparent, rgba(12, 12, 12, 1)); pointer-events: none; }

/* Mission, Services & Contact */
.mission-section, .contact-section { min-height: 80vh; display: flex; align-items: center; }
.mission-statement { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.15; color: var(--text-primary); text-wrap: balance; }
.contact-heading { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); line-height: 1.1; color: var(--text-primary); margin-bottom: 1rem; }

.service-list-item { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 3rem 0; border-bottom: 1px solid rgba(244, 240, 234, 0.1); transition: border-color 400ms var(--ease-out), background-color 400ms var(--ease-out); cursor: default; }
.service-list-item:first-of-type { border-top: 1px solid rgba(244, 240, 234, 0.1); }
@media (min-width: 992px) { .service-list-item { grid-template-columns: 80px 1fr 1fr; align-items: center; gap: 2rem; } }

.service-num { font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-secondary); letter-spacing: 0.15em; transition: color 400ms var(--ease-out); }
.service-title h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0; transition: transform 500ms var(--ease-out), color 400ms var(--ease-out); will-change: transform; }
.service-desc p { color: var(--text-secondary); margin-bottom: 0; font-size: 1.1rem; transition: color 400ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .service-list-item:hover { border-bottom-color: var(--accent); }
  .service-list-item:hover .service-num { color: var(--accent); }
  .service-list-item:hover .service-title h3 { transform: translateX(15px); color: var(--accent); }
  .service-list-item:hover .service-desc p { color: var(--text-primary); }
}

/* Staggering Service Rows */
.service-list-item:nth-child(1) { transition-delay: 0ms; }
.service-list-item:nth-child(2) { transition-delay: 100ms; }
.service-list-item:nth-child(3) { transition-delay: 150ms; }
.service-list-item:nth-child(4) { transition-delay: 200ms; }
.service-list-item:nth-child(5) { transition-delay: 250ms; }

/* Unified Project Hero */
.project-hero { padding-top: 8rem; }
.project-title { font-size: var(--size-display); color: var(--text-primary); margin-bottom: 0; }
.editorial-breadcrumb { font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.editorial-breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color 300ms ease; }
.editorial-breadcrumb a:hover { color: var(--text-primary); }
.editorial-breadcrumb .separator { color: rgba(244, 240, 234, 0.2); }

.editorial-intro { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.25rem); color: var(--text-primary); line-height: 1.35; margin-bottom: 2.5rem; }
.meta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid rgba(244, 240, 234, 0.1); padding-top: 2rem; margin-top: 2rem; }
.meta-block h4 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-primary); margin-bottom: 0.5rem; }
.meta-block ul { padding: 0; list-style: none; margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
@media (max-width: 768px) { .meta-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.narrative-block { padding: 7rem 0; }
.narrative-block p { margin-bottom: 0; font-size: 1.15rem; }
.editorial-chapter { font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1rem; display: block; }

.editorial-byline { display: flex; align-items: center; gap: 1.25rem; padding-top: 2rem; margin-bottom: 2rem; border-top: 1px solid rgba(244, 240, 234, 0.1); }
.editorial-byline img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(244, 240, 234, 0.2); filter: grayscale(100%); transition: filter 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .editorial-byline:hover img { filter: grayscale(0%); } }
.editorial-byline .author-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-primary); line-height: 1.1; display: block; margin-bottom: 0.25rem; }
.editorial-byline .author-role { font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-secondary); display: block; }

/* Portfolio Filters & Grid */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0; }
.filters a { color: var(--text-secondary); text-decoration: none; font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.75rem 1.5rem; border: 1px solid rgba(244, 240, 234, 0.2); transition: all 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .filters a:hover { transform: translateY(-2px); } }
.filters a:hover, .filters a.active { color: var(--bg-color); background-color: var(--text-primary); border-color: var(--text-primary); }
.item-hidden { display: none; }

.section-other-projects { padding: 4rem 0; margin-top: 2rem; }
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 992px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

.item-wrap { display: flex; flex-direction: column; position: relative; overflow: hidden; border: none; text-decoration: none; background-color: transparent; height: 100%; }
.item-wrap img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease-out); will-change: transform; }

.work-info { position: relative; background: none; display: flex; flex-direction: column; padding: 1.25rem 0 0 0; pointer-events: auto; }
.work-info h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: 0.25rem; color: var(--text-primary); text-shadow: none; transition: color 400ms var(--ease-out); }
.work-info span { font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); opacity: 1; transition: color 400ms var(--ease-out); }

.item-wrap h3, .item-wrap span { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color 400ms var(--ease-out), color 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .item-wrap:hover h3, .item-wrap:hover span { text-decoration-color: var(--accent); } }

.img-wrap { overflow: hidden; position: relative; background-color: var(--bg-surface); cursor: zoom-in; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; transition: filter 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .item-wrap:hover img { transform: scale(1.05); }
  .img-wrap::after { content: 'View Fullscreen'; position: absolute; inset: 0; background: rgba(12, 12, 12, 0.4); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 400ms var(--ease-out); pointer-events: none; }
  .img-wrap:hover::after { opacity: 1; }
  .img-wrap:hover img { filter: blur(2px); }
}

.view-all-btn { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-primary); text-decoration: none; transition: color 300ms var(--ease-out); }
.view-all-btn svg { width: 20px; height: 20px; transition: transform 400ms var(--ease-out); }
.view-all-btn:hover { color: var(--accent); }
.view-all-btn:hover svg { transform: translateX(6px); }

/* Full-Screen Edge-to-Edge Lightbox */
.custom-lightbox { position: fixed; inset: 0; background-color: #0c0c0c; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-out); }
.custom-lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-image-wrapper { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 0; }
.lightbox-img { position: absolute; width: 100vw; height: 100vh; object-fit: contain; will-change: transform, opacity; }
.lightbox-control-btn { position: absolute; z-index: 30; background: transparent; border: none; color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 1.5rem; transition: color 300ms var(--ease-out); mix-blend-mode: difference; }
.lightbox-control-btn svg { width: 36px; height: 36px; transition: transform 400ms var(--ease-out); will-change: transform; }
.lightbox-control-btn:hover { color: #ffffff !important; }
.lightbox-control-btn:active svg { transform: scale(0.9); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-close:hover svg { transform: scale(1.1); }
.lightbox-prev { top: 50%; left: 1rem; transform: translateY(-50%); }
.lightbox-prev:hover svg { transform: translateX(-4px) scale(1.1); }
.lightbox-next { top: 50%; right: 1rem; transform: translateY(-50%); }
.lightbox-next:hover svg { transform: translateX(4px) scale(1.1); }

.lightbox-loader { position: absolute; width: 48px; height: 48px; border: 3px solid rgba(244, 240, 234, 0.2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; opacity: 0; transition: opacity 300ms ease; z-index: 10; pointer-events: none; }
.lightbox-loader.active { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll Reveal */
.fade-up-element, .hero-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); will-change: opacity, transform; }
.fade-up-element.is-visible, .hero-fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* Unified Footer */
.footer { background-color: var(--bg-color) !important; border-top: 1px solid rgba(244, 240, 234, 0.1) !important; padding: 3rem 0 !important; font-size: 0.85rem; }


/* =========================================
   INSTAGRAM VIBES MODAL & REEL SYSTEM
   ========================================= */

/* 1. Watch Reel Button */
.ig-vibe-btn { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid rgba(244, 240, 234, 0.3); color: var(--text-primary); transition: all 400ms ease; cursor: pointer; flex-shrink: 0; padding: 0; }
.ig-vibe-btn svg { width: 18px; height: 18px; margin-left: 3px; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ig-vibe-btn:hover { background: var(--text-primary); color: var(--bg-color); border-color: var(--text-primary); transform: scale(1.05); }
  .ig-vibe-btn:hover svg { transform: scale(1.1); }
}

/* 2. Fullscreen Modal Base */
.ig-modal { position: fixed; inset: 0; background-color: #000; z-index: 100000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-out); }
.ig-modal.active { opacity: 1; pointer-events: auto; }

/* 3. Split Screen Layout */
.ig-modal-split { display: flex; flex-direction: column-reverse; width: 100%; height: 100%; }
.ig-left-panel { flex: 0 0 20%; background-color: var(--bg-color); display: flex; flex-direction: column; justify-content: space-between; padding: 1.8rem 2rem; z-index: 100001; }
.ig-right-panel { flex: 0 0 80%; position: relative; background-color: var(--bg-surface); overflow: hidden; }

@media (min-width: 992px) {
  .ig-modal-split { flex-direction: row; }
  .ig-left-panel { flex: 0 0 45%; padding: 3rem; }
  .ig-right-panel { flex: 0 0 55%; }
}

/* 4. Branding & Logos */
.ig-logo { width: 100%; max-width: 340px; height: auto; }
.ig-logo.dark-logo { display: block; }
.ig-logo.light-logo { display: none; }

/* 5. Audio Equalizer Toggle */
.ig-audio-toggle { display: inline-flex; align-items: center; gap: 1rem; background: transparent; border: none; color: var(--text-primary); font-family: var(--font-sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; cursor: pointer; padding: 0; transition: opacity 300ms ease; }
.ig-audio-toggle:hover { opacity: 0.7; }
.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq-bars span { display: block; width: 2px; background-color: var(--accent); height: 4px; transition: height 0.2s ease; transform-origin: bottom; }
.ig-audio-toggle.is-playing .eq-bars span { animation: equalize 0.8s ease-in-out infinite alternate; }
.ig-audio-toggle.is-playing .eq-bars span:nth-child(1) { animation-delay: -0.4s; }
.ig-audio-toggle.is-playing .eq-bars span:nth-child(2) { animation-delay: -0.2s; }
.ig-audio-toggle.is-playing .eq-bars span:nth-child(3) { animation-delay: -0.6s; }
.ig-audio-toggle.is-playing .eq-bars span:nth-child(4) { animation-delay: 0s; }
@keyframes equalize { 0% { height: 4px; } 100% { height: 16px; } }

/* 6. Image Container */
.ig-image-container { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; cursor: pointer; }
.ig-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; will-change: transform, opacity; }

/* 7. Close Button */
.ig-close { position: absolute !important; top: 1.5rem !important; right: 1.5rem !important; z-index: 100002 !important; mix-blend-mode: difference; color: #ffffff !important; }

/* 8. Intro Overlay (Locked to --bg-surface) */
.ig-intro-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-surface) !important;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ig-intro-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem); color: var(--text-primary); margin: 0; opacity: 0; text-align: center; }
.ig-intro-overlay .lightbox-loader { border-color: rgba(244, 240, 234, 0.1); border-top-color: var(--text-primary); }

/* 9. Replay Overlay */
.ig-replay-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 20, 20, 0.85); 
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}
.ig-replay-btn { background: transparent; border: 1px solid rgba(244, 240, 234, 0.3); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; padding: 1.25rem 2.5rem; display: inline-flex; align-items: center; gap: 1rem; cursor: pointer; transition: all 400ms var(--ease-out); }
.ig-replay-btn svg { width: 24px; height: 24px; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ig-replay-btn:hover { background: var(--text-primary); color: #000; }
  .ig-replay-btn:hover svg { transform: rotate(-180deg); }
}


/* =========================================
   DAY / NIGHT THEME TOGGLE
   ========================================= */

.theme-toggle { display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: center; gap: 1rem; cursor: pointer; user-select: none; padding: 0.5rem; }
.mode-label { font-family: var(--font-sans); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-secondary); transition: color 400ms var(--ease-out); }
.mode-label.active { color: var(--text-primary); font-weight: 600; }
.toggle-track { display: block !important; width: 46px; height: 22px; background-color: transparent !important; border-radius: 20px; position: relative; border: 1px solid rgba(244, 240, 234, 0.3); transition: border-color 400ms var(--ease-out); }
.toggle-indicator { width: 14px; height: 14px; background-color: var(--text-primary); border-radius: 50%; position: absolute; top: 3px; left: 3px; transition: transform 0.5s cubic-bezier(0.85, 0.05, 0.18, 1.35), background-color 400ms ease; will-change: transform; }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover .toggle-track { border-color: var(--text-primary); } }

/* Light Mode Core Variables */
html[data-theme="light"] {
  --bg-color: #fcfbf9;      
  --bg-surface: #f3f1ec;    
  --text-primary: #121212;  
  --text-secondary: #7a7874;
  --accent: #bd8f58;        
}

/* Light Mode Overrides */
html[data-theme="light"] #mynav.nav-transparent, html[data-theme="light"] #mynav.nav-colored { background-color: rgba(252, 251, 249, 0.85) !important; border-bottom: 1px solid rgba(18, 18, 18, 0.05); }
html[data-theme="light"] #mynav { background-color: rgba(252, 251, 249, 0.95) !important; border-bottom: 1px solid rgba(18, 18, 18, 0.05); }
html[data-theme="light"] .navbar-toggler span { background-color: var(--text-primary); }
html[data-theme="light"] .editorial-byline img { border-color: rgba(18, 18, 18, 0.1); }
html[data-theme="light"] .filters a { border-color: rgba(18, 18, 18, 0.1); }
html[data-theme="light"] .toggle-track { background-color: rgba(18, 18, 18, 0.1); border-color: rgba(18, 18, 18, 0.3); }
html[data-theme="light"] .theme-toggle:hover .toggle-track { border-color: var(--text-primary); }
html[data-theme="light"] .theme-toggle.light-active .toggle-indicator { transform: translateX(24px); background-color: var(--text-primary); }
html[data-theme="light"] .btn-dark, html[data-theme="light"] .btn-light { border-color: rgba(18, 18, 18, 0.2) !important; color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) { html[data-theme="light"] .btn-dark:hover, html[data-theme="light"] .btn-light:hover { background-color: var(--text-primary); color: var(--bg-color); } }

html[data-theme="light"] .hero-overlay, html[data-theme="light"] .hero-gradient-top, html[data-theme="light"] .hero-gradient-bottom { display: none !important; }
html[data-theme="light"] .carousel-caption h1 { color: #fcfbf9 !important; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6) !important; }
html[data-theme="light"] .carousel-caption .btn-light { background-color: #fcfbf9 !important; color: #121212 !important; border: 1px solid #fcfbf9 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
@media (hover: hover) and (pointer: fine) { html[data-theme="light"] .carousel-caption .btn-light:hover { background-color: #121212 !important; color: #fcfbf9 !important; border-color: #121212 !important; } }
html[data-theme="light"] .carousel-indicators button { background-color: rgba(12, 12, 12, 0.3) !important; }
html[data-theme="light"] .carousel-indicators .active { background-color: var(--accent) !important; }

html[data-theme="light"] span[style*="background: rgba(244, 240, 234, 0.1)"] { background: rgba(18, 18, 18, 0.15) !important; }
html[data-theme="light"] .section-other-projects .text-white, html[data-theme="light"] .narrative-block .text-white { color: var(--text-primary) !important; }
html[data-theme="light"] .item-wrap, html[data-theme="light"] .item-wrap:hover, html[data-theme="light"] .item-wrap:focus { border: none !important; background: transparent !important; text-decoration: none !important; }
html[data-theme="light"] .item-wrap h3, html[data-theme="light"] .item-wrap span { text-decoration-color: transparent !important; transition: text-decoration-color 400ms var(--ease-out), color 400ms var(--ease-out) !important; }
@media (hover: hover) and (pointer: fine) { html[data-theme="light"] .item-wrap:hover h3, html[data-theme="light"] .item-wrap:hover span { text-decoration-color: var(--accent) !important; } }
html[data-theme="light"] .item-wrap img { height: auto !important; aspect-ratio: 4 / 5; }
html[data-theme="light"] .work-info { position: relative !important; background: none !important; padding: 1.25rem 0 0 0 !important; }
html[data-theme="light"] .work-info h3 { text-shadow: none !important; color: var(--text-primary) !important; transform: translateY(0) !important; }
html[data-theme="light"] .work-info span { opacity: 1 !important; transform: translateY(0) !important; }
html[data-theme="light"] .img-wrap::after { color: #fcfbf9 !important; background: rgba(18, 18, 18, 0.4) !important; }
html[data-theme="light"] .custom-lightbox { background-color: rgba(252, 251, 249, 0.98) !important; }
html[data-theme="light"] .lightbox-control-btn { color: #ffffff !important; padding: 1.5rem !important; }
html[data-theme="light"] .lightbox-loader { border: 3px solid rgba(18, 18, 18, 0.1) !important; border-top-color: var(--accent) !important; }

html[data-theme="light"] .footer { border-top-color: rgba(18, 18, 18, 0.1) !important; }
html[data-theme="light"] .service-list-item { border-bottom-color: rgba(18, 18, 18, 0.1) !important; }
html[data-theme="light"] .service-list-item:first-of-type { border-top-color: rgba(18, 18, 18, 0.1) !important; }

html[data-theme="light"] .ig-vibe-btn { border-color: rgba(18, 18, 18, 0.2); color: var(--text-primary); }
@media (hover: hover) and (pointer: fine) { html[data-theme="light"] .ig-vibe-btn:hover { background: var(--text-primary); color: #fcfbf9; border-color: var(--text-primary); } }
html[data-theme="light"] .ig-logo.dark-logo { display: none; }
html[data-theme="light"] .ig-logo.light-logo { display: block; }
html[data-theme="light"] .ig-close { color: #ffffff !important; }
html[data-theme="light"] .ig-intro-overlay .lightbox-loader { border-color: rgba(18, 18, 18, 0.1); border-top-color: var(--text-primary); }
html[data-theme="light"] .ig-replay-overlay { background-color: rgba(243, 241, 236, 0.85); }
html[data-theme="light"] .ig-replay-btn { border-color: rgba(18, 18, 18, 0.2); }
@media (hover: hover) and (pointer: fine) { html[data-theme="light"] .ig-replay-btn:hover { background: var(--text-primary); color: #fcfbf9; } }


/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade-up-element, .hero-fade-up, .img-wrap, .item-wrap { opacity: 1 !important; transform: none !important; }
  .img-wrap img, .item-wrap img { transform: none !important; filter: none !important; }
  .img-wrap::after { display: none !important; }
  .work-info h3, .work-info span { transform: none !important; opacity: 1 !important; }
  .lightbox-control-btn svg, .view-all-btn svg, .service-title h3 { transform: none !important; }
}

html { scroll-behavior: smooth; scroll-padding-top: 3rem; }

/* =========================================
   MOBILE LAYOUT FIXES (Phones & Small Tablets) 
   ========================================= */
@media (max-width: 768px) {
  #mynav { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .navbar-brand { width: 60vw !important; max-width: 220px !important; }
  #portfolio.section { padding-top: 5rem !important; }
  .portfolio-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .item-wrap img { aspect-ratio: 1 / 1 !important; }
  .work-info { padding: 1.5rem 0 0 0 !important; }
  .work-info h3 { font-size: 1.5rem !important; }
  .work-info span { font-size: 0.85rem !important; }
  .filters { flex-wrap: nowrap !important; justify-content: space-between !important; gap: 0.25rem !important; width: 100%; }
  .filters a { padding: 0.5rem 0.35rem !important; font-size: 0.65rem !important; letter-spacing: 0px !important; text-align: center; flex: 1; white-space: nowrap; }
  
  .section { padding: 4rem 0 !important; }
  .project-hero { padding-top: 6.5rem !important; padding-bottom: 2rem !important; }
  .narrative-block { padding: 3rem 0 !important; }
  .section-other-projects { padding: 4rem 0 2rem 0 !important; margin-top: 2rem !important; }
  .narrative-block .mb-5, .narrative-block .pb-lg-4 { margin-bottom: 2rem !important; }
  .narrative-block .mt-5, .narrative-block .mt-4 { margin-top: 2rem !important; }
  .mission-section, .contact-section { min-height: 50vh !important; }
  
  .carousel-caption { transform: translateY(-8vh); }
  .carousel-caption p.mt-5 { margin-top: 1.5rem !important; }
  .btn-light, .btn-dark { padding: 1rem 1.5rem !important; font-size: 0.75rem !important; white-space: nowrap !important; }
  .carousel-control-prev, .carousel-control-next { width: 10% !important; min-width: 40px !important; }
  .carousel-control-prev-icon, .carousel-control-next-icon { width: 2rem !important; height: 2rem !important; }
  .carousel-caption h1 { font-size: clamp(2.3rem, 7vw, 2.5rem) !important; white-space: nowrap !important; }
  
  .lightbox-prev { left: 0.25rem !important; }
  .lightbox-next { right: 0.25rem !important; }
  .lightbox-control-btn { padding: 1rem !important; }
  .lightbox-control-btn svg { width: 28px !important; height: 28px !important; }

  /* 1. Force the H1 and Button container to stack on mobile */
  .project-hero .d-flex.align-items-center.gap-4 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  /* 2. Re-style Vibe Button into a sharp Rectangle to match your other site buttons */
  .ig-vibe-btn {
    width: auto !important;
    height: auto !important;
    padding: 1rem 1.5rem !important; /* Exact match to your mobile .btn-light padding */
    border-radius: 0 !important;     /* Exact match to your square buttons */
    border-color: rgba(244, 240, 234, 0.3) !important;
  }
  
  html[data-theme="light"] .ig-vibe-btn {
    border-color: rgba(18, 18, 18, 0.2) !important;
  }

  /* 3. Inject the "Watch Reel" text purely via CSS */
  .ig-vibe-btn::after {
    content: 'Watch Reel';
    font-family: var(--font-sans);
    font-size: 0.75rem; /* Exact match to your mobile button text size */
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Exact match to your button tracking */
    margin-left: 0.75rem; 
    line-height: 1;
  }

  /* 4. Reset the circle's optical centering for the new square layout */
  .ig-vibe-btn svg {
    margin-left: 0 !important; 
    width: 14px !important;
    height: 14px !important;
  }
  
}