/* ============================================================
   Christine Croteau — light & breezy portfolio styles
   ============================================================ */

:root {
  --bg:           #fbf7f2;          /* warm cream */
  --bg-soft:      #f3ece2;          /* deeper cream for sections */
  --bg-card:     #ffffff;
  --ink:         #2f2a26;          /* warm near-black */
  --ink-soft:    #6b6058;
  --accent:      #c08a6b;          /* dusty terracotta */
  --accent-soft: #e7d4c4;
  --sage:        #a9b89a;
  --rose:        #e3c3c0;
  --line:        #e8dfd2;
  --shadow:      0 18px 40px -22px rgba(70, 50, 30, .35);

  --serif:  "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:   "Inter", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;

  --max-w: 1240px;
}

/* --- reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: .005em;
  margin: 0 0 .5em 0;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.4rem; line-height: 1.25; }

p { margin: 0 0 1em 0; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .72rem;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--sans);
}

/* --- layout helpers ----------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

.divider {
  width: 56px; height: 1px;
  background: var(--accent);
  margin: 24px auto;
  opacity: .6;
}

/* --- header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 242, .85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: .92rem;
  letter-spacing: .08em;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: all .3s ease;
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  left: 0; right: 0;
}

/* dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 6px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 12px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 8px 22px;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.dropdown a:hover { color: var(--accent); background: var(--bg-soft); }
.dropdown a::after { display: none; }

/* author grouping inside the gallery dropdown */
.dropdown .menu-group-label {
  display: block;
  padding: 12px 22px 4px;
  font-family: var(--sans);
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.dropdown .menu-group-label:first-child { padding-top: 6px; }
.dropdown a + .menu-group-label,
.dropdown .menu-empty + .menu-group-label {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
.dropdown a.menu-sub { padding-left: 32px; }
.dropdown .menu-empty {
  display: block;
  padding: 6px 22px 8px 32px;
  font-size: .82rem;
  color: var(--ink-soft);
  font-style: italic;
  opacity: .8;
}

/* mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all .25s ease;
}

/* --- hero ---------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-top: 16px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-copy p {
  font-size: 1.05rem;
  max-width: 36ch;
  margin-top: 24px;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: .82rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  transition: all .3s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* hero collage */
.hero-collage {
  position: relative;
  height: 560px;
}
.hero-collage figure {
  position: absolute;
  margin: 0;
  background: var(--bg-card);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage figure:hover { transform: translateY(-6px) rotate(0deg) !important; }

.hero-collage .c1 {
  top: 0; left: 8%;
  width: 46%; height: 60%;
  transform: rotate(-3deg);
}
.hero-collage .c2 {
  top: 18%; right: 0;
  width: 50%; height: 56%;
  transform: rotate(2deg);
}
.hero-collage .c3 {
  bottom: 0; left: 22%;
  width: 44%; height: 44%;
  transform: rotate(-1deg);
  z-index: 2;
}

/* --- featured grid ----------------------------------------- */
.grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: block;
  background: var(--bg-card);
  padding: 14px 14px 22px;
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 6px 18px -12px rgba(70,50,30,.25);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.card:hover .card-img img { transform: scale(1.04); }

.card-meta {
  padding-top: 18px;
  text-align: center;
}
.card-meta h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.card-meta span {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- category teasers ---------------------------------------- */
.category-row {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-soft);
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s ease;
}
.category-card:hover img { transform: scale(1.06); }
.category-card .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(47,42,38,.78), rgba(47,42,38,0));
  color: #fbf7f2;
}
.category-card .label h3 {
  color: #fbf7f2;
  margin: 0;
  font-size: 1.6rem;
}
.category-card .label span {
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  opacity: .85;
}

/* --- about strip --------------------------------------------- */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-strip img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-strip p { font-size: 1.05rem; max-width: 48ch; }

/* --- filter bar (gallery) ----------------------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 40px 0 56px;
}
.filter-bar button {
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 22px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .25s ease;
  border-radius: 999px;
}
.filter-bar button:hover { color: var(--ink); border-color: var(--ink); }
.filter-bar button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --- page header (sub-pages) -------------------------------- */
.page-head {
  padding: 80px 0 40px;
  text-align: center;
}
.page-head h1 { margin-bottom: 18px; }
.page-head p { max-width: 56ch; margin: 0 auto; }

/* --- painting page ------------------------------------------ */
.painting-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 60px 0 80px;
}
.painting-stage {
  position: relative;
  background: var(--bg-card);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.painting-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.painting-info { padding-top: 12px; position: sticky; top: 100px; }
.painting-info h1 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  margin-bottom: 8px;
}
.painting-meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 14px 0 28px;
}
.painting-meta-row span { display: inline-flex; align-items: center; }
.painting-meta-row span + span::before {
  content: "•";
  margin-right: 18px;
  color: var(--accent);
}
.painting-byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin: 0 0 22px;
}
.painting-description {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* --- sold badge & purchasing --------------------------------- */
.sold-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 7px 13px;
  background: var(--ink);
  color: var(--bg);
}
/* larger corner badge over the detail-page image */
.sold-badge--stage {
  top: 28px;
  left: 28px;
  font-size: .72rem;
  padding: 9px 16px;
}
/* inline badge inside the purchase row — a quiet "no longer available"
   tag that mirrors the buy button's proportions but in muted, soft tones */
.sold-badge--lg {
  position: static;
  font-size: .74rem;
  letter-spacing: .2em;
  padding: 9px 18px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.painting-purchase {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 28px;
}
.painting-price {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--ink);
}
.shipping-note {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: .25rem;
  margin-bottom: .5rem;
}
/* a quiet, understated purchase link in the dusty-terracotta accent */
.buy-btn {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 9px 18px;
  border: 1px solid var(--accent-soft);
  background: transparent;
  transition: color .3s ease, border-color .3s ease, background .3s ease;
}
.buy-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* technical details */
.painting-tech {
  margin-top: 34px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}
.tech-title {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 16px;
}
.tech-list { margin: 0; }
.tech-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.tech-row:last-child { border-bottom: 0; }
.tech-row dt {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  align-self: center;
}
.tech-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 0;
  color: var(--ink-soft);
  font-style: italic;
}
.painting-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.painting-nav a:hover { color: var(--accent); }
.painting-nav .arrow { color: var(--accent); margin: 0 8px; }

/* not-found fallback inside painting.html */
.not-found {
  text-align: center;
  padding: 120px 0;
}

/* --- about page --------------------------------------------- */
.about-page {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
  padding: 24px 0 60px;
}
.about-page img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-page p { font-size: 1.05rem; line-height: 1.85; }

/* author cards */
.author-cards-head {
  text-align: center;
  padding: 40px 0 8px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.author-cards-head p { max-width: 56ch; margin: 0 auto; }
.author-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 36px 0 40px;
}
.author-card {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  padding: 16px;
  box-shadow: 0 6px 18px -12px rgba(70,50,30,.25);
  transition: transform .35s ease, box-shadow .35s ease;
}
.author-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.author-card-img {
  flex: 0 0 96px;
  width: 96px;
  height: 120px;
  overflow: hidden;
  background: var(--bg-soft);
}
.author-card-img img { width: 100%; height: 100%; object-fit: cover; }
.author-card-body { min-width: 0; }
.author-card-body h3 { margin: 0 0 2px; font-size: 1.3rem; }
.author-tagline {
  display: block;
  font-size: .66rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.author-card-body p {
  font-size: .92rem;
  line-height: 1.65;
  margin: 0 0 10px;
}
.author-count {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- footer -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 36px;
  margin-top: 64px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.site-footer p {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-footer .credit {
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: .02em;
  font-size: 1rem;
  color: var(--ink);
}

/* --- reveal animation --------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   Breakpoints
     1100px — tablet landscape / small laptop
      900px — tablet portrait (hero & painting page stack)
      720px — mobile menu kicks in
      560px — small mobile
      400px — ultra-narrow
   ============================================================ */

/* ---------- Tablet landscape ---------- */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .hero-grid { gap: 48px; }
  .grid { gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .category-row { gap: 22px; }
  .about-strip,
  .about-page { gap: 48px; }
  .painting-wrap { gap: 52px; }
  .section { padding: 80px 0; }
  .nav-links { gap: 24px; }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .about-strip,
  .about-page,
  .painting-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 56px 0 72px; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-collage { height: clamp(360px, 56vw, 480px); max-width: 560px; margin: 0 auto; width: 100%; }

  .painting-info { position: static; padding-top: 0; }
  .painting-stage { min-height: 0; padding: 18px; }
  .painting-stage img { max-height: 70vh; }

  .category-row { grid-template-columns: repeat(2, 1fr); }
  .category-card { aspect-ratio: 4 / 5; }

  .about-page img,
  .about-strip img { max-width: 480px; margin: 0 auto; }

  .section { padding: 72px 0; }
  .page-head { padding: 60px 0 32px; }
}

/* ---------- Mobile: hamburger menu kicks in ---------- */
@media (max-width: 720px) {
  /* nav drawer */
  .site-header .nav { padding: 16px 0; flex-wrap: wrap; }
  .brand { font-size: 1.25rem; }
  .brand small { font-size: .6rem; letter-spacing: .32em; }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 40px; height: 40px;
    margin-right: -8px;
  }
  .menu-toggle span {
    width: 22px; height: 1.5px;
    margin: 4px 0;
    transform-origin: center;
    transition: transform .3s ease, opacity .2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px -18px rgba(70,50,30,.25);
    padding: 8px 24px 20px;
    gap: 0;
    align-items: stretch;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: 0; }
  .nav-links a {
    display: block;
    padding: 14px 4px;
    width: 100%;
    font-size: 1rem;
    letter-spacing: .06em;
  }
  .nav-links a::after { display: none; }
  .nav-links a.is-active { color: var(--accent); }

  /* mobile dropdown: inline accordion */
  .has-dropdown .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 10px 16px;
    min-width: 0;
    background: transparent;
  }
  .has-dropdown .dropdown a {
    padding: 8px 4px;
    font-size: .92rem;
    color: var(--ink-soft);
  }
  .has-dropdown .dropdown a:hover { background: transparent; color: var(--accent); }
  .has-dropdown .dropdown a.menu-sub { padding-left: 16px; }
  .has-dropdown .dropdown .menu-group-label { padding: 12px 4px 2px; border-top: 0; }
  .has-dropdown .dropdown a + .menu-group-label,
  .has-dropdown .dropdown .menu-empty + .menu-group-label { border-top: 0; margin-top: 0; }
  .has-dropdown .dropdown .menu-empty { padding: 4px 4px 6px 16px; }

  /* layout density */
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
  .page-head { padding: 40px 0 24px; }

  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
  .hero-copy p { font-size: 1rem; }

  /* grid + cards */
  .grid {
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .card { padding: 10px 10px 16px; }
  .card-meta { padding-top: 12px; }
  .card-meta h3 { font-size: 1rem; }
  .card-meta span { font-size: .62rem; letter-spacing: .2em; }

  /* category teasers */
  .category-row { grid-template-columns: 1fr; gap: 18px; }
  .category-card { aspect-ratio: 16 / 11; }
  .category-card .label { padding: 22px 20px; }
  .category-card .label h3 { font-size: 1.3rem; }

  /* hero collage: collapse to a single offset card */
  .hero-collage { height: clamp(280px, 72vw, 380px); max-width: 420px; }
  .hero-collage .c1 { width: 60%; height: 70%; left: 0; top: 6%; transform: rotate(-3deg); }
  .hero-collage .c2 { width: 56%; height: 60%; right: 0; top: 28%; transform: rotate(2deg); }
  .hero-collage .c3 { display: none; }

  /* buttons */
  .hero-actions { gap: 10px; width: 100%; }
  .btn { padding: 13px 22px; font-size: .76rem; letter-spacing: .2em; flex: 1 1 160px; text-align: center; }

  /* filter bar */
  .filter-bar { margin: 28px -4px 36px; gap: 6px; }
  .filter-bar button {
    padding: 9px 16px;
    font-size: .7rem;
    letter-spacing: .18em;
    flex: 1 1 auto;
    min-width: max-content;
  }

  /* painting page */
  .painting-wrap { padding: 32px 0 56px; gap: 28px; }
  .painting-stage { padding: 14px; }
  .painting-stage img { max-height: 60vh; }
  .painting-info h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .painting-meta-row { font-size: .75rem; gap: 10px; margin: 10px 0 20px; }
  .painting-meta-row span + span::before { margin-right: 10px; }
  .painting-description { font-size: 1rem; line-height: 1.7; }
  .painting-nav {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
  }

  /* about */
  .about-page img,
  .about-strip img { max-width: 360px; }
  .about-page p { font-size: 1rem; line-height: 1.7; }

  /* footer */
  .site-footer { padding: 36px 0 28px; margin-top: 40px; }
  .site-footer .container { justify-content: center; text-align: center; gap: 8px; }
  .site-footer .credit { font-size: .95rem; }
  .site-footer p { font-size: .72rem; letter-spacing: .12em; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  /* one column card grid */
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-img { aspect-ratio: 4 / 3; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: none; }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px;
    margin: 24px -16px 32px;
    padding-left: 16px;
    padding-right: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { flex: 0 0 auto; }

  .painting-stage { padding: 10px; }
  .painting-stage img { max-height: 56vh; }
}

/* ---------- Ultra-narrow ---------- */
@media (max-width: 400px) {
  .brand { font-size: 1.1rem; }
  .brand small { display: none; }
  .hero-collage { height: 260px; }
  .hero-collage .c1 { width: 70%; height: 80%; }
  .hero-collage .c2 { width: 60%; height: 64%; }
}

/* ---------- Touch device tweaks ---------- */
@media (hover: none) {
  /* disable hover-only transforms so taps don't trigger the lifted state */
  .card:hover { transform: none; box-shadow: 0 6px 18px -12px rgba(70,50,30,.25); }
  .card:hover .card-img img { transform: none; }
  .category-card:hover img { transform: none; }
  .hero-collage figure:hover { transform: inherit; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
