/* Susan Street Fine Art — redesign POC
   Mobile-first, gallery-grade, WCAG AA. Original design; client artwork used for proof-of-concept only. */

:root {
  /* White-background theme (client experiment) */
  --canvas: #ffffff;
  --surface: #ffffff;
  --soft: #f7f6f4;        /* faint warm panel to keep pure white from feeling cold */
  --ink: #1b1a18;          /* dark UI fill (legacy; being phased out — client dislikes black) */
  --text: #666666;         /* body text: soft grey (AA 5.74:1 on white; ≈ susanstreet #666) */
  --title: #4e4844;        /* headings: darker than body but soft, not charcoal (AA ~8.5:1) */
  --muted: #737373;        /* secondary/meta: soft grey, still AA (4.75:1 on white) */
  --line: #e4e2dd;
  --accent: #d32027;       /* exact Susan Street logo red (sampled from ssfa-logo.png); ~5.2:1 on white, AA ✓ */
  --accent-ink: #ffffff;
  --max: 1200px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 40px; --s6: 64px; --s7: 96px;
  /* Match the live site: Palatino (Palatino Linotype) brand serif */
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", "Palatino LT STD", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

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

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: var(--s2) var(--s3); z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* Headings */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--title); line-height: 1.15; margin: 0; letter-spacing: .2px; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;                 /* solid white, opaque (McCormick & Wright style) */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 92px; }
.brand { display: flex; align-items: center; line-height: 1; text-decoration: none; }
.brand img { display: block; height: 20px; width: auto; max-width: 66vw; }
@media (min-width: 768px) { .brand img { height: 26px; } }
/* legacy text wordmark fallback (unused once the logo image is in place) */
.brand .name { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); font-weight: 400; letter-spacing: 1px; }
.brand .sub { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: none; }
.nav-links a {
  text-decoration: none; font-size: 15px; letter-spacing: .04em; color: var(--text);
  padding: var(--s2) 2px; position: relative;
}
.nav-links a[aria-current="page"]::after,
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: var(--s2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s4);
  font-family: var(--sans); font-size: 14px; letter-spacing: .03em; font-weight: 400;
  border: 1px solid var(--text); background: transparent; color: var(--text);
  text-decoration: none; cursor: pointer; border-radius: 2px; transition: .15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #8c211b; border-color: #8c211b; color: #fff; }
.btn-ghost { border-color: var(--line); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 2px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--title); position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* Mobile drawer */
.mobile-nav {
  display: none; flex-direction: column; gap: var(--s1);
  padding: var(--s3) var(--s4) var(--s4); border-top: 1px solid var(--line); background: var(--canvas);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { text-decoration: none; padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 17px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #20201e; }
.hero img { width: 100%; height: 62vh; min-height: 420px; object-fit: cover; opacity: 1; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s6) 0 var(--s5);
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 78%);
  color: #fff;
}
.hero-caption .eyebrow { color: #e8d9c8; }
.hero-caption h1 { font-size: clamp(34px, 7vw, 64px); color: #fff; max-width: 18ch; }
.hero-caption p { max-width: 52ch; color: #f1ece6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-actions .btn { border-color: rgba(255,255,255,.6); color: #fff; }
.hero-actions .btn:hover { background: #fff; color: var(--ink); }
.hero-actions .btn-accent { border-color: var(--accent); }

/* ---------- Home: immersive pinned hero (SRCart-style) ----------
   The hero is fixed full-viewport behind the page; .page-content starts below it
   (margin-top:100svh) and slides up over it on scroll. Home-only — gated by .page-home,
   so the other pages keep the normal sticky-solid header untouched. */
.page-home .hero-fixed {
  position: fixed; top: 0; left: 0; right: 0; height: max(85svh, 460px);
  z-index: 0; background: #20201e; overflow: hidden;
}
.page-home .hero-fixed .carousel { height: max(85svh, 460px); }
.page-home .hero-fixed .carousel-dots { display: none; }  /* hero needs no pagination dots */

.page-home .page-content {
  position: relative; z-index: 1; margin-top: max(85svh, 460px);
  background: var(--canvas);
  box-shadow: 0 -28px 60px rgba(0,0,0,.30);
}
.page-home .hero-sentinel { display: block; height: 1px; margin-bottom: -1px; }

/* Home header is NOT sticky — it sits over the hero (solid white bar) and scrolls away with the
   page (srcart-style). Interior pages keep the base sticky header. */
.page-home .site-header { position: absolute; top: 0; left: 0; right: 0; }

/* Demo-only floating switch (reused for live client A/B comparisons) */
.demo-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 500;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 11px 18px; font-family: var(--sans); font-size: 13px; letter-spacing: .02em;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); opacity: .92;
}
.demo-toggle:hover { opacity: 1; }

/* Our Gallery intro card (SRCart-style: image + name + paragraph + 2 links). Image side
   is A/B-toggleable on desktop via .is-right; mobile keeps text-first DOM order. */
.gallery-intro-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
.gallery-intro .intro-card { max-width: 52ch; }
.intro-media img { width: 100%; border-radius: 3px; }
.intro-title { font-size: clamp(20px, 2.4vw, 27px); line-height: 1.25; margin-bottom: var(--s3); }
.intro-body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text);
  margin: 0 0 var(--s4); max-width: 58ch;
}
.intro-links { font-family: var(--sans); font-size: 14px; letter-spacing: .03em; margin: 0; }
.intro-links a { color: var(--accent); text-decoration: none; }
.intro-links a:hover { text-decoration: underline; }
.intro-links span { color: var(--muted); margin: 0 8px; }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 5vw, 56px) 0; }
.section-tight { padding-top: var(--s4); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 4.5vw, 40px); }
.section-head .link { font-size: 14px; text-decoration: none; color: var(--accent); white-space: nowrap; }
.section-head .link:hover { text-decoration: underline; }
.lede { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); line-height: 1.4; color: var(--text); max-width: 30ch; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .thumb img, .card:focus-within .thumb img { transform: scale(1.05); }

/* Larger, animated artist cards (home + artists overview) */
.grid-artists { gap: var(--s4); }
.artist-card .thumb { aspect-ratio: 4 / 5; }
.artist-card .body { padding: var(--s4) var(--s4) calc(var(--s4) + 2px); }
.artist-card .body h3 { font-size: clamp(22px, 2.4vw, 28px); }
.type-tag { display: inline-block; margin-top: var(--s2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Vertical project cards (McCormick & Wright reference: uniform vertical, title below, no overlay) */
.project-card .thumb { aspect-ratio: 3 / 4; }
.project-card .body h3 { font-size: clamp(20px, 2.2vw, 25px); }

/* Projects page only: caption hidden, revealed on hover as a translucent band at the image bottom (M&W style) */
.project-cards-hover .project-card { position: relative; }
.project-cards-hover .project-card .body {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(150%) blur(4px);
  padding: var(--s3) var(--s4);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.project-cards-hover .project-card:hover .body,
.project-cards-hover .project-card:focus-within .body { opacity: 1; transform: none; }
@media (hover: none) {   /* touch / no-hover: show normally, no overlay */
  .project-cards-hover .project-card .body {
    position: static; opacity: 1; transform: none; background: none; backdrop-filter: none;
  }
}

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

/* ---------- Detail pages (artist + project) ---------- */
.detail { padding: clamp(28px, 4vw, 48px) 0; }
.detail-head { max-width: 64ch; }
.detail-head h1 { font-size: clamp(26px, 3.6vw, 38px); }
.detail-head .meta { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: var(--s2); }
.detail-head .lede { margin-top: var(--s4); max-width: 60ch; }

/* slim artist header (art-forward layout): name + medium only, bio moves to About block */
.detail-head--slim { max-width: none; }
.detail-head--slim h1 { font-size: clamp(24px, 3vw, 32px); }

/* compact "About the artist" block below the art */
.artist-about { max-width: 66ch; margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s4); }
.artist-about h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.artist-about p { font-family: var(--serif); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--text); margin: 0 0 var(--s3); }
.artist-about p:last-of-type { margin-bottom: 0; }
/* collapsible curriculum vitae */
.artist-cv { margin-top: var(--s5); border-top: 1px solid var(--line); }
.artist-cv summary { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: var(--s4) 0; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; }
.artist-cv summary::-webkit-details-marker { display: none; }
.artist-cv summary::after { content: "+"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--muted); }
.artist-cv[open] summary::after { content: "\2212"; }
.artist-cv summary:hover { color: var(--text); }
.cv-body { padding-bottom: var(--s4); }
.cv-block { margin-top: var(--s4); }
.cv-block:first-child { margin-top: 0; }
.cv-block h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--text); margin: 0 0 var(--s2); }
.cv-block ul { list-style: none; margin: 0; padding: 0; }
.cv-block li { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--muted); padding: 6px 0; border-top: 1px solid var(--line); }
.cv-block li:first-child { border-top: 0; }
.cv-block .cv-year { display: inline-block; min-width: 3.2em; font-weight: 400; color: var(--text); }
.cv-block em { font-style: italic; }
.detail-body p { max-width: 64ch; }
.detail-gallery { display: grid; grid-template-columns: 1fr; gap: var(--s3); margin-top: var(--s5); }
.detail-gallery button {
  display: block; padding: 0; border: 1px solid var(--line); background: var(--soft);
  border-radius: 3px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5;
}
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.detail-gallery button:hover img { transform: scale(1.04); }
.pager { display: flex; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s4); }
.pager a { text-decoration: none; color: var(--text); font-family: var(--sans); font-size: 14px; }
.pager a:hover { color: var(--accent); }
.pager .label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .next { text-align: right; }

/* Artist works slider — art-forward: large, clean, arrows pulled away from the art */
.works-slider { margin-top: var(--s5); position: relative; }
.works-slider .carousel { height: min(78vh, 760px); min-height: 440px; max-width: 1100px; margin-inline: auto; background: #fff; border: 0; border-radius: 0; overflow: visible; }
.works-slider .carousel-slide { display: flex; align-items: center; justify-content: center; padding: clamp(8px, 2vw, 24px); }
.works-slider .carousel-slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 18px 50px rgba(0,0,0,.10); }

/* arrows: subtle chevrons; on small/medium screens sit at the very edge with a faint
   backdrop, on wide screens (room to spare) pull fully outside the art so they don't distract */
.works-slider .carousel-btn { top: 50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.6); color: var(--text); font-size: 30px; font-weight: 300; transition: background .15s ease, color .15s ease; }
.works-slider .carousel-btn:hover { background: rgba(255,255,255,.92); color: var(--text); }
.works-slider .carousel-btn.prev { left: 6px; }
.works-slider .carousel-btn.next { right: 6px; }

/* no dots, no thumbnails on the art-forward layout */
.works-slider .carousel-dots,
.works-slider .works-thumbs { display: none; }

/* single-line art description (ARTIST, Title, medium, dimensions) — hidden when empty */
.works-meta { display: flex; align-items: baseline; justify-content: center; gap: var(--s3); margin-top: var(--s5); text-align: center; }
.works-meta[hidden] { display: none; }
.works-line { font-family: var(--serif); font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: var(--text); }
.works-line .artist-name { letter-spacing: .01em; }
/* RULE: artwork titles are always italic (art-world convention); artist name + medium + dims stay roman */
.art-title { font-style: italic; }
/* legacy caption structure (Casentini / Howe pages) */
.works-meta .works-title { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.8vw, 19px); color: var(--text); }
.works-meta .works-dims { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 2px; }
.works-counter { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.works-caption { font-size: 13px; color: var(--muted); margin-top: var(--s3); text-align: center; }

/* ---------- Artist works grid (2-up, art-forward, below the slider) ---------- */
.works-grid-label { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: var(--s6) 0 0; }
.works-grid-label + .work-grid { margin-top: var(--s4); }
/* masonry columns: mixed portrait/landscape works pack by natural height, no white space */
.work-grid { columns: 1; column-gap: var(--s5); margin-top: var(--s6); }
.work-grid figure { break-inside: avoid; margin: 0 0 var(--s5); }
.work-grid button { display: block; width: 100%; padding: clamp(12px, 2vw, 28px); border: 0; background: var(--soft); border-radius: 3px; cursor: zoom-in; overflow: hidden; }
.work-grid button img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.work-grid button:hover img { transform: scale(1.03); }
/* caption aligns to the image, never wider than the framed art above it */
.work-grid figcaption { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: var(--s3); padding-inline: clamp(12px, 2vw, 28px); }
.work-grid figcaption:empty { display: none; }
.work-grid figcaption .artist-name { letter-spacing: .01em; color: var(--text); }

/* ---------- Project detail: McCormick-style statement + masonry ---------- */
.project-head { max-width: 60ch; margin-bottom: var(--s5); }
.project-loc { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project-statement { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 3vw, 28px); line-height: 1.35; color: #5b574f; margin-top: var(--s3); max-width: 52ch; }
/* bottom "back to all projects" link (replaces the prev/next pager on project detail pages) */
.back-all { border-top: 1px solid var(--line); margin-top: var(--s6); padding-top: var(--s4); }
.masonry { columns: 1; column-gap: var(--s4); margin-top: var(--s2); }
.masonry button { display: block; width: 100%; padding: 0; margin: 0 0 var(--s4); border: 0; background: none; cursor: zoom-in; break-inside: avoid; overflow: hidden; border-radius: 3px; }
.masonry img { width: 100%; height: auto; display: block; transition: transform .6s ease; }
.masonry button:hover img { transform: scale(1.03); }
.masonry .reveal { opacity: 0; transform: none; transition: opacity .7s ease; }
.masonry .reveal.in { opacity: 1; }
.project-artists { margin-top: var(--s6); border-top: 1px solid var(--line); padding-top: var(--s4); max-width: 72ch; }
.project-artists h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-artists p { margin-top: var(--s3); font-family: var(--serif); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(233,230,224,.975); padding: var(--s4) var(--s4) 78px; }
.lightbox img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.lightbox-caption { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; text-align: center; font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text); padding: 0 var(--s5); }
.lightbox-caption[hidden] { display: none; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: rgba(40,38,34,.10); color: var(--text); cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 24px; display: grid; place-items: center; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(40,38,34,.22); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 16px; top: 50%; transform: translateY(-50%); }
.card .body { padding: var(--s3) var(--s4) var(--s4); }
.card .body h3 { font-size: 23px; }
.card .body .meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: var(--s1); }
.card .body .cat { display: inline-block; margin-top: var(--s2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Works strip (home) */
.works { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
.work { text-decoration: none; color: inherit; }
.work .thumb { aspect-ratio: 1/1; overflow: hidden; background: #efeae3; border: 1px solid var(--line); }
.work .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { font-size: 20px; margin-top: var(--s2); }
.work .meta { font-size: 13px; color: var(--muted); }
.work .inquire { font-size: 13px; color: var(--accent); margin-top: var(--s1); display: inline-block; }

/* Statement */
.statement { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 4vw, 38px); line-height: 1.3; max-width: 24ch; }
.statement .attrib { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: var(--s4); }
.statement .grid2 { display: grid; grid-template-columns: 1fr; gap: var(--s5); }

/* Consulting / visit two-col */
.split { display: grid; grid-template-columns: 1fr; gap: var(--s5); align-items: center; }
.split img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 3px; }
.split ul { padding-left: 1.1em; margin: var(--s3) 0; }
.split li { margin: var(--s2) 0; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip {
  min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; font-family: var(--sans); font-size: 14px; cursor: pointer; color: var(--title);
  transition: background .15s ease, border-color .15s ease;
}
/* soft-gray hover on unselected chips (client dislikes dark charcoals/blacks) */
.chip:not([aria-pressed="true"]):hover { background: #f0eee9; border-color: #d8d5cf; }
/* selected = soft gray, not charcoal; stays legible (AA) + reads as active via tone, weight & border */
.chip[aria-pressed="true"] { background: #e9e7e2; color: var(--title); border-color: #cfccc5; font-weight: 600; }

/* CTA band — white, hairline-framed (client wants all-white) */
.cta-band { background: #fff; color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(28px, 5vw, 44px); color: var(--title); max-width: 18ch; }
.cta-band p { color: var(--muted); max-width: 50ch; }
.cta-band .eyebrow { color: var(--accent); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Footer — white with a hairline top border (client request, "for now") */
.site-footer { background: #fff; color: var(--text); border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s5); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-line { font-family: var(--serif); color: var(--text); font-size: 22px; }
.legal { border-top: 1px solid var(--line); margin-top: var(--s5); padding-top: var(--s4); color: var(--muted); font-size: 12px; }

/* Newsletter */
.subscribe { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.subscribe input {
  flex: 1 1 200px; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 2px; font-size: 16px;
}
.subscribe input::placeholder { color: var(--muted); }

/* Modal (Inquire) */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--s4); }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-panel {
  position: relative; background: var(--surface); border-radius: 4px; padding: var(--s5);
  width: 100%; max-width: 480px; box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.modal-panel h2 { font-size: 28px; margin-bottom: var(--s2); }
.modal-panel p { color: var(--muted); margin-top: 0; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--muted); }
.field { display: block; margin-top: var(--s3); }
.field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--line);
  border-radius: 2px; font-family: var(--sans); font-size: 16px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.modal .btn-accent { width: 100%; margin-top: var(--s4); }

/* Focus visibility (a11y) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .card:focus-within {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- Carousel (reusable, accessible) ---------- */
.carousel { position: relative; overflow: hidden; background: #20201e; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel-slide.is-active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(20,20,18,.5); color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 3; transition: background .15s ease;
}
.carousel-btn:hover { background: rgba(20,20,18,.8); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { position: absolute; right: 16px; z-index: 3; display: flex; gap: 8px; }
.carousel-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.carousel-dot[aria-pressed="true"] { background: #fff; }

/* hero carousel sizing + control placement */
.hero .carousel { height: 62vh; min-height: 420px; }
.hero .carousel-dots { top: 18px; }

/* project page featured hero matches the home hero height */
.project-hero .carousel { height: 62vh; min-height: 420px; }

/* featured project carousel */
.featured { background: var(--surface); border-bottom: 1px solid var(--line); }
.featured .split { align-items: stretch; }
.featured-carousel { aspect-ratio: 4 / 3; border-radius: 3px; }
.featured-carousel .carousel-dots { bottom: 14px; left: 50%; right: auto; transform: translateX(-50%); }
.featured-body { display: flex; flex-direction: column; justify-content: center; }

/* Home consulting: select-clients line */
.client-names { font-family: var(--sans); font-size: 14px; line-height: 1.8; color: var(--muted); margin-top: var(--s2); max-width: 52ch; }

/* Perf banner (POC only) */
.poc-note {
  background: #f3eee6; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; text-align: center; padding: var(--s2) var(--s3);
}
.poc-note strong { color: var(--ink); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; align-items: center; gap: var(--s4); }
  .menu-toggle { display: none; }
  .split { grid-template-columns: 1fr 1fr; }
  .gallery-intro-grid { grid-template-columns: 1fr 1fr; }   /* image RIGHT (Version B) — natural DOM order */
  .statement .grid2 { grid-template-columns: 1.3fr 1fr; align-items: center; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .work-grid { columns: 2; column-gap: var(--s6); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .works { grid-template-columns: repeat(4, 1fr); }
  .detail-gallery { grid-template-columns: repeat(3, 1fr); }
}
/* Wide screens: room to pull the slider arrows fully off the artwork */
@media (min-width: 1280px) {
  .works-slider .carousel-btn { background: transparent; color: var(--muted); font-size: 42px; }
  .works-slider .carousel-btn:hover { background: transparent; color: var(--text); }
  .works-slider .carousel-btn.prev { left: -66px; }
  .works-slider .carousel-btn.next { right: -66px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .card:hover .thumb img { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
