/* ============================================================
   -TÓL-IG CSOPORT — DESIGN SYSTEM
   Contemporary Textile Art / Editorial Gallery direction.
   Burgundy is an accent, never a background flood. Whitespace,
   asymmetry and the artwork itself carry the page.
   ============================================================ */

:root {
  /* brand */
  --burgundy: #7A1F3D;
  --burgundy-deep: #4E1327;
  --burgundy-light: #A5486A;
  --dark: #171717;
  --warm-white: #F7F5F1;
  --light-neutral: #EAE7E1;
  --muted-gray: #77736F;
  --white: #FFFFFF;

  /* semantic */
  --bg: var(--warm-white);
  --surface: var(--white);
  --text: var(--dark);
  --text-muted: var(--muted-gray);
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.22);

  /* type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --container-max: 1440px;
  --radius: 2px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-base: 0.5s;
  --t-slow: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { display: block; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  z-index: 5000;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

/* ---------------------------------------------------------- TYPOGRAPHY */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.6rem, 3.4vw + 1.6rem, 5.6rem); }
h2 { font-size: clamp(1.9rem, 1.8vw + 1.3rem, 3.2rem); }
h3 { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.3rem);
  color: var(--text-muted);
  max-width: 46em;
  line-height: 1.6;
}

.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }

/* -------------------------------------------------------------- LAYOUT */
.container { width: 92%; max-width: var(--container-max); margin: 0 auto; }
.container-wide { width: 96%; max-width: 1800px; margin: 0 auto; }

.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-head { max-width: 46em; margin-bottom: var(--space-5); }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.text-link:hover { color: var(--burgundy); }
.text-link .arrow { transition: transform var(--t-fast) var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }

/* --------------------------------------------------------------- BREADCRUMBS */
.breadcrumbs {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: var(--space-3) 0 0;
}
.breadcrumbs a:hover { color: var(--burgundy); }
.breadcrumbs .sep { margin: 0 0.5em; opacity: 0.5; }

/* ---------------------------------------------------------------- BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 15px 30px;
  background: var(--dark);
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  border: 1px solid var(--dark);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1px solid var(--line-strong);
}
.btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-on-dark { background: transparent; color: var(--white); border: 1px solid rgba(247,245,241,0.4); }
.btn-on-dark:hover { background: var(--burgundy); border-color: var(--burgundy); }

/* ---------------------------------------------------------------- HEADER */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand-arrow {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid var(--burgundy);
  flex-shrink: 0;
}
.nav-menu { display: flex; gap: var(--space-4); }
.nav-menu a {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--burgundy);
  transition: width var(--t-fast) var(--ease);
}
.nav-menu a:hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-menu a[aria-current="page"] { color: var(--burgundy); }

.nav-right { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { display: flex; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
.lang-switch a { opacity: 0.45; }
.lang-switch a[aria-current="true"] { opacity: 1; color: var(--burgundy); }

.nav-toggle { display: none; }

/* --------------------------------------------------------------- HERO */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  gap: var(--space-3);
}
.hero-copy .lede { margin: var(--space-1) 0 var(--space-3); }
.hero-visual { position: relative; overflow: hidden; background: var(--dark); }
.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,23,23,0.4), transparent 45%);
}
.hero-visual-caption {
  position: absolute; left: var(--space-3); bottom: var(--space-3); right: var(--space-3);
  z-index: 1; color: var(--warm-white);
}
.hero-visual-caption .eyebrow { color: var(--burgundy-light); }
.hero-visual-caption .title { font-family: var(--font-display); font-size: clamp(1.3rem, 1.6vw, 1.9rem); }
.hero-cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }

/* --------------------------------------------------------- BRAND STATEMENT */
.statement-block {
  background: var(--dark);
  color: var(--warm-white);
  padding: var(--space-6) 0;
}
.statement-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem);
  line-height: 1.35;
  font-style: italic;
  font-weight: 400;
  max-width: 22em;
}
.statement-block cite {
  display: block;
  margin-top: var(--space-3);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy-light);
}

/* -------------------------------------------------------- ASYMMETRIC GRID */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}
.featured-grid > a, .featured-grid > .cell { position: relative; overflow: hidden; background: var(--light-neutral); display: block; }
.featured-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.featured-grid a:hover img { transform: scale(1.05); }
.fg-span-4 { grid-column: span 4; aspect-ratio: 4/3; }
.fg-span-2 { grid-column: span 2; aspect-ratio: 3/4; }
.fg-span-3 { grid-column: span 3; aspect-ratio: 3/4; }

.card-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  background: linear-gradient(0deg, rgba(23,23,23,0.75), transparent 75%);
  color: var(--white);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.featured-grid a:hover .card-caption, .artwork-card:hover .card-caption { opacity: 1; transform: translateY(0); }
.card-caption .title { font-family: var(--font-display); font-size: 1.15rem; }
.card-caption .meta { font-size: 0.78rem; opacity: 0.8; margin-top: 2px; }

/* ----------------------------------------------------- COLLECTION CARDS */
.collections-list { display: grid; gap: var(--space-4); }
.collection-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}
.collection-row:nth-child(even) { direction: rtl; }
.collection-row:nth-child(even) > * { direction: ltr; }
.collection-media { aspect-ratio: 16/10; overflow: hidden; background: var(--dark); }
.collection-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.collection-row:hover .collection-media img { transform: scale(1.04); }
.collection-index { font-family: var(--font-display); font-size: 0.85rem; color: var(--burgundy); letter-spacing: 0.08em; }
.collection-copy h3 { margin: var(--space-1) 0 var(--space-2); }
.collection-copy p { color: var(--text-muted); max-width: 40em; }
.collection-meta { display: flex; gap: var(--space-3); margin: var(--space-2) 0 var(--space-3); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* -------------------------------------------------- STRIP / EDITORIAL GALLERY */
.strip-gallery {
  --strip-h: clamp(380px, 66vh, 640px);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.strip-gallery::-webkit-scrollbar { height: 6px; }
.strip-gallery::-webkit-scrollbar-thumb { background: var(--line-strong); }
.strip-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
}
.strip-frame {
  position: relative; overflow: hidden; background: var(--light-neutral);
  height: var(--strip-h);
  width: calc(var(--strip-h) * var(--ar, 0.75));
}
.strip-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base) var(--ease); }
.strip-item:hover .strip-frame img { transform: scale(1.05); }
.strip-caption { padding: var(--space-2) 2px 0; width: 0; min-width: 100%; }
.strip-caption .title { font-family: var(--font-display); font-size: 1.05rem; }
.strip-caption .meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* editorial masonry (for non-strip contexts, e.g. featured artworks) */
.masonry {
  columns: 4 220px;
  column-gap: var(--space-3);
}
.masonry .artwork-card { break-inside: avoid; margin-bottom: var(--space-3); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}

.artwork-card { position: relative; cursor: pointer; overflow: hidden; background: var(--light-neutral); }
.artwork-card .frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4/5); }
.artwork-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base) var(--ease); }
.artwork-card:hover img { transform: scale(1.05); }
.artwork-info { padding: var(--space-2) 0; }
.artwork-title { font-family: var(--font-display); font-size: 1.05rem; }
.artwork-artist { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ------------------------------------------------------------ ARTIST GRID */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-3) var(--space-2);
}
.artist-card { text-align: left; }
.artist-portrait {
  aspect-ratio: 3/4;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark);
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin-bottom: var(--space-2);
  position: relative;
  overflow: hidden;
}
.artist-portrait.has-photo { background: var(--light-neutral); display: block; }
.artist-portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  transition: transform var(--t-slow) var(--ease);
}
.artist-card:hover .artist-portrait img { transform: scale(1.04); }
.artist-name { font-weight: 600; font-size: 0.95rem; }
.artist-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.member-profile { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: var(--space-5); align-items: start; }
.member-profile .artist-portrait { margin-bottom: 0; font-size: 3.6rem; }
.member-statement { border-top: 1px solid var(--line); margin-top: var(--space-3); padding-top: var(--space-3); max-width: 38em; }
.member-statement p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.9rem); line-height: 1.45; color: var(--text);
}
@media (max-width: 720px) {
  .member-profile { grid-template-columns: 1fr; gap: var(--space-3); }
  .member-profile .artist-portrait { max-width: 280px; }
}

@media (min-width: 768px) {
  .artists-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
}

/* ---------------------------------------------------------- VIEWER / LIGHTBOX */
.artwork-viewer {
  position: fixed; inset: 0;
  background: var(--dark);
  color: var(--white);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.artwork-viewer.active { display: block; opacity: 1; }
.viewer-content {
  width: 100%; height: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
}
.viewer-image-container {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-5);
  background: #100e0e;
}
.viewer-image-container img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.viewer-meta {
  background: var(--dark);
  padding: var(--space-6) var(--space-4) var(--space-4);
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
}
.viewer-meta .eyebrow { color: var(--burgundy-light); }
.viewer-meta h2 { margin-bottom: var(--space-1); }
.viewer-artist-link { font-size: 1.05rem; color: var(--light-neutral); border-bottom: 1px solid transparent; }
.viewer-artist-link:hover { border-color: currentColor; color: var(--burgundy-light); }
.viewer-facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: var(--space-2) 0 var(--space-3); font-size: 0.82rem; color: rgba(247,245,241,0.65); }
.viewer-desc { color: rgba(247,245,241,0.85); }
.artist-statement-box {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.artist-statement-box .eyebrow { margin-bottom: var(--space-1); }
.artist-statement-box p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.55;
}
.viewer-links { margin-top: auto; padding-top: var(--space-3); display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.viewer-links a { color: rgba(247,245,241,0.75); }
.viewer-links a:hover { color: var(--white); }

.viewer-close {
  position: absolute; top: var(--space-3); right: var(--space-3);
  color: var(--white); font-size: 1.6rem; line-height: 1;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2100; background: rgba(255,255,255,0.06); border-radius: 50%;
  border: none;
}
.viewer-close:hover { background: var(--burgundy); }

.viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--white);
  border: none; cursor: pointer; z-index: 2050; font-size: 1.4rem;
}
.viewer-nav:hover { background: var(--burgundy); }
.viewer-prev { left: var(--space-3); }
.viewer-next { right: calc(420px + var(--space-3)); }

@media (max-width: 900px) {
  .viewer-content { grid-template-columns: 1fr; grid-template-rows: 55vh 1fr; }
  .viewer-next { right: var(--space-3); }
  .viewer-image-container { padding: var(--space-3); }
  .viewer-meta { padding: var(--space-4) var(--space-3); border-left: none; border-top: 1px solid rgba(255,255,255,0.1); }
}

/* --------------------------------------------------------------- TIMELINE */
.timeline { position: relative; }
.timeline-year { display: flex; align-items: baseline; gap: var(--space-2); margin-top: var(--space-5); }
.timeline-year:first-child { margin-top: 0; }
.timeline-year h3 { color: var(--burgundy); }
.timeline-year .rule { flex: 1; height: 1px; background: var(--line); }
.timeline-items { border-left: 2px solid var(--line-strong); margin-left: 6px; margin-top: var(--space-3); }
.timeline-entry {
  position: relative;
  padding: var(--space-2) 0 var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.timeline-entry:last-child { border-bottom: none; }
.timeline-entry::before {
  content: '';
  position: absolute; left: -7px; top: 26px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--burgundy);
  border: 3px solid var(--bg);
}
.timeline-entry .venue { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.timeline-entry h4 { margin-top: 4px; }
.timeline-entry p { color: var(--text-muted); margin-top: 6px; max-width: 50em; }
.timeline-entry.is-current .venue { color: var(--burgundy); }

/* -------------------------------------------------------------- LOCATIONS */
.locations-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: start; }
.locations-maps { display: flex; flex-direction: column; gap: var(--space-3); }
.locations-map {
  position: relative; overflow: hidden; margin: 0;
  background: var(--warm-white);
  border: 1px solid var(--line);
}
.locations-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.locations-map-label {
  position: absolute; left: var(--space-2); top: var(--space-2);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); z-index: 2;
}
.map-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  z-index: 1;
}
.map-marker .dot {
  display: flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--white);
  box-shadow: 0 1px 4px rgba(23,23,23,0.35);
  color: var(--white); font-size: 0.62rem; font-weight: 700; line-height: 1;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.map-marker.is-cluster, .map-marker.is-cluster .dot { width: 24px; height: 24px; }
.map-marker:hover .dot, .map-marker:focus-visible .dot { background: var(--dark); transform: scale(1.2); }
.map-marker-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--dark);
  background: rgba(255,255,255,0.85);
  padding: 1px 6px;
  position: absolute;
}
.map-marker-label.side-top { bottom: 100%; left: 50%; transform: translate(-50%, -4px); }
.map-marker-label.side-bottom { top: 100%; left: 50%; transform: translate(-50%, 4px); }
.map-marker-label.side-left { right: 100%; top: 50%; transform: translate(-6px, -50%); }
.map-marker-label.side-right { left: 100%; top: 50%; transform: translate(6px, -50%); }
.locations-list { display: flex; flex-direction: column; }
.location-item { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.location-item .city { font-family: var(--font-display); font-size: 1.2rem; }
.location-item .country { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.location-item ul { margin-top: 8px; font-size: 0.88rem; color: var(--text-muted); }
.location-item li { padding: 2px 0; }
.location-item a:hover { color: var(--burgundy); }

@media (max-width: 900px) {
  .locations-wrap { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- FOOTER */
.site-footer { background: var(--dark); color: var(--warm-white); padding: var(--space-6) 0 var(--space-3); margin-top: var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.footer-grid .brand { color: var(--white); margin-bottom: var(--space-2); }
.footer-grid p { color: rgba(247,245,241,0.6); max-width: 32em; }
.footer-grid h4 { text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.12em; color: rgba(247,245,241,0.5); margin-bottom: var(--space-2); }
.footer-grid ul { font-size: 0.9rem; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--burgundy-light); }
.footer-bottom { padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: rgba(247,245,241,0.5); }

/* ----------------------------------------------------------- COOKIE CONSENT */
.cookie-banner {
  position: fixed; bottom: var(--space-2); right: var(--space-2); left: var(--space-2);
  max-width: 440px; margin-left: auto;
  background: var(--surface);
  padding: var(--space-3);
  box-shadow: 0 20px 50px rgba(23,23,23,0.18);
  z-index: 3000;
  display: none;
  border: 1px solid var(--line);
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); margin: var(--space-1) 0 var(--space-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.72rem; }
.cookie-categories { margin: var(--space-2) 0; font-size: 0.82rem; display: none; }
.cookie-categories.visible { display: block; }
.cookie-categories label { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.cookie-settings-link { font-size: 0.78rem; text-decoration: underline; color: var(--text-muted); }

/* ------------------------------------------------------------- 404 */
.error-page { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page .code { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 9rem); color: var(--burgundy); line-height: 1; }

/* ---------------------------------------------------------------- MISC */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-3); margin: var(--space-4) 0; }
.stat { border-top: 1px solid var(--line-strong); padding-top: var(--space-1); }
.stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--burgundy); }
.stat .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------ CONTACT FORM */
.form-grid { display: grid; gap: var(--space-3); max-width: 42em; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.form-field input, .form-field textarea {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--burgundy); }
.form-note { font-size: 0.85rem; color: var(--text-muted); }

/* --------------------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: repeat(4, 1fr); }
  .fg-span-4 { grid-column: span 4; }
  .fg-span-2, .fg-span-3 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; aspect-ratio: 4/3; }
  .hero-copy { padding: var(--space-5) var(--space-3); }
  .collection-row, .collection-row:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .locations-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-menu { position: fixed; inset: 0 0 0 30%; background: var(--warm-white); flex-direction: column; padding: 100px var(--space-3) var(--space-3); gap: var(--space-3); transform: translateX(100%); transition: transform var(--t-base) var(--ease); z-index: 999; }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 26px; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--dark); }
  .masonry { columns: 2 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .viewer-prev, .viewer-next { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .section { padding: var(--space-5) 0; }
}

/* ---------------------------------------------------------------- PRESS */
.press-list { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.press-item { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); max-width: 52em; }
.press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.press-item h3 { margin: var(--space-1) 0; }
.press-item h3 a:hover { color: var(--burgundy); }
.press-exh { font-size: 0.88rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.press-exh a:hover { color: var(--burgundy); }

/* ------------------------------------------------- SILHOUETTE / FORMER MEMBERS */
.artist-portrait.is-silhouette {
  background-color: var(--light-neutral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400' preserveAspectRatio='xMidYMax slice'%3E%3Ccircle cx='150' cy='158' r='62' fill='%23BDB7AC'/%3E%3Cpath d='M38 400C38 292 88 246 150 246s112 46 112 154z' fill='%23BDB7AC'/%3E%3C/svg%3E");
  background-size: cover; background-position: center bottom;
}
.former-title { margin-top: var(--space-5); font-size: 1.3rem; }
.former-members { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.former-members li { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 0.95rem; }
.former-members .artist-portrait { width: 52px; height: 52px; aspect-ratio: 1; margin: 0; border-radius: 50%; flex-shrink: 0; }

/* ------------------------------------------------------------ BACK TO TOP */
.to-top {
  position: fixed; right: var(--space-2); bottom: var(--space-2);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: var(--white);
  box-shadow: 0 6px 20px rgba(23,23,23,0.3);
  z-index: 900;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.to-top:hover { background: var(--burgundy); transform: translateY(-2px); }
.cookie-banner.visible ~ .to-top { display: none; }

[hidden] { display: none !important; }

#viewer-statement { white-space: pre-line; }

.viewer-exh-list { margin: 4px 0 0 0; display: flex; flex-direction: column; gap: 2px; }
.viewer-exh-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(247,245,241,0.3); }
.viewer-exh-list a:hover { text-decoration-color: currentColor; }
.member-role { margin-top: var(--space-1); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.artist-card .artist-role { color: var(--burgundy); font-weight: 600; }

.member-collection { margin-top: var(--space-4); font-size: 1.35rem; }
.member-collection a:hover { color: var(--burgundy); }

/* ------------------------------------------------------------- ARTWORK PAGE */
a.strip-item, a.artwork-card { display: block; color: inherit; }
a.collection-media { display: block; }
.pre-line { white-space: pre-line; }
.artwork-page-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1fr; gap: var(--space-5); align-items: start; }
.artwork-page-image { margin: 0; background: var(--light-neutral); width: min(100%, calc(78vh * var(--ar, 0.45))); max-height: 78vh; }
.artwork-page-image img { width: 100%; height: auto; display: block; }
.artwork-page-info h1 { margin: var(--space-1) 0; }
.artwork-page-info .eyebrow a:hover { text-decoration: underline; }
.artwork-page-artist { font-size: 1.2rem; }
.artwork-page-artist a:hover { color: var(--burgundy); }
.artwork-page-dims { color: var(--text-muted); font-size: 0.9rem; margin-top: var(--space-1); }
.artwork-page-exh { margin-top: var(--space-4); }
.artwork-page-exh h2 { font-size: 1.3rem; margin-bottom: var(--space-1); }
.artwork-page-exh li { padding: 2px 0; }
.artwork-page-exh a:hover { color: var(--burgundy); }
.artwork-page-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.artwork-page-nav a:hover { color: var(--burgundy); }
@media (max-width: 760px) { .artwork-page-grid { grid-template-columns: 1fr; gap: var(--space-3); } .artwork-page-image { width: 100%; max-height: none; } }

.exh-collection { border-top: 1px solid var(--line); margin-top: var(--space-4); padding-top: var(--space-4); }
.exh-collection h2 a:hover { color: var(--burgundy); }
.exh-collection-meta { color: var(--text-muted); font-size: 0.85rem; margin: 4px 0 var(--space-3); }

/* ------------------------------------------------------ HOME: GALLERY WALL */
.works-wall { display: flex; gap: var(--space-2); align-items: flex-start; }
.wall-item { display: block; flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 260px); min-width: 0; color: inherit; }
.wall-frame { display: block; overflow: hidden; background: var(--light-neutral); aspect-ratio: var(--ar); }
.wall-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.wall-item:hover .wall-frame img { transform: scale(1.04); }
.wall-caption { display: block; padding-top: var(--space-1); }
.wall-caption .title { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.25; }
.wall-caption .meta { display: block; font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 980px) {
  /* narrow screens: one tidy, swipeable row at a fixed height */
  .works-wall { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--space-2); --wall-h: 340px; }
  .wall-item { flex: 0 0 auto; width: calc(var(--wall-h) * var(--ar)); scroll-snap-align: start; }
}

/* ----------------------------------------------- DESKTOP: GALLERY WALL (no hidden scrollbar) */
@media (min-width: 901px) {
  .strip-gallery {
    --row-h: 440px;
    flex-wrap: wrap; overflow: visible; padding-bottom: 0;
    gap: var(--space-4) var(--space-2);
    scroll-snap-type: none;
  }
  /* absorbs the free space of the last row so it keeps its natural size */
  .strip-gallery::after { content: ''; flex: 100000 1 0; }
  .strip-item { flex: calc(var(--ar, 0.42) * 100) 1 calc(var(--ar, 0.42) * var(--row-h)); min-width: 0; }
  .strip-frame { width: 100%; height: auto; aspect-ratio: var(--ar, 0.42); }
}

/* ------------------------------------------------------------- IMAGE ZOOM */
.zoom-trigger { position: relative; display: block; cursor: zoom-in; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 23, 23, 0.78); color: var(--white);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.zoom-trigger:hover .zoom-hint, .zoom-trigger:focus-visible .zoom-hint { background: var(--burgundy); transform: scale(1.08); }
.viewer-image-container img { cursor: zoom-in; }

.zoom-viewer { position: fixed; inset: 0; z-index: 2600; background: rgba(14, 12, 12, 0.97); display: none; }
.zoom-viewer.open { display: block; }
.zoom-stage { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom-viewer.is-zoomed .zoom-stage { cursor: grab; }
.zoom-viewer.is-zoomed .zoom-stage:active { cursor: grabbing; }
.zoom-stage img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; transform-origin: center center; will-change: transform; -webkit-user-drag: none; user-select: none; }
.zoom-toolbar { position: fixed; top: var(--space-2); right: var(--space-2); display: flex; gap: 8px; z-index: 2; }
.zoom-btn { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.12); color: var(--white); }
.zoom-btn:hover:not(:disabled) { background: var(--burgundy); }
.zoom-btn:disabled { opacity: 0.35; cursor: default; }
.zoom-hint-text { position: fixed; left: 0; right: 0; bottom: var(--space-2); text-align: center; color: rgba(247, 245, 241, 0.55); font-size: 0.8rem; pointer-events: none; }
@media (hover: none) { .zoom-hint-text { display: none; } }


/* ------------------------------------------------ HERO SLIDESHOW (3 works, cross-fading) */
.hero-slides { background: var(--dark); }
.hero-slides::after { display: none; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1.4vw, 18px);
  padding: clamp(14px, 3vw, 40px);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-work {
  display: block; height: 100%; max-height: 100%; max-width: calc((100% - 2 * clamp(8px, 1.4vw, 18px)) / 3);
  aspect-ratio: var(--ar, 0.375); overflow: hidden; background: var(--dark-2, #222);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.hero-work img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s linear; }
.hero-slide.is-active .hero-work img { transform: scale(1.05); }
.hero-work:nth-child(2) { align-self: stretch; }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-work img { transition: none; } .hero-slide.is-active .hero-work img { transform: none; } }

/* ------------------------------------------------ FEATURED COLLECTION: cover + random work, same height */
.featured-pair {
  display: grid; grid-template-columns: 32fr 9fr; gap: 14px;
  aspect-ratio: 41 / 24.6; max-width: 1080px; margin: 0 auto;
}
.featured-pair a { position: relative; overflow: hidden; display: block; background: var(--light-neutral); min-height: 0; }
.featured-pair img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-slow) var(--ease); }
.featured-pair a:hover img { transform: scale(1.04); }
@media (max-width: 600px) { .featured-pair { gap: 8px; } }

/* ------------------------------------------------ ABOUT: arrow | text | arrow head */
.about-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 56px); align-items: center;
}
.about-art { margin: 0; }
.about-art img { width: 100%; height: auto; display: block; }
.about-art-left img { box-shadow: 0 12px 34px rgba(60, 20, 20, 0.22); }
.about-art-right img { mix-blend-mode: multiply; } /* the photo has a white background: multiply makes it blend into the page */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr 1fr; }
  .about-copy { grid-column: 1 / -1; order: -1; }
}

/* ------------------------------------------------ COLLECTION PAGE: text + side image */
.col-intro.has-side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.col-side { margin: 0; }
.col-side img { width: 100%; height: auto; display: block; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }
.col-side figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--text-muted, #666); }
@media (max-width: 900px) { .col-intro.has-side { grid-template-columns: 1fr; } }

/* hero slideshow captions: title + artist under each work */
.hero-work { display: flex; flex-direction: column; aspect-ratio: auto; height: 100%; max-height: 100%; background: none; box-shadow: none; overflow: visible; min-width: 0; flex: 0 1 calc((100% - 2 * clamp(8px, 1.4vw, 18px)) / 3); max-width: none; }
.hero-frame { display: block; flex: 1 1 0; min-height: 0; overflow: hidden; background: var(--dark-2, #222); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.hero-work img { height: 100%; }
.hero-cap { display: block; flex: none; padding-top: 10px; color: var(--warm-white); line-height: 1.3; }
.hero-cap .t { display: block; font-family: var(--font-display); font-size: clamp(0.85rem, 1.1vw, 1.05rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cap .m { display: block; font-size: clamp(0.7rem, 0.85vw, 0.8rem); opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* mobile menu: backdrop-filter on the header made the fixed panel a header-sized box (see-through); use a solid header and a solid full-height panel */
@media (max-width: 980px) {
  .site-header { background: var(--warm-white); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-menu { inset: 0 0 0 18%; background: var(--warm-white); box-shadow: -18px 0 40px rgba(0, 0, 0, 0.25); overflow-y: auto; z-index: 1001; height: 100vh; height: 100dvh; align-items: flex-start; }
  .nav-menu:not(.open) { visibility: hidden; box-shadow: none; transition: transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); }
  .nav-menu a { font-size: 1.05rem; }
  .nav-toggle { position: relative; z-index: 1002; }
}

/* artwork page on phones: the 3:8 strip used to fill the whole width (~1000 px tall) and push the text far down.
   Limit it to ~60% of the screen height, centred; tap = full-screen zoom. */
.artwork-page-image, .zoom-trigger { touch-action: pan-y pinch-zoom; }
@media (max-width: 760px) {
  .artwork-page-image { width: min(100%, calc(60vh * var(--ar, 0.45))); max-height: 60vh; margin-left: auto; margin-right: auto; }
  .artwork-page-image img { max-height: 60vh; width: 100%; object-fit: contain; }
}

/* ---------------- MOBILE (<= 900px) ---------------- */
/* collection page: wrapping wall instead of a sideways strip, so 2-3 works fit across a phone screen */
@media (max-width: 900px) {
  .strip-gallery {
    --row-h: 250px;
    flex-wrap: wrap; overflow: visible; padding-bottom: 0;
    gap: var(--space-3) 8px; scroll-snap-type: none;
  }
  .strip-gallery::after { content: ''; flex: 100000 1 0; }
  .strip-item { flex: calc(var(--ar, 0.42) * 100) 1 calc(var(--ar, 0.42) * var(--row-h)); min-width: 0; }
  .strip-frame { width: 100%; height: auto; aspect-ratio: var(--ar, 0.42); }
  .strip-caption .title { font-size: 0.95rem; }

  /* viewer: one scrolling column, image first and scrolling away with the text */
  .artwork-viewer { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
  .viewer-content { display: block; height: auto; min-height: 100%; }
  .viewer-image-container { padding: 64px var(--space-3) var(--space-3); }
  .viewer-image-container img { max-height: 68vh; width: auto; max-width: 100%; }
  .viewer-meta { overflow: visible; }
  .viewer-close { position: fixed; z-index: 2100; background: rgba(0, 0, 0, 0.55); }
  .viewer-nav { top: 34vh; }
}

/* ---------------- COLLECTION GRID: every work is 30 x 80 cm, so every tile has the same width and the same 3:8 frame.
   (images are cropped a little with object-fit: cover where a photo is slightly wider/narrower) ---------------- */
.strip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-4) var(--space-2); overflow: visible; padding-bottom: 0; scroll-snap-type: none; }
.strip-gallery::after { display: none; content: none; }
.strip-item { flex: none; min-width: 0; width: auto; }
.strip-frame { width: 100%; height: auto; aspect-ratio: 3 / 8; }
@media (max-width: 900px) {
  .strip-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) 8px; }
}

/* legal pages */
.prose h2 { font-size: 1.35rem; margin: 1.8em 0 0.5em; }
.prose h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose li + li { margin-top: 0.35em; }
.prose mark { background: #fff2b3; color: #333; padding: 0 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { font-weight: 600; white-space: nowrap; }
.prose:has(.legal-table) { max-width: 78ch; }

/* contact form */
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.form-consent input { margin-top: 4px; flex: none; }
.form-consent a { text-decoration: underline; }
.form-status { padding: 12px 14px; font-size: 0.95rem; border-left: 3px solid; }
.form-status.is-ok { background: #eef6ee; border-color: #3d7a3d; color: #1f4a1f; }
.form-status.is-error { background: #fbeeee; border-color: var(--burgundy); color: #6b1a1a; }
.form-field textarea { resize: vertical; }

/* exhibition page: photos + sources */
.exh-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); align-items: start; }
.exh-photos figure { margin: 0; }
.exh-photos img { width: 100%; height: auto; display: block; background: var(--light-neutral); }
.exh-photos figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.exh-sources { margin-top: var(--space-3); font-size: 0.9rem; color: var(--text-muted); }
