/* ============================================
   BAHAA JAWHARI
   Premium Art Portfolio — Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Light Theme */
  --bg-primary: #f8f6f3;
  --bg-secondary: #f0ece6;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f5f2ee;
  --bg-overlay: rgba(248, 246, 243, 0.95);

  --text-primary: #1a1a1a;
  --text-secondary: #5a5550;
  --text-muted: #9a9590;
  --text-inverse: #f8f6f3;

  --accent: #b08d62;
  --accent-hover: #97744d;
  --accent-dark: #7a5c3a;
  --accent-glow: rgba(176, 141, 98, 0.1);

  --white: #ffffff;
  --black: #000000;
  --red-sold: #c0392b;
  --green-available: #27ae60;
  --yellow-reserved: #c49a2a;

  --border: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-accent: 'Cormorant', 'Georgia', serif;

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

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --nav-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.5s;
  --duration-slow: 0.8s;

  /* Cursor */
  --cursor-size: 12px;
  --cursor-ring-size: 40px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  /* cursor: default */
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  /* cursor: default */
}

input, textarea {
  font-family: inherit;
  /* cursor: default */
}

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

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

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

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--accent);
}

.text-large {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
}

.text-small {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

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

section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

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

.section-header .divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: var(--space-sm) auto;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preloader__logo {
  width: 220px;
  opacity: 0;
}

.preloader__logo img {
  width: 100%;
}

.preloader__stroke {
  position: relative;
  width: 200px;
  height: 4px;
  margin-top: var(--space-md);
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-surface);
}

.preloader__stroke-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.preloader__text {
  margin-top: var(--space-sm);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0;
  letter-spacing: 0.15em;
}

/* ---------- Custom Cursor (disabled) ---------- */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-secondary);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal);
}

.nav.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  height: 68px;
  z-index: 1001;
}

.nav__logo img {
  height: 100%;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--duration-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: color var(--duration-fast);
  /* cursor: default */
}

.nav__dropdown-toggle:hover {
  color: var(--text-primary);
}

.nav__dropdown-toggle svg {
  width: 10px;
  transition: transform var(--duration-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: var(--space-xs) 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-fast) var(--ease-out);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: block;
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.nav__dropdown-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  padding-left: 1.8rem;
}

/* Mobile Nav */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  /* cursor: default */
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-fast) var(--ease-out);
  transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5.3px);
}

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

.nav__burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5.3px);
}

.nav__mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav__mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.nav__mobile a:hover {
  color: var(--text-primary);
}

.nav__mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
}

.nav__mobile-sub a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  transform: scale(1.1);
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(248, 246, 243, 0.3) 0%,
    rgba(248, 246, 243, 0.7) 50%,
    var(--bg-primary) 100%
  );
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__overline {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  opacity: 0;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: var(--space-sm);
  opacity: 0;
}

.hero__title span {
  display: block;
}

.hero__title .stroke-text {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.hero__subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  opacity: 0;
}

.hero__cta {
  opacity: 0;
}

.hero__scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  flex-shrink: 0;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: 0;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  /* cursor: default */
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn--outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

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

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

.btn--whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn--large {
  padding: 18px 48px;
  font-size: 0.85rem;
}

.btn__arrow {
  width: 16px;
  transition: transform var(--duration-fast);
}

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

/* ---------- Featured Section ---------- */
.featured {
  padding: var(--space-xl) 0;
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.featured__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-surface);
  border: 2px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.featured__item:hover {
  border-color: var(--accent);
}

.featured__item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

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

.featured__item:hover .featured__item-img {
}

.featured__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.featured__item:hover .featured__item-overlay {
  opacity: 1;
}

.featured__item-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.featured__item:hover .featured__item-title {
  transform: translateY(0);
}

.featured__item-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-sm);
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out) 0.05s;
}

.featured__item:hover .featured__item-meta {
  transform: translateY(0);
}

.featured__item-btn {
  align-self: flex-start;
  transform: translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out) 0.1s;
}

.featured__item:hover .featured__item-btn {
  transform: translateY(0);
}

/* ---------- Statement Section ---------- */
.statement {
  padding: var(--space-2xl) 0;
  text-align: center;
}

.statement__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 900px;
  margin: 0 auto var(--space-md);
}

.statement__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.statement__signature {
  height: 50px;
  opacity: 0.7;
}

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

/* ---------- Gallery ---------- */
.gallery-page {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.gallery__filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.gallery__filter {
  padding: 8px 24px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--duration-fast);
  /* cursor: default */
}

.gallery__filter:hover,
.gallery__filter.active {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-glow);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: var(--space-md);
}

/* Single-column layout on the gallery listing page */
.gallery-page .gallery__grid {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

/* Gallery size filter dropdown */
.size-filter {
  position: relative;
  z-index: 30;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
}

.size-filter__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--duration-fast);
}

.size-filter__toggle:hover,
.size-filter.open .size-filter__toggle {
  border-color: var(--accent);
}

.size-filter__chevron {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform var(--duration-fast);
}

.size-filter.open .size-filter__chevron {
  transform: rotate(180deg);
}

.size-filter__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 300px;
  overflow-y: auto;
  padding: var(--space-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.size-filter__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.size-filter__option:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.size-filter__option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.gallery__no-results {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-lg) 0;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 2px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.gallery__item:hover {
  border-color: var(--accent);
}

.gallery__item-link {
  display: block;
}

.gallery__item-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

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

.gallery__item:hover .gallery__item-img {
}

.gallery__item-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 40%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.gallery__item:hover .gallery__item-hover {
  opacity: 1;
}

.gallery__item-hover-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  transform: translateY(15px);
  transition: transform var(--duration-normal) var(--ease-out);
}

.gallery__item:hover .gallery__item-hover-title {
  transform: translateY(0);
}

.gallery__item-hover-medium {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  transform: translateY(15px);
  transition: transform var(--duration-normal) var(--ease-out) 0.05s;
}

.gallery__item:hover .gallery__item-hover-medium {
  transform: translateY(0);
}

.gallery__item-hover-btn {
  transform: translateY(15px);
  transition: transform var(--duration-normal) var(--ease-out) 0.1s;
}

.gallery__item:hover .gallery__item-hover-btn {
  transform: translateY(0);
}

.gallery__item-info {
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.gallery__item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.gallery__item-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
}

.status-badge--available {
  background: rgba(106, 176, 76, 0.15);
  color: var(--green-available);
}

.status-badge--sold {
  background: rgba(192, 57, 43, 0.15);
  color: var(--red-sold);
}

.status-badge--reserved {
  background: rgba(212, 168, 67, 0.15);
  color: var(--yellow-reserved);
}

/* ---------- Artwork Detail ---------- */
.artwork {
  padding-top: var(--nav-height);
}

.artwork__hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--white);
}

.artwork__hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
}

.artwork__body {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
}

.artwork__info h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

.artwork__description {
  margin-top: var(--space-md);
}

.artwork__description p {
  font-size: 1.05rem;
  line-height: 1.9;
}

.artwork__sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
  align-self: start;
}

.artwork__details-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.artwork__detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.artwork__detail-row:last-child {
  border-bottom: none;
}

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

.artwork__detail-value {
  color: var(--text-primary);
  font-weight: 500;
}

.artwork__price {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  margin: var(--space-md) 0;
}

.artwork__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.artwork__cta .btn {
  width: 100%;
  justify-content: center;
}

.artwork__signature {
  margin-top: var(--space-md);
  text-align: center;
}

.artwork__signature img {
  height: 40px;
  margin: 0 auto;
  opacity: 0.5;
}

/* Related Artworks */
.related {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ---------- About Page ---------- */
.about-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-hero__image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

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

.about-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-light);
}

.about-hero__content h1 {
  margin-bottom: var(--space-md);
}

.about-hero__content p {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.9;
}

.about-philosophy {
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
}

.about-philosophy__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-philosophy h2 {
  margin-bottom: var(--space-md);
}

.about-philosophy p {
  margin: 0 auto var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ---------- Exhibitions ---------- */
.exhibitions-page {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.exhibition__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.exhibition__date {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
}

.exhibition__info h3 {
  margin-bottom: 0.5rem;
}

.exhibition__info p {
  font-size: 0.95rem;
}

.exhibition__tag {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 3px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.exhibition__tag--upcoming {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact-page {
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.contact__info p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact__whatsapp {
  margin-top: var(--space-md);
}

.contact__form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

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

.form__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--duration-fast);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
}

.form__textarea {
  min-height: 150px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

.footer__brand img {
  height: 60px;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.footer__brand p {
  font-size: 0.85rem;
  max-width: 300px;
}

.footer__links {
  text-align: center;
}

.footer__links h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

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

.footer__links a:hover {
  color: var(--accent);
}

.footer__social {
  text-align: right;
}

.footer__social h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer__social-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 auto;
}

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

.footer__bottom a:hover {
  color: var(--accent-hover);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
  /* cursor: default */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.back-to-top:hover svg {
  color: var(--white);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

/* ---------- Page Transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.page-transition__panel {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  transform: translateY(100%);
}

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

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

.reveal-line {
  overflow: hidden;
}

.reveal-line span {
  display: inline-block;
  transform: translateY(100%);
}

/* ---------- Category Hero ---------- */
.category-hero {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-lg);
  text-align: center;
}

.category-hero h1 {
  margin-bottom: var(--space-sm);
}

.category-hero p {
  margin: 0 auto;
}

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

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-surface);
  display: flex;
  align-items: flex-end;
  border: 2px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.category-card:hover {
  border-color: var(--accent);
}

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card:hover .category-card__img {
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 60%);
  transition: background var(--duration-normal);
}

.category-card__content {
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  width: 100%;
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.category-card__count {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__separator {
  font-size: 0.7rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal);
  /* cursor: default */
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.5rem;
  /* cursor: default */
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.empty-state h2 {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
}

.empty-state p {
  margin: 0 auto var(--space-md);
}

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

  .featured__item:first-child {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

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

  .artwork__sidebar {
    position: static;
  }

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

  .about-hero__image {
    max-width: 500px;
  }

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

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  .footer__social {
    text-align: center;
  }

  .footer__social-links {
    justify-content: center;
  }

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

  .btn--large {
    padding: 14px 36px;
    font-size: 0.8rem;
  }
}

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

  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }

  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    padding: 0 var(--space-sm);
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .hero__subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    margin-bottom: var(--space-md);
  }

  .hero__scroll {
    bottom: var(--space-sm);
  }

  .hero__scroll-line {
    height: 35px;
  }

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

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

  .featured__item {
    aspect-ratio: 4/5;
  }

  .featured__item-title {
    font-size: 1.2rem;
  }

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

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

  .category-card {
    aspect-ratio: 16/9;
  }

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

  .artwork__hero {
    height: 50vh;
    min-height: 300px;
  }

  .artwork__hero-img {
    padding: var(--space-sm);
  }

  .artwork__body {
    padding: var(--space-md) var(--space-sm);
  }

  .artwork__info h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .artwork__price {
    font-size: 1.6rem;
  }

  .artwork__cta .btn {
    padding: 14px 20px;
    font-size: 0.75rem;
  }

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

  .about-hero {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-md);
  }

  .about-hero__image {
    max-width: 100%;
  }

  .about-hero__content h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

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

  .gallery-page,
  .exhibitions-page,
  .contact-page {
    padding-top: calc(var(--nav-height) + var(--space-md));
  }

  .category-hero {
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-sm);
  }

  .footer {
    padding: var(--space-md) 0;
  }

  .footer__brand img {
    height: 45px;
  }

  .footer__bottom p {
    font-size: 0.7rem;
  }

  .lightbox__img {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox__close {
    top: var(--space-sm);
    right: var(--space-sm);
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
  }

  .hero__overline {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }

  .hero__title {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .btn--large {
    padding: 12px 28px;
    font-size: 0.75rem;
  }

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

  .gallery__item-info {
    padding: var(--space-xs) var(--space-xs) var(--space-sm);
  }

  .gallery__item-title {
    font-size: 1rem;
  }

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

  .gallery__filters {
    gap: 0.5rem;
  }

  .gallery__filter {
    padding: 6px 16px;
    font-size: 0.75rem;
  }

  .featured__item-overlay {
    padding: var(--space-sm);
  }

  .featured__item-title {
    font-size: 1.1rem;
  }

  .featured__item-meta {
    font-size: 0.75rem;
  }

  .artwork__hero {
    height: 40vh;
    min-height: 250px;
  }

  .artwork__detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .about-hero__content p {
    font-size: 0.95rem;
  }

  .about-philosophy p {
    font-size: 0.95rem;
  }

  .statement {
    padding: var(--space-lg) 0;
  }

  .statement__quote {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .contact__info h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .contact__info p {
    font-size: 0.95rem;
  }

  .form__input,
  .form__textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .nav__logo {
    height: 52px;
  }

  .nav__mobile a {
    font-size: 1.5rem;
  }

  .nav__mobile-sub a {
    font-size: 0.85rem;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: var(--space-sm);
    right: var(--space-sm);
  }
}

/* Touch devices — always show hover overlays */
@media (hover: none) {
  .featured__item-overlay {
    opacity: 1;
  }

  .featured__item-title,
  .featured__item-meta,
  .featured__item-btn {
    transform: translateY(0);
  }

  .gallery__item-hover {
    opacity: 1;
  }

  .gallery__item-hover-title,
  .gallery__item-hover-medium,
  .gallery__item-hover-btn {
    transform: translateY(0);
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.lazy-img {
  opacity: 0;
  transition: opacity var(--duration-slow);
}

.lazy-img.loaded {
  opacity: 1;
}

/* Print */
@media print {
  .nav,
  .preloader,
  .cursor-dot,
  .cursor-ring,
  .back-to-top,
  .page-transition {
    display: none !important;
  }

  body {
    background: white;
    color: #1a1a1a;
  }
}
