/* ————— Strother Fine Art — concept redesign ————— */
:root {
  --bg: #0e0e10;
  --bg-2: #151517;
  --line: #2a2a2e;
  --ink: #eceae6;
  --muted: #97948e;
  --accent: #c8a878;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ————— header ————— */
#site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(rgba(14,14,16,.85), rgba(14,14,16,0));
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#site-header.solid {
  background: rgba(14,14,16,.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 24px; font-weight: 600; letter-spacing: .04em;
}
.brand span { color: var(--accent); font-weight: 400; font-style: italic; }
#site-header nav { display: flex; gap: clamp(16px, 3vw, 40px); }
#site-header nav a {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; position: relative;
  transition: color .25s;
}
#site-header nav a:hover, #site-header nav a.active { color: var(--ink); }
#site-header nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
#site-header nav a:hover::after, #site-header nav a.active::after { transform: scaleX(1); }

/* ————— generic ————— */
main { min-height: 70vh; }
.loading { padding: 40vh 0; text-align: center; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

.eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
h1.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 88px); line-height: 1.05; letter-spacing: .01em;
}
h2.section {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
}
.lede { color: var(--muted); max-width: 560px; font-size: 17px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ————— hero ————— */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg, .hero-bg-b {
  position: absolute; inset: -6%;
  background-size: cover; background-position: center;
  filter: grayscale(30%) brightness(.5);
  transform: scale(1);
  animation: kenburns 22s ease-in-out infinite alternate;
  transition: opacity 2s ease;
}
.hero-bg-b { opacity: 0; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,16,.3) 0%, rgba(14,14,16,.15) 45%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 clamp(20px, 4vw, 56px) 14vh; max-width: 900px; }
.hero .credit {
  position: absolute; right: 24px; bottom: 20px; z-index: 2;
  font-size: 11px; letter-spacing: .12em; color: rgba(236,234,230,.45);
}
.btn {
  display: inline-block; margin-top: 34px;
  border: 1px solid var(--accent); color: var(--ink);
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  padding: 15px 36px; transition: background .3s, color .3s;
}
.btn:hover { background: var(--accent); color: #131313; }

/* ————— stats strip ————— */
.stats { display: flex; gap: clamp(30px, 8vw, 120px); padding: 70px 0 10px; border-top: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-size: 44px; font-weight: 500; display: block; line-height: 1; }
.stat span { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* ————— sections ————— */
section.block { padding: clamp(60px, 9vw, 120px) 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.more-link { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .25s, border-color .25s; }
.more-link:hover { color: var(--accent); border-color: var(--accent); }

/* ————— work grid (masonry) ————— */
.works { column-count: 4; column-gap: 22px; }
@media (max-width: 1100px) { .works { column-count: 3; } }
@media (max-width: 760px)  { .works { column-count: 2; } }
@media (max-width: 460px)  { .works { column-count: 1; } }
.work {
  break-inside: avoid; margin-bottom: 22px;
  cursor: pointer; position: relative; overflow: hidden;
  background: var(--bg-2);
}
.work img { width: 100%; transition: transform .6s ease, opacity .6s; }
.work:hover img { transform: scale(1.04); }
.work .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(10,10,12,.88));
  opacity: 0; transition: opacity .35s;
}
.work:hover .cap { opacity: 1; }
.work .cap .a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.work .cap .t { font-family: var(--serif); font-size: 18px; line-height: 1.25; }

/* ————— artists ————— */
.artist-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.artist-card { position: relative; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.artist-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.artist-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(55%) brightness(.85); transition: transform .6s ease, filter .5s; }
.artist-card:hover img { transform: scale(1.05); filter: grayscale(0%) brightness(1); }
.artist-card .nm { padding: 16px 18px 18px; border: 1px solid var(--line); border-top: 0; }
.artist-card .nm h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; }
.artist-card .nm span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* artists index letter nav */
.alpha { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 26px 0 40px; }
.alpha a { color: var(--muted); font-size: 13px; letter-spacing: .1em; padding: 2px 4px; }
.alpha a.on { color: var(--accent); }
.alpha a.off { opacity: .25; pointer-events: none; }
.letter-head {
  font-family: var(--serif); font-size: 30px; color: var(--accent);
  border-bottom: 1px solid var(--line); margin: 46px 0 22px; padding-bottom: 8px;
}

/* ————— artist detail ————— */
.artist-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 0; }
.back-link { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.artist-hero h1 { margin-top: 18px; }
.artist-hero .meta { color: var(--muted); margin-top: 10px; font-size: 14px; letter-spacing: .06em; }

/* ————— contact ————— */
.contact-page { padding: calc(var(--header-h) + 10vh) 0 8vh; text-align: center; }
.contact-page .mail {
  display: inline-block; margin-top: 30px;
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 36px);
  border-bottom: 1px solid var(--accent); padding-bottom: 6px;
  transition: color .3s;
}
.contact-page .mail:hover { color: var(--accent); }
.contact-page .note { margin-top: 40px; color: var(--muted); max-width: 520px; margin-inline: auto; }

/* ————— footer ————— */
#site-footer { margin-top: clamp(70px, 10vw, 130px); border-top: 1px solid var(--line); }
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 56px) 46px; text-align: center; }
.foot-brand { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.foot-brand span { color: var(--accent); font-style: italic; font-weight: 400; }
.foot-note { color: var(--muted); margin-top: 10px; font-size: 14px; }
.foot-contact { margin-top: 6px; font-size: 14px; }
.foot-contact a { color: var(--ink); border-bottom: 1px solid var(--line); }
.foot-contact a:hover { color: var(--accent); }
.foot-demo { margin-top: 30px; font-size: 11px; letter-spacing: .12em; color: #5c5a56; text-transform: uppercase; }

/* ————— lightbox ————— */
#lightbox[hidden] { display: none; }
#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,8,9,.96);
  display: flex; align-items: center; justify-content: center;
}
#lightbox figure {
  display: flex; gap: clamp(20px, 4vw, 56px); align-items: center;
  max-width: min(1100px, 92vw); max-height: 86vh; padding: 0 60px;
}
#lightbox img {
  max-height: 78vh; max-width: min(60vw, 700px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
#lightbox figcaption { min-width: 220px; max-width: 320px; }
.lb-artist { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lb-title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; }
.lb-details { list-style: none; margin-top: 18px; color: var(--muted); font-size: 14px; }
.lb-details li { padding: 7px 0; border-bottom: 1px solid var(--line); }
#lightbox button {
  position: absolute; background: none; border: 0; color: var(--muted);
  font-size: 30px; cursor: pointer; padding: 14px; line-height: 1;
  transition: color .25s; font-family: var(--sans);
}
#lightbox button:hover { color: var(--ink); }
.lb-close { top: 18px; right: 24px; font-size: 34px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 44px; }

@media (max-width: 760px) {
  #lightbox figure { flex-direction: column; gap: 18px; overflow-y: auto; padding: 70px 20px 30px; align-items: flex-start; }
  #lightbox img { max-width: 100%; max-height: 55vh; }
  #site-header nav a[data-nav="home"] { display: none; }
  .stats { flex-wrap: wrap; gap: 30px; }
}
