/*
Theme Name:  Art Trippin
Theme URI:   https://arttrippin.com
Author:      Rouell Rodrigues
Author URI:  https://rouell.com
Description: v4.5.0 — Contemporary art gallery. Black, white, grey gallery. Clean and minimal. Art is the protagonist.
Version:     4.7.9
License:     GNU General Public License v2 or later
Text Domain: arttrippin
Tags:        art, gallery, museum, contemporary, minimal, contemporary
*/

/* ============================================================
   GALLERY PALETTE — Warm Room
   White walls · Grey floors · Black borders · Art pops
   ============================================================ */
:root {
  /* ============================================================
     PALETTE v4.4 — Pure Gallery Black / White / Grey
     No brown. No warm tones. Art provides all colour.
     ============================================================ */
  --white:       #FFFFFF;
  --off-white:   #F8F8F8;
  --gallery:     #F2F2F2;   /* gallery wall — main bg */
  --light-grey:  #E8E8E8;   /* light grey — alt surfaces */
  --mid-grey:    #D0D0D0;   /* mid grey — borders, rules */
  --dark-grey:   #A0A0A0;   /* dark grey — muted text */
  --charcoal:    #404040;   /* charcoal — body text */
  --near-black:  #1A1A1A;   /* near black — headings */
  --black:       #0A0A0A;   /* pure black */

  /* Accent — single grey-black highlight, no colour */
  --accent:      #1A1A1A;

  /* Semantic aliases */
  --color-bg:        var(--gallery);
  --color-bg-alt:    var(--light-grey);
  --color-bg-warm:   var(--light-grey);
  --color-bg-dark:   var(--near-black);
  --color-text:      var(--charcoal);
  --color-heading:   var(--near-black);
  --color-muted:     var(--dark-grey);
  --color-mid:       #606060;
  --color-rule:      var(--mid-grey);
  --color-rule-dark: var(--dark-grey);
  --color-gold:      var(--near-black); /* no gold — map to black */

  /* Compat aliases — all warm/brown vars map to grey equivalents */
  --black:       var(--near-black);
  --ink:         var(--near-black);
  --shadow:      var(--near-black);
  --pure-shadow: var(--black);
  --cream:       var(--gallery);
  --plaster:     var(--gallery);
  --linen:       var(--light-grey);
  --canvas:      var(--mid-grey);
  --putty:       var(--mid-grey);
  --cement:      var(--light-grey);
  --dust:        var(--mid-grey);
  --stone:       var(--mid-grey);
  --iron:        var(--dark-grey);
  --flint:       var(--dark-grey);
  --slate:       var(--charcoal);
  --charcoal:    var(--charcoal);
  --warm-white:  var(--off-white);
  --gold:        var(--near-black); /* no gold */
  --gold-light:  var(--charcoal);
  --gold-pale:   var(--light-grey);
  --accent-warm: var(--near-black);
  --amethyst:    var(--near-black);
  --coral:       var(--charcoal);
  --teal:        var(--dark-grey);
  --celadon:     var(--light-grey);

  /* Typography — Jost only, no serif, no display */
  --font-display: 'Jost', system-ui, sans-serif;
  --font-serif:   'Jost', system-ui, sans-serif;
  --font-sans:    'Jost', system-ui, sans-serif;

  /* Spacing */
  --sp-xs: 0.4rem;  --space-xs: 0.4rem;
  --sp-sm: 0.875rem; --space-sm: 0.875rem;
  --sp-md: 1.5rem;  --space-md: 1.5rem;
  --sp-lg: 2.75rem; --space-lg: 2.75rem;
  --sp-xl: 4.5rem;  --space-xl: 4.5rem;
  --sp-2x: 7rem;    --space-2xl: 7rem;
  --sp-3x: 10rem;   --space-3xl: 10rem;

  --container:        1320px;
  --container-narrow: 740px;
  --header-h:         70px;
  --radius: 0px;

  --t-fast: 140ms ease;
  --t-base: 280ms ease;
  --t-slow: 560ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — pure grey, no warm tint */
  --shad-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shad-md:    0 6px 24px rgba(0,0,0,0.12);
  --shad-lg:    0 16px 52px rgba(0,0,0,0.18);
  --shad-art:   0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  --shad-frame: 0 0 0 8px var(--gallery), 0 0 0 10px var(--mid-grey), 0 16px 52px rgba(0,0,0,0.20);
  --shadow-sm:  var(--shad-sm);
  --shadow-md:  var(--shad-md);
  --shadow-lg:  var(--shad-lg);
  --shadow-xl:  var(--shad-lg);
  --shadow-art: var(--shad-art);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.72;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

.t-section {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700; font-style: normal;
  line-height: 1.1; letter-spacing: -0.02em;
}
.t-label {
  font-family: var(--font-sans);
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--flint);
}
.t-serif {
  font-family: var(--font-sans);
  font-size: 1rem; line-height: 1.72;
  color: var(--color-mid);
}
blockquote {
  border-left: 2px solid var(--mid-grey);
  padding-left: var(--sp-md);
  margin-block: var(--sp-lg);
  font-family: var(--font-serif);
  font-size: 1.4rem; font-style: italic;
  color: var(--shadow);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap         { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg); }
.wrap--narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-lg); }

.section      { padding-block: var(--sp-3x); }
.section--sm  { padding-block: var(--sp-xl); }
.section--alt    { background: var(--linen); }
.section--warm   { background: var(--light-grey); }
.section--dark   { background: var(--shadow); color: var(--plaster); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--plaster); }
.section--ruled  { border-top: 1px solid var(--putty); }

.grid { display: grid; gap: var(--sp-md); }
.g2  { grid-template-columns: repeat(2, 1fr); }
.g3  { grid-template-columns: repeat(3, 1fr); }
.g4  { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   HEADER — translucent white/grey, clean black underline
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 300;
  background: rgba(242, 242, 242, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--putty);
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.10);
  border-bottom-color: var(--mid-grey);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg);
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.site-logo__mark {
  width: 42px; height: 42px;
  background: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 2px 2px 0 var(--mid-grey);
}
.site-logo__mark span {
  font-family: var(--font-sans);
  font-size: 0.82rem; font-style: normal; font-weight: 800;
  color: #FFFFFF;  /* explicit white — never broken by palette chains */
  letter-spacing: 0.05em;
}
.site-logo__wordmark { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.site-logo__name {
  font-family: var(--font-sans);
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.02em; color: var(--near-black); line-height: 1.1;
}
.site-logo__name em { font-style: normal; font-weight: 600; color: var(--near-black); }
.site-logo__sub {
  font-family: var(--font-sans);
  font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dark-grey); margin-top: 2px;
}

/* NAV — clean, with sub-menu dropdowns */
.primary-nav {
  display: flex; align-items: center;
  gap: 0; list-style: none; position: relative;
}
.primary-nav > li > a,
.primary-nav > a {
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  padding: 0.6em 1em;
  position: relative;
  display: flex; align-items: center; gap: 4px;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.primary-nav > li > a::after,
.primary-nav > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.8em; right: 0.8em;
  height: 1.5px;
  background: var(--near-black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t-base);
}
.primary-nav > li > a:hover,
.primary-nav > a:hover,
.primary-nav > li > a.current-menu-item,
.primary-nav > li.current-menu-item > a {
  color: var(--shadow);
}
.primary-nav > li > a:hover::after,
.primary-nav > a:hover::after,
.primary-nav > li.current-menu-item > a::after { transform: scaleX(1); }

/* Chevron */
.nav-chevron {
  width: 10px; height: 10px; flex-shrink: 0;
  color: var(--flint); transition: transform var(--t-base), color var(--t-fast);
}
.nav-item--has-dropdown:hover .nav-chevron,
.nav-item--has-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg); color: var(--near-black);
}

/* Dropdown panel — gallery card style */
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--warm-white);
  border: 1px solid var(--putty);
  border-top: 2px solid var(--near-black);
  box-shadow: var(--shad-lg);
  z-index: 400; list-style: none; padding: 0.4rem 0;
}
.nav-item--has-dropdown { position: relative; list-style: none; }
.nav-item--has-dropdown:hover > .nav-dropdown,
.nav-item--has-dropdown:focus-within > .nav-dropdown {
  display: block;
  animation: dropFade 0.18s ease both;
}
@keyframes dropFade {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown li { border-bottom: 1px solid var(--canvas); }
.nav-dropdown li:last-child { border-bottom: none; }
.nav-dropdown a {
  display: block; padding: 0.65rem 1.1rem;
  font-family: var(--font-sans); font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--slate);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: var(--linen); color: var(--shadow); padding-left: 1.4rem; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-sm); }

/* Mobile toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--shadow);
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile nav */
.mobile-nav {
  background: var(--warm-white);
  border-top: 1px solid var(--putty);
  border-bottom: 2px solid var(--gold);
  padding: var(--sp-md) var(--sp-lg) var(--sp-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav__label {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.6rem; padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--canvas);
}
.mobile-nav a {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--slate); padding: 0.38rem 0;
  font-family: var(--font-serif); font-style: italic;
  transition: color var(--t-fast);
}
.mobile-nav a:hover { color: var(--white); }
.mobile-nav__actions .btn { color: var(--white) !important; }
.mobile-nav__actions .btn--gold { background: var(--near-black) !important; color: var(--white) !important; border-color: rgba(255,255,255,.3) !important; }
.mobile-nav__actions a { color: var(--white) !important; }
.mobile-nav__actions {
  grid-column: 1/-1; display: flex; gap: var(--sp-sm);
  padding-top: var(--sp-sm); border-top: 1px solid var(--canvas);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.78em 1.8em;
  font-family: var(--font-sans); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  border: 1.5px solid transparent; cursor: pointer; border-radius: 0;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), box-shadow var(--t-base);
  white-space: nowrap; text-decoration: none;
}
.btn--primary {
  background: var(--shadow); color: var(--plaster); border-color: var(--shadow);
}
.btn--primary:hover {
  background: var(--near-black); border-color: var(--near-black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25); color: var(--white);
}
.btn--outline {
  background: transparent; color: var(--shadow); border-color: var(--putty);
}
.btn--outline:hover { border-color: var(--shadow); background: var(--linen); }
.btn--gold {
  background: var(--near-black); color: var(--white); border-color: var(--near-black);
}
.btn--gold:hover {
  background: var(--charcoal); border-color: var(--charcoal);
  box-shadow: 0 4px 20px rgba(0,0,0,0.20); color: var(--white);
}
.btn--ghost {
  background: transparent; color: var(--plaster);
  border-color: rgba(244,240,232,0.35);
}
.btn--ghost:hover { background: rgba(244,240,232,0.1); border-color: rgba(244,240,232,0.7); }
.btn--warm { background: var(--near-black); color: var(--white); border-color: var(--near-black); }
.btn--warm:hover { background: var(--charcoal); color: var(--white); }
.btn--lg { font-size: 0.72rem; padding: 0.95em 2.2em; }
.btn--sm { font-size: 0.6rem;  padding: 0.5em 1.1em; }

/* ============================================================
   PAGE BANNER
   ============================================================ */
.page-banner {
  padding-top: calc(var(--header-h) + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  background: var(--plaster);
  border-bottom: 1px solid var(--putty);
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,0,0,0.02) 0%, transparent 65%);
  pointer-events: none;
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner .t-label { display: block; margin-bottom: 0.4rem; }
.page-banner h1 { color: var(--shadow); }
.page-banner > .wrap > p {
  font-family: var(--font-serif); font-size: 1.12rem;
  font-style: italic; color: var(--color-mid);
  max-width: 540px; margin-top: var(--sp-xs);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--putty);
  margin-bottom: var(--sp-xl);
}
.section-header--split {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--sp-md);
}
.section-header--center {
  text-align: center; border-bottom: none; padding-bottom: 0;
  max-width: 580px; margin-inline: auto; margin-bottom: var(--sp-xl);
}
.section-header .t-label { display: block; margin-bottom: 0.5em; }

/* Gold rule ornament */
.at-rule {
  display: flex; align-items: center; gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}
.at-rule::before, .at-rule::after {
  content: ''; flex: 1; height: 1px; background: var(--putty);
}
.at-rule__diamond {
  width: 7px; height: 7px; background: var(--near-black);
  transform: rotate(45deg); flex-shrink: 0;
}

/* ============================================================
   HERO — museum entrance hall with gallery lighting
   ============================================================ */
.hero {
  padding-top: calc(var(--header-h) + var(--sp-2x));
  padding-bottom: var(--sp-2x);
  background: var(--plaster);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--putty);
}
/* Track-light warmth from above-right */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 72% 15%, rgba(255,255,255,0.08) 0%, transparent 52%),
    radial-gradient(ellipse at 15% 85%, rgba(0,0,0,0.02) 0%, transparent 42%);
  pointer-events: none;
}
/* Subtle wall texture overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0px, transparent 1px, transparent 80px);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 460px;
  gap: var(--sp-2x); align-items: center;
  position: relative; z-index: 1;
}
.hero__eyebrow {
  display: flex; align-items: center; gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}
.hero__eyebrow-line {
  display: block; width: 40px; height: 1.5px;
  background: linear-gradient(90deg, var(--near-black), transparent);
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--shadow);
  margin-bottom: var(--sp-lg);
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero__body {
  font-family: var(--font-serif);
  font-size: 1.18rem; line-height: 1.8;
  color: var(--color-mid); max-width: 460px;
  margin-bottom: var(--sp-lg);
}
.hero__actions { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; }
.hero__link {
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--flint);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: var(--canvas);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.hero__link:hover { color: var(--shadow); text-decoration-color: var(--gold); }

/* Hung painting — the key gallery feel */
.hero__frame {
  position: relative; overflow: hidden;
  background: var(--linen); aspect-ratio: 3/4;
  /* Picture-frame shadow */
  box-shadow: var(--shad-frame);
}
.hero__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.hero__frame:hover img { transform: scale(1.03); }
/* Track-light spotlight on painting */
.hero__frame::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
  transition: opacity var(--t-base);
}
.hero__frame:hover::before { opacity: 0.6; }
.hero__frame-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 0.7rem 0.9rem;
  background: rgba(244,240,232,0.93);
  border-top: 1px solid var(--putty);
  font-family: var(--font-serif); font-size: 0.82rem;
  font-style: italic; color: var(--slate);
}

/* Gallery stats strip (below hero image) */
.hero__stats {
  display: flex; gap: var(--sp-sm);
  margin-top: var(--sp-md);
}
.hero__stat {
  flex: 1;
  background: var(--warm-white);
  border: 1px solid var(--putty);
  border-top: 2px solid var(--near-black);
  padding: 0.8rem 1rem;
  text-align: center;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; line-height: 1;
  color: var(--shadow); display: block;
}
.hero__stat-label {
  font-size: 0.54rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--flint);
  margin-top: 3px; display: block;
}

/* ============================================================
   INDEX STRIP
   ============================================================ */
.index-strip {
  border-top: 1px solid var(--putty);
  border-bottom: 1px solid var(--putty);
  background: var(--linen);
}
.index-strip__inner {
  display: flex; align-items: stretch;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg);
}
.index-item {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; gap: 3px;
  padding: 1.1rem var(--sp-md) 1.1rem 0;
  border-right: 1px solid var(--putty);
  transition: background var(--t-fast);
  cursor: default;
}
.index-item:first-child { padding-left: 0; }
.index-item:last-child  { border-right: none; padding-right: 0; }
.index-item:hover       { background: rgba(0,0,0,0.02); }
.index-item__num {
  font-family: var(--font-display); font-size: 0.68rem;
  font-style: italic; color: var(--dark-grey); line-height: 1;
}
.index-item__label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--shadow); line-height: 1;
}
.index-item__count {
  font-family: var(--font-serif);
  font-size: 0.72rem; font-style: italic;
  color: var(--flint); line-height: 1;
  margin-top: 2px;
}
.index-item:hover .index-item__count { color: var(--gold); }

/* ============================================================
   ARTWORK CARDS — gallery wall, track-lit
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-lg);
}
.artwork-card {
  background: var(--white);
  position: relative; overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.artwork-card:hover { transform: translateY(-5px); box-shadow: var(--shad-art); }
.artwork-card__image {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; background: var(--linen);
}
/* Vignette — track-light on each painting */
.artwork-card__image::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 35%, transparent 52%, rgba(0,0,0,0.18) 100%);
  pointer-events: none;
  transition: opacity var(--t-base);
}
.artwork-card:hover .artwork-card__image::before { opacity: 0.7; }
.artwork-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow);
}
.artwork-card:hover .artwork-card__image img { transform: scale(1.05); }

/* Overlay on hover */
.artwork-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.30) 55%, transparent 100%);
  opacity: 0; transition: opacity var(--t-base);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: var(--sp-md);
}
.artwork-card:hover .artwork-card__overlay { opacity: 1; }
.artwork-card__overlay-actions { display: flex; gap: 0.5rem; }

/* Caption label — gallery placard */
.artwork-card__info {
  padding: 0.8rem var(--sp-sm) var(--sp-sm);
  background: var(--white);
  border-top: 2px solid var(--canvas);
  position: relative;
}
/* Gold corner pip */
.artwork-card__info::before {
  content: '';
  position: absolute; top: -2px; left: 0;
  width: 30px; height: 2px; background: var(--near-black);
}
.artwork-card__title {
  font-family: var(--font-serif); font-size: 1rem; font-style: normal;
  font-weight: 600; color: var(--near-black); margin-bottom: 0.2rem; line-height: 1.3;
}
.artwork-card__title a:hover { color: var(--gold); }
.artwork-card__meta {
  font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--flint); margin-bottom: 0.3rem;
}
.artwork-card__price { font-size: 0.82rem; font-weight: 700; color: var(--flint); }
.artwork-card__price--available { color: var(--shadow); }

/* Sold ribbon */
.artwork-card--sold .artwork-card__image::after {
  content: 'Sold';
  position: absolute; top: var(--sp-sm); right: var(--sp-sm);
  background: var(--shadow); color: var(--plaster);
  font-family: var(--font-sans); font-size: 0.56rem;
  font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.25em 0.8em; z-index: 3;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--putty);
  margin-bottom: var(--sp-xl); overflow-x: auto;
}
.filter-bar__label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--flint);
  padding: 0.9em 1.4em 0.9em 0; white-space: nowrap;
  border-right: 1px solid var(--canvas); margin-right: 0.5rem; flex-shrink: 0;
}
.filter-btn {
  font-family: var(--font-sans); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--flint);
  padding: 0.9em 1.2em; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.filter-btn:hover { color: var(--shadow); }
.filter-btn.active { color: var(--shadow); border-bottom-color: var(--near-black); }

/* ============================================================
   ARTIST CARDS — portrait gallery wall
   ============================================================ */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
}
.artist-card {
  background: var(--white);
  overflow: hidden; position: relative;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  cursor: pointer;
}
.artist-card:hover { transform: translateY(-5px); box-shadow: var(--shad-art); }
.artist-card__image {
  position: relative; overflow: hidden;
  aspect-ratio: 2/3; background: var(--linen);
}
.artist-card__image::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 30%, transparent 48%, rgba(0,0,0,0.16) 100%);
  pointer-events: none; transition: opacity var(--t-base);
}
.artist-card:hover .artist-card__image::before { opacity: 0.8; }
.artist-card__image img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform var(--t-slow);
}
.artist-card:hover .artist-card__image img { transform: scale(1.06); }

/* Name overlay — gallery label style */
.artist-card__overlay {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: var(--sp-md);
  background: linear-gradient(to top, rgba(0,0,0,0.90) 0%, rgba(0,0,0,0.50) 60%, transparent 100%);
  transition: padding-bottom var(--t-base);
}
.artist-card:hover .artist-card__overlay { padding-bottom: calc(var(--sp-md) + 0.5rem); }
.artist-card__name-on-image {
  font-family: var(--font-display); font-size: 1.2rem;
  font-style: italic; font-weight: 600;
  color: var(--plaster); line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.artist-card__name-on-image a { color: inherit; }
.artist-card__name-on-image a:hover { color: var(--gold-pale); }
.artist-card__origin-on-image {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(244,240,232,0.65);
  margin-top: 3px;
}
/* Gold pip at top */
.artist-card__pip {
  position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: var(--near-black); z-index: 3;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-base);
}
.artist-card:hover .artist-card__pip { transform: scaleX(1); }

/* ============================================================
   SINGLE ARTIST — museum room layout
   ============================================================ */

/* Full-bleed portrait hero */
.artist-hero {
  position: relative;
  height: min(80vh, 680px);
  overflow: hidden;
  background: var(--shadow);
  margin-top: var(--header-h);
}
.artist-hero__img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: top center;
  filter: brightness(0.75) saturate(0.9);
  transition: transform var(--t-slow);
}
.artist-hero:hover .artist-hero__img { transform: scale(1.03); }
/* Lighting gradient — spotlight from above */
.artist-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 40% 10%, rgba(255,255,255,0.06) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, transparent 40%, rgba(0,0,0,0.70) 85%);
}
/* Artist name placard */
.artist-hero__info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: var(--sp-xl) var(--sp-lg);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-lg);
}
.artist-hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.025em; color: var(--plaster);
  text-shadow: 0 4px 20px rgba(0,0,0,0.55);
}
.artist-hero__name em { font-style: italic; font-weight: 400; color: var(--gold-pale); }
.artist-hero__origin {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-pale); margin-top: 0.5rem;
  display: block;
}
.artist-hero__links { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }

/* Artist bio section */
.artist-profile {
  display: grid; grid-template-columns: 320px 1fr;
  gap: var(--sp-2x); align-items: start;
  padding-block: var(--sp-2x);
}
.artist-profile__portrait {
  position: sticky; top: calc(var(--header-h) + var(--sp-md));
}
.artist-profile__portrait-frame {
  position: relative;
  box-shadow: var(--shad-frame);
}
.artist-profile__portrait-frame img {
  width: 100%; display: block; aspect-ratio: 2/3;
  object-fit: cover; object-position: top center;
}
/* Gold corner brackets — gallery frame detail */
.artist-profile__portrait-frame::before,
.artist-profile__portrait-frame::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--near-black);
  border-style: solid;
  z-index: 2;
}
.artist-profile__portrait-frame::before {
  top: -3px; left: -3px;
  border-width: 2px 0 0 2px;
}
.artist-profile__portrait-frame::after {
  bottom: -3px; right: -3px;
  border-width: 0 2px 2px 0;
}
.artist-profile__id {
  font-family: var(--font-sans); font-size: 0.58rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--flint); margin-top: var(--sp-sm);
  padding-top: var(--sp-xs); border-top: 1px solid var(--canvas);
}
.artist-profile__bio {
  font-family: var(--font-serif);
  font-size: 1.12rem; line-height: 1.85;
  color: var(--color-mid);
}
.artist-profile__bio p { margin-bottom: var(--sp-sm); }
.artist-profile__bio p:last-child { margin-bottom: 0; }

/* ============================================================
   EVENTS
   ============================================================ */
.event-card {
  background: var(--white);
  border: 1px solid var(--putty);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-base);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shad-md); border-color: var(--near-black); }
.event-card__image { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--linen); }
.event-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.event-card:hover .event-card__image img { transform: scale(1.04); }
.event-card__stamp {
  position: absolute; top: var(--sp-sm); right: var(--sp-sm);
  background: var(--shadow); color: var(--plaster);
  padding: 0.5rem 0.6rem; text-align: center; line-height: 1;
  border-left: 2px solid var(--mid-grey);
}
.event-card__stamp-day { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.event-card__stamp-mon { display: block; font-family: var(--font-sans); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 2px; color: var(--gold); }
.event-card__body { padding: var(--sp-md); border-top: 1px solid var(--canvas); }
.event-card__type { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal); font-weight: 700; margin-bottom: 0.35rem; }
.event-card__title { font-family: var(--font-serif); font-size: 1.15rem; font-style: italic; font-weight: 600; color: var(--shadow); margin-bottom: 0.4rem; line-height: 1.3; }
.event-card__title a:hover { color: var(--gold); }
.event-card__desc { font-size: 0.875rem; color: var(--color-mid); line-height: 1.6; margin-bottom: var(--sp-sm); }
.event-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.6rem; border-top: 1px solid var(--canvas); font-size: 0.78rem; color: var(--flint); }
.event-card__seats { font-weight: 700; color: var(--shadow); }
.at-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--putty); margin-bottom: var(--sp-xl); overflow-x: auto; }
.at-tab { font-family: var(--font-sans); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.9em 1.4em; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; color: var(--flint); white-space: nowrap; text-decoration: none; transition: color var(--t-fast), border-color var(--t-fast); }
.at-tab:hover { color: var(--shadow); }
.at-tab.active { color: var(--shadow); border-bottom-color: var(--near-black); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.testimonial-card { background: var(--warm-white); border: 1px solid var(--putty); padding: var(--sp-lg); position: relative; transition: border-color var(--t-base), box-shadow var(--t-base); }
.testimonial-card:hover { border-color: var(--near-black); box-shadow: var(--shad-sm); }
.testimonial-card--featured { grid-column: 1/-1; border-left: 3px solid var(--gold); background: var(--linen); }
.testimonial-card::before { content: '\201C'; position: absolute; top: var(--sp-sm); right: var(--sp-md); font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--canvas); font-weight: 300; }
.testimonial-card__text { font-family: var(--font-serif); font-size: 1.05rem; font-style: italic; line-height: 1.72; color: var(--shadow); margin-bottom: var(--sp-md); padding-right: 2rem; }
.testimonial-card--featured .testimonial-card__text { font-size: 1.35rem; }
.testimonial-card__author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card__swatch { width: 36px; height: 36px; background: var(--linen); border: 1px solid var(--putty); flex-shrink: 0; }
.testimonial-card__name { font-weight: 700; font-size: 0.85rem; color: var(--shadow); line-height: 1.2; }
.testimonial-card__role { font-size: 0.72rem; color: var(--flint); font-style: italic; }
.testimonial-card__service { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-grey); display: block; margin-bottom: var(--sp-sm); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.founder-section { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-2x); align-items: start; }
.founder-section__portrait { position: sticky; top: calc(var(--header-h) + var(--sp-md)); }
.founder-section__portrait img { width: 100%; display: block; box-shadow: var(--shad-frame); }
.founder-section__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--shadow); margin-bottom: 2px; }
.founder-section__role { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-grey); }
.founder-section__bio { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.85; color: var(--color-mid); }
.founder-section__bio p { margin-bottom: var(--sp-sm); }
.values-list { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--putty); border-left: 1px solid var(--putty); }
.value-item { padding: var(--sp-lg); border-right: 1px solid var(--putty); border-bottom: 1px solid var(--putty); transition: background var(--t-base); }
.value-item:hover { background: rgba(0,0,0,0.02); }
.value-item__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--canvas); line-height: 1; margin-bottom: var(--sp-xs); }
.value-item__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--shadow); margin-bottom: 0.4rem; }
.value-item__desc { font-family: var(--font-serif); font-size: 0.9rem; color: var(--color-mid); line-height: 1.65; }

/* ============================================================
   SINGLE ARTWORK
   ============================================================ */
.artwork-single { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2x); align-items: start; padding-top: calc(var(--header-h) + var(--sp-xl)); padding-bottom: var(--sp-3x); max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg); }
.artwork-single__gallery { position: sticky; top: calc(var(--header-h) + var(--sp-md)); }
.artwork-single__main { background: var(--linen); overflow: hidden; margin-bottom: var(--sp-xs); box-shadow: var(--shad-frame); }
.artwork-single__thumbs { display: flex; gap: 6px; }
.artwork-single__thumb { width: 64px; height: 64px; border: 1px solid var(--putty); overflow: hidden; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.artwork-single__thumb.active, .artwork-single__thumb:hover { border-color: var(--near-black); box-shadow: 0 0 0 1px var(--gold); }
.artwork-single__category { display: block; margin-bottom: var(--sp-sm); }
.artwork-single__title { margin-bottom: 0.25rem; }
.artwork-single__artist { font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--flint); margin-bottom: var(--sp-md); }
.artwork-single__price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--shadow); margin-bottom: var(--sp-md); }
.artwork-meta-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-md); font-size: .875rem; }
.artwork-meta-table tr { border-bottom: 1px solid var(--canvas); }
.artwork-meta-table td:first-child { font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--flint); padding: 0.6em 0; width: 35%; }
.artwork-meta-table td:last-child { color: var(--shadow); padding: 0.6em 0; font-family: var(--font-serif); }
.artwork-purchase-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.artwork-sold-badge { display: inline-flex; flex-direction: column; gap: 3px; padding: 0.9rem 1.2rem; background: var(--linen); border: 1px solid var(--putty); border-left: 2px solid var(--mid-grey); margin-bottom: var(--sp-xs); }
.artwork-sold-badge__label { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shadow); }
.artwork-sold-badge__sub { font-family: var(--font-serif); font-size: 0.875rem; font-style: italic; color: var(--flint); }

/* ============================================================
   COMMISSIONS FORM
   ============================================================ */
.commission-form { max-width: 680px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); margin-bottom: var(--sp-md); }
.form-group { margin-bottom: var(--sp-md); }
.form-label { display: block; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.4em; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.8em 0.9em; font-family: var(--font-serif); font-size: 1rem; color: var(--shadow); background: var(--warm-white); border: 1px solid var(--putty); border-radius: 0; outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast); -webkit-appearance: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--near-black); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.form-textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: 0.72rem; color: var(--flint); margin-top: 0.3rem; }

/* ============================================================
   POLICIES
   ============================================================ */
.policy-nav { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--putty); margin-bottom: var(--sp-xl); }
.policy-nav a { font-family: var(--font-sans); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.9em 1.3em; color: var(--flint); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast); }
.policy-nav a:hover, .policy-nav a.active { color: var(--shadow); border-bottom-color: var(--near-black); }

/* ============================================================
   PAGE CONTENT — editorial
   ============================================================ */
.at-page-content { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.85; color: var(--color-mid); }
.at-page-content p { margin-bottom: var(--sp-md); }
.at-page-content h2 { font-family: var(--font-display); font-size: clamp(1.4rem,2.5vw,1.9rem); font-weight: 700; color: var(--shadow); margin-top: var(--sp-xl); margin-bottom: var(--sp-sm); padding-top: var(--sp-md); border-top: 1px solid var(--canvas); }
.at-page-content h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--shadow); margin-top: var(--sp-lg); margin-bottom: var(--sp-xs); }
.at-page-content ul li, .at-page-content ol li { padding: 0.5rem 0 0.5rem 1.2rem; border-bottom: 1px solid var(--canvas); list-style: none; position: relative; }
.at-page-content ul li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 1px; background: var(--near-black); }
.at-page-content ol { counter-reset: at-counter; }
.at-page-content ol li { counter-increment: at-counter; }
.at-page-content ol li::before { content: counter(at-counter,decimal-leading-zero); position: absolute; left: 0; top: 0.5rem; font-family: var(--font-display); font-size: 0.7rem; font-style: italic; color: var(--gold); }
.at-page-content a { color: var(--shadow); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--canvas); }
.at-page-content a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.at-page-content strong { font-weight: 700; color: var(--shadow); }
.at-page-content img { width: 100%; border: 1px solid var(--putty); margin-block: var(--sp-lg); }
.at-page-content blockquote { border-left: 2px solid var(--mid-grey); padding-left: var(--sp-md); margin-block: var(--sp-lg); font-family: var(--font-serif); font-size: 1.25rem; font-style: italic; color: var(--shadow); }
.at-page-content table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-lg); font-size: 0.9rem; }
.at-page-content th { font-family: var(--font-sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--shadow); padding: 0.6rem 0.75rem; border-bottom: 1.5px solid var(--shadow); text-align: left; }
.at-page-content td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--canvas); color: var(--color-mid); vertical-align: top; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 0;
  clear: both;
  position: relative;
  z-index: 1;
  background: var(--near-black);
  color: rgba(255,255,255,0.48);
  padding-top: var(--sp-2x);
  /* Safe area for iPhone X+ notch and home bar */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
/* Inner: brand+socials on left, policies on right */
.site-footer__inner {
    gap: var(--sp-2x);
  align-items: start;
  max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(244,240,232,0.07);
}
.site-footer__brand {}
.site-footer__policies {}
/* Alias for old .site-footer__main (keeps any remaining refs working) */
.site-footer__main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-xl); padding-bottom: var(--sp-xl); border-bottom: 1px solid rgba(244,240,232,0.07); max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg); }
.footer-brand__logo { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--plaster); margin-bottom: var(--sp-sm); line-height: 1; letter-spacing: -0.02em; }
.footer-brand__logo em { font-style: italic; font-weight: 400; color: var(--gold); }
.footer-brand__desc { font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.72; color: rgba(255,255,255,0.36); max-width: 100%; margin-bottom: var(--sp-md); }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-social-link { width: 34px; height: 34px; border: 1px solid rgba(244,240,232,0.1); display: flex; align-items: center; justify-content: center; color: rgba(244,240,232,0.32); transition: border-color var(--t-fast), color var(--t-fast); }
.footer-social-link:hover { border-color: var(--near-black); color: var(--gold); }
.footer-nav__title { font-family: var(--font-sans); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--plaster); margin-bottom: var(--sp-md); padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-nav__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav__links a { font-family: var(--font-serif); font-size: 0.875rem; font-style: italic; color: rgba(244,240,232,0.36); transition: color var(--t-fast); }
.footer-nav__links a:hover { color: var(--white); }
.site-footer__bottom { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-lg); padding-block: var(--sp-md); display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: rgba(244,240,232,0.2); flex-wrap: wrap; gap: var(--sp-sm); border-top: 1px solid rgba(244,240,232,0.06); }
.site-footer__bottom a { color: rgba(244,240,232,0.28); transition: color var(--t-fast); }
.site-footer__bottom a:hover { color: var(--white); }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */
.woocommerce .product .summary .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--shadow); }
.woocommerce button.button, .woocommerce input.button, .woocommerce a.button { background: var(--shadow) !important; color: var(--plaster) !important; border-radius: 0 !important; font-family: var(--font-sans) !important; font-size: 0.68rem !important; font-weight: 700 !important; letter-spacing: 0.14em !important; text-transform: uppercase !important; padding: 0.75em 1.75em !important; border: none !important; }
.woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--gold) !important; }
.woocommerce .star-rating span::before { color: var(--dark-grey); }

/* ============================================================
   HELPERS
   ============================================================ */
.skip-link { position: absolute; top: -100%; left: 0; padding: 0.5em 1em; background: var(--shadow); color: var(--plaster); font-size: .875rem; z-index: 999; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--near-black); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-gold { color: var(--gold); }
.w-full { width: 100%; }
.mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); } .mt-lg { margin-top: var(--sp-lg); } .mt-xl { margin-top: var(--sp-xl); }
.mb-sm { margin-bottom: var(--sp-sm); } .mb-md { margin-bottom: var(--sp-md); } .mb-lg { margin-bottom: var(--sp-lg); } .mb-xl { margin-bottom: var(--sp-xl); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-up { animation: fadeInUp 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.anim-in { animation: fadeIn 0.45s ease both; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__frame { max-width: 440px; }
  .artwork-single { grid-template-columns: 1fr; }
  .artwork-single__gallery { position: static; }
  .artist-profile { grid-template-columns: 1fr; }
  .artist-profile__portrait { position: static; max-width: 320px; }
  .founder-section { grid-template-columns: 1fr; }
  .founder-section__portrait { position: static; max-width: 280px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 180px 180px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr 1fr; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --sp-3x: 5rem; --sp-2x: 3.5rem; --sp-xl: 2.5rem; --sp-lg: 1.75rem; }
  .primary-nav { display: none; }
  .header-actions .btn--outline { display: none; }
  .menu-toggle { display: flex; }
  .gallery-grid, .artist-grid { grid-template-columns: repeat(2,1fr); }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .mobile-nav { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .artist-hero { height: 55vw; min-height: 320px; }
  .artist-hero__info { padding: var(--sp-md) var(--sp-md); }
}
@media (max-width: 480px) {
  .gallery-grid, .artist-grid { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; }
}

/* ============================================================
   ARTWORK CAROUSEL — hung paintings on gallery wall
   v4.5.0
   ============================================================ */
.at-carousel {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--sp-xl);
  /* Full-bleed track with side padding for frame effect */
  padding-inline: var(--sp-lg);
  max-width: var(--container);
  margin-inline: auto;
}

.at-carousel__track {
  display: flex;
  gap: var(--sp-lg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  align-items: flex-start;
}

/* Each artwork card — hung painting effect */
.at-carousel__item {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

/* The frame — white or black border + shadow like a hung work */
.at-carousel__frame {
  position: relative;
  overflow: hidden;
  /* White mat border, then thin black frame, then wall shadow */
  outline: 8px solid var(--white);
  box-shadow:
    0 0 0 9px var(--mid-grey),
    0 12px 40px rgba(0,0,0,0.22),
    0 4px 12px rgba(0,0,0,0.12);
  background: var(--light-grey);
  transition: box-shadow var(--t-slow), transform var(--t-slow);
}
.at-carousel__item:hover .at-carousel__frame {
  box-shadow:
    0 0 0 9px var(--near-black),
    0 20px 60px rgba(0,0,0,0.32),
    0 6px 16px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
.at-carousel__frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.at-carousel__item:hover .at-carousel__frame img {
  transform: scale(1.03);
}

/* Sold ribbon */
.at-carousel__sold-ribbon {
  position: absolute;
  top: var(--sp-sm); right: var(--sp-sm);
  background: var(--near-black);
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  z-index: 3;
}

/* Caption placard below frame */
.at-carousel__caption {
  padding: var(--sp-sm) 0;
  border-top: 1.5px solid var(--near-black);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.at-carousel__caption-main {}
.at-carousel__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.at-carousel__title a { color: inherit; transition: color var(--t-fast); }
.at-carousel__title a:hover { color: var(--charcoal); }
.at-carousel__artist {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark-grey);
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.at-carousel__meta {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 2px;
}
.at-carousel__price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--near-black);
  letter-spacing: -0.01em;
}
.at-carousel__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Arrow buttons */
.at-carousel__prev,
.at-carousel__next {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--mid-grey);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  color: var(--near-black);
}
.at-carousel__prev:hover,
.at-carousel__next:hover {
  background: var(--near-black);
  border-color: var(--near-black);
  color: var(--white);
  box-shadow: var(--shad-md);
}
.at-carousel__prev { left: 0; }
.at-carousel__next { right: 0; }
.at-carousel__prev:disabled,
.at-carousel__next:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dot indicators */
.at-carousel__dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}
.at-carousel__dot {
  width: 6px; height: 6px;
  border: 1px solid var(--mid-grey);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), width var(--t-base);
}
.at-carousel__dot.active {
  background: var(--near-black);
  border-color: var(--near-black);
  width: 20px;
}

@media (max-width: 768px) {
  .at-carousel__item { flex: 0 0 260px; }
  .at-carousel__prev { left: 0; }
  .at-carousel__next { right: 0; }
}
@media (max-width: 480px) {
  .at-carousel__item { flex: 0 0 220px; }
}

/* ============================================================
   VIEWING ROOM — ARTWORK ROWS  v4.4
   80% desktop, padded, stacked on mobile/tablet
   ============================================================ */
@media (max-width: 1080px) {
  /* Single artist Viewing Room — stack on tablet */
  .at-work-row {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  /* 80% container becomes full width on mobile */
  [style*="max-width:80%"] {
    max-width: 100% !important;
    padding-inline: var(--sp-sm) !important;
  }
  .at-work-row {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   HOMEPAGE ARTIST CARDS — smaller, info below image
   v4.6.1
   ============================================================ */
.at-home-artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-md);
}
.at-home-artist-card {
  background: var(--white);
  border: 1px solid var(--mid-grey);
  overflow: hidden;
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  text-decoration: none;
  display: block;
  color: inherit;
}
.at-home-artist-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shad-md);
}
.at-home-artist-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--light-grey);
}
.at-home-artist-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform var(--t-slow);
}
.at-home-artist-card:hover .at-home-artist-card__img img {
  transform: scale(1.04);
}
.at-home-artist-card__body {
  padding: 0.65rem var(--sp-sm) var(--sp-sm);
  border-top: 1px solid var(--mid-grey);
}
.at-home-artist-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--near-black);
  margin-bottom: 2px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.at-home-artist-card__style {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 4px;
}
.at-home-artist-card__bio {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--color-mid);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Event Interest Heart Button */
.at-interest-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--mid-grey);
  padding: 0.45em 0.9em;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--charcoal);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border-radius: 0;
  white-space: nowrap;
}
.at-interest-btn:hover {
  border-color: var(--near-black);
  color: var(--near-black);
}
.at-interest-btn.is-interested {
  background: var(--near-black);
  border-color: var(--near-black);
  color: var(--white);
}
.at-interest-btn .heart {
  font-size: 0.85rem;
  transition: transform var(--t-fast);
}
.at-interest-btn.is-interested .heart {
  color: #e33;
}
.at-interest-count {
  font-size: 0.65rem;
  color: var(--dark-grey);
  margin-left: 0.3rem;
}

@media (max-width: 768px) {
  .at-home-artist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .at-home-artist-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
}

/* ============================================================
   POLICY PAGE CONTENT  v4.6.2
   Inherits at-page-content, adds numbered section headings
   ============================================================ */
.at-policy-content h2 {
  counter-increment: policy-section;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--near-black);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--mid-grey);
  letter-spacing: -0.01em;
}
.at-policy-content h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--near-black);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-xs);
  letter-spacing: -0.01em;
}
.at-policy-content p {
  font-size: .975rem;
  line-height: 1.82;
  color: var(--color-mid);
  margin-bottom: var(--sp-sm);
}
.at-policy-content ul,
.at-policy-content ol {
  margin-bottom: var(--sp-md);
}
.at-policy-content a {
  color: var(--near-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.at-policy-content a:hover { color: var(--charcoal); }

/* ── Token-based enquiry button — matches anchor styling ────────────────────── */
button.at-enquire-btn {
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
/* Overlay variant — white ghost on dark background */
button.at-enquire-btn.at-overlay-enq {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
button.at-enquire-btn.at-overlay-enq:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
}

/* Commission button — matches enquiry button base style */
button.at-commission-btn {
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

/* ============================================================
   EVENT GALLERY LIGHTBOX  v4.7.4
   ============================================================ */
#at-lightbox {
  /* Smooth open — JS sets display:flex */
  animation: at-lb-fadein .18s ease;
}
@keyframes at-lb-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#at-lb-close:hover,
#at-lb-prev:hover,
#at-lb-next:hover {
  opacity: 1 !important;
  background: rgba(255,255,255,.22) !important;
}
#at-lb-img {
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}
.at-lb-trigger {
  cursor: zoom-in;
}
.at-lb-trigger:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.at-lb-hover-overlay {
  pointer-events: none;
}
.at-lb-video-trigger:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ============================================================
   HERO IMAGE — RESPONSIVE FIX  v4.7.6
   Applies to all pages using artrippin_render_hero()
   and dark fallback banners.
   ============================================================ */

/* Base: full desktop height */
.at-page-hero {
  width: 100%;
  overflow: hidden;
}

/* Hero image fills the container on all screen sizes */
.at-page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* On tablet — reduce height */
@media (max-width: 1024px) {
  .at-page-hero {
    min-height: 440px !important;
  }
}

/* On mobile — shorter hero, comfortable not overwhelming */
@media (max-width: 768px) {
  .at-page-hero {
    min-height: 340px !important;
  }
  /* Reduce top padding inside hero content on mobile */
  .at-page-hero .wrap {
    padding-top: var(--sp-xl) !important;
    padding-bottom: var(--sp-lg) !important;
  }
  /* Tighten hero heading on mobile */
  .at-page-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.8rem) !important;
    margin-bottom: .4rem !important;
  }
  .at-page-hero p {
    font-size: .875rem !important;
    margin-bottom: var(--sp-md) !important;
  }
}

/* Extra small — phones in portrait */
@media (max-width: 480px) {
  .at-page-hero {
    min-height: 280px !important;
  }
}

/* Artist-of-month hero in archive-artist.php is a plain <section> not .at-page-hero
   Target it by its existing inline style context */
@media (max-width: 1024px) {
  .archive-artist .artist-hero-section,
  section[style*="min-height:580px"] {
    min-height: 440px !important;
  }
}
@media (max-width: 768px) {
  section[style*="min-height:580px"] {
    min-height: 340px !important;
  }
  section[style*="min-height:580px"] .wrap {
    padding-top: var(--sp-xl) !important;
    padding-bottom: var(--sp-lg) !important;
  }
  section[style*="min-height:580px"] h1 {
    font-size: clamp(1.8rem, 8vw, 3rem) !important;
  }
}
@media (max-width: 480px) {
  section[style*="min-height:580px"] {
    min-height: 280px !important;
  }
}

/* Dark fallback banner (no hero image set) — same responsive heights */
div[style*="min-height:580px"] {
  /* inherits from above via attribute selector */
}
@media (max-width: 768px) {
  div[style*="min-height:580px"] {
    min-height: 300px !important;
    padding-top: var(--sp-xl) !important;
  }
  div[style*="min-height:580px"] h1 {
    font-size: clamp(1.6rem, 7vw, 2.6rem) !important;
  }
}
@media (max-width: 480px) {
  div[style*="min-height:580px"] {
    min-height: 240px !important;
  }
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE LAYOUT  v4.7.7
   All grids, forms, galleries stack correctly on
   mobile (< 768px) and tablet (768px – 1024px).
   ============================================================ */

/* ── Sidebar grids (1fr + fixed sidebar) ─────────────────── */
.at-grid-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-2x);
  align-items: start;
}
.at-grid-sidebar--wide {
  grid-template-columns: 1fr 440px;
}
@media (max-width: 1024px) {
  .at-grid-sidebar--wide {
    grid-template-columns: 1fr 360px;
  }
}
@media (max-width: 768px) {
  .at-grid-sidebar,
  .at-grid-sidebar--wide {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }
  /* Un-sticky the sidebar on mobile */
  .at-grid-sidebar > div[style*="sticky"],
  .at-grid-sidebar > div > div[style*="sticky"] {
    position: static !important;
  }
}

/* ── 2-column equal grids ────────────────────────────────── */
.at-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2x);
  align-items: center;
}
.at-grid-2col--form {
  gap: var(--sp-sm);
  align-items: start;
}
@media (max-width: 768px) {
  .at-grid-2col,
  .at-grid-2col--form {
    grid-template-columns: 1fr !important;
    gap: var(--sp-md);
  }
}

/* ── 3-column grids ──────────────────────────────────────── */
.at-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.at-grid-3col--bordered {
  border-left: 1px solid var(--mid-grey);
}
@media (max-width: 900px) {
  .at-grid-3col {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  .at-grid-3col {
    grid-template-columns: 1fr !important;
  }
  .at-grid-3col--bordered {
    border-left: none !important;
    border-top: 1px solid var(--mid-grey);
  }
}

/* ── 4-column grids (How it Works, Steps) ────────────────── */
.at-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.at-grid-4col--bordered {
  border-left: 1px solid var(--mid-grey);
}
@media (max-width: 900px) {
  .at-grid-4col {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  .at-grid-4col {
    grid-template-columns: 1fr !important;
  }
  .at-grid-4col--bordered {
    border-left: none !important;
    border-top: 1px solid var(--mid-grey);
  }
}

/* ── Artist profile (280px sidebar + bio) ────────────────── */
.at-grid-artist-profile {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-2x);
  align-items: start;
}
@media (max-width: 900px) {
  .at-grid-artist-profile {
    grid-template-columns: 220px 1fr;
    gap: var(--sp-lg);
  }
}
@media (max-width: 768px) {
  .at-grid-artist-profile {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }
  .at-grid-artist-profile > div[style*="sticky"] {
    position: static !important;
  }
  /* Show portrait smaller and centered on mobile */
  .at-grid-artist-profile .founder-section__portrait,
  .at-grid-artist-profile > div:first-child {
    max-width: 280px;
    margin-inline: auto;
  }
}

/* ── Founder section ─────────────────────────────────────── */
.at-grid-founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-2x);
  align-items: start;
}
@media (max-width: 768px) {
  .at-grid-founder {
    grid-template-columns: 1fr !important;
    gap: var(--sp-lg);
  }
  .founder-section__portrait {
    max-width: 220px;
    margin-inline: auto;
  }
}

/* ── Artwork viewing room rows ───────────────────────────── */
.at-work-row,
.at-work-row--normal,
.at-work-row--flip {
  display: grid;
  grid-template-columns: 520px 1fr;
  border: 1px solid var(--mid-grey);
  margin-bottom: var(--sp-lg);
  background: var(--white);
}
.at-work-row--flip {
  grid-template-columns: 1fr 520px;
}
@media (max-width: 1100px) {
  .at-work-row,
  .at-work-row--normal,
  .at-work-row--flip {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 768px) {
  .at-work-row,
  .at-work-row--normal,
  .at-work-row--flip {
    margin-bottom: var(--sp-md);
  }
}

/* ── Event list row (date + details + price) ─────────────── */
.at-ev-list-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 0;
  border-bottom: 1.5px solid var(--stone);
  padding: var(--space-lg, 1.5rem) 0;
}
@media (max-width: 768px) {
  .at-ev-list-row {
    grid-template-columns: 80px 1fr !important;
    grid-template-rows: auto auto;
    gap: var(--sp-sm);
  }
  /* Price/CTA column goes full width below */
  .at-ev-list-row > div:last-child {
    grid-column: 1 / -1;
    align-items: flex-start !important;
    border-top: 1px solid var(--mid-grey);
    padding-top: var(--sp-sm);
  }
}
@media (max-width: 480px) {
  .at-ev-list-row {
    grid-template-columns: 1fr !important;
  }
  .at-ev-list-row > div:first-child {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
  }
}

/* ── Footer 3-column ─────────────────────────────────────── */
.at-grid-footer {
  display: grid !important;
  grid-template-columns: 1fr 180px 180px !important;
  gap: var(--sp-2x);
  padding: var(--sp-2x) 0 var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px) {
  .at-grid-footer {
    grid-template-columns: 1fr 1fr !important;
  }
  .at-grid-footer > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .at-grid-footer {
    grid-template-columns: 1fr !important;
  }
}

/* ── Gallery artwork grid ────────────────────────────────── */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-md);
}
@media (max-width: 600px) {
  .artwork-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--sp-sm);
  }
}
@media (max-width: 380px) {
  .artwork-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Artist card grid ────────────────────────────────────── */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-md);
}
@media (max-width: 600px) {
  .artist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--sp-sm);
  }
}

/* ── Carousel ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .at-carousel {
    padding-inline: var(--sp-md);
  }
  .at-carousel__item {
    flex: 0 0 240px;
  }
}
@media (max-width: 480px) {
  .at-carousel__item {
    flex: 0 0 200px;
  }
}

/* ── Forms — full width on mobile ────────────────────────── */
@media (max-width: 768px) {
  .form-group,
  .at-grid-sidebar .form-group {
    margin-bottom: var(--sp-sm);
  }
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px !important; /* prevent iOS zoom on focus */
  }
  /* Commission and contact forms */
  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea,
  .wpforms-field input,
  .wpforms-field textarea,
  .wpforms-field select {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ── Footer bottom bar ───────────────────────────────────── */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  padding: var(--sp-md) 0;
  font-size: .72rem;
}
@media (max-width: 600px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-xs);
  }
  .site-footer__bottom span[style*="display:flex"] {
    flex-wrap: wrap;
    gap: var(--sp-xs) !important;
  }
}

/* ── General mobile utilities ────────────────────────────── */
@media (max-width: 768px) {
  /* Prevent horizontal overflow everywhere */
  .wrap,
  .wrap--narrow,
  section,
  .section {
    overflow-x: hidden;
  }
  /* Stack flex rows that have fixed children */
  .section-header,
  .section-header--split {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: var(--sp-sm) !important;
  }
  /* Buttons full width in stacked contexts */
  .at-grid-sidebar .btn--lg,
  .at-grid-2col .btn--lg {
    width: 100%;
    justify-content: center;
  }
  /* WhatsApp community strip */
  .wrap[style*="justify-content:space-between"] {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Homepage services dark grid ─────────────────────────── */
@media (max-width: 900px) {
  .grid.g4 {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  .grid.g4 {
    grid-template-columns: 1fr !important;
  }
  .grid.g3 {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 400px) {
  .grid.g3 {
    grid-template-columns: 1fr !important;
  }
}


/* ── Commission steps responsive ────────────────────────────────────────────── */
.at-commission-step {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--mid-grey);
  align-items: flex-start;
}
.at-commission-step__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--light-grey);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  min-width: 44px;
}
.at-commission-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
  color: var(--near-black);
}
.at-commission-step p {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--color-mid);
  margin: 0;
}
/* Commission steps stack cleanly on mobile */
@media (max-width: 768px) {
  .at-commission-step {
    gap: var(--sp-sm);
    padding: var(--sp-sm) 0;
  }
  .at-commission-step__num {
    font-size: 1.5rem;
    width: 36px;
    min-width: 36px;
  }
  .at-commission-step h3 {
    font-size: .95rem;
  }
  .at-commission-step p {
    font-size: .85rem;
  }
}

/* ── Footer brand — prevent cut on small screens ────────────────────────────── */
.site-footer__brand {
  min-width: 0;   /* allow shrinking inside grid */
  overflow-wrap: break-word;
  word-break: break-word;
}
.footer-brand__desc {
  max-width: 100% !important;
}
@media (max-width: 480px) {
  .footer-brand__logo {
    font-size: 1.3rem !important;
  }
  .footer-brand__desc {
    font-size: .82rem !important;
  }
  .footer-socials {
    flex-wrap: wrap;
  }
}

/* ── Mobile nav Commission button — always white text ────────────────────────── */
.mobile-nav__actions .btn,
.mobile-nav__actions a.btn,
#at-mobile-nav .btn,
#at-mobile-nav a.btn {
  color: var(--white) !important;
  background: var(--near-black) !important;
  border-color: rgba(255,255,255,.25) !important;
  /* Bigger, more padding — overrides btn--sm */
  font-size: .8rem !important;
  padding: .75em 1.4em !important;
  min-width: 120px;
  justify-content: center;
}
#at-mobile-nav .btn:hover,
#at-mobile-nav a.btn:hover {
  background: var(--charcoal) !important;
  border-color: rgba(255,255,255,.5) !important;
}

/* ── Sticky sidebar — disabled on mobile ────────────────────────────────────── */
.at-sticky-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-md));
}
@media (max-width: 768px) {
  .at-sticky-sidebar {
    position: static !important;
    top: auto !important;
  }
}

/* ── Wrap — ensure padding on mobile prevents edge bleed ────────────────────── */
@media (max-width: 480px) {
  .wrap,
  .wrap--narrow {
    padding-inline: var(--sp-md) !important;
  }
}

/* ── Footer wrap — extra padding on small screens + safe area ────────────────
   iPhone Safari clips content at screen edges without this.
   ─────────────────────────────────────────────────────────────────────────── */
.site-footer .wrap {
  padding-inline: max(var(--sp-lg), env(safe-area-inset-left, var(--sp-lg)));
}
@media (max-width: 480px) {
  .site-footer .wrap {
    padding-inline: max(1.25rem, env(safe-area-inset-left, 1.25rem)) !important;
  }
  .site-footer__bottom {
    padding-inline: max(1.25rem, env(safe-area-inset-left, 1.25rem));
    padding-bottom: max(var(--sp-md), env(safe-area-inset-bottom, var(--sp-md)));
  }
  .site-footer__inner.at-grid-footer {
    padding-inline: max(1.25rem, env(safe-area-inset-left, 1.25rem));
  }
}

/* ── Commission page — form wrapper full width on mobile ─────────────────────
   The sidebar form can overflow narrow viewports without this.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .commission-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0;
  }
  .commission-form .form-input,
  .commission-form .form-select,
  .commission-form .form-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px !important; /* prevent iOS zoom */
  }
  /* Commission form card — remove fixed border padding on mobile */
  .at-sticky-sidebar > div[style*="border:1.5px solid"] {
    padding: var(--sp-md) !important;
  }
}

/* ── Mobile nav actions — stack buttons vertically on very small screens ─────── */
@media (max-width: 380px) {
  .mobile-nav__actions {
    flex-direction: column !important;
  }
  .mobile-nav__actions .btn {
    width: 100% !important;
  }
}

/* ── Commission form card ────────────────────────────────────────────────────── */
.commission-form-card {
  border: 1.5px solid var(--mid-grey);
  padding: var(--sp-xl);
}
@media (max-width: 768px) {
  .commission-form-card {
    padding: var(--sp-md);
    border-left: none;
    border-right: none;
    margin-inline: calc(-1 * var(--sp-lg));
    padding-inline: var(--sp-lg);
  }
}
@media (max-width: 480px) {
  .commission-form-card {
    margin-inline: calc(-1 * var(--sp-md));
    padding-inline: var(--sp-md);
  }
}
