/*
Theme Name: Scriptless Photography
Theme URI: https://scriptless.nl
Author: Scriptless
Author URI: https://scriptless.nl
Description: Een modern, cinematisch fotografie portfolio WordPress block theme. Gebouwd met Full Site Editing, de Interactivity API, en custom blocks.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scriptless
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-fonts, photography, portfolio
*/

/* ========================================================================
   Base — supplements theme.json (only styles that theme.json cannot express)
   ======================================================================== */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================
   Color Mode — custom properties for values theme.json cannot express
   ======================================================================== */

:root {
  --scriptless-surface-glass: rgba(250, 250, 250, 0.8);
  --scriptless-surface-overlay: rgba(250, 250, 250, 0.95);
  --scriptless-surface-subtle: rgba(243, 243, 246, 0.5);
  --scriptless-surface-footer: rgba(243, 243, 246, 0.3);
  --scriptless-primary-tint: rgba(91, 33, 182, 0.1);
  --scriptless-primary-gradient: linear-gradient(135deg, #7C3AED, #5B21B6);
  --scriptless-decorative-border: rgba(91, 33, 182, 0.3);
  --scriptless-glow: rgba(91, 33, 182, 0.12);

  /* Responsive spacing + gutter — local to style.css so editor-facing
     theme.json presets stay predictable. */
  --scriptless-section-py: clamp(3.5rem, 8vw, 8rem);
  --scriptless-gutter: var(--wp--preset--spacing--50);
}

@media (max-width: 479px) {
  :root { --scriptless-gutter: 1rem; }
}

@media (prefers-color-scheme: dark) {
  body {
    --wp--preset--color--background: #0F0F13;
    --wp--preset--color--foreground: #EBEBF0;
    --wp--preset--color--card: #1A1A21;
    --wp--preset--color--muted: #232329;
    --wp--preset--color--muted-foreground: #9898A3;
    --wp--preset--color--border: #2C2C36;
    --wp--preset--color--primary: #8B5CF6;
    --wp--preset--color--primary-light: #A78BFA;
    --wp--preset--color--primary-dark: #7C3AED;
    --wp--preset--color--destructive: #EF4444;
  }
  :root {
    --scriptless-surface-glass: rgba(15, 15, 19, 0.85);
    --scriptless-surface-overlay: rgba(15, 15, 19, 0.95);
    --scriptless-surface-subtle: rgba(26, 26, 33, 0.5);
    --scriptless-surface-footer: rgba(26, 26, 33, 0.3);
    --scriptless-primary-tint: rgba(139, 92, 246, 0.15);
    --scriptless-primary-gradient: linear-gradient(135deg, #A78BFA, #8B5CF6);
    --scriptless-decorative-border: rgba(139, 92, 246, 0.3);
    --scriptless-glow: rgba(139, 92, 246, 0.18);
  }
}

/* ========================================================================
   WordPress wrapper resets — prevent WP defaults from breaking layout
   ======================================================================== */

/* Template-part wrappers must be invisible */
.wp-block-template-part {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Root padding-aware alignments adds padding to .wp-site-blocks — strip it */
.wp-site-blocks {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.wp-site-blocks > header,
.wp-site-blocks > .wp-block-template-part {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* WP block-gap between template parts — eliminate */
.wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* WP may add a body background behind the fixed header */
body {
  background: var(--wp--preset--color--background);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--wp--preset--color--muted);
}
::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--primary);
  border-radius: 2px;
}

/* ========================================================================
   Scroll Reveal Animations
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ========================================================================
   Marquee Animation
   ======================================================================== */

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

.marquee-track {
  animation: marquee 20s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* ========================================================================
   Navigation
   ======================================================================== */

.nav-link {
  position: relative;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--wp--preset--color--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========================================================================
   Hero
   ======================================================================== */

/* --- Slides container --- */
.hero-slides-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* --- Individual slides --- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
/* Ken Burns — slow zoom over slide duration.
   Default state is scale(1.08) so outgoing slides hold their
   zoom level while fading out instead of snapping back to scale(1). */
@keyframes ken-burns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-slide img {
  opacity: 0.5;
  transform: scale(1.08);
}
.hero-slide.is-active img {
  animation: ken-burns var(--slide-duration, 5000ms) ease-out forwards;
}

/* --- Slide indicators --- */
.hero-slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}
.hero-indicator {
  width: 2.5rem;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  transition: background 0.3s ease;
}
.hero-indicator:hover {
  background: rgba(255,255,255,0.4);
}
.hero-indicator-fill {
  position: absolute;
  inset: 0;
  background: var(--wp--preset--color--primary);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}
.hero-indicator.is-active .hero-indicator-fill {
  animation: indicator-fill var(--slide-duration, 5000ms) linear forwards;
}
@keyframes indicator-fill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* --- Legacy single-image fallback --- */
.hero-parallax-bg {
  will-change: transform;
}

.text-clip-image {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: var(--scriptless-primary-gradient);
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.scroll-indicator-line {
  animation: pulse-line 2s ease-in-out infinite;
}

/* ========================================================================
   Gallery
   ======================================================================== */

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: var(--wp--custom--border-radius--lg);
  background: var(--wp--preset--color--card);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Blur-up: images start invisible, fade in when loaded */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item img.is-loaded {
  opacity: 1;
}
.gallery-item:hover img {
  transform: scale(1.07);
}

/* Filter animation states */
.gallery-item.is-fading {
  opacity: 0;
  transform: scale(0.95);
}
.gallery-item.is-hidden {
  display: none;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1.25rem;
  z-index: 10;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item:hover .gallery-info {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery masonry grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
  }
}
.gallery-grid .span-col-2 { grid-column: span 2; }
.gallery-grid .span-row-2 { grid-row: span 2; }
@media (max-width: 767px) {
  .gallery-grid .span-row-2 { grid-row: span 1; }
}

/* Mobile: always show overlay info (no hover on touch) */
@media (max-width: 767px) {
  .gallery-item .gallery-overlay { opacity: 1; }
  .gallery-item .gallery-info { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   Lightbox
   ======================================================================== */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--scriptless-surface-overlay);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-backdrop[hidden] {
  display: none;
  opacity: 0;
}
.lightbox-backdrop.is-open {
  opacity: 1;
}

.lightbox-backdrop img {
  max-width: calc(100% - 4rem);
  max-height: 80vh;
  object-fit: contain;
  transform: scale(0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: zoom-in;
}
.lightbox-backdrop.is-open img {
  transform: scale(1);
  opacity: 1;
}
.lightbox-backdrop img.is-transitioning {
  opacity: 0.3;
  transform: scale(0.98);
}
.lightbox-backdrop img.is-zoomed {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  cursor: zoom-out;
  transform: scale(1);
}

/* Image counter */
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--muted-foreground);
  font-family: var(--wp--preset--font-family--body);
  user-select: none;
}

.lightbox-btn {
  position: absolute;
  background: none;
  border: none;
  color: var(--wp--preset--color--foreground);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 0.75rem;
  z-index: 1;
}
.lightbox-btn:hover {
  color: var(--wp--preset--color--primary);
  transform: scale(1.1);
}
.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}
.lightbox-close:hover {
  transform: rotate(90deg) scale(1.1);
}
.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover {
  transform: translateY(-50%) translateX(-2px) scale(1.1);
}
.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next:hover {
  transform: translateY(-50%) translateX(2px) scale(1.1);
}

/* Mobile lightbox: larger touch targets, bottom nav */
@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 2rem;
    transform: none;
    padding: 1rem;
  }
  .lightbox-prev { left: 2rem; }
  .lightbox-next { right: 2rem; }
  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: none;
  }
  .lightbox-counter {
    bottom: 3.5rem;
  }
  .lightbox-backdrop img {
    max-width: calc(100% - 2rem);
    max-height: 70vh;
  }
}
/* Short landscape phones: give bottom nav breathing room */
@media (max-width: 767px) and (orientation: landscape) {
  .lightbox-backdrop img { max-height: 60vh; }
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item img,
  .gallery-item .gallery-overlay,
  .gallery-item .gallery-info,
  .lightbox-backdrop,
  .lightbox-backdrop img,
  .lightbox-btn {
    transition: none !important;
  }
  .gallery-item img { opacity: 1; }
  .lightbox-backdrop.is-open,
  .lightbox-backdrop.is-open img { opacity: 1; transform: none; }
}

/* ========================================================================
   Chip Buttons (shared base for filter & session-type)
   ======================================================================== */

.chip-btn {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--wp--preset--color--border);
  background: transparent;
  color: var(--wp--preset--color--muted-foreground);
  cursor: pointer;
  transition: all 0.3s ease;
}
.chip-btn:hover {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--foreground);
}
.chip-btn.is-active {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  border-color: var(--wp--preset--color--primary);
}

.filter-btn {
  padding: 0.5rem 1rem;
}

/* ========================================================================
   Services Grid
   ======================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--wp--preset--color--border);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--wp--preset--color--background);
  padding: 2rem;
  transition: background-color 0.5s ease;
}
.service-card:hover {
  background: var(--wp--preset--color--card);
}
.service-card .service-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  border-color: var(--wp--preset--color--primary);
  background: var(--scriptless-primary-tint);
}
.service-card:hover .service-icon svg {
  color: var(--wp--preset--color--primary);
}
.service-card:hover .service-title {
  color: var(--wp--preset--color--primary);
}

/* ========================================================================
   Contact Form
   ======================================================================== */

.scriptless-form input,
.scriptless-form textarea {
  background: var(--wp--preset--color--card);
  border: 1px solid var(--wp--preset--color--border);
  padding: 0.875rem 1rem;
  color: var(--wp--preset--color--foreground);
  font-size: 0.875rem;
  font-family: var(--wp--preset--font-family--body);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}
.scriptless-form input::placeholder,
.scriptless-form textarea::placeholder {
  color: var(--wp--preset--color--muted-foreground);
}
.scriptless-form input:focus,
.scriptless-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
}
.scriptless-form textarea {
  resize: none;
}

.session-type-btn {
  padding: 0.375rem 0.75rem;
}

.contact-submit {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--body);
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.contact-submit:hover {
  background: var(--wp--preset--color--primary-dark);
}

/* ========================================================================
   Contact Info Items
   ======================================================================== */

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--wp--preset--color--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.contact-info-item:hover .contact-info-icon {
  border-color: var(--wp--preset--color--primary);
  background: var(--scriptless-primary-tint);
}
.contact-info-item:hover .contact-info-icon svg {
  color: var(--wp--preset--color--primary);
}

/* ========================================================================
   Noise Texture Overlay
   ======================================================================== */

.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
}

/* ========================================================================
   Utility & DRY classes
   ======================================================================== */

.tracking-widest {
  letter-spacing: 0.1em;
}
.uppercase {
  text-transform: uppercase;
}
.leading-none {
  line-height: 1.1;
}
.leading-relaxed {
  line-height: 1.65;
}

/* Layout */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
}
.section-padding {
  padding: var(--scriptless-section-py) var(--scriptless-gutter);
  position: relative;
}
/* Vertical-only variant for template <main>s — horizontal padding
   comes from WP's root padding-aware alignments (spacing--50). */
.section-padding-block {
  padding-block: var(--scriptless-section-py);
}

/* Responsive heading row used by section blocks that previously hardcoded
   large bottom margins inline. */
.section-heading-row {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.portfolio-filters {
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

/* Typography */
.section-heading {
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
.section-heading-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
}
.section-heading-lg {
  font-size: clamp(2rem, 5vw, 4rem);
}
.text-muted {
  color: var(--wp--preset--color--muted-foreground);
}
.text-body-muted {
  color: var(--wp--preset--color--muted-foreground);
  line-height: 1.65;
  margin: 0;
}
.text-label-muted {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn-primary:hover {
  background: var(--wp--preset--color--primary-dark);
}

/* Surfaces */
.surface-subtle {
  background: var(--scriptless-surface-subtle);
}

/* Image utility */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive grids — moved from inline <style> tags */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

/* Footer */
.scriptless-footer {
  border-top: 1px solid var(--wp--preset--color--border);
  padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
  background: var(--scriptless-surface-footer);
}
.scriptless-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .scriptless-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-brand-logo {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.footer-brand-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--wp--preset--color--foreground);
  margin: 0;
}
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.footer-nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-nav-link:hover {
  color: var(--wp--preset--color--foreground);
}
.footer-copyright {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0;
}

/* Hero */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #111;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--scriptless-gutter) 3rem;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .hero-content { padding-bottom: 4rem; }
}
.hero-heading-line {
  display: block;
  font-size: clamp(2.25rem, 9vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Marquee */
.marquee-strip {
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding: 0.75rem 0;
  background: var(--wp--preset--color--card);
  overflow: hidden;
}
@media (min-width: 768px) {
  .marquee-strip { padding: 1.25rem 0; }
}
.marquee-word {
  padding: 0 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .marquee-word { padding: 0 1.5rem; }
}
.marquee-dot {
  color: var(--wp--preset--color--primary);
}

/* Gallery info */
.gallery-title {
  font-weight: 500;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

/* Service card details */
.service-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
.service-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.service-card-footer a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}
.service-card-footer a:hover {
  color: var(--wp--preset--color--primary);
}

/* Contact info */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact-social-links {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.contact-social-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-social-link:hover {
  color: var(--wp--preset--color--primary);
}

/* Form */
.form-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
  display: block;
  margin-bottom: 0.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5rem;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Success state */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}
.success-state[hidden] { display: none; }
.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--scriptless-primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* Error state */
.form-error {
  color: var(--wp--preset--color--destructive);
  font-size: 0.875rem;
  margin: 0;
  display: none;
}
.form-error.is-visible {
  display: block;
}

/* ========================================================================
   Subtle Grid Pattern Background
   ======================================================================== */

.grid-pattern-bg {
  position: relative;
}
.grid-pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--wp--preset--color--muted) 1px, transparent 1px),
    linear-gradient(90deg, var(--wp--preset--color--muted) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========================================================================
   Section Label Pattern
   ======================================================================== */

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--body);
  margin-bottom: 1rem;
}


/* ========================================================================
   Decorative Border Accent
   ======================================================================== */

.decorative-border {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 6rem;
  height: 6rem;
  border: 1px solid var(--scriptless-decorative-border);
  pointer-events: none;
}
@media (max-width: 479px) {
  .decorative-border { display: none; }
}

/* ========================================================================
   Header / Navigation
   Two states: transparent (over hero) ↔ frosted glass (scrolled)
   ======================================================================== */

/* --- Base: transparent state (over dark hero) --- */
.scriptless-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease;
}

/* --- Scrolled: frosted glass --- */
.scriptless-header.is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: var(--scriptless-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--wp--preset--color--border);
}

/* --- No hero: pages without a dark hero start in the scrolled appearance --- */
.scriptless-header.no-hero {
  background: var(--scriptless-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--wp--preset--color--border);
}
.scriptless-header.no-hero .scriptless-brand-name {
  color: var(--wp--preset--color--foreground);
}
.scriptless-header.no-hero .scriptless-desktop-nav .nav-link {
  color: var(--wp--preset--color--muted-foreground);
}
.scriptless-header.no-hero .scriptless-desktop-nav .nav-link:hover {
  color: var(--wp--preset--color--foreground);
}
.scriptless-header.no-hero .scriptless-nav-cta {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}
.scriptless-header.no-hero .scriptless-nav-cta:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}
.scriptless-header.no-hero .mobile-menu-btn {
  color: var(--wp--preset--color--foreground);
}

/* --- Menu open: force solid header so the transparent hero state
       doesn't bleed through the mobile overlay. --- */
.scriptless-header.menu-open {
  background: var(--scriptless-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--wp--preset--color--border);
}
.scriptless-header.menu-open .scriptless-brand-name {
  color: var(--wp--preset--color--foreground);
}
.scriptless-header.menu-open .mobile-menu-btn {
  color: var(--wp--preset--color--foreground);
}

/* Inner container */
.scriptless-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--scriptless-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .scriptless-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .scriptless-brand         { grid-column: 1; }
  .scriptless-desktop-nav   { grid-column: 2; }
  .scriptless-cta-wrapper   { grid-column: 3; justify-self: end; }
}

/* --- Brand --- */
.scriptless-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.scriptless-brand-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.scriptless-brand:hover .scriptless-brand-logo {
  transform: scale(1.1);
}
.scriptless-brand-name {
  display: block;
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  font-size: clamp(0.95rem, 3vw, 1.125rem);
  letter-spacing: -0.02em;
  transition: color 0.5s ease;
  /* Default: white (over dark hero) */
  color: #fff;
}
.scriptless-brand-dot {
  color: var(--wp--preset--color--primary);
}
/* Scrolled: dark brand text */
.scriptless-header.is-scrolled .scriptless-brand-name {
  color: var(--wp--preset--color--foreground);
}

/* --- Desktop Nav --- */
.scriptless-desktop-nav {
  display: none !important;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .scriptless-desktop-nav { display: flex !important; }
}
.scriptless-desktop-nav .nav-link {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--body);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.5s ease;
  /* Default: white/semi-transparent (over dark hero) */
  color: rgba(255,255,255,0.8);
}
.scriptless-desktop-nav .nav-link:hover {
  color: #fff;
}
/* Scrolled: muted nav text */
.scriptless-header.is-scrolled .scriptless-desktop-nav .nav-link {
  color: var(--wp--preset--color--muted-foreground);
}
.scriptless-header.is-scrolled .scriptless-desktop-nav .nav-link:hover {
  color: var(--wp--preset--color--foreground);
}

/* --- CTA Button --- */
.scriptless-cta-wrapper {
  display: none !important;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .scriptless-cta-wrapper { display: flex !important; }
}
.scriptless-nav-cta {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--body);
  transition: all 0.5s ease;
  background: transparent;
  /* Default: white border + text (over dark hero) */
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}
.scriptless-nav-cta:hover {
  background: var(--wp--preset--color--primary);
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}
/* Scrolled: purple border + text */
.scriptless-header.is-scrolled .scriptless-nav-cta {
  border-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
}
.scriptless-header.is-scrolled .scriptless-nav-cta:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

/* --- Mobile toggle --- */
.scriptless-mobile-toggle {
  display: block;
}
@media (min-width: 768px) {
  .scriptless-mobile-toggle { display: none; }
}
.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.5s ease;
  /* Default: white (over dark hero) */
  color: #fff;
}
.scriptless-header.is-scrolled .mobile-menu-btn {
  color: var(--wp--preset--color--foreground);
}

/* --- Mobile Menu Overlay ---
   Explicit viewport height (iOS Safari can collapse fixed+flex children
   when body overflow:hidden is set). Content is flex-centered directly on
   the overlay; padding-top reserves space for the fixed header. */
.scriptless-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 40;
  background: var(--scriptless-surface-overlay);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 5rem var(--scriptless-gutter) 3rem;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.5s ease;
}
.scriptless-mobile-menu[hidden] {
  display: none;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.mobile-nav-link {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 300;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  line-height: 1.1;
  color: var(--wp--preset--color--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}
.mobile-nav-link:hover {
  color: var(--wp--preset--color--primary);
}

.mobile-nav-cta {
  margin-top: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary);
  text-decoration: none;
  font-family: var(--wp--preset--font-family--body);
  transition: all 0.3s ease;
  background: transparent;
}
.mobile-nav-cta:hover {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-foreground);
}

/* ========================================================================
   Reduced Motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .scroll-indicator-line {
    animation: none;
  }
  .hero-parallax-bg,
  .hero-slides-container {
    will-change: auto;
  }
  .hero-slide {
    transition: none;
  }
  .hero-slide.is-active img {
    animation: none;
  }
  .hero-indicator-fill {
    animation: none !important;
  }
  .hero-indicator.is-active .hero-indicator-fill {
    transform: scaleX(1);
  }
}

/* ========================================================================
   Gallery Overview (filterable archive)
   ======================================================================== */

.gallery-overview.section-padding {
  padding-top: var(--wp--preset--spacing--100);
  padding-bottom: var(--wp--preset--spacing--70);
}

.gallery-overview__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.gallery-overview__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.gallery-overview__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.gallery-overview__filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.gallery-overview__filter-group > .section-label {
  margin: 0;
}

.gallery-overview__select {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  padding: 0.55rem 2.5rem 0.55rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wp--preset--color--foreground);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.gallery-overview__select:hover,
.gallery-overview__select:focus-visible {
  border-color: var(--wp--preset--color--primary);
  outline: none;
}

.gallery-overview__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gallery-overview__search {
  position: relative;
  display: flex;
  align-items: center;
}
.gallery-overview__search-icon {
  position: absolute;
  left: 1rem;
  pointer-events: none;
  color: var(--wp--preset--color--muted-foreground);
}
.gallery-overview__search-input {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem 0.55rem 2.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--wp--preset--color--foreground);
  width: 14rem;
  max-width: 100%;
  transition: border-color 0.2s ease;
}
.gallery-overview__search-input::-webkit-search-cancel-button {
  cursor: pointer;
}
.gallery-overview__search-input:hover,
.gallery-overview__search-input:focus-visible {
  border-color: var(--wp--preset--color--primary);
  outline: none;
}
.gallery-overview__filter-group--search {
  flex: 0 0 auto;
}
@media (max-width: 479px) {
  .gallery-overview__filter-group--search { flex: 1 1 100%; }
  .gallery-overview__filter-group--search .gallery-overview__search,
  .gallery-overview__search-input { width: 100%; }
}
.gallery-overview__filter-group--tags {
  flex: 1 1 100%;
}

.gallery-overview__count {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted-foreground);
  margin: 0 0 1.25rem;
  min-height: 1em;
}

.gallery-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .gallery-overview__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1200px) {
  .gallery-overview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-overview__item {
  text-decoration: none;
  color: inherit;
  display: block;
  aspect-ratio: 3 / 4;
  position: relative;
}

/* Base gradient (for text readability) always visible; extra darkening layer fades in on hover */
.gallery-overview__item .gallery-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
}
.gallery-overview__item .gallery-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-overview__item:hover .gallery-overlay::after {
  opacity: 1;
}

/* Title + date always visible, fade upward on hover */
.gallery-overview__item .gallery-info {
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery-overview__item:hover .gallery-info {
  transform: translateY(-8px);
}

.gallery-overview__tag {
  margin: 0 0 0.4rem;
  color: var(--wp--preset--color--primary);
}

.gallery-overview__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    var(--wp--preset--color--card) 0%,
    var(--wp--preset--color--muted) 100%);
}

.gallery-overview__date {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.4rem 0 0;
}

.gallery-overview__empty-state {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--wp--preset--color--muted-foreground);
  font-size: 0.95rem;
}
.gallery-overview__empty-state.is-visible {
  display: block;
}

.gallery-overview__loadmore {
  display: none;
  justify-content: center;
  margin-top: 3rem;
}
.gallery-overview__loadmore.is-visible {
  display: flex;
}
.gallery-overview__loadmore-btn {
  padding: 0.9rem 2.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

/* Mobile: tighten filter bar spacing */
@media (max-width: 479px) {
  .gallery-overview__filters {
    gap: 1.5rem;
    padding: 1rem 0;
  }
}
