:root {
  --bg: #121212;
  --bg-alt: #1a1918;
  --surface: #232120;
  --text: #ece8e3;
  --muted: #a39e97;
  --line: #34312e;
  --accent: #6fb5a3;      /* verdigris patina */
  --accent-hover: #86c4b4;
  --accent-rgb: 111, 181, 163;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 4px;
}

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

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
h3 { font-size: 1.5rem; }
em { color: var(--accent); font-style: italic; }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.95rem; transition: all 0.2s; cursor: pointer;
  border: 1px solid transparent; font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #121212; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.logo span { color: var(--accent); font-style: italic; }
.site-nav { display: flex; gap: 32px; align-items: center; font-size: 0.92rem; }
.site-nav a { color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta { color: var(--accent); border: 1px solid var(--accent); padding: 8px 16px; border-radius: var(--radius); }
.site-nav .nav-cta:hover { background: var(--accent); color: #121212; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 72px;
  background:
    linear-gradient(90deg, rgba(18,18,18,0.97) 0%, rgba(18,18,18,0.85) 40%, rgba(18,18,18,0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("images/satchmo-tribute.webp") right center / cover no-repeat,
    var(--bg);
}
.hero-inner { max-width: 820px; margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px)); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin: 24px 0 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 48px; }
.section-sub { color: var(--muted); max-width: 560px; }

/* Gallery */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 0.88rem;
  transition: all 0.2s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Selected works */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.work.hidden { display: none; }
.work-img {
  display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 0; padding: 0; cursor: zoom-in;
}
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-img:hover img { transform: scale(1.04); }
.work figcaption { padding-top: 18px; }
.work h3 { margin-bottom: 6px; }
.work .detail { color: var(--muted); font-size: 1rem; font-style: italic; }
.work .medium { color: var(--accent); font-size: 0.82rem; margin-bottom: 8px; line-height: 1.5; }
.work figcaption p:not(.medium) { color: var(--muted); font-size: 0.92rem; }

/* From the studio */
.studio-head { margin: 96px 0 24px; border-top: 1px solid var(--line); padding-top: 48px; }
.studio-head h3 { font-size: 2rem; margin-bottom: 6px; }
.studio-head p { color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.studio-item {
  aspect-ratio: 1; overflow: hidden; border: 0; padding: 0; background: var(--surface);
  border-radius: var(--radius); cursor: zoom-in;
}
.studio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity 0.3s; opacity: 0.88; }
.studio-item:hover img { transform: scale(1.05); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 8, 0.96);
  display: flex; flex-direction: column; padding: 56px 72px 24px;
}
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lb-caption {
  max-width: 900px; width: 100%; margin: 20px auto 0; display: flex; gap: 28px;
  align-items: center; justify-content: space-between;
}
.lb-title { font-size: 1.6rem; margin-bottom: 4px; }
.lb-medium { color: var(--accent); font-size: 0.82rem; margin-bottom: 6px; }
.lb-desc { color: var(--muted); font-size: 0.92rem; max-width: 620px; }
.lb-inquire { flex-shrink: 0; }
.lightbox > button {
  position: absolute; background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: 2.6rem; line-height: 1; padding: 12px; opacity: 0.7; z-index: 1;
}
.lightbox > button:hover { opacity: 1; color: var(--accent); }
.lb-close { top: 8px; right: 12px; }
.lb-prev { left: 8px; top: 40%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 40%; transform: translateY(-50%); }

/* Captions and inquiry links */
.studio-item { position: relative; }
.studio-cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; text-align: left;
  font-size: 0.78rem; color: var(--text); background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0; transition: opacity 0.25s;
}
.studio-item:hover .studio-cap, .studio-item:focus-visible .studio-cap { opacity: 1; }
@media (hover: none) { .studio-cap { opacity: 1; } }
.inquire-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 0.88rem; font-weight: 500; }
.inquire-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* Checkout page */
.page-hero { padding: 152px 0 64px; background: radial-gradient(ellipse at 80% 0%, rgba(var(--accent-rgb),0.16), transparent 55%), var(--bg); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.page-hero .lede { margin: 0; max-width: 640px; }
.checkout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 72px; align-items: start; }
.pricing-note {
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 28px 28px 24px; margin-bottom: 40px;
}
.pricing-note h2 { font-size: 1.8rem; margin-bottom: 10px; }
.pricing-note p { color: var(--muted); }
.pricing-note p + p { margin-top: 12px; }
.checkout-steps { list-style: none; counter-reset: step; display: grid; gap: 24px; }
.checkout-steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.checkout-steps li::before {
  content: counter(step); width: 44px; height: 44px; border: 1px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); color: var(--accent); font-size: 1.2rem;
}
.checkout-steps strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.checkout-steps span { color: var(--muted); font-size: 0.93rem; }
.call-box { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.call-box p { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.call-box a { font-family: var(--serif); font-size: 1.8rem; color: var(--text); }
.call-box a:hover { color: var(--accent); }
.form-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-card h2 { font-size: 1.9rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; font-size: 0.95rem; }
.selected-piece { background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.35); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 0.92rem; }
.selected-piece strong { color: var(--accent); }
.contact-form fieldset { border: 0; display: grid; gap: 8px; }
.contact-form legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .radio-row label {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; color: var(--text); cursor: pointer; font-size: 0.9rem;
}
.contact-form .radio-row input { accent-color: var(--accent); padding: 0; }
.contact-form .radio-row label:has(input:checked) { border-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--text); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .statement { font-family: var(--serif); font-size: 1.6rem; line-height: 1.3; color: var(--text); font-style: italic; }

/* Exhibitions */
.exhibitions { margin-top: 96px; }
.exhibitions h3 { font-size: 2rem; margin-bottom: 20px; }
.exhibitions ul { list-style: none; }
.exhibitions li {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.exhibitions .yr { font-family: var(--serif); color: var(--accent); font-size: 1.3rem; }
.exhibitions .kind { color: var(--muted); font-size: 0.85rem; text-align: right; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.materials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 28px; }
.materials li { border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.service { background: var(--surface); padding: 36px 32px; border-radius: var(--radius); border-top: 2px solid var(--accent); }
.service .num { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; }
.service h3 { margin: 10px 0 12px; }
.service p { color: var(--muted); font-size: 0.95rem; }

.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li { border-left: 1px solid var(--line); padding-left: 20px; }
.process strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 4px; }
.process span { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; }
.contact-text > p { color: var(--muted); margin-bottom: 32px; }
.contact-list { list-style: none; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; }
.contact-list span { color: var(--muted); width: 90px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; padding-top: 2px; }
.contact-list a:hover { color: var(--accent); }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { justify-self: start; border: 0; }
.contact-form .opt { opacity: 0.7; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.form-note { color: var(--accent); font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; gap: 48px; }
  .lb-caption { flex-direction: column; align-items: flex-start; gap: 14px; }
  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; }
  .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px; width: 100%; text-align: center; }
  .site-nav .nav-cta { border: 0; padding: 16px; }
  .hero-inner { margin-left: 0; }
}
@media (max-width: 520px) {
  .works { grid-template-columns: 1fr; }
  .studio-grid { grid-template-columns: repeat(2, 1fr); }
  .exhibitions li { grid-template-columns: 56px 1fr; }
  .exhibitions .kind { grid-column: 2; text-align: left; }
  .lightbox { padding: 52px 12px 16px; }
  .lb-title { font-size: 1.3rem; }
  .lb-desc { font-size: 0.85rem; }
  .form-card { padding: 24px 18px; }
  .process { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Small helpers (kept here so pages need no inline styles) ---------- */
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.section-tight { padding-top: 48px; }

/* ---------- 404 page ---------- */
.not-found { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 64px; }
.not-found-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.not-found h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 20px; }
.not-found .lede { margin: 0 0 32px; }
.not-found-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.not-found-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .not-found-inner { grid-template-columns: 1fr; gap: 40px; }
  .not-found-img { max-width: 320px; }
}
