/* --- Global Layout Fixes --- */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap");

/* --- CSS Custom Properties --- */
:root {
  /* Watercolor Palette */
  --canvas: #050505;
  --canvas-secondary: #0a0a0a;
  --terracotta: #c17c59;
  --terracotta-light: #d4a574;
  --terracotta-dark: #a06847;
  --sage: #8da399;
  --sage-light: #b5c9bf;
  --sage-dark: #6b8178;
  --gold: #d4a754;
  --blush: #e8c4b8;
  --ink: #fdfbf7;
  --ink-light: #e0e0e0;
  --text-muted: #8a8a8a;
  --text-light: #555555;
  --white: #ffffff;
  --smoke-purple: rgba(180, 130, 200, 0.6);
  --smoke-terracotta: rgba(193, 124, 89, 0.6);
  --smoke-sage: rgba(141, 163, 153, 0.6);

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
  --space-3xl: 14rem;

  /* Sizing */
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.3s;
  --duration-base: 0.6s;
  --duration-slow: 1s;

  /* Shadows */
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 50px rgba(0, 0, 0, 0.07);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(193, 124, 89, 0.08);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  /* Theme-specific (Default Dark) */
  --theme-transition:
    background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease,
    opacity 0.5s ease;

  /* Dynamic Styles */
  --slider-shadow-color: rgba(193, 124, 89, 0.4);
}

body.light-mode {
  --canvas: #f7f4f0;
  --canvas-secondary: #efebe6;
  --ink: #050505;
  --ink-light: #333333;
  --text-muted: #666666;
  --text-light: #444444;
  --white: #ffffff;
  --smoke-purple: rgba(100, 50, 120, 0.2);
  --smoke-terracotta: rgba(193, 124, 89, 0.2);
  --smoke-sage: rgba(141, 163, 153, 0.2);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(
    --canvas
  ); /* Fixed the white flash by enforcing dark base */
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  transition: var(--theme-transition);
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide native scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition:
    opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0.6s linear;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle {
  stroke-dasharray: 326.72; /* 2 * PI * radius (52) */
  stroke-dashoffset: 326.72;
  transition: none; /* We animate with GSAP for precision */
}

.preloader-percent {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: 0.1em;
}

.disintegration-target {
  width: 250px;
  height: auto;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.disintegration-target img {
  width: 100%;
  height: auto;
  display: block;
}

.disintegration-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.disintegration-container canvas {
  position: absolute;
  left: -125px; /* Half of width */
  top: -125px; /* Approximate half of height */
  transition:
    transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.5s ease-out;
  opacity: 1;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Feather Container */
.feather-container {
  position: fixed;
  top: 0;
  right: -25%; /* Shift further right to match original center math */
  width: 100%; /* Huge canvas prevents 3D object clipping on sway */
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.feather-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25vw; /* Shrunk */
  height: 25vw;
  transform: translate(-50%, -50%);
  background-color: rgba(
    230,
    95,
    20,
    0.45
  ); /* Solid color instead of radial gradient avoids contour loops entirely */
  border-radius: 50%; /* Make it round natively */
  filter: blur(
    100px
  ); /* Massive blur creates the perfect smooth spherical spread */
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

#feather-canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

/* Noise Overlay for Film Grain / Sharp Texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* above canvas but under content */
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* Main content sits above canvas */
.main-content {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1,
.h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2,
.h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3,
.h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

h4,
.h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--ink-light);
}

/* Italic display for artistic flair */
.italic {
  font-style: italic;
}

/* --- Word Split Animation Targets --- */
.word-reveal .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.3em;
}

.word-reveal .word span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  display: flex;
  justify-content: center;
  pointer-events: none; /* Let clicks pass to content outside island */
  transition: all 0.5s var(--ease-out);
}

.nav-island {
  pointer-events: auto; /* Enable clicks on island itself */
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.6rem 1rem;
  width: auto;
  min-width: 80px;
  max-width: 95vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-island .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  white-space: nowrap;
}

/* Expanded by default state */
.nav-links,
.nav-actions {
  opacity: 1;
  visibility: visible;
  max-width: 1000px;
  overflow: visible;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  display: flex;
}

/* Logo remains visible but shift slightly */
.nav-logo {
  transition: all 0.5s var(--ease-out);
}

/* Expanded State - Grows even more */
.nav-island:hover {
  padding: 0.6rem 3rem; /* Expanded more */
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  gap: 3rem; /* Space elements out more on hover */
}

.nav-island:hover .nav-links,
.nav-island:hover .nav-actions {
  gap: 2rem;
}

body.light-mode .nav-island {
  background: rgba(247, 244, 240, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-island:hover {
  background: rgba(247, 244, 240, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%; /* Make circular */
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-island:hover .nav-logo img {
  transform: scale(1.1);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dot separator between nav links */
.nav-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-light);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.8rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--canvas);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 3000; /* Higher than mobile-menu */
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5.5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu .nav-link {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--ink);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

@media (max-width: 900px) {
  .hero-content {
    max-width: 100%;
  }
}

.hero-slider-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%; /* Increased for more room */
  height: 70vh;
  min-height: 450px;
  background: transparent;
  z-index: 5;
  pointer-events: auto; /* Re-enabled for tilt interaction */
  overflow: visible; /* Changed to visible to prevent edge cropping */
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.7))
    drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.hero-slider-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; /* Increased from 90% */
  height: 100%;
  background: radial-gradient(
    circle,
    var(--slider-shadow-color) 0%,
    transparent 75%
  );
  opacity: 0.4; /* Reduced from 0.6 */
  filter: blur(100px); /* Reduced from 120px */
  z-index: -1;
  pointer-events: none;
  transition:
    background 0.8s ease,
    opacity 0.8s ease;
}

body.light-mode .hero-slider-container {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25))
    drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

body.light-mode .hero-slider-container::before {
  opacity: 0.3; /* Reduced from 0.45 */
}

@media (max-width: 900px) {
  .hero-slider-container {
    display: none;
  }
}

.hero-label {
  margin-bottom: var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* Hero floating images */
.hero-images {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  width: 50%;
  height: 85%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-images {
    width: 100%;
    right: 0;
    opacity: 0.25; /* Soften images on mobile so text remains readable */
  }
}

.hero-img {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  will-change: transform;
}

.hero-img img {
  width: 100%;
  height: 120%;
  top: -10%;
  position: absolute;
  object-fit: cover;
}

.hero-img-1 {
  width: 50%;
  height: 50%;
  top: 5%;
  left: 0;
}

.hero-img-2 {
  width: 42%;
  height: 48%;
  top: 20%;
  right: -5%;
}

.hero-img-3 {
  width: 38%;
  height: 38%;
  bottom: 5%;
  left: 20%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 5%;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-light);
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--terracotta);
  animation: scrollDown 2s var(--ease-in-out) infinite;
}

@keyframes scrollDown {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--terracotta);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(193, 124, 89, 0.25);
}

.btn-arrow {
  display: inline-flex;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .label {
  margin-bottom: var(--space-sm);
}

.section-header .subtitle {
  margin-top: var(--space-sm);
}

/* --- Infinite Marquee Carousel --- */
.marquee-wrapper {
  width: 100%;
  padding: var(--space-2xl) 0;
  overflow: hidden;
  position: relative;
  /* Blend edges smoothly to black */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0 1rem;
  animation: scrollMarquee 45s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  width: clamp(280px, 25vw, 450px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition:
    filter var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.marquee-item:hover img {
  filter: brightness(1.1);
  transform: scale(1.03);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* Decorative divider */
.divider {
  width: 60px;
  height: 1px;
  background: var(--terracotta);
  margin: var(--space-md) 0;
}

/* --- Services Grid (services.ejs vertical layout) --- */
.services-grid {
  display: grid;
  gap: var(--space-lg);
}

/* --- Services Horizontal Scroll Track (homepage) --- */
.services-section {
  padding: var(--space-2xl) 0 0;
  position: relative;
  overflow: hidden;
}

.services-track-wrapper {
  overflow: hidden;
  padding: var(--space-lg) 0 var(--space-xl);
}

.services-track {
  display: flex;
  gap: 2rem;
  padding: 0 var(--space-md);
  width: max-content;
  will-change: transform;
}

.service-track-card {
  width: clamp(320px, 28vw, 420px);
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.service-track-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(193, 124, 89, 0.2);
}

body.light-mode .service-track-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .service-track-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border-color: rgba(193, 124, 89, 0.15);
}

.service-track-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.service-track-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.service-track-card:hover .service-track-img img {
  transform: scale(1.08);
}

.service-track-content {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.service-track-content .service-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

body.light-mode .service-track-content .service-number {
  color: rgba(0, 0, 0, 0.1);
}

.service-track-content .service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  font-style: italic;
}

.service-track-content .service-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:nth-child(even) {
  direction: rtl;
}

.service-card:nth-child(even) > * {
  direction: ltr;
}

.service-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.service-img img {
  width: 100%;
  height: 120%;
  top: -10%;
  position: absolute;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.service-content {
  padding: var(--space-md);
}

.service-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4); /* Increased opacity for better visibility */
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.service-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* --- Gallery / Portfolio Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Staggered offset for artistic feel */
.gallery-item:nth-child(3n + 2) {
  transform: translateY(3rem);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.gallery-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-item:hover .gallery-item-img img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--duration-base) var(--ease-out);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
}

.gallery-item-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* Category filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.4rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

/* --- Stats Section --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* --- Founders Section --- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.founder-card {
  text-align: center;
}

.founder-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 3px solid rgba(193, 124, 89, 0.15);
}

.founder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.founder-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.founder-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 450px;
  margin: 0 auto;
}

.founder-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: var(--space-sm);
}

.specialty-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  background: rgba(193, 124, 89, 0.08);
  color: var(--terracotta-dark);
}

/* --- Location / Studio Section --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.location-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.location-img img {
  width: 100%;
  height: auto;
}

.location-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.location-details h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.address-block {
  display: flex;
  gap: 0.8rem;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-sm);
}

.address-block svg {
  flex-shrink: 0;
  color: var(--terracotta);
  margin-top: 2px;
}

.address-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-detail svg {
  color: var(--terracotta);
  flex-shrink: 0;
}

.hours-block {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.hours-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hours-block p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
}

.cta-section .display-lg {
  margin-bottom: var(--space-sm);
}

.cta-section .subtitle {
  margin: 0 auto var(--space-lg);
}

/* --- Forms --- */
.form-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin: 0 auto;
}

body.light-mode .form-card {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3.5rem;
  color: #d4af37; /* Metallic Golden Yellow */
  margin-bottom: 0.5rem;
}

.form-group label span {
  color: var(--terracotta);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.08); /* Sophisticated subtle lift */
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B6B6B' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  margin-top: var(--space-sm);
}

/* Form success */
.form-success {
  text-align: center;
  padding: var(--space-xl);
}

.form-success svg {
  color: var(--sage);
  margin-bottom: var(--space-sm);
}

/* --- Contact Info Cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(193, 124, 89, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--terracotta);
}

.contact-info-content h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info-content p,
.contact-info-content a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact-info-content a:hover {
  color: var(--terracotta);
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.social-link:hover {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 10;

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: rgba(10, 10, 10, 0.06);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-xl);
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 10, 10, 0.25);
  z-index: -1;
  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: calc(-50px + var(--glow-y, 0px));
  left: calc(-100px + var(--glow-x, 0px));
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.35) 0%, rgba(255, 180, 80, 0.2) 40%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  transition: bottom 0.15s ease-out, left 0.15s ease-out;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
  color: var(--ink);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--terracotta);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- Trust Badges --- */
.trust-badges {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge-icon {
  font-size: 1.1rem;
}

/* --- Page Header --- */
.page-header {
  padding: calc(var(--space-3xl) + 2rem) 0 var(--space-xl);
  text-align: center;
}

.page-header .label {
  margin-bottom: var(--space-sm);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .subtitle {
  margin: 0 auto;
}

/* --- Mission Section --- */
.mission-box {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

body.light-mode .mission-box {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(0, 0, 0, 0.08);
}

.mission-box .label {
  color: #d4af37; /* Golden accents */
  font-weight: 600;
  letter-spacing: 0.2em;
}

.mission-box .divider {
  background: linear-gradient(
    90deg,
    transparent,
    var(--terracotta),
    transparent
  );
}

.mission-box .h2 {
  margin-bottom: var(--space-md);
}

.mission-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Animations Utility Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.parallax-img {
  will-change: transform;
}

/* --- Responsive --- */ /* --- Theme Toggle Switch --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  position: relative;
  z-index: 1001;
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.theme-toggle i {
  font-size: 1.1rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .fa-sun {
  display: none;
}
body.light-mode .theme-toggle .fa-moon {
  display: none;
}
body.light-mode .theme-toggle .fa-sun {
  display: block;
}

@media (max-width: 1024px) {
  .hero-images {
    display: none;
  }

  .hero-title {
    max-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(3n + 2) {
    transform: translateY(0);
  }

  .gallery-item:nth-child(even) {
    transform: translateY(2rem);
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .founders-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .service-track-card {
    width: clamp(280px, 45vw, 380px);
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-actions {
    margin-right: 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .display-xl {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .gallery-item:nth-child(even) {
    transform: translateY(0);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }

  .service-track-card {
    width: clamp(260px, 75vw, 320px);
  }

  .services-track {
    gap: 1rem;
  }
}

/* ============================================
   ARTWORKS CATALOG PAGE
   ============================================ */

.artworks-page {
  padding: calc(var(--space-xl) + 1rem) 0 var(--space-xl);
  min-height: 100vh;
}

/* --- Header --- */
.artworks-header {
  margin-bottom: var(--space-xl);
}

.artworks-back {
  margin-bottom: var(--space-md);
}

.artworks-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.artworks-back-link:hover {
  color: var(--ink);
}

.artworks-header .display-lg {
  margin-bottom: var(--space-sm);
}

.artworks-header .subtitle {
  max-width: 650px;
}

/* --- Controls (Search + Categories) --- */
.artworks-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.artworks-search {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.artworks-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.artworks-search-input {
  width: 100%;
  height: 56px;
  padding: 0 1.25rem 0 3.25rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.artworks-search-input::placeholder {
  color: var(--text-light);
}

.artworks-search-input:focus {
  outline: none;
  border-color: rgba(193, 124, 89, 0.3);
  box-shadow: 0 0 0 3px rgba(193, 124, 89, 0.08);
}

body.light-mode .artworks-search-input {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}

/* --- Category Pills --- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-pill {
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.category-pill.active {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

body.light-mode .category-pill {
  background: rgba(0, 0, 0, 0.04);
}

body.light-mode .category-pill.active {
  background: var(--ink);
  color: var(--canvas);
}

/* --- Results Bar --- */
.artworks-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.artworks-count {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
}

.artworks-view-toggle {
  display: flex;
  gap: 0.35rem;
}

.view-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
}

.view-btn.active {
  background: var(--ink);
  color: var(--canvas);
}

.view-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

/* --- Artwork Grid --- */
.artworks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Artwork List View --- */
.artworks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.artworks-list .artwork-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-radius: var(--radius-md);
}

.artworks-list .artwork-card-img {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.artworks-list .artwork-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Artwork Card --- */
.artwork-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.artwork-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border-color: rgba(193, 124, 89, 0.15);
}

body.light-mode .artwork-card {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .artwork-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.artwork-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.artwork-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: all var(--duration-slow) var(--ease-out);
}

.artwork-card:hover .artwork-card-img img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

.artwork-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base);
}

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

/* --- Badges --- */
.artwork-badge {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}

.artwork-badge--sold {
  right: 0.75rem;
  background: rgba(231, 76, 60, 0.9);
  color: white;
}

.artwork-badge--featured {
  left: 0.75rem;
  background: rgba(212, 167, 84, 0.9);
  color: white;
}

.artwork-badge--lg {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  top: 1rem;
  right: 1rem;
}

/* --- Card Body --- */
.artwork-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.artwork-card-category {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.artwork-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
  transition: color var(--duration-fast);
}

.artwork-card:hover .artwork-card-title {
  color: var(--terracotta);
}

.artwork-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
  margin-bottom: 1.25rem;
  flex: 1;
}

.artwork-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-mode .artwork-card-meta {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.artwork-card-price {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
}

.artwork-card-detail-link {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--duration-fast) var(--ease-out);
}

.artwork-card:hover .artwork-card-detail-link {
  gap: 0.75rem;
}

/* --- Empty State --- */
.artworks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.artworks-empty-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.artworks-empty-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================
   ARTWORK DETAIL PAGE
   ============================================ */

.artwork-detail-page {
  padding: calc(var(--space-3xl) + 1rem) 0 var(--space-2xl);
  min-height: 100vh;
}

/* --- Breadcrumb --- */
.artwork-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
}

.breadcrumb-link {
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.breadcrumb-link:hover {
  color: var(--terracotta);
}

.breadcrumb-sep {
  color: var(--text-light);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* --- Detail Grid --- */
.artwork-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.artwork-detail-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.3);
}

.artwork-detail-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Detail Info --- */
.artwork-detail-info .label {
  margin-bottom: var(--space-sm);
}

.artwork-detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.artwork-detail-desc {
  margin-bottom: var(--space-lg);
  color: var(--text-muted);
}

/* --- Specs --- */
.artwork-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: var(--space-lg);
}

.artwork-spec {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

body.light-mode .artwork-spec {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}

.artwork-spec-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.artwork-spec-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.artwork-spec-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--terracotta);
}

/* Status dots */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot--available {
  background: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
}

.status-dot--sold {
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* --- Detail Actions --- */
.artwork-detail-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.9rem;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  border-radius: 100px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25);
}

/* --- Related Artworks --- */
.artwork-related {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.artwork-related h2 {
  margin-bottom: var(--space-lg);
}

.artwork-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .artworks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .artworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .artwork-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .artwork-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .artworks-list .artwork-card {
    grid-template-columns: 200px 1fr;
  }
}

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

  .artworks-list .artwork-card {
    grid-template-columns: 1fr;
  }

  .artworks-list .artwork-card-img {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .artwork-detail-specs {
    grid-template-columns: 1fr;
  }

  .artwork-related-grid {
    grid-template-columns: 1fr;
  }

  .artwork-detail-actions {
    flex-direction: column;
  }

  .category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide high-resource elements on mobile */
  #preloader,
  #feather-container {
    display: none !important;
  }

  /* Prevent horizontal scroll from elements */
  .container {
    padding: 0 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  section {
    overflow-x: hidden;
  }
}
