/* ==========================================================================
   KUSH ART GALLERY — Design System
   White-on-white editorial. Charcoal accents. Air over ornament.
   ========================================================================== */

:root {
  /* Color: pure white, with very subtle warmth in the shadows */
  --bg: #ffffff;
  --bg-soft: #fafafa;          /* almost imperceptible — used sparingly */
  --bg-tint: #f5f5f5;          /* slightly more visible — for image placeholder backgrounds */
  --ink: #111111;              /* not pure black — softer */
  --ink-soft: #2a2a2a;
  --ink-muted: #6e6e6e;
  --ink-faint: #b5b5b5;

  /* Accent: deep oxblood, used VERY sparingly */
  --accent: #6b1d29;
  --accent-soft: #a85060;

  /* Lines: hairline gray, not warm beige */
  --line: #ececec;
  --line-soft: #f5f5f5;

  /* Layout */
  --max: 1400px;
  --gutter: 6vw;
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: 'Italiana', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-block;
}

/* HEADER */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-mark {
  display: inline-block;
  width: 110px;
  height: 100px;
  background: url('logo-mark-small.png') left center/contain no-repeat;
  flex-shrink: 0;
}
/* Hide the text next to logo — monogram is iconic enough on its own */
.logo .logo-text { display: none; }
nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
}
nav a:hover { color: var(--ink-muted); }
nav a.cta {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.7rem 1.4rem;
  transition: all 0.3s;
}
nav a.cta:hover { background: var(--ink); color: var(--bg); }

/* BUTTONS — black & white only, no decoration */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.15rem 2.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-weight: 500;
  font-feature-settings: "kern";
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--ink-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.arrow {
  font-size: 1.1em;
  display: inline-block;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* QUIET LINK — used throughout for secondary CTAs */
.quiet-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  transition: opacity 0.2s;
  display: inline-block;
}
.quiet-link:hover { opacity: 0.55; }

/* FOOTER */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 6rem 0 2.5rem;
}
footer .logo { margin-bottom: 1.5rem; }
footer .logo-mark {
  background: url('logo-mark-white-small.png') left center/contain no-repeat;
  width: 130px;
  height: 118px;
}
footer .logo .logo-text { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 36ch;
}
.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.85rem;
}
.footer-col a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--bg); }

/* COMMON SECTION HEADER PATTERN */
.section-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  display: block;
}
.section-title {
  font-family: 'Italiana', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.98;
  color: var(--ink);
}

/* MOBILE HAMBURGER */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 5rem 5vw 2rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-overlay.open {
  display: flex;
  transform: translateX(0);
}
.mobile-overlay ul {
  list-style: none;
  text-align: center;
  margin-bottom: 3rem;
}
.mobile-overlay li {
  margin: 1.5rem 0;
}
.mobile-overlay a {
  font-family: 'Italiana', serif;
  font-size: 2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.mobile-overlay .mobile-cta {
  margin-top: 2rem;
  padding: 1.2rem 3rem;
  border: 1px solid var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
}
.mobile-overlay .mobile-meta {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.mobile-meta a {
  pointer-events: auto;
}
.mobile-overlay .mobile-meta a {
  color: var(--ink-muted);
  font-family: inherit;
  font-size: inherit;
  border-bottom: 1px solid var(--line);
}

/* RESPONSIVE BASE */
@media (max-width: 900px) {
  :root { --gutter: 5vw; }
  header { padding: 0.9rem 5vw; }
  .logo-mark { width: 96px; height: 87px; }
  nav { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-bottom { flex-direction: column; }
  footer .logo-mark { width: 110px; height: 100px; }
}

@media (max-width: 640px) {
  header { padding: 0.8rem 5vw; }
  .logo-mark { width: 88px; height: 80px; }
  .mobile-overlay a { font-size: 1.6rem; }
}

/* MOBILE TOUCH TARGETS — Apple HIG 44px minimum */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .quiet-link, .quiet-link-light, .hero-link-light,
  .exp-actions .quiet, a.quiet {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    min-height: 44px;
    box-sizing: border-box;
  }
  .contact-fab-option {
    padding: 0.95rem 1.4rem;
    min-height: 44px;
    box-sizing: border-box;
  }
  .mobile-filter-toggle-btn {
    min-height: 44px !important;
    padding: 0.7rem 1rem !important;
  }
  .logo-mark { width: 88px; height: 80px; }
}



/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 540px;
  background: var(--ink);
  color: var(--bg);
  padding: 1.5rem 1.75rem;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  font-size: 0.9rem;
}
.cookie-banner.visible {
  display: block;
  animation: cookieSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookieSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}
.cookie-content p a {
  color: var(--bg);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.7rem;
  justify-content: flex-end;
}
.cookie-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--bg);
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.cookie-btn:hover {
  border-color: var(--bg);
}
.cookie-accept {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cookie-accept:hover {
  background: rgba(255,255,255,0.9);
}
@media (max-width: 640px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; padding: 1.1rem 1.2rem; bottom: 0.75rem; }
  .cookie-actions { gap: 0.5rem; }
  .cookie-btn { padding: 0.55rem 1rem; font-size: 0.65rem; }
}

/* FLOATING CONTACT BUTTON */
.contact-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.contact-fab-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-fab.open .contact-fab-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.contact-fab-option {
  background: var(--bg);
  color: var(--ink);
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  transition: all 0.2s;
  white-space: nowrap;
}
.contact-fab-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.contact-fab-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.contact-fab-toggle {
  background: var(--ink);
  color: var(--bg);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: all 0.3s;
}
.contact-fab-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.24);
}
.contact-fab-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s;
}
.contact-fab.open .contact-fab-toggle svg {
  transform: rotate(135deg);
}
@media (max-width: 640px) {
  .contact-fab { bottom: 1.2rem; right: 1.2rem; }
  .contact-fab-toggle { width: 48px; height: 48px; }
  .contact-fab-toggle svg { width: 18px; height: 18px; }
  .contact-fab-option { font-size: 0.72rem; padding: 0.6rem 1rem; }
}

/* ============ GLOBAL UI FRAMEWORK ============ */

/* Custom cursor on artwork */
@media (pointer: fine) {
  .piece, .featured-piece, .artwork-canvas {
    cursor: none;
  }
  .art-cursor {
    position: fixed;
    pointer-events: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(17,17,17,0.85);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
  }
  .art-cursor.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Modal framework */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--bg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: scale(0.96) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }
.modal h2 {
  font-family: 'Italiana', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.modal .eyebrow { display: block; margin-bottom: 1.2rem; }
.modal p {
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.modal .field {
  display: block;
  margin-bottom: 1.2rem;
}
.modal .field label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.modal .field input,
.modal .field textarea,
.modal .field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.modal .field input:focus,
.modal .field textarea:focus,
.modal .field select:focus {
  border-bottom-color: var(--ink);
}
.modal .modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.modal .modal-summary {
  padding: 1.2rem;
  background: var(--bg-soft);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.modal .modal-summary strong {
  font-family: 'Italiana', serif;
  font-weight: 400;
  color: var(--ink);
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .modal { padding: 2rem 1.5rem; }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 1.8rem;
  z-index: 300;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 2rem var(--gutter);
  opacity: 0;
  transition: opacity 0.3s;
}
.search-overlay.open {
  display: flex;
  opacity: 1;
}
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding-top: 1.5rem;
}
.search-close {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}
.search-close::after {
  content: ' ✕';
  margin-left: 0.4rem;
}
.search-input-wrap {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
}
.search-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: 'Italiana', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  outline: none;
  color: var(--ink);
  padding: 0.5rem 0;
}
.search-input-wrap input::placeholder { color: var(--ink-faint); }
.search-results {
  max-width: 900px;
  margin: 3rem auto 0;
  width: 100%;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.search-result:hover { opacity: 0.6; }
.search-result-img {
  width: 80px;
  height: 80px;
  background: var(--bg-soft);
  flex-shrink: 0;
  overflow: hidden;
}
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info h4 {
  font-family: 'Italiana', serif;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.search-result-info .meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.search-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}
.search-trigger svg { width: 16px; height: 16px; }

/* ============ PAGE TRANSITION (subtle fade-in) ============ */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
body {
  animation: pageFadeIn 0.4s ease-out;
}
body.fade-out {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body { animation: none; }
  body.fade-out { opacity: 1; transition: none; }
  .fade-in { opacity: 1; transform: none; }
}

/* ============ KEYBOARD HINT (CMD+K) ============ */
.kbd-hint {
  position: fixed;
  bottom: 2rem;
  right: 5.5rem;
  z-index: 88;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.kbd-hint.visible {
  opacity: 1;
  transform: translateY(0);
}
.kbd-hint kbd {
  background: var(--ink);
  color: var(--bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  border: none;
}
@media (max-width: 900px) {
  .kbd-hint { display: none; }
}

/* ============ HOVER PRELOAD INDICATOR (subtle) ============ */
a[data-preloading]::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--ink);
  bottom: 0;
  left: 0;
  transform-origin: left;
  animation: preloadProgress 0.3s ease-out;
}
@keyframes preloadProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ============================================
   MOBILE OPTIMIZATION
   Targeted overrides for phone-sized viewports.
   ============================================ */

@media (max-width: 768px) {
  /* === SECTION PADDING — most impactful change === */
  /* Generic section classes used across pages */
  section[class*="band"],
  section[class*="-section"],
  .collection,
  .experience,
  .founder,
  .artists,
  .exhibition,
  .fa-section,
  .mailing,
  .visit,
  .credits-band,
  .story-hero,
  .milestones,
  .page-intro,
  .map-section,
  .commission-hero,
  .featured-hero,
  .featured-cta,
  .perks-section,
  .application-section,
  .pricing-section,
  .terms-hero,
  .privacy-hero,
  .terms-section,
  .privacy-section,
  .faq-hero,
  .faq-section,
  .press-hero,
  .press-section,
  .apply-hero,
  .apply-section,
  .commission-section,
  .commission-form,
  .viewing-hero,
  .viewing-section,
  .rsvp-hero,
  .rsvp-section,
  .wishlist-hero,
  .wishlist-section,
  .artist-hero,
  .artist-section,
  .artists-section,
  .artists-hero,
  .exhibitions-hero,
  .exhibitions-section,
  .visit-hero,
  .visit-section,
  .about-hero,
  .about-section,
  .product-section,
  .related-section,
  .guides-hero,
  .guides-grid-section,
  .guides-cta,
  .collectors-hero,
  .cta-band,
  .collectors-section,
  .dashboard {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  
  /* Hero sections need special handling — accommodate fixed header */
  .page-intro,
  .story-hero,
  .commission-hero,
  .featured-hero,
  .terms-hero,
  .privacy-hero,
  .faq-hero,
  .press-hero,
  .apply-hero,
  .viewing-hero,
  .rsvp-hero,
  .wishlist-hero,
  .artist-hero,
  .artists-hero,
  .exhibitions-hero,
  .visit-hero,
  .about-hero,
  .guides-hero,
  .collectors-hero,
  .dashboard {
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* === HEADINGS — keep them dramatic but not overflowing === */
  h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
  }
  h2 {
    font-size: clamp(1.8rem, 7vw, 2.6rem) !important;
    line-height: 1.1 !important;
  }
  h3 {
    font-size: clamp(1.3rem, 5vw, 1.7rem) !important;
  }
  
  /* === CONTAINER GUTTERS — reduce on mobile === */
  :root { --gutter: 1.4rem !important; }
  .container { padding: 0 1.4rem !important; }
  
  /* === GRID COLLAPSE — force 1 column on small screens === */
  .footer-grid,
  .credits-row,
  .visit-cards,
  .exp-grid,
  .fa-perks,
  .perks-grid,
  .artists-grid,
  .featured-pieces,
  .related-grid,
  .benefits-grid,
  .guides-grid,
  .milestones-grid,
  .visit-info-grid,
  .story-grid,
  .stat-row,
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  /* === BODY TEXT — ensure readability === */
  body {
    font-size: 15px;
    line-height: 1.65;
  }
  p, li {
    font-size: 15px;
    line-height: 1.7;
  }
  .lede {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }
  .eyebrow {
    font-size: 0.65rem !important;
    letter-spacing: 0.25em !important;
  }
  
  /* === CTAs / BUTTONS — full width, larger tap targets === */
  .hero-ctas,
  .modal-actions,
  .cta-band-buttons,
  .notfound-ctas {
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn,
  .cta-band-buttons .btn,
  .notfound-ctas .btn,
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.5rem !important;
    min-height: 50px;
  }
  
  /* === FILTER BAR — collapsible on mobile === */
  .filter-bar {
    padding: 0.8rem 0 !important;
    top: 75px !important;
  }
  .filter-bar .container {
    padding: 0 1.2rem !important;
  }
  
  /* Hide all filter content by default; only show the mobile toggle row */
  .filter-bar .filter-row { display: none !important; }
  .filter-bar .mobile-filter-toggle { 
    display: flex !important; 
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  /* When expanded class added by JS, show filter rows */
  .filter-bar.expanded .filter-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.2rem !important;
    margin: 1.2rem 0 0 0 !important;
    padding-bottom: 0.5rem;
  }
  .filter-bar.expanded {
    padding-bottom: 1.2rem !important;
  }
  
  .filter-bar .filter-group {
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    align-items: center;
  }
  .filter-bar .filter-group > span:first-child {
    width: 100% !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: var(--ink-muted) !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 500 !important;
    padding: 0 !important;
  }
  .filter-bar .filter-btn {
    padding: 0.55rem 0.9rem !important;
    font-size: 0.62rem !important;
    letter-spacing: 0.12em !important;
    min-height: 34px;
  }
  
  /* The mobile-only filter toggle button */
  .mobile-filter-toggle-btn {
    background: var(--ink) !important;
    color: var(--bg) !important;
    border: none !important;
    padding: 0.7rem 1.2rem !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    min-height: 40px !important;
  }
  .mobile-filter-count {
    font-family: 'Italiana', serif !important;
    font-style: normal !important;
    color: var(--ink-muted) !important;
    font-size: 0.95rem !important;
  }
  .mobile-filter-toggle-btn .toggle-arrow {
    display: inline-block;
    transition: transform 0.25s;
    font-size: 0.6rem;
  }
  .filter-bar.expanded .toggle-arrow {
    transform: rotate(180deg);
  }
  .filter-bar.expanded .mobile-filter-toggle-btn::after {
    /* swap label text via badge */
  }
  
  /* === FORMS in modals — better stacking === */
  .modal {
    padding: 1.8rem 1.4rem !important;
    max-height: 92vh !important;
  }
  .modal h2 {
    font-size: 1.6rem !important;
  }
  .modal .field input,
  .modal .field textarea,
  .modal .field select {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    padding: 0.8rem 0 !important;
  }
  
  /* === FLOATING CONTACT BUTTON — smaller offset === */
  .contact-fab {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  .contact-fab-toggle {
    width: 48px !important;
    height: 48px !important;
  }
  
  /* === COOKIE BANNER === */
  .cookie-banner {
    bottom: 0.7rem !important;
    left: 0.7rem !important;
    right: 0.7rem !important;
    padding: 1rem 1.1rem !important;
  }
  .cookie-content p {
    font-size: 0.85rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  /* === HERO SECTION — homepage specific === */
  .hero {
    min-height: 90vh !important;
  }
  .hero-content {
    padding: 6rem var(--gutter) 2rem !important;
  }
  
  /* === COLLECTION GRID === */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* === ARTWORK PAGE — product layout === */
  .product-layout,
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .product-actions {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  .product-actions .btn,
  .product-actions .icon-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* === SEARCH OVERLAY === */
  .search-overlay {
    padding: 1.4rem 1.4rem !important;
  }
  .search-input-wrap input {
    font-size: 1.6rem !important;
  }
  .search-result {
    padding: 1rem 0 !important;
    gap: 1rem !important;
  }
  .search-result-img {
    width: 60px !important;
    height: 60px !important;
  }
  
  /* === FOOTER === */
  footer {
    padding: 4rem 0 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 0.8rem !important;
    align-items: flex-start !important;
    padding-top: 2rem !important;
    margin-top: 3rem !important;
  }
  
  /* === IMAGES — prevent overflow === */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* === MOBILE OVERLAY MENU === */
  .mobile-overlay {
    padding: 5rem 1.4rem 2rem !important;
  }
  .mobile-overlay a {
    font-size: 1.6rem !important;
    padding: 0.7rem 0 !important;
  }
  
  /* === DISABLE expensive backdrop filters on mobile (perf) === */
  header {
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }
  .modal-overlay,
  .search-overlay {
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
  
  /* === MAGNIFY DISABLE ON MOBILE === */
  /* Already done in JS — pointer:fine check — but ensure */
  .magnify-wrap [style*="background-image"] {
    display: none !important;
  }
}

/* Even smaller — extra tight for ≤375px (iPhone SE etc) */
@media (max-width: 375px) {
  :root { --gutter: 1.2rem !important; }
  .container { padding: 0 1.2rem !important; }
  
  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem) !important; }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem) !important; }
  
  section[class*="band"],
  section[class*="-section"],
  .collection,
  .experience,
  .founder,
  .artists,
  .exhibition,
  .fa-section,
  .mailing,
  .visit,
  .credits-band {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* === HOMEPAGE-SPECIFIC MOBILE OVERRIDES === */
@media (max-width: 768px) {
  /* Hero — better proportions on mobile */
  .hero-bg {
    background-position: center center !important;
    background-size: cover !important;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 8.5vw, 3rem) !important;
    line-height: 1.05 !important;
  }
  .hero .lede {
    font-size: 1rem !important;
    margin-top: 1.2rem !important;
  }
  .hero-caption {
    font-size: 0.65rem !important;
    bottom: 1.2rem !important;
    right: 1.2rem !important;
    letter-spacing: 0.15em !important;
  }
  
  /* Top bar / exhibition note — make smaller on mobile */
  .top-bar,
  .exhibition-note {
    font-size: 0.65rem !important;
    padding: 0.55rem 1rem !important;
    text-align: center !important;
  }
  
  /* Exhibition image on homepage — control its height */
  .exhibition-img {
    min-height: 280px !important;
    height: 280px !important;
  }
  .exhibition-grid,
  .founder-grid,
  .experience-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  /* Featured pieces / artists carousel — better wrap */
  .featured-pieces,
  .artists-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Single-piece image cards — full width */
  .featured-piece,
  .piece {
    max-width: 100%;
  }
  
  /* Credits row — was 3 columns, should stack on phone */
  .credits-row {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 1.5rem !important;
  }
  .credits-row .credit {
    text-align: center;
  }
  .credits-row .num {
    font-size: 1.6rem !important;
  }
  .credits-row .label {
    font-size: 0.6rem !important;
    letter-spacing: 0.18em !important;
  }
  
  /* Visit cards on homepage */
  .visit-cards {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .visit-card {
    padding: 1.8rem !important;
  }
  
  /* Mailing list / newsletter form */
  .ml-form {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
  .ml-form input {
    width: 100% !important;
  }
  .ml-form button {
    width: 100% !important;
  }
  
  /* Section heads — eyebrow + h2 + supporting text */
  .section-head h2 {
    margin-bottom: 1rem !important;
  }
  
  /* FAQ accordion if any */
  .faq-item {
    padding: 1.2rem 0 !important;
  }
  
  /* Wishlist hearts */
  .heart-btn,
  .wishlist-btn {
    width: 44px !important;
    height: 44px !important;
  }
}

/* Tablet — 769-1024 — slightly less aggressive */
@media (min-width: 769px) and (max-width: 1024px) {
  section[class*="-section"],
  .collection,
  .experience,
  .founder,
  .artists,
  .exhibition,
  .fa-section,
  .mailing,
  .visit {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
  }
}

/* ============================================
   RESPONSIVE LAPTOP + REFINED MOBILE
   Last polish pass — section spacing rhythm,
   typography scaling, hero heights.
   ============================================ */

/* === LAPTOP (1024-1399px) — most laptops === */
@media (min-width: 1024px) and (max-width: 1399px) {
  :root { --gutter: 4vw; }
  
  /* Reduce section padding from 12rem → 8rem on laptops */
  .collection, .experience, .founder, .artists,
  .exhibition, .fa-section, .visit, .mailing,
  .featured-hero, .fa-hero, .closing-cta,
  .why, .benefits, .pricing-fa, .fa-form-section,
  .timeline, .show-gallery, .upcoming,
  .commission-section, .process, .pricing,
  .pull-quote, .works, .cv, .accessibility-note,
  .values, .milestones, .chapter,
  .guides-grid-section, .guides-cta,
  .collectors-section, .dashboard,
  .product, .related,
  .quote-band, .coverage, .press-kit,
  .form-section, .booking, .expect,
  .map-section, .contact, .details,
  .faq, .contact-band, .paths,
  .artist-feature {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
  }
  
  /* Hero sections: 11rem → 9rem on laptops */
  .story-hero, .page-intro, .commission-hero,
  .featured-hero, .terms-hero, .privacy-hero,
  .faq-hero, .press-hero, .apply-hero,
  .viewing-hero, .rsvp-hero, .wishlist-hero,
  .artist-hero, .artists-hero, .exhibitions-hero,
  .visit-hero, .about-hero, .guides-hero,
  .collectors-hero, .legal-page, .fa-hero {
    padding-top: 9rem !important;
    padding-bottom: 5rem !important;
  }
  
  /* Hero on homepage — fit on laptop screens (768px tall) */
  .hero {
    min-height: 92vh !important;
    padding-top: 6rem !important;
  }
  .hero-content {
    min-height: calc(92vh - 6rem) !important;
    padding: 2rem var(--gutter) 4rem !important;
  }
  
  /* Heading scales — slightly smaller on laptop than huge desktop */
  h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  }
  
  /* Container — reasonable max-width */
  .container {
    padding: 0 4vw;
  }
}

/* === SMALL LAPTOP / LARGE TABLET (901-1023px) === */
@media (min-width: 901px) and (max-width: 1023px) {
  :root { --gutter: 3.5vw; }
  
  .collection, .experience, .founder, .artists,
  .exhibition, .fa-section, .visit, .mailing {
    padding-top: 6.5rem !important;
    padding-bottom: 6.5rem !important;
  }
  
  /* Hero on small laptops — must fit viewport */
  .hero {
    min-height: 85vh !important;
    padding-top: 5rem !important;
  }
  .hero-content {
    min-height: calc(85vh - 5rem) !important;
  }
  
  h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
  
  /* Footer — was 1.5fr 1fr 1fr 1fr (4 cols) — go to 2 cols */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
  }
}

/* === IMPROVED TABLET (641-900px) === */
@media (min-width: 641px) and (max-width: 900px) {
  :root { --gutter: 4vw; }
  
  /* Section padding for tablets */
  .collection, .experience, .founder, .artists,
  .exhibition, .fa-section, .visit, .mailing,
  .timeline, .works, .pull-quote, .values,
  .show-gallery, .upcoming, .pricing-fa,
  .commission-section, .form-section,
  .quote-band, .benefits, .why,
  .closing-cta, .cta-band {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
  
  /* Hero sections on tablet */
  .story-hero, .page-intro, .commission-hero,
  .featured-hero, .terms-hero, .privacy-hero,
  .faq-hero, .press-hero, .apply-hero,
  .viewing-hero, .rsvp-hero, .wishlist-hero,
  .artist-hero, .artists-hero, .exhibitions-hero,
  .visit-hero, .about-hero, .guides-hero,
  .collectors-hero, .legal-page {
    padding-top: 8rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* Hero — homepage */
  .hero {
    min-height: 80vh !important;
    padding-top: 5rem !important;
  }
  .hero-content {
    min-height: calc(80vh - 5rem) !important;
  }
  
  /* Footer — 2 columns on tablet */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 3rem !important;
  }
  
  /* Headings scaled for tablet */
  h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); }
  h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
  
  /* Card grids on tablet — 2 columns */
  .grid,
  .featured-pieces,
  .artists-grid,
  .related-grid,
  .visit-cards,
  .exp-grid,
  .perks-grid,
  .benefits-grid,
  .guides-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
  
  /* Container gutters */
  .container { padding: 0 4vw !important; }
}

/* === REFINED MOBILE (≤640px) === */
@media (max-width: 640px) {
  /* Hero on mobile — shorter to feel natural */
  .hero {
    min-height: 80vh !important;
    padding-top: 5rem !important;
  }
  .hero-content {
    min-height: calc(80vh - 5rem) !important;
    padding: 2rem var(--gutter) 3rem !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 9.5vw, 3rem) !important;
    margin-bottom: 1.5rem !important;
  }
  .hero .lede {
    margin-bottom: 2.5rem !important;
    font-size: 1rem !important;
  }
  .hero .eyebrow {
    margin-bottom: 1.5rem !important;
  }
  
  /* Improved section header (eyebrow + heading + supporting copy) */
  .section-head {
    margin-bottom: 3rem !important;
  }
  
  /* Footer — final stack on mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    margin-bottom: 3rem !important;
  }
  footer .footer-brand p {
    max-width: 100%;
  }
  
  /* Footer column headings tighter */
  .footer-col h4 {
    margin-bottom: 1rem !important;
    font-size: 0.7rem !important;
  }
  
  /* Eyebrow size more refined */
  .eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.28em !important;
    margin-bottom: 1.2rem !important;
  }
  
  /* Section padding refined — smaller than 5rem because hero already has top padding */
  .credits-band {
    padding: 4rem 0 !important;
  }
  
  /* Quote bands — feel cramped at full mobile padding */
  .pull-quote, .quote-band {
    padding: 5rem 0 !important;
  }
  .pull-quote blockquote, .quote-band blockquote {
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
  }
  
  /* Better spacing on mobile cards inside grids */
  .visit-card, .perk-card, .benefit, .guide-card,
  .featured-piece, .piece, .related-piece,
  .timeline-item, .milestone {
    padding: 1.8rem !important;
  }
  
  /* Top bar on mobile — simpler */
  .top-bar {
    font-size: 0.6rem !important;
    padding: 0.5rem 1rem !important;
    letter-spacing: 0.18em !important;
  }
  
  /* Cards with horizontal layouts that should stack */
  .founder-grid,
  .exhibition-grid,
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  /* Founder portrait — control sizing on mobile */
  .founder-img,
  .exhibition-img {
    aspect-ratio: 4/5 !important;
    max-height: 360px !important;
  }
  
  /* Article-style content — better reading width */
  .legal-page p,
  .legal-page li {
    font-size: 0.95rem !important;
  }
}

/* === ULTRA-WIDE / LARGE DESKTOP (>1600px) === */
@media (min-width: 1600px) {
  /* Don't let the eye travel too far */
  :root { --gutter: 5vw; }
  
  h1 {
    font-size: clamp(4rem, 7vw, 6.5rem);
  }
  
  /* Allow content to breathe but stay focused */
  .container { max-width: 1500px; }
}

/* === NAV/HEADER CONSISTENCY === */
@media (min-width: 901px) {
  /* Make sure nav items have enough breathing room on laptop */
  nav ul {
    gap: clamp(1.5rem, 2vw, 2.5rem);
  }
  
  /* Logo size adapts to viewport */
  .logo-mark {
    width: clamp(110px, 9vw, 140px) !important;
    height: clamp(100px, 8.2vw, 127px) !important;
  }
}

/* === LARGE LAPTOP (1400-1599px) === */
@media (min-width: 1400px) and (max-width: 1599px) {
  /* Most spacious comfortable laptop layout */
  :root { --gutter: 5vw; }
  
  /* Container can be wider here */
  .container { max-width: 1400px; }
}

/* === IMAGE RENDERING === */
img {
  max-width: 100%;
  height: auto;
}

/* === FOCUS VISIBILITY (accessibility) === */
*:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* === SMOOTH SCROLLING === */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

/* === BETTER LINE BREAKS === */
h1, h2, h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* === FINAL POLISH === */
/* Reduce expensive backdrop-filter on slower devices */
@media (max-resolution: 1.5dppx) and (max-width: 900px) {
  header,
  .modal-overlay,
  .search-overlay,
  .cookie-banner {
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }
}

/* === TEXT OVERFLOW PROTECTION === */
body {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
a, code {
  overflow-wrap: anywhere;
}

/* === PRINT STYLES === */
@media print {
  /* Hide UI chrome */
  header, footer, nav,
  .menu-toggle, .mobile-overlay,
  .contact-fab, .cookie-banner,
  .search-overlay, .modal-overlay,
  .filter-bar, .mobile-filter-toggle,
  .heart-btn, .top-bar {
    display: none !important;
  }
  
  /* Reset for print */
  body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
  }
  
  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  section {
    padding: 1rem 0 !important;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    color: black !important;
    page-break-after: avoid;
  }
  
  a {
    color: black !important;
    text-decoration: underline;
  }
  
  /* Show URLs after links */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  
  /* Hide background images for print */
  .hero-bg,
  .exhibition-img,
  .founder-img {
    display: none !important;
  }
  
  /* Make hero text readable */
  .hero {
    min-height: auto !important;
    background: white !important;
    color: black !important;
  }
  .hero h1, .hero p, .hero .lede {
    color: black !important;
  }
}

/* === iOS VIEWPORT FIX === */
/* Use dynamic viewport height where available so content isn't hidden behind iOS browser chrome */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}


/* === ACCESSIBILITY UTILITIES === */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link (becomes visible on focus) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 1rem 1.5rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}


/* === iOS NOTCH SAFE AREAS === */
/* Only adjust elements that need to extend INTO safe areas (fixed elements) */
@supports (padding: env(safe-area-inset-top)) {
  /* Floating contact button - keep clear of home indicator */
  .contact-fab {
    bottom: max(2rem, env(safe-area-inset-bottom));
    right: max(2rem, env(safe-area-inset-right));
  }
  /* Cookie banner - keep clear of home indicator */
  .cookie-banner {
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  /* Mobile floating buttons */
  @media (max-width: 640px) {
    .contact-fab {
      bottom: max(1rem, env(safe-area-inset-bottom));
      right: max(1rem, env(safe-area-inset-right));
    }
    .cookie-banner {
      bottom: max(0.7rem, env(safe-area-inset-bottom));
    }
  }
}


/* Hide cookie banner when mobile menu is open (otherwise it blocks navigation clicks) */
body.menu-open .cookie-banner {
  display: none !important;
}
