/*
 * Paul Aizpiri Catalogue Raisonné
 * Museum-Quality Stylesheet - State of the Art 2026
 * Version 2.0
 *
 * Design Philosophy: Elegant, timeless, accessible, and focused on the artwork
 * Color Palette: Inspired by Aizpiri's Mediterranean palette
 * Features: Modern CSS with View Transitions, Container Queries, :has(), and more
 */

/* ============================================
   VIEW TRANSITIONS API
   ============================================ */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.2s ease;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Color Palette - Light Mode */
  --color-primary: #1a1a2e;           /* Deep Navy */
  --color-secondary: #2c5f7c;         /* Mediterranean Blue */
  --color-accent: #c4a35a;            /* Accent Gold */
  --color-gold: #c4a35a;              /* Gold for progress bar */
  --color-accent-dark: #a68841;       /* Darker Gold */
  --color-danger: #8b2500;            /* Deep Red */
  --color-background: #f5f0e8;        /* Warm Ivory */
  --color-surface: #ffffff;           /* Pure White */
  --color-surface-alt: #faf7f2;       /* Light Ivory */
  --color-text-primary: #1a1a2e;      /* Dark Navy Text */
  --color-text-secondary: #4a4a5e;    /* Medium Gray Text */
  --color-text-muted: #8a8a9e;        /* Light Gray Text */
  --color-border: #e0d9cc;            /* Soft Border */
  --color-border-light: #f0ead8;      /* Very Light Border */

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Font Sizes - Fluid Typography with clamp() */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.375rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.75rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3.5rem);
  --text-5xl: clamp(3rem, 2.25rem + 3.75vw, 5rem);

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights - Editorial Quality */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.75;
  --leading-extra-loose: 1.875;

  /* Letter Spacing - Premium Adjustments */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Spacing Scale */
  --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --space-sm: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-md: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-lg: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
  --space-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  --space-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  --space-3xl: clamp(3rem, 2rem + 5vw, 6rem);
  --space-4xl: clamp(4rem, 3rem + 5vw, 8rem);

  /* Layout */
  --container-xs: 640px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;
  --container-xl: 1536px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Borders */
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 4px;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(26, 26, 46, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(26, 26, 46, 0.1), 0 1px 2px -1px rgba(26, 26, 46, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(26, 26, 46, 0.1), 0 2px 4px -2px rgba(26, 26, 46, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(26, 26, 46, 0.1), 0 4px 6px -4px rgba(26, 26, 46, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(26, 26, 46, 0.1), 0 8px 10px -6px rgba(26, 26, 46, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(26, 26, 46, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(26, 26, 46, 0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-mobile-menu-overlay: 998;
  --z-mobile-menu: 999;
  --z-lightbox: 9999;
  --z-scroll-progress: 10001;

  /* Specific Component Values */
  --header-height: 80px;
  --header-height-scrolled: 64px;
  --sidebar-width: 320px;
  --gallery-gap: clamp(1rem, 2vw, 2rem);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --color-primary: #f5f0e8;
  --color-secondary: #5a9bc4;
  --color-accent: #d4b366;
  --color-gold: #d4b366;
  --color-accent-dark: #c4a35a;
  --color-danger: #c43500;
  --color-background: #0f0f1e;
  --color-surface: #1a1a2e;
  --color-surface-alt: #252538;
  --color-text-primary: #f5f0e8;
  --color-text-secondary: #c0c0d0;
  --color-text-muted: #8a8a9e;
  --color-border: #3a3a4e;
  --color-border-light: #2a2a3e;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Hanging punctuation support */
  hanging-punctuation: first last;
}

/* Artwork placeholder styling */
.artwork-image:not(img) {
  min-height: 280px;
  background: linear-gradient(135deg, #f5f0e8 0%, #faf7f2 100%);
  border: 2px dashed var(--color-border);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-style: italic;
  color: var(--color-text-secondary);
  font-size: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
  line-height: 1.6;
}

[data-theme="dark"] .artwork-image:not(img) {
  background: linear-gradient(135deg, #1a1a2e 0%, #252538 100%);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Smooth color transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable transitions on elements that shouldn't animate colors */
*:is(img, video, iframe, canvas, svg) {
  transition: none;
}

/* Custom Selection Color */
::selection {
  background-color: var(--color-accent);
  color: var(--color-surface);
  text-shadow: none;
}

::-moz-selection {
  background-color: var(--color-accent);
  color: var(--color-surface);
  text-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: var(--border-radius-full);
  border: 3px solid var(--color-surface-alt);
}

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

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) var(--color-surface-alt);
}

/* ============================================
   ACCESSIBILITY FEATURES
   ============================================ */

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-surface);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius-md);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: top var(--transition-fast);
  z-index: calc(var(--z-scroll-progress) + 1);
}

.skip-to-content:focus {
  top: 10px;
}

/* Focus Visible Styles for Better Keyboard Navigation */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove default focus outline but keep for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
  /* OpenType features for display text */
  font-feature-settings: "liga" 1, "kern" 1, "dlig" 1, "swsh" 1;
  /* Optical sizing for display headings */
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--tracking-tighter);
  /* Subtle text shadow for hero headings */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--tracking-tight);
}

h3 {
  font-size: var(--text-3xl);
  letter-spacing: var(--tracking-tight);
}

h4 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-normal);
}

h5 {
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-normal);
}

h6 {
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-feature-settings: "smcp" 1; /* Small caps */
}

p {
  margin-bottom: var(--space-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  /* Hyphenation for better text flow */
  hyphens: auto;
  hyphenate-limit-chars: 6 3 2;
}

p:last-child {
  margin-bottom: 0;
}

/* First paragraph after heading */
h1 + p,
h2 + p,
h3 + p {
  margin-top: var(--space-md);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-wide);
}

/* Drop cap for editorial style */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: var(--weight-bold);
  line-height: 0.85;
  float: left;
  margin: 0.1em 0.1em 0 0;
  color: var(--color-accent);
}

.small {
  font-size: var(--text-sm);
}

.tiny {
  font-size: var(--text-xs);
}

.serif {
  font-family: var(--font-display);
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
  /* Sophisticated underline that skips descenders */
  text-decoration-skip-ink: auto;
}

/* Premium underline effect for body text links */
article a:not(.button):not(.nav-link),
.prose a:not(.button):not(.nav-link) {
  background-image: linear-gradient(
    to right,
    var(--color-secondary) 0%,
    var(--color-secondary) 100%
  );
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 100% 1px;
  text-decoration: none;
  padding-bottom: 2px;
  transition: all var(--transition-base);
}

article a:not(.button):not(.nav-link):hover,
.prose a:not(.button):not(.nav-link):hover {
  background-image: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) 100%
  );
  background-size: 100% 2px;
  color: var(--color-accent);
}

/* External link indicator */
a[href^="http"]:not([href*="paul-aizpiri"])::after,
a[rel~="external"]::after {
  content: "↗";
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.85em;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

a[href^="http"]:not([href*="paul-aizpiri"]):hover::after,
a[rel~="external"]:hover::after {
  opacity: 1;
}

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

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--border-radius-sm);
}

strong, b {
  font-weight: var(--weight-semibold);
}

em, i {
  font-style: italic;
}

blockquote {
  position: relative;
  padding-left: var(--space-2xl);
  padding-right: var(--space-lg);
  margin: var(--space-2xl) 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: var(--leading-loose);
  color: var(--color-text-primary);
  /* Gradient left border */
  border-left: none;
}

blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
}

/* Decorative quotes */
blockquote::after {
  content: '"';
  font-family: var(--font-display);
  font-size: 6em;
  line-height: 0;
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--color-accent);
  opacity: 0.15;
  font-weight: var(--weight-bold);
  pointer-events: none;
}

blockquote cite {
  display: block;
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-feature-settings: "smcp" 1;
}

blockquote cite::before {
  content: '— ';
  color: var(--color-accent);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.125rem 0.375rem;
  background-color: var(--color-surface-alt);
  border-radius: var(--border-radius-sm);
  color: var(--color-danger);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-lg);
  background-color: var(--color-surface-alt);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  margin: var(--space-xl) 0;
  line-height: var(--leading-relaxed);
}

pre code {
  padding: 0;
  background: none;
  color: inherit;
}

/* ============================================
   LISTS - PREMIUM STYLING
   ============================================ */

ul, ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

ul li, ol li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-sm);
}

/* Custom bullet styles */
article ul:not(.nav-links):not(.nav-menu),
.prose ul {
  list-style: none;
  padding-left: 0;
}

article ul:not(.nav-links):not(.nav-menu) li,
.prose ul li {
  position: relative;
  padding-left: var(--space-xl);
}

article ul:not(.nav-links):not(.nav-menu) li::before,
.prose ul li::before {
  content: '•';
  position: absolute;
  left: var(--space-md);
  color: var(--color-accent);
  font-size: 1.2em;
  line-height: 1;
  font-weight: var(--weight-bold);
}

/* Nested lists */
article ul ul li::before,
.prose ul ul li::before {
  content: '◦';
  font-size: 1em;
}

article ul ul ul li::before,
.prose ul ul ul li::before {
  content: '▪';
  font-size: 0.8em;
}

/* Ordered lists with premium styling */
article ol,
.prose ol {
  counter-reset: list-counter;
  list-style: none;
  padding-left: 0;
}

article ol li,
.prose ol li {
  counter-increment: list-counter;
  position: relative;
  padding-left: var(--space-xl);
}

article ol li::before,
.prose ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* Timeline-style lists */
.timeline-list {
  list-style: none;
  padding-left: 0;
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-lg);
}

.timeline-list li {
  position: relative;
  padding-left: var(--space-2xl);
  padding-bottom: var(--space-xl);
  margin-bottom: 0;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-list li:last-child {
  padding-bottom: 0;
}

/* Definition lists */
dl {
  margin: var(--space-xl) 0;
}

dt {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-wide);
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

/* ============================================
   CAPTIONS & LABELS
   ============================================ */

.caption,
figcaption {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  font-style: italic;
}

.label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-feature-settings: "smcp" 1;
}

/* ============================================
   FRENCH TYPOGRAPHY RULES
   ============================================ */

/* Non-breaking spaces before punctuation */
.fr-typo {
  /* This would be handled in HTML with &nbsp; or CSS white-space */
}

/* French quotation marks styling */
q {
  quotes: '« ' ' »' '‹ ' ' ›';
}

q::before {
  content: open-quote;
  margin-right: 0.25em;
}

q::after {
  content: close-quote;
  margin-left: 0.25em;
}

/* Em-dash styling for French typography */
.em-dash {
  margin: 0 0.25em;
}

/* ============================================
   SPECIAL TYPOGRAPHY ELEMENTS
   ============================================ */

/* Superscript and subscript */
sup, sub {
  font-size: 0.75em;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  font-feature-settings: "sups" 1;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
  font-feature-settings: "subs" 1;
}

/* Abbreviations */
abbr[title] {
  text-decoration: underline dotted;
  text-decoration-color: var(--color-accent);
  cursor: help;
  border-bottom: none;
}

/* Mark/highlight */
mark {
  background-color: rgba(196, 163, 90, 0.2);
  color: var(--color-text-primary);
  padding: 0.125em 0.25em;
  border-radius: var(--border-radius-sm);
}

/* Keyboard shortcuts */
kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.125rem 0.375rem;
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 0 var(--color-border);
}

/* ============================================
   SECTION TITLES WITH ANIMATED UNDERLINES
   ============================================ */

.section-title {
  position: relative;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent-dark) 100%
  );
  transition: width var(--transition-slow);
}

.section-title:hover::after {
  width: 100px;
}

/* Scroll reveal animation for section titles */
.section-title[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.section-title[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

.container-wide {
  max-width: 100%;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

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

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

.section-lg {
  padding: calc(var(--space-4xl) * 1.5) 0;
}

/* ============================================
   HEADER & NAVIGATION - PREMIUM EDITION
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-fixed);
  transition: all var(--transition-slow),
              transform var(--transition-base),
              background-color var(--transition-slow);

  /* Glass-morphism effect */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);

  /* Elegant gradient border */
  border-bottom: var(--border-width-thin) solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 163, 90, 0.2) 50%,
    transparent 100%
  ) 1;

  /* Subtle shadow for depth */
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.03);
}

[data-theme="dark"] .site-header {
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.98) 0%,
    rgba(26, 26, 46, 0.95) 100%
  );
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 179, 102, 0.3) 50%,
    transparent 100%
  ) 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

/* Scrolled state - elegant shrink with color shift */
.site-header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(255, 255, 255, 0.97) 100%
  );
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, 0.99) 0%,
    rgba(26, 26, 46, 0.97) 100%
  );
}

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

.nav-logo,
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover,
.site-logo:hover {
  opacity: 0.8;
}

.logo-text {
  white-space: nowrap;
}

.site-logo img {
  height: 48px;
  width: auto;
  transition: height var(--transition-base);
}

.scrolled .site-logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  justify-content: flex-end;
}

.nav-links,
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links li,
.nav-menu li {
  position: relative;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  display: inline-block;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
  background-color: var(--color-surface-alt);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - var(--space-md) * 2);
}

/* Mobile Menu Toggle with Hamburger Animation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
  position: relative;
}

.mobile-menu-toggle:hover {
  background-color: var(--color-surface-alt);
}

.mobile-menu-toggle .hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all var(--transition-base);
  border-radius: var(--border-radius-full);
}

.mobile-menu-toggle .hamburger::before,
.mobile-menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all var(--transition-base);
  border-radius: var(--border-radius-full);
}

.mobile-menu-toggle .hamburger::before {
  top: -8px;
}

.mobile-menu-toggle .hamburger::after {
  bottom: -8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-mobile-menu-overlay);
  backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.dark-mode-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-surface-alt);
}

.dark-mode-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: all var(--transition-base);
}

.dark-mode-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.dark-mode-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Header Utilities */
.header-utils {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-toggle,
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.search-toggle:hover,
.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--color-surface-alt);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-gold);
  transform-origin: left;
  z-index: var(--z-scroll-progress);
  transition: transform var(--transition-fast);
}

/* ============================================
   SCROLL-DRIVEN ANIMATIONS (with fallback)
   ============================================ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-scroll-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll-animate="fade-up"] {
  animation: fade-up 0.6s ease forwards;
  animation-play-state: paused;
}

[data-scroll-animate="fade-up"].is-visible {
  animation-play-state: running;
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
  margin-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(196, 163, 90, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(44, 95, 124, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-md);
  margin: 0 auto;
  color: var(--color-surface);
}

.hero h1 {
  color: var(--color-surface);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero .lead {
  color: rgba(245, 240, 232, 0.9);
  margin-bottom: var(--space-2xl);
  font-size: var(--text-xl);
}

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

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.7) 0%,
    rgba(26, 26, 46, 0.5) 100%
  );
  z-index: 1;
}

/* Hero Catalogue - Oeuvres Page */
.hero-catalogue {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 8rem 2rem 4rem;
  text-align: center;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-catalogue::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(196, 163, 90, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(44, 95, 124, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-catalogue h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-surface);
  text-wrap: balance;
}

.hero-catalogue p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero with Parallax */
.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  text-align: center;
  border: var(--border-width-medium) solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
  border-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-surface);
  border-color: var(--color-secondary);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.btn-outline:hover:not(:disabled) {
  background-color: var(--color-surface-alt);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--color-surface-alt);
  color: var(--color-text-primary);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: var(--space-md);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-surface);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

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

.back-to-top:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.back-to-top svg,
.back-to-top::before {
  content: '↑';
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--color-surface);
  border: var(--border-width-thin) solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-width-thin) solid var(--color-border-light);
}

.card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: var(--weight-normal);
}

.card-body {
  margin-bottom: var(--space-lg);
}

.card-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: var(--border-width-thin) solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* ============================================
   ARTWORK CARDS (with Container Queries)
   ============================================ */

/* Artwork Card */
.artwork-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              opacity 0.4s ease;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.artwork-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Conditional styling with :has() */
.artwork-card:has(img) {
  border-color: var(--color-accent);
}

.artwork-card:has(.artwork-image) .artwork-card-content {
  padding-top: var(--space-md);
}

.artwork-card-image,
.artwork-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-card-image img,
.artwork-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

/* Image loading placeholder with shimmer effect */
.artwork-image[loading],
.artwork-card-image[loading] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

.artwork-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(26, 26, 46, 0.9) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  color: var(--color-surface);
}

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

.artwork-card-content,
.artwork-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.artwork-card-title,
.artwork-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.artwork-card-meta,
.artwork-date {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.artwork-card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.artwork-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: var(--border-width-thin) solid var(--color-border-light);
  gap: var(--space-md);
}

.catalogue-number {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-surface-alt);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.artwork-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.detail-item {
  display: flex;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.detail-label {
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 120px;
}

.detail-value {
  color: var(--color-text-secondary);
}

.artwork-tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--color-surface-alt);
  border-radius: var(--border-radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--color-accent);
  color: var(--color-surface);
}

/* Smooth gallery filtering animations */
.artwork-card.filtered-out {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
}

/* ============================================
   GALLERY GRID (with Container Queries)
   ============================================ */

.gallery-grid,
.catalogue-grid {
  display: grid;
  gap: var(--gallery-gap);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  container-type: inline-size;
  margin-top: 2rem;
}

/* Container query for responsive artwork cards */
@container (min-width: 600px) {
  .artwork-card {
    grid-column: span 1;
  }

  .artwork-card-content {
    padding: var(--space-xl);
  }
}

@container (min-width: 900px) {
  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

.gallery-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.gallery-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.gallery-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.catalogue-grid.list-view,
.gallery-grid.list-view {
  grid-template-columns: 1fr;
}

.list-view .artwork-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
}

.list-view .artwork-image,
.list-view .artwork-card-image {
  aspect-ratio: 1;
}

.gallery-grid-masonry {
  column-count: 3;
  column-gap: var(--gallery-gap);
}

.gallery-grid-masonry .artwork-card {
  break-inside: avoid;
  margin-bottom: var(--gallery-gap);
}

/* Gallery Item */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-surface);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-item:hover {
  box-shadow: var(--shadow-2xl);
  transform: scale(1.02);
}

.gallery-item-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

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

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.7) 70%,
    transparent 100%
  );
  color: var(--color-surface);
  transform: translateY(calc(100% - 60px));
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-sm);
}

.gallery-item-meta {
  font-size: var(--text-sm);
  opacity: 0.9;
}

/* ============================================
   FILTER BAR
   ============================================ */

.filter-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
  position: sticky;
  top: var(--header-height);
  z-index: var(--z-sticky);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .filter-bar {
  background: rgba(26, 26, 46, 0.95);
}

.filter-container {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.filter-row {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.search-box {
  flex: 1;
  min-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.filter-group {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.filter-group label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  white-space: nowrap;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--color-surface);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.view-toggle {
  display: flex;
  gap: var(--space-xs);
  background: var(--color-surface-alt);
  padding: 0.25rem;
  border-radius: var(--border-radius-md);
}

.view-toggle button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: calc(var(--border-radius-md) - 0.25rem);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.view-toggle button.active {
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-sm);
}

.view-toggle button:hover:not(.active) {
  color: var(--color-text-primary);
}

/* ============================================
   STATISTICS BAR
   ============================================ */

.statistics-bar {
  background: var(--color-surface-alt);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.statistics-container {
  max-width: var(--container-lg);
  margin: 0 auto;
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-xs);
}

/* ============================================
   CATALOGUE SECTION
   ============================================ */

.catalogue-section {
  max-width: var(--container-lg);
  margin: var(--space-4xl) auto;
  padding: 0 var(--container-padding);
}

.no-results {
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
  color: var(--color-text-muted);
}

.no-results h3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

/* ============================================
   LIGHTBOX / MODAL
   ============================================ */

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform var(--transition-base);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-image,
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 1;
}

.lightbox-close:hover {
  background-color: var(--color-danger);
  color: var(--color-surface);
  transform: rotate(90deg);
}

.lightbox-nav,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  color: var(--color-text-primary);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 1;
}

.lightbox-nav:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-prev,
.lightbox-prev {
  left: var(--space-lg);
}

.lightbox-nav-next,
.lightbox-next {
  right: var(--space-lg);
}

.lightbox-caption {
  margin-top: var(--space-lg);
  text-align: center;
  color: var(--color-surface);
}

.lightbox-caption h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-surface);
}

.lightbox-caption p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
}

.modal-content {
  position: relative;
  z-index: var(--z-modal);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(-20px);
  transition: transform var(--transition-base);
}

.modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-xl);
  border-bottom: var(--border-width-thin) solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.modal-title {
  font-size: var(--text-2xl);
  margin: 0;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-text-primary);
}

.modal-body {
  padding: var(--space-xl);
}

.modal-footer {
  padding: var(--space-xl);
  border-top: var(--border-width-thin) solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding: var(--space-2xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-accent) 0%,
    var(--color-secondary) 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-content {
  flex: 1;
  background-color: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--color-accent);
  border: 4px solid var(--color-surface);
  border-radius: var(--border-radius-full);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.timeline-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.timeline-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   BADGES & PILLS
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
}

.badge-primary {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.badge-secondary {
  background-color: var(--color-secondary);
  color: var(--color-surface);
}

.badge-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: var(--border-width-thin) solid var(--color-border);
}

.badge-success {
  background-color: #22c55e;
  color: var(--color-surface);
}

.badge-warning {
  background-color: #f59e0b;
  color: var(--color-surface);
}

.badge-danger {
  background-color: var(--color-danger);
  color: var(--color-surface);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background-color: var(--color-surface-alt);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-fast);
}

.pill:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================
   TABLES
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin: var(--space-xl) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  font-size: var(--text-sm);
}

thead {
  background-color: var(--color-surface-alt);
}

th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
  border-bottom: var(--border-width-medium) solid var(--color-border);
}

td {
  padding: var(--space-md) var(--space-lg);
  color: var(--color-text-secondary);
  border-bottom: var(--border-width-thin) solid var(--color-border-light);
}

tbody tr {
  transition: background-color var(--transition-fast);
}

tbody tr:hover {
  background-color: var(--color-surface-alt);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Striped Table */
.table-striped tbody tr:nth-child(even) {
  background-color: var(--color-surface-alt);
}

/* Bordered Table */
.table-bordered {
  border: var(--border-width-thin) solid var(--color-border);
}

.table-bordered th,
.table-bordered td {
  border: var(--border-width-thin) solid var(--color-border);
}

/* Compact Table */
.table-compact th,
.table-compact td {
  padding: var(--space-sm) var(--space-md);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

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

.breadcrumb-separator {
  color: var(--color-text-muted);
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: var(--weight-medium);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.page-layout {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--header-height);
  padding: var(--space-2xl) 0;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-2xl));
  width: var(--sidebar-width);
  height: fit-content;
  flex-shrink: 0;
}

.sidebar-nav {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: var(--space-sm);
}

.sidebar-nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background-color: var(--color-surface-alt);
  color: var(--color-text-primary);
}

.sidebar-nav a.active {
  font-weight: var(--weight-semibold);
  border-left: 3px solid var(--color-accent);
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--color-surface);
  border-top: var(--border-width-thin) solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-4xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-section h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--space-sm);
}

.footer-section a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: var(--border-width-thin) solid var(--color-border);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  background-color: var(--color-surface-alt);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
  transform: translateY(-2px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile: < 480px (default styles above) */

/* Tablet: 481px - 768px */
@media (max-width: 768px) {
  .nav-links,
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-catalogue h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group select {
    width: 100%;
  }

  .search-box {
    min-width: 100%;
  }

  .catalogue-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .statistics-container {
    gap: var(--space-lg);
  }

  .stat-item {
    flex: 1;
    min-width: 100px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 50px;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
  }

  .timeline-marker {
    left: 20px;
  }

  .page-layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }

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

  .gallery-grid-masonry {
    column-count: 1;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* Desktop: 769px - 1200px */
@media (min-width: 769px) and (max-width: 1200px) {
  .gallery-grid-masonry {
    column-count: 2;
  }

  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Wide: > 1200px */
@media (min-width: 1201px) {
  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

/* Mobile specific - < 480px */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
    --header-height-scrolled: 56px;
  }

  .hero-catalogue {
    padding: 6rem 1rem 3rem;
  }

  .filter-bar {
    padding: 1rem 0;
  }

  .catalogue-section {
    margin: 2rem auto;
  }

  .artwork-card-title,
  .artwork-title {
    font-size: 1.125rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .site-header,
  .mobile-menu-toggle,
  .dark-mode-toggle,
  .back-to-top,
  .filter-bar,
  .scroll-progress,
  .lightbox,
  .modal,
  .mobile-menu-overlay {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .artwork-card,
  .card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .hero-catalogue {
    margin-top: 0;
    padding: 2rem;
  }
}

/* ============================================
   MOBILE MENU (open state)
   ============================================ */

@media (max-width: 768px) {
  .nav-links.mobile-open,
  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background-color: var(--color-surface);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-mobile-menu);
    gap: var(--space-sm);
    overflow-y: auto;
    animation: slide-in-right 0.3s ease;
  }

  .nav-links.mobile-open .nav-link,
  .nav-menu.mobile-open .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius-md);
    width: 100%;
    text-align: left;
  }

  .nav-links.mobile-open .nav-link:hover,
  .nav-links.mobile-open .nav-link.active,
  .nav-menu.mobile-open .nav-link:hover,
  .nav-menu.mobile-open .nav-link.active {
    background-color: var(--color-surface-alt);
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* ============================================
   COMMON PAGE SECTIONS
   ============================================ */

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

.bg-light {
  background-color: var(--color-surface-alt);
}

[data-theme="dark"] .bg-light {
  background-color: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: var(--container-md);
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 800px;
}

.lead-text {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
  font-weight: var(--weight-light);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-wide);
  font-feature-settings: "liga" 1, "kern" 1;
}

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

/* ============================================
   HERO VARIANTS (Interior Pages)
   ============================================ */

.hero-interior,
.hero-expositions,
.hero-market,
.hero-small {
  min-height: 40vh;
  padding: calc(var(--header-height) + var(--space-3xl)) var(--container-padding) var(--space-3xl);
}

.hero-interior {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c3e6b 100%);
}

.hero-expositions {
  background: linear-gradient(135deg, #1a2a3e 0%, var(--color-secondary) 100%);
}

.hero-market {
  background: linear-gradient(135deg, #2a1a2e 0%, #3e2c5f 100%);
}

.hero-small {
  min-height: 30vh;
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  color: var(--color-surface);
  margin-bottom: var(--space-md);
  /* Enhanced text shadow for hero headings */
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
  letter-spacing: var(--tracking-tighter);
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "kern" 1, "dlig" 1;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(245, 240, 232, 0.9);
  font-weight: var(--weight-light);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-relaxed);
  font-feature-settings: "liga" 1, "kern" 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-content {
  max-width: var(--container-sm);
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-surface);
  margin-bottom: var(--space-lg);
}

.cta-content h2 {
  color: var(--color-surface);
  margin-bottom: var(--space-lg);
}

.cta-text,
.cta-content p {
  font-size: var(--text-lg);
  color: rgba(245, 240, 232, 0.9);
  margin-bottom: var(--space-2xl);
  line-height: var(--leading-relaxed);
}

.cta-section .btn-primary {
  font-size: var(--text-lg);
  padding: var(--space-lg) var(--space-2xl);
}

/* ============================================
   BIOGRAPHIE PAGE
   ============================================ */

/* Bio Overview */
.bio-overview {
  padding: var(--space-4xl) 0;
}

.bio-intro {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.bio-portrait-placeholder {
  position: sticky;
  top: calc(var(--header-height) + var(--space-xl));
}

.placeholder-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-border) 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
}

.placeholder-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

.bio-text {
  max-width: 700px;
}

.bio-dates {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
}

.date-separator {
  color: var(--color-text-muted);
}

.date-location {
  color: var(--color-text-secondary);
  font-weight: var(--weight-normal);
}

/* Timeline Section */
.timeline-section {
  padding: var(--space-4xl) 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.timeline-item-highlight .timeline-content {
  border-left: 4px solid var(--color-accent);
}

.timeline-item-highlight .timeline-marker {
  background-color: var(--color-accent);
  width: 30px;
  height: 30px;
}

/* Influences Section */
.influences-section {
  padding: var(--space-4xl) 0;
}

.influences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.influence-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.influence-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.influence-card-highlight {
  border-color: var(--color-accent);
  border-width: 2px;
}

.influence-image-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-border-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.influence-content {
  padding: var(--space-xl);
}

.influence-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.influence-role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.influence-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Quotes Section */
.quotes-section {
  padding: var(--space-4xl) 0;
}

.quotes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
  max-width: var(--container-lg);
  margin: 0 auto;
}

.quote-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  position: relative;
  box-shadow: var(--shadow-md);
  margin: 0;
  border-left: 4px solid var(--color-border);
}

.quote-card-primary {
  border-left-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.quote-icon {
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.quote-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--color-text-primary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.quote-author {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  font-style: normal;
}

.quote-context {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Legacy Section */
.legacy-section {
  padding: var(--space-4xl) 0;
}

.legacy-content {
  max-width: var(--container-md);
  margin: 0 auto;
  text-align: center;
}

.legacy-content .section-title {
  margin-bottom: var(--space-2xl);
}

/* ============================================
   EXPOSITIONS PAGE
   ============================================ */

/* Timeline Decades */
.timeline-decade {
  margin-bottom: var(--space-3xl);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.decade-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-xl) var(--space-2xl);
  color: var(--color-surface);
}

.decade-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-surface);
  margin-bottom: var(--space-xs);
}

.decade-subtitle {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.8);
  font-weight: var(--weight-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Exhibitions List */
.exhibitions-list {
  padding: var(--space-lg) var(--space-2xl);
}

.exhibition-item {
  display: flex;
  gap: var(--space-xl);
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast);
}

.exhibition-item:last-child {
  border-bottom: none;
}

.exhibition-item:hover {
  background-color: var(--color-surface-alt);
  margin: 0 calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  border-radius: var(--border-radius-sm);
}

.exhibition-item.highlight {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-left: calc(-1 * var(--space-sm));
}

.exhibition-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  min-width: 80px;
  flex-shrink: 0;
}

.exhibition-details {
  flex: 1;
}

.exhibition-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.exhibition-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0;
}

/* World Map Section */
.world-map-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-surface-alt);
}

.world-map {
  margin-top: var(--space-2xl);
}

.map-container {
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: auto;
  max-height: 500px;
}

.map-svg .continent {
  fill: var(--color-surface-alt);
  stroke: var(--color-border);
  transition: fill var(--transition-fast);
}

.map-marker {
  fill: var(--color-secondary);
  opacity: 0.8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.map-marker.major {
  fill: var(--color-accent);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(196, 163, 90, 0.5));
}

.map-marker:hover {
  opacity: 1;
  transform-origin: center;
  r: 10;
}

.map-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-semibold);
  fill: var(--color-text-primary);
}

.map-label.small {
  font-size: 10px;
  font-weight: var(--weight-normal);
  fill: var(--color-text-secondary);
}

.map-legend {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-full);
  background-color: var(--color-secondary);
}

.legend-marker.major {
  background-color: var(--color-accent);
  box-shadow: 0 0 4px rgba(196, 163, 90, 0.5);
}

.legend-text {
  font-size: var(--text-sm);
}

/* Galleries Section */
.galleries-section {
  padding: var(--space-4xl) 0;
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.gallery-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.gallery-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
  grid-column: 1 / -1;
}

@media (min-width: 769px) {
  .gallery-card.featured {
    grid-column: span 2;
  }
}

.gallery-card .card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
}

.gallery-card.featured .card-header {
  background: linear-gradient(135deg, rgba(196, 163, 90, 0.08) 0%, transparent 100%);
}

.card-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-xs);
}

.card-content {
  padding: var(--space-xl);
}

.card-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.card-highlights {
  list-style: none;
  padding: 0;
}

.card-highlights li {
  padding: var(--space-sm) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  padding-left: var(--space-lg);
  position: relative;
}

.card-highlights li:last-child {
  border-bottom: none;
}

.card-highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: var(--weight-bold);
}

/* Museums Section */
.museums-section {
  padding: var(--space-4xl) 0;
  background-color: var(--color-surface-alt);
}

.museums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.museum-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.museum-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.museum-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.museum-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.museum-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.museum-location {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-md);
}

.museum-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   MARCHE (MARKET) PAGE
   ============================================ */

/* Market Stats */
.market-stats {
  padding: var(--space-4xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.stat-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card.stat-highlight {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.stat-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  text-align: left;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.stat-details {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Record Sales */
.record-sales {
  padding: var(--space-4xl) 0;
  background-color: var(--color-surface-alt);
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-2xl);
  -webkit-overflow-scrolling: touch;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  font-size: var(--text-sm);
}

.sales-table thead {
  background-color: var(--color-primary);
}

.sales-table th {
  color: var(--color-surface);
  padding: var(--space-lg);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: none;
}

.sales-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.sales-table tbody tr:hover {
  background-color: var(--color-surface-alt);
}

.record-top {
  background-color: rgba(196, 163, 90, 0.05);
}

.record-top td {
  font-weight: var(--weight-medium);
}

.price-cell {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  white-space: nowrap;
}

/* Market Analysis */
.market-analysis {
  padding: var(--space-4xl) 0;
}

.analysis-content {
  max-width: var(--container-md);
  margin: 0 auto;
}

.analysis-text {
  line-height: var(--leading-loose);
}

.analysis-text .lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* Price Ranges */
.price-ranges {
  padding: var(--space-4xl) 0;
  background-color: var(--color-surface-alt);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.price-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.price-card.price-premium {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.price-medium {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.price-range {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.price-average {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.price-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-border-light);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.price-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  border-radius: var(--border-radius-full);
  transition: width 1s ease;
}

/* Auction Houses */
.auction-houses {
  padding: var(--space-4xl) 0;
}

.auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.auction-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.auction-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.auction-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.auction-locations {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-md);
}

.auction-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Authentication Notice */
.authentication-notice {
  padding: var(--space-4xl) 0;
  background-color: var(--color-surface-alt);
}

.notice-box {
  display: flex;
  gap: var(--space-xl);
  background-color: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  max-width: var(--container-md);
  margin: 0 auto;
}

.notice-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.notice-content {
  flex: 1;
}

.notice-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.notice-content p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.notice-contact {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.notice-contact p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   BIBLIOGRAPHIE PAGE
   ============================================ */

.bibliography-content {
  max-width: var(--container-md);
  margin: 0 auto;
}

.biblio-section {
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--color-border);
}

.biblio-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.biblio-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

/* Bibliography Entries */
.biblio-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.biblio-entry {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.biblio-entry:hover {
  box-shadow: var(--shadow-md);
}

.biblio-entry.featured-entry {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.entry-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.entry-title cite {
  font-style: italic;
}

.entry-details {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.entry-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.entry-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-md);
}

.entry-citation {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.entry-citation cite {
  font-style: italic;
}

/* Online Resources */
.online-resources {
  margin-top: var(--space-xl);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.resource-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.resource-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  transition: color var(--transition-fast);
}

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

.external-icon {
  font-size: 0.8em;
  opacity: 0.7;
}

/* Collections */
.collections-content {
  margin-top: var(--space-xl);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.collection-entry {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.collection-entry:hover {
  box-shadow: var(--shadow-md);
}

.collection-entry.featured-collection {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(196, 163, 90, 0.05) 100%);
}

.collection-entry h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.collection-location {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-md);
}

.collection-work {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.collection-work cite {
  font-style: italic;
}

.collection-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   RESPONSIVE - PAGE SPECIFIC
   ============================================ */

@media (max-width: 768px) {
  /* Biographie responsive */
  .bio-intro {
    grid-template-columns: 1fr;
  }

  .bio-portrait-placeholder {
    position: relative;
    top: 0;
    max-width: 250px;
    margin: 0 auto;
  }

  .bio-dates {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .quotes-container {
    grid-template-columns: 1fr;
  }

  .quote-text {
    font-size: var(--text-xl);
  }

  /* Expositions responsive */
  .exhibitions-list {
    padding: var(--space-md) var(--space-lg);
  }

  .exhibition-item {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .exhibition-year {
    min-width: auto;
  }

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

  .gallery-card.featured {
    grid-column: 1;
  }

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

  /* Marché responsive */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .notice-box {
    flex-direction: column;
    text-align: center;
  }

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

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

  /* Sales table mobile card layout */
  .sales-table thead {
    display: none;
  }

  .sales-table tbody tr {
    display: block;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
  }

  .sales-table td {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
  }

  .sales-table td:last-child {
    border-bottom: none;
  }

  .sales-table td::before {
    content: attr(data-label);
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    margin-right: var(--space-md);
  }

  .record-top {
    border-color: var(--color-accent);
    border-width: 2px;
  }

  /* Bibliographie responsive */
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  /* Hero responsive */
  .hero-interior,
  .hero-expositions,
  .hero-market,
  .hero-small {
    min-height: 30vh;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--container-padding) var(--space-2xl);
  }

  .hero-small {
    min-height: 25vh;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }
}

/* ============================================
   END OF STYLESHEET
   ============================================ */
