/* Home + portfolio page styles (loaded after site.css) */

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
  position: absolute;
  top: 190px;
  left: 5vw;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-body);
  z-index: 10;
  transform: translateZ(0); /* Force hardware acceleration */
  will-change: transform; /* Optimize for position changes */
}

.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.breadcrumb-separator {
  color: var(--text-dim);
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--gold);
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Breadcrumbs - Tablet and Mobile Responsive (matching about page sizes) */
      /* Tablet: Hide desktop breadcrumbs, show tablet breadcrumbs in hero-lead-row */
      
    
  .hero .breadcrumbs-desktop {
        display: none;
      }
  .hero .breadcrumbs-tablet {
        display: inline-flex;
        position: static;
        top: auto;
        left: auto;
        transform: none;
        margin: 0;
        font-size: 0.7rem; /* Same as about page tablet */
      }
      
      /* Ensure hero-lead-row displays breadcrumbs on same line */
      
    
  .hero .hero-lead-row {
        flex-wrap: nowrap;
        gap: 15px;
      }
      
      /* Portfolio page - work section breadcrumbs on tablet - positioned above header */
      
    
  .work .breadcrumbs-desktop {
        display: none;
      }
  .work .breadcrumbs-tablet {
        display: flex;
        position: absolute;
        top: 100px; /* Higher position above section header */
        left: 4vw;
        font-size: 0.7rem;
      }
      
      /* Breadcrumbs replace eyebrow in section-header on tablet */
      
    
  .work .section-header {
        display: block;
      }
  .work .section-header .breadcrumbs-tablet {
        position: static;
        display: flex;
        margin-bottom: 24px; /* Spacing before heading */
        font-size: 0.75rem;
      }
  .work .section-header {
        padding-top: 35px; /* Balanced top padding for tablet */
      }
  .work .section-header :is(h1, h2) {
        display: block;
        margin-top: 0; /* Ensure no overlap */
        margin-bottom: 0;
      }
}

@media (max-width: 768px) {
      /* Mobile: Show desktop breadcrumbs, hide tablet breadcrumbs */
      
    
  .hero .breadcrumbs-desktop {
        display: flex;
        position: absolute;
        top: 100px;
        left: 5vw;
        right: 5vw;
        width: auto;
        margin: 0;
        justify-content: flex-start;
        font-size: 0.65rem; /* Same as about page mobile */
        gap: 6px; /* Same as about page mobile */
      }
  .hero .breadcrumbs-tablet {
        display: none;
      }
      
      /* Ensure breadcrumbs don't overlap with content on mobile */
      
    
  .hero {
        padding-top: 140px;
      }
      
      /* Portfolio page - work section breadcrumbs on mobile - positioned higher */
      
    
  .work .breadcrumbs-desktop {
        display: flex;
        position: absolute;
        top: 80px; /* Higher position to avoid overlap */
        left: 4vw;
        right: 4vw;
        width: auto;
        margin: 0;
        justify-content: flex-start;
        font-size: 0.65rem;
        gap: 6px;
      }
      
      /* Hide tablet breadcrumbs on mobile (desktop breadcrumbs shown instead) */
      
    
  .work .section-header .breadcrumbs-tablet {
        display: none;
      }
      
      /* Ensure breadcrumbs don't overlap with content on mobile */
      
    
  .work {
        padding-top: 120px; /* Reduced padding since breadcrumbs are higher */
      }
      
      /* Ensure section header has proper spacing from breadcrumbs on mobile */
      
    
  .work .section-header {
        margin-top: 60px; /* Space for breadcrumbs above */
        padding-top: 50px !important; /* Balanced top padding for mobile */
      }
  .work .section-header :is(h1, h2) {
        margin-top: 0;
      }
}

@media (min-width: 1025px) {
    /* Desktop: Show desktop breadcrumbs, hide tablet breadcrumbs */
    
  .hero .breadcrumbs-desktop {
        display: flex;
      }
  .hero .breadcrumbs-tablet {
        display: none;
      }
      
      /* Portfolio page - work section breadcrumbs */
      
    
  .work .breadcrumbs-desktop {
        display: flex;
        position: absolute;
        top: 120px; /* Higher position to avoid overlap */
        left: 5vw;
      }
      
      /* Hide tablet breadcrumbs on desktop (they're in section-header) */
      
    
  .work .section-header .breadcrumbs-tablet {
        display: none;
      }
      
      /* Ensure section header has proper spacing from breadcrumbs on desktop */
      
    
  .work .section-header {
        margin-top: 80px; /* Space for breadcrumbs above */
      }
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Navigation centered with flex-grow to push button right */
.nav nav {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-right: -250px; /* Compensate for Portfolio button margin to keep nav centered - moved 50px right */
}

/* CTA button on the right */
.nav .nav-cta,
.nav .nav-portfolio {
  flex-shrink: 0;
}

.logo:hover .logo-mark {
  background: var(--gold);
  color: var(--bg);
}

@media (hover: hover) {
      /* AM icon glow and subtle vibration on hover */
      
    
  .logo:hover .logo-mark {
        background: var(--gold);
        color: var(--bg);
        box-shadow: 0 0 20px rgba(201, 166, 107, 0.6),
                    0 0 40px rgba(201, 166, 107, 0.4),
                    0 0 60px rgba(201, 166, 107, 0.2);
        animation: logo-vibrate 0.4s ease-in-out infinite;
      }
}

/* Active state for touch devices - brief vibration on tap */
.logo:active .logo-mark {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(201, 166, 107, 0.6),
              0 0 40px rgba(201, 166, 107, 0.4),
              0 0 60px rgba(201, 166, 107, 0.2);
  animation: logo-vibrate-brief 0.3s ease-in-out;
}

@media (max-width: 1024px) {
  .logo.logo-text-expanded .logo-name-first {
        /* Artur slides out from left side of AM box */
        transform: translateX(-42px) scale(1);
        opacity: 1;
        max-width: 120px; /* More width for text */
        font-size: 1.1rem; /* Ensure font size is applied */
        margin-right: -10px; /* Reduced negative margin to prevent horizontal scroll */
      }
  .logo.logo-text-expanded .logo-name-last {
        /* Morin slides out from right side of AM box */
        transform: translateX(42px) scale(1);
        opacity: 1;
        max-width: 120px; /* More width for text */
        font-size: 1.1rem; /* Ensure font size is applied */
        margin-left: -10px; /* Reduced negative margin to prevent horizontal scroll */
      }
      
      /* AM icon normal state when text is hidden */
      
    
  .logo.logo-text-hidden .logo-mark {
        background: transparent;
        color: var(--gold);
        box-shadow: none;
        animation: none;
      }
      
      /* AM icon glow when text is expanded */
      
    
  .logo.logo-text-expanded .logo-mark {
        background: var(--gold);
        color: var(--bg);
        box-shadow: 0 0 20px rgba(201, 166, 107, 0.6),
                    0 0 40px rgba(201, 166, 107, 0.4),
                    0 0 60px rgba(201, 166, 107, 0.2);
        animation: logo-vibrate-brief 0.3s ease-in-out;
      }
}

.nav nav {
  position: relative;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  position: relative;
  overflow: visible;
}

.nav ul li {
  position: relative;
}

.nav ul a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  height: 44px; /* Consistent height with logo and CTA */
  box-sizing: border-box;
  text-transform: uppercase;
  text-align: center;
}

.nav ul a:hover {
  color: var(--gold); /* Change to gold color on hover for better visibility */
  z-index: 10; /* Ensure link is above grid */
}

.nav-grid-overlay.active {
  opacity: 1;
  z-index: 101; /* Ensure it's visible above overlay */
}

.nav-grid-overlay line,
.nav-grid-overlay path {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
  opacity: 0;
  transition: opacity 0.2s ease-out;
  will-change: opacity;
}

.nav-grid-overlay.active line,
.nav-grid-overlay.active path {
  opacity: 1;
}

.nav ul a.active {
  color: var(--gold);
  background: transparent; /* No background for active state on desktop */
}

.nav-cta:hover {
  background: transparent; /* Keep transparent - ::after handles background */
  color: var(--bg);
  position: relative;
  z-index: 2;
  border-color: transparent; /* Border handled by ::after */
}

/* Portfolio Button - Styled same as main nav links with two-layer background */
.nav-portfolio {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px; 
  border-radius: var(--radius-lg); /* Outer container border radius */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
  height: 60px; /* Match nav ul total height (44px link + 8px top + 8px bottom padding) */
  box-sizing: border-box;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  margin-right: 300px;
  margin-left: 195px;  
  background: rgba(255, 255, 255, 0.02); /* Outer container background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Outer container border */
  white-space: nowrap;
}

@media (min-width: 1025px) {
      
      /* Enhanced hover effect matching main nav links */
      
    
  .nav-portfolio:hover {
        color: var(--gold);
        z-index: 10;
      }
}

@media (max-width: 1024px) {
    /* Hide Portfolio button on mobile/tablet - keep it in nav menu */
    
  .nav-portfolio {
        display: none;
      }
}

@media (min-width: 1025px) and (max-width: 1550px) {
    /* Maintain gap between Portfolio button and nav section on intermediate screen sizes */
    /* This prevents overlap on smaller laptops (between tablet and full desktop) */
    
  .nav-portfolio {
        margin-right: clamp(60px, 40vw, 300px); /* Responsive margin that scales down */
        margin-left: clamp(30px, 40vw, 80px); /* Responsive margin that scales down */
      }
      
      /* Adjust nav margin to maintain centering */
      
    
  .nav nav {
        margin-right: clamp(-150px, -15vw, -250px); /* Responsive margin that scales down */
      }
      
      /* Adjust Contact button margin to maintain spacing */
      
    
  .nav-cta {
        margin-left: clamp(-12px, -1.5vw, -24px); /* Responsive margin that scales down */
      }
}

@media (min-width: 1600px) {
  .nav-portfolio {
        /* Adjust margins for very large screens (e.g., 27-inch monitors) */
        margin-right: clamp(50px, 8vw, 100px); /* smaller max margin */
        margin-left: clamp(30px, 6vw, 80px);
      }
      
      /* Adjust nav margin to maintain centering */
      
    
  .nav nav {
        margin-right: clamp(-50px, -8vw, -100px);
      }
      
      /* Adjust Contact button margin to maintain spacing */
      
    
  .nav-cta {
        margin-left: clamp(-6px, -0.8vw, -12px);
      }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 140px 5vw var(--section-padding);
  position: relative;
}

/* Hero Carousel */
.hero-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  min-height: 600px;
  position: relative;
}

/* Visible window that masks the sliding track */
.carousel-window {
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.6s cubic-bezier(0.4, 0.15, 0.15, 1), 
              height 0.6s cubic-bezier(0.4, 0.15, 0.15, 1);
  width: 100%;
  max-width: 760px;
  height: 600px;
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
}

/* Sliding track containing all slides */
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.15, 0.15, 1);
  height: 100%;
  width: auto;
  position: relative;
  will-change: transform;
}

/* Individual slide */
.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.carousel-slide .image-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.carousel-slide .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 0.6s ease;
}

.carousel-slide .image-frame:hover img {
  transform: scale(1.02);
}

.carousel-slide .image-caption {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  width: 100%;
  justify-content: center;
}

/* Previous/Next navigation buttons */
.carousel-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  position: relative;
  flex-shrink: 0; /* keep 48px; only the photo frame adapts (buttons were squashed on load) */
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.carousel-btn:active {
  transform: translateY(0);
}

/* Dot indicators below carousel */
.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.carousel-dots button:hover {
  transform: scale(1.2);
  background: rgba(255, 255, 255, 0.4);
}

.carousel-dots button[aria-selected="true"] {
  background: var(--gold);
}

.image-frame img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.02);
}

.frame-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.image-frame:hover .frame-corner {
  opacity: 1;
}

.frame-corner.tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }

.frame-corner.tr { top: 20px; right: 20px; border-left: none; border-bottom: none; }

.frame-corner.bl { bottom: 20px; left: 20px; border-right: none; border-top: none; }

.frame-corner.br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* --------------------------------------------------------------------------
   Picture of the Week Section
   -------------------------------------------------------------------------- */
.picture-of-week {
  padding: var(--section-padding) 5vw;
  position: relative;
}

.potw-container {
  max-width: 1400px;
  margin: 0 auto;
}

.potw-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  text-align: center;
}

.potw-badge-wrapper {
  position: relative;
  display: inline-block;
  padding: 20px;
}

.potw-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  background: rgba(201, 166, 107, 0.05);
  position: relative;
  z-index: 2;
}

.potw-letters {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Width and height will be set by JavaScript */
}

.letter-float {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.6;
  top: 50%;
  left: 50%;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  /* Transform will be set by JavaScript */
  will-change: transform;
  z-index: 1; /* Ensure letters are above background but below badge */
  pointer-events: none;
}

.potw-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.potw-image {
  position: relative;
}

.potw-image .image-frame {
  position: relative;
  overflow: hidden;
}

.potw-image .image-frame img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transition: transform 0.6s ease;
}

/* Landscape images - natural aspect ratio, larger size */
.potw-image .image-frame.potw-landscape {
  max-width: 100%;
}

.potw-image .image-frame.potw-landscape img {
  height: auto;
  width: 100%;
  object-fit: contain;
  max-height: 900px;
}

/* Portrait images - maintain natural aspect ratio */
.potw-image .image-frame.potw-portrait {
  max-width: 100%;
}

.potw-image .image-frame.potw-portrait img {
  height: auto;
  width: 100%;
  object-fit: contain;
  max-height: 800px;
}

.potw-image .image-frame:hover img {
  transform: scale(1.02);
}

.potw-caption {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.potw-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

.potw-caption p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.potw-location {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Portfolio page - ensure section header has space for breadcrumbs */
.work .section-header {
  margin-top: 0;
  padding-top: 40px; /* Add top padding to lower the heading */
}

/* 5x6 Portfolio Grid Layout */
.portfolio-grid-6x6 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 100%;
  padding: 60px 5vw;
  margin: 0 auto;
}

.portfolio-grid-6x6 .grid-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.portfolio-grid-6x6 .grid-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.portfolio-grid-6x6 .grid-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-grid-6x6 .grid-item {
  cursor: pointer; /* Indicate images are clickable */
}

.portfolio-grid-6x6 .grid-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
    /* Responsive adjustments for 5x6 grid */
    
  .portfolio-grid-6x6 {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet for larger images */
        grid-template-rows: auto;
        gap: 20px; /* Keep larger gap */
        padding: 40px 4vw;
      }
}

@media (max-width: 768px) {
  .portfolio-grid-6x6 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile for larger images */
        gap: 16px;
        padding: 30px 4vw;
      }
}

@media (max-width: 480px) {
  .portfolio-grid-6x6 {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns on small mobile */
        gap: 12px;
      }
}

.section-header :is(h1, h2) {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Work Section
   -------------------------------------------------------------------------- */
.work {
  padding: var(--section-padding) 5vw;
  background: var(--bg-warm);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  position: relative; /* For absolute positioned breadcrumbs */
}

.work-card:hover {
  border-color: rgba(201, 166, 107, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.work-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.work-card--large .work-card-image img {
  height: 400px;
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.work-card-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Override reveal class for service cards */
.service-card.reveal {
  opacity: 0;
  transform: translateX(-60px) translateY(20px) scale(0.96);
}

.service-card.slide-in:hover {
  border-color: rgba(201, 166, 107, 0.2);
  transform: translateX(0) translateY(-4px) scale(1);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-tags li {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image img {
  width: 100%;
  max-width: 400px;
  filter: contrast(1.05) saturate(0.85);
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 32px;
}

.clients-logos span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.clients-logos span:hover {
  opacity: 1;
  color: var(--gold);
}

.contact-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.contact-email:hover {
  opacity: 0.8;
}

/* Honeypot field - hidden from users but visible to bots */
.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-block;
  cursor: default;
}

/* Letter bounce effect on hover - like kids' TV show logos */
/* Magnetic mouse effect - letters react to cursor position */
.form-group label .letter {
  display: inline-block;
  will-change: transform;
  transform: translate(0, 0);
  /* Transition removed for magnetic effect - JS controls transform directly */
  /* Hover animation removed - magnetic effect replaces it */
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 166, 107, 0.2);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.form-group select {
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  pointer-events: auto;
  position: static;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.form-status.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-status.error {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Form Privacy Note */
.form-privacy-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

.form-privacy-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.form-privacy-note a:hover {
  color: var(--gold-light);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  order: 1; /* Place brand first */
}

.footer-brand .logo-mark {
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-brand-text .footer-tagline-desktop-inline {
  color: var(--text-dim); /* Gray text */
  position: relative;
}

.footer-brand-text .footer-tagline-mobile {
  color: var(--text-dim); /* Gray text */
}

/* Golden outline animation for "Opening new experiences" near AM box - follows each letter */
.footer-tagline-mobile .letter,
.footer-tagline-desktop-inline .letter {
  display: inline-block;
  position: relative;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .footer-tagline-desktop-inline,
      .footer-brand-text .footer-tagline-desktop-inline {
        display: none;
      }
}

.footer-nav {
  display: flex;
  gap: 32px;
  position: static; /* Changed from absolute to static for column layout */
  order: 2; /* Place nav after brand */
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 24px;
  align-items: center;
  order: 3; /* Place social last */
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.footer-social .social-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.social-x .icon-x {
  filter: brightness(0) invert(1); /* Pure white */
  opacity: 0.7;
}

.social-x:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.social-x:hover .icon-x {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1); /* Stay white on hover */
}

.social-threads .icon-threads {
  filter: brightness(0) invert(0.85); /* Slightly off-white, charcoal tone */
  opacity: 0.8;
}

.social-threads:hover {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(15, 15, 15, 0.7) 100%);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.social-threads:hover .icon-threads {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1); /* Brighter on hover */
}

.social-telegram .icon-telegram {
  filter: brightness(0) invert(1); /* Pure white */
  opacity: 0.7;
}

.social-telegram:hover {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(15, 15, 15, 0.7) 100%);
  border-color: rgba(34, 158, 217, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3), 0 0 20px rgba(34, 158, 217, 0.15);
}

.social-telegram:hover .icon-telegram {
  opacity: 1;
  transform: scale(1.1);
  filter: brightness(0) invert(1); /* Stay white on hover */
}

.footer-bottom p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0;
}

.footer-bottom p:first-child {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-bottom p:last-child {
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Reveal Animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* Enhanced smooth transitions with cubic-bezier easing for natural motion */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform; /* Optimize for animations */
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero {
        gap: 60px;
      }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nav > .logo {
        position: fixed;
        top: 20px;
        left: 4vw;
        z-index: 101;
      }
      /* Hide desktop CTA and Portfolio button on tablet */
      
    
  .nav-cta,
      .nav-portfolio {
        display: none;
      }
      /* Tablet menu - completely revamped */
      
    
  .nav #primary-nav {
        display: block !important;
        position: relative;
      }
  .nav #primary-nav ul {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        min-width: 200px;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: column;
        gap: 32px; /* Equal spacing between all links */
        padding: 0;
        margin: 0;
        align-items: center;
        justify-content: center;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 101;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        list-style: none;
      }
  .nav #primary-nav ul[aria-hidden="false"],
      .nav #primary-nav[aria-hidden="false"] ul {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
      }
  .nav #primary-nav ul li {
        display: block !important;
        width: auto;
        margin: 0;
        padding: 0;
        border: none !important;
        background: transparent !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
      }
  .nav #primary-nav ul a {
        display: block !important;
        padding: 14px 28px;
        font-size: 1.15rem;
        font-weight: 500;
        line-height: 1.5;
        min-height: 48px;
        color: rgba(255, 255, 255, 0.95) !important;
        text-decoration: none;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        transition: color 0.3s ease;
        position: relative;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto;
        box-sizing: border-box;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        outline: none;
        -webkit-user-select: none;
        user-select: none;
      }
  .nav #primary-nav ul a:hover,
      .nav #primary-nav ul a:focus,
      .nav #primary-nav ul a:active {
        color: rgba(255, 255, 255, 0.75) !important; /* Improved from 0.6 for WCAG AA compliance */
        background: transparent !important;
        outline: none;
        -webkit-tap-highlight-color: transparent;
      }
  .nav #primary-nav ul a:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 6px;
        border-radius: 2px;
      }
      /* Tablet CTA Button - positioned at bottom of menu */
      
    
  .nav #primary-nav .nav-cta-mobile {
        position: fixed;
        bottom: 40px; /* Lower position for Contact button */
        left: 50%;
        transform: translateX(-50%);
        background: var(--gold);
        color: var(--bg);
        border: 1px solid var(--gold);
        border-radius: var(--radius-md);
        padding: 14px 32px;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 160px;
        transition: all 0.3s ease;
        z-index: 102;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }
  .nav #primary-nav[aria-hidden="false"] .nav-cta-mobile {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
      }
  .nav #primary-nav .nav-cta-mobile:hover,
      .nav #primary-nav .nav-cta-mobile:focus {
        background: var(--gold-light);
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 
          0 0 20px rgba(201, 166, 107, 0.6),
          0 0 40px rgba(201, 166, 107, 0.4),
          0 0 60px rgba(201, 166, 107, 0.2),
          0 8px 24px rgba(201, 166, 107, 0.4);
        color: var(--bg);
        outline: none;
      }
  .nav #primary-nav .nav-cta-mobile:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 4px;
      }
  .hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
        padding: 120px 4vw var(--section-padding);
      }
  .image-frame img {
        height: 400px;
      }
      /* Hero Carousel - Tablet */
      
    
  .hero-carousel {
        min-height: 500px;
        gap: 14px;
      }
  .carousel-window {
        height: 500px;
        max-width: 100%;
      }
  .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
      }
  .carousel-slide .image-frame img {
        height: 100%;
      }
  .carousel-slide .image-caption {
        margin-top: 18px;
        font-size: 0.8rem;
      }
  .work-card-image img,
      .work-card--large .work-card-image img {
        height: 280px;
      }
      /* Footer adjustments */
      
    
  .footer-content {
        flex-wrap: wrap;
        gap: 24px;
      }
  .footer-nav {
        gap: 24px;
      }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero {
        padding: 110px 4vw var(--section-padding);
        gap: 40px;
      }
  .image-frame img {
        height: 350px;
      }
  .work-card-image img {
        height: 260px;
      }
}

@media (max-width: 768px) {
  html,
      body {
        overflow-x: hidden;
        overflow-x: clip; /* no nested scroll box (see note at end) */
        width: 100%;
        max-width: 100%;
        position: relative;
      }
  * {
        max-width: 100%;
      }
  .nav {
        padding: 16px 4vw;
        position: relative;
        justify-content: space-between;
        align-items: center;
        overflow-x: hidden;
        overflow-x: clip; /* no nested scroll box (see note at end) */
        width: 100%;
        max-width: 100%;
      }
      /* Position logo to align with burger menu button */
      
    
  .nav > .logo {
        position: fixed;
        top: 16px;
        left: 4vw;
        z-index: 101;
      }
      /* Move burger menu to top right */
      
    
  .mobile-menu-toggle {
        display: flex;
        order: 3; /* Move to end (right side) */
        position: fixed;
        top: 16px;
        right: 4vw;
        z-index: 102;
      }
      /* Hide desktop CTA and Portfolio button on mobile, but keep nav structure */
      
    
  .nav-cta,
      .nav-portfolio {
        display: none;
      }
      /* Mobile menu - completely revamped from scratch */
      
    
  .nav #primary-nav {
        display: block !important;
        position: relative;
      }
  .nav #primary-nav ul {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        min-width: 200px;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        flex-direction: column;
        gap: 32px; /* Equal spacing between all links */
        padding: 0;
        margin: 0;
        align-items: center;
        justify-content: center;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 101;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible;
        display: flex !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        list-style: none;
      }
  .nav #primary-nav ul[aria-hidden="false"],
      .nav #primary-nav[aria-hidden="false"] ul {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
      }
  .nav #primary-nav ul[aria-hidden="false"] ~ *,
      .nav #primary-nav[aria-hidden="false"] ~ *,
      .nav:has(#primary-nav[aria-hidden="false"])::after {
        opacity: 1;
        pointer-events: all;
      }
  .nav #primary-nav ul li {
        display: block !important;
        width: auto;
        margin: 0;
        padding: 0;
        border: none !important;
        background: transparent !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        list-style: none;
      }
  .nav #primary-nav ul a {
        display: block !important;
        padding: 14px 28px;
        font-size: 1.15rem;
        font-weight: 500;
        line-height: 1.5;
        min-height: 48px;
        color: rgba(255, 255, 255, 0.95) !important;
        text-decoration: none;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        transition: color 0.3s ease;
        position: relative;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto;
        box-sizing: border-box;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        outline: none;
        -webkit-user-select: none;
        user-select: none;
      }
  .nav #primary-nav ul a:hover,
      .nav #primary-nav ul a:focus,
      .nav #primary-nav ul a:active {
        color: rgba(255, 255, 255, 0.75) !important; /* Improved from 0.6 for WCAG AA compliance */
        background: transparent !important;
        outline: none;
        -webkit-tap-highlight-color: transparent;
      }
  .nav #primary-nav ul a:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 6px;
        border-radius: 2px;
      }
      /* Mobile/Tablet CTA Button - positioned at bottom of menu */
      
    
  .nav #primary-nav .nav-cta-mobile {
        position: fixed;
        bottom: 40px; /* Lower position for Contact button */
        left: 50%;
        transform: translateX(-50%);
        background: var(--gold);
        color: var(--bg);
        border: 1px solid var(--gold);
        border-radius: var(--radius-md);
        padding: 14px 32px;
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 160px;
        transition: all 0.3s ease;
        z-index: 102;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      }
  .nav #primary-nav[aria-hidden="false"] .nav-cta-mobile {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
      }
  .nav #primary-nav .nav-cta-mobile:hover,
      .nav #primary-nav .nav-cta-mobile:focus {
        background: var(--gold-light);
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 
          0 0 20px rgba(201, 166, 107, 0.6),
          0 0 40px rgba(201, 166, 107, 0.4),
          0 0 60px rgba(201, 166, 107, 0.2),
          0 8px 24px rgba(201, 166, 107, 0.4);
        color: var(--bg);
        outline: none;
      }
  .nav #primary-nav .nav-cta-mobile:focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 4px;
      }
      
      /* Mobile menu overlay */
      
    
  .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5); /* Lighter background - reduced from 0.7 to 0.5 */
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
      }
  .nav-overlay[aria-hidden="false"] {
        opacity: 1;
        visibility: visible;
      }
  .nav-cta {
        display: none;
      }
  .logo.logo-text-expanded .logo-name-first {
        transform: translateX(-39px) scale(1);
        max-width: 110px;
        font-size: 1.1rem; /* Ensure font size is applied */
        margin-right: -20px; /* Increased negative margin to reduce gap */
      }
  .logo.logo-text-expanded .logo-name-last {
        transform: translateX(39px) scale(1);
        max-width: 110px;
        font-size: 1.1rem; /* Ensure font size is applied */
        margin-left: -20px; /* Increased negative margin to reduce gap */
      }
      
      /* Remove conflicting mobile rules - use the ones defined earlier in the media query */
      
      
    
  .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
      }
      /* Hero Section - Mobile ONLY */
      
    
  .hero {
        padding: 70px 4vw var(--section-padding);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
      }
  .hero-content {
        max-width: 100%;
        width: 100%;
        padding: 0;
      }
  .hero-title {
        font-size: clamp(1.6rem, 7vw, 1.9rem);
        margin-bottom: 16px;
        line-height: 1.2;
      }
  .hero-lead {
        font-size: 0.85rem;
        margin-bottom: 20px;
        max-width: 100%;
        line-height: 1.5;
        padding: 0;
      }
  .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
        width: 100%;
        align-items: center;
      }
  .btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.8rem;
      }
  .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 0;
        width: 100%;
      }
  .stat {
        min-width: 70px;
      }
  .stat-number {
        font-size: 1.4rem;
      }
  .stat-label {
        font-size: 0.6rem;
      }
  .hero-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
      }
      /* Hero Carousel - Mobile ONLY - Fit like before carousel */
      
    
  .hero-carousel {
        min-height: auto;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        position: relative;
        box-sizing: border-box;
      }
  .carousel-window {
        height: 280px;
        max-width: 100%;
        width: 100%;
        flex: 1;
        min-width: 0;
      }
  .carousel-btn {
        position: absolute;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        z-index: 10;
        padding: 0;
        background: rgba(15, 15, 15, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(201, 166, 107, 0.3);
      }
  .carousel-btn.prev {
        left: 8px;
      }
  .carousel-btn.next {
        right: 8px;
      }
  .carousel-slide .image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
  .carousel-slide .image-caption {
        margin-top: 10px;
        font-size: 0.65rem;
      }
  .carousel-dots {
        margin-top: 12px;
        gap: 6px;
      }
  .carousel-dots button {
        width: 6px;
        height: 6px;
      }
  .image-frame img {
        height: auto;
      }
      /* Work Section */
      
    
  .work {
        padding: var(--section-padding) 4vw;
      }
  .work-card-image img,
      .work-card--large .work-card-image img {
        height: 240px;
      }
  .work-card-info h3 {
        font-size: 1.2rem;
      }
      /* Quote Section */
      /* Picture of the Week - Tablet */
      
    
  .picture-of-week {
        padding: var(--section-padding) 4vw;
      }
  .potw-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
      }
  .potw-image .image-frame img {
        height: 500px;
      }
      /* Landscape - natural aspect ratio on tablet */
      
    
  .potw-image .image-frame.potw-landscape img {
        max-height: 700px;
      }
      /* Portrait - maintain aspect ratio on tablet */
      
    
  .potw-image .image-frame.potw-portrait img {
        max-height: 600px;
      }
  .potw-caption {
        align-items: center;
      }
  .potw-caption h3 {
        text-align: center;
      }
  .potw-caption p {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
      }
  .potw-badge {
        padding: 12px 20px;
        border-radius: var(--radius-md);
      }
  .about-content h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
      }
  .contact-content h2 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
      }
  .contact-lead {
        max-width: 100%;
        margin-bottom: 32px;
      }
  .form-group input,
      .form-group select,
      .form-group textarea {
        padding: 12px 14px;
        font-size: 1rem;
      }
  .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
      }
  .footer-brand {
        flex-direction: column;
        gap: 16px;
      }
  .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        position: static;
        left: auto;
        transform: none;
      }
  .footer-social {
        justify-content: center;
        gap: 20px;
      }
  .section-header :is(h1, h2) {
        font-size: clamp(2rem, 4vw, 3rem); /* Match desktop size */
      }
}

@media (max-width: 480px) {
  .nav {
        padding: 14px 4vw;
      }
  .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
      }
      /* Hero Section - Small Mobile ONLY */
      
    
  .hero {
        padding: 60px 4vw var(--section-padding);
        gap: 20px;
        min-height: auto;
      }
  .hero-content {
        order: 1;
        width: 100%;
        max-width: 100%;
      }
  .hero-title {
        font-size: clamp(1.5rem, 7vw, 1.8rem);
        margin-bottom: 14px;
        line-height: 1.2;
      }
  .hero-lead {
        font-size: 0.8rem;
        margin-bottom: 18px;
        line-height: 1.5;
        padding: 0;
      }
  .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
        align-items: center;
      }
  .btn {
        width: 100%;
        max-width: 240px;
        justify-content: center;
        padding: 12px 18px;
        font-size: 0.75rem;
      }
  .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        margin-bottom: 0;
        width: 100%;
      }
  .stat {
        min-width: 65px;
      }
  .stat-number {
        font-size: 1.3rem;
      }
  .stat-label {
        font-size: 0.55rem;
      }
  .hero-image {
        order: 2;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
      }
  .image-frame img {
        height: auto;
      }
      /* Hero Carousel - Small Mobile - Fit like before */
      
    
  .hero-carousel {
        min-height: auto;
        gap: 0;
        width: 100%;
        max-width: 100%;
        padding: 0;
        position: relative;
        box-sizing: border-box;
      }
  .carousel-window {
        height: 250px;
        max-width: 100%;
        width: 100%;
        flex: 1;
        min-width: 0;
      }
  .carousel-btn {
        position: absolute;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        z-index: 10;
        padding: 0;
        background: rgba(15, 15, 15, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(201, 166, 107, 0.3);
      }
  .carousel-btn.prev {
        left: 6px;
      }
  .carousel-btn.next {
        right: 6px;
      }
  .carousel-slide {
        width: 100%;
      }
  .carousel-slide .image-frame {
        width: 100%;
        height: 100%;
      }
  .carousel-slide .image-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
  .carousel-slide .image-caption {
        margin-top: 8px;
        font-size: 0.6rem;
      }
  .carousel-dots {
        margin-top: 10px;
        gap: 5px;
      }
  .carousel-dots button {
        width: 5px;
        height: 5px;
      }
      /* Work Section */
      
    
  .work-card-image img,
      .work-card--large .work-card-image img {
        height: 200px;
      }
  .work-card-info h3 {
        font-size: 1.1rem;
      }
  .work-card-info p {
        font-size: 0.85rem;
      }
  .service-card h3 {
        font-size: 1.1rem;
      }
  .service-card p {
        font-size: 0.85rem;
      }
      /* Quote */
      /* Picture of the Week - Mobile */
      
    
  .picture-of-week {
        padding: var(--section-padding) 4vw;
      }
  .potw-header {
        margin-bottom: 40px;
      }
  .potw-badge {
        font-size: 0.7rem;
        padding: 12px 20px;
        border-radius: var(--radius-md);
      }
  .potw-badge-wrapper {
        padding: 15px;
      }
  .letter-float {
        font-size: 0.85rem;
        opacity: 0.5;
      }
  .potw-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
      }
  .potw-image .image-frame img {
        height: 400px;
      }
      /* Landscape - natural aspect ratio on mobile */
      
    
  .potw-image .image-frame.potw-landscape img {
        max-height: 500px;
      }
      /* Portrait - maintain aspect ratio on mobile */
      
    
  .potw-image .image-frame.potw-portrait img {
        max-height: 500px;
      }
  .potw-caption {
        align-items: center;
        gap: 16px;
      }
  .potw-caption h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        text-align: center;
      }
  .potw-caption p {
        font-size: 1rem;
        text-align: center;
      }
  .potw-location {
        font-size: 0.85rem;
        justify-content: center;
      }
      /* Form */
      
    
  .form-group label {
        font-size: 0.7rem;
      }
  .form-group input,
      .form-group select,
      .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
      }
  .footer-content {
        gap: 20px;
      }
  .footer-brand p {
        font-size: 0.8rem;
      }
  .footer-nav {
        gap: 12px;
      }
  .footer-nav a {
        font-size: 0.8rem;
      }
  .footer-social {
        gap: 16px;
      }
  .footer-social a {
        font-size: 0.75rem;
      }
  .clients-logos span {
        font-size: 0.85rem;
      }
  .section-header :is(h1, h2) {
        font-size: 1.8rem;
      }
}

/* =============================================================================
   Lightbox - fullscreen image viewer (portfolio page)
   The image fills 100% of the screen height (or width, whichever hits first).
   ============================================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  display: block;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh; /* mobile: ignore the browser toolbar */
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-close { top: 16px; right: 16px; font-size: 1.8rem; }

.lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); }

.lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0;
  pointer-events: none;
}

.lightbox-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-close,
      .lightbox-prev,
      .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
      }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-prev  { left: 10px; }
  .lightbox-next  { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax { transform: none !important; }
}

#main-content:focus { outline: none; }

@media (max-width: 1024px) {
    /* =============================================================================
       Mobile / tablet menu - frosted glass, matching the desktop nav bar
       (was a flat 50% transparent overlay, links were hard to read)
       ============================================================================= */
      /* frosted backdrop: page stays visible but blurred */
      
    
  .nav-overlay,
      .nav::after {
        /* light frost - page stays recognisable; raise blur() for a stronger effect */
        background: rgba(10, 10, 10, 0.5);
        backdrop-filter: blur(6px) saturate(140%);
        -webkit-backdrop-filter: blur(6px) saturate(140%);
      }
      /* links sit on a clean panel; the blur is only outside it (on the backdrop) */
      
    
  .nav #primary-nav ul {
        padding: 28px 44px !important;
        background: rgba(15, 15, 15, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: var(--radius-lg) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
        /* centre on whole pixels (translate(-50%,-50%) can land on half pixels = soft text) */
        inset: 0 !important;
        margin: auto !important;
        width: fit-content !important;
        height: fit-content !important;
        transform: none !important;
      }
}

@media (min-width: 1025px) {
    /* =============================================================================
       Desktop nav layout (>= 1025px) - replaces the fixed pixel margins above
       (margin-left: 195px / margin-right: 300px / -250px), which only lined up
       around 1440px and overlapped or pushed "Let's Talk" off-screen on
       iPad Pro and 1280-1366px laptops.
       Logo | links + Portfolio | Let's Talk - free space is shared automatically.
       ============================================================================= */
    
  .nav nav {
        flex: 0 1 auto;
        margin: 0 0 0 auto;
      }
  .nav-portfolio {
        margin: 0 0 0 12px;
      }
  .nav-cta {
        margin-left: auto;
      }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .nav ul a {
        padding-left: 12px;
        padding-right: 12px;
      }
}

@media (min-width: 1025px) {
    /* Hero: both columns share the width (1fr alone lets the carousel squeeze the text) */
    
  .hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .hero { gap: 48px; }
  .hero .btn { white-space: nowrap; }
}

/* "You are here": the separate desktop Portfolio button uses the same gold as nav links */
.nav-portfolio.active,
.nav #primary-nav ul a.active {
  color: var(--gold) !important;
}

@media (max-width: 1024px) {
    /* Note: "overflow-x: hidden" + "overflow-y: visible" silently becomes
       overflow-y: auto, turning elements into nested scroll boxes that trap the
       mouse wheel/trackpad ("dead stop" while scrolling the About page).
       "overflow-x: clip" (after each hidden) clips without creating a scroll box;
       older browsers ignore it and keep "hidden". */

    /* Mobile/tablet menu open: lock the page behind it (the window scrolls, so lock <html>) */
    
  html:has(#primary-nav[aria-hidden="false"]) {
        overflow: hidden !important;
      }
  .logo-name-first,
      .logo-name-last {
        opacity: 1;
        transform: none;
        max-width: none;
        font-size: 1rem;
      }
  .logo-mark {
        width: 36px;
        height: 36px;
      }
  .logo.logo-collapsing .logo-name-first {
        transform: translateX(28px) scale(0.5);
        opacity: 0;
      }
  .logo.logo-collapsing .logo-name-last {
        transform: translateX(-28px) scale(0.5);
        opacity: 0;
      }
  .logo.logo-collapsing .logo-mark {
        background: var(--gold);
        color: var(--bg);
        box-shadow: 0 0 20px rgba(201, 166, 107, 0.6),
                    0 0 40px rgba(201, 166, 107, 0.4);
      }
}

/* Lightbox open: lock the page behind it (the window scrolls, so lock <html>),
   and keep touch gestures inside the viewer from scrolling the page */
html.lightbox-open {
  overflow: hidden !important;
}

.lightbox {
  overscroll-behavior: contain;
  touch-action: none;
}
