/* ==========================================================================
   FORM & FIGURE — Painter Portfolio & Shop
   Minimal, high-end, white-space led. Palette: bone / ink / brass.
   ========================================================================== */

:root {
  --cream:      #faf7f2;
  --paper:      #ffffff;
  --ink:        #171511;
  --ink-soft:   #57524a;
  --ink-faint:  #9a948a;
  --line:       rgba(23, 21, 17, 0.10);
  --line-strong:rgba(23, 21, 17, 0.18);
  --brass:      #a3813f;
  --brass-deep: #7c611f;
  --brass-soft: rgba(163, 129, 63, 0.14);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.menu-locked, html.menu-locked body { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--brass);
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

section { position: relative; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.16,.84,.44,1), transform 0.9s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .12s; }
.reveal-delay-2.is-visible { transition-delay: .24s; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.wordmark span { color: var(--brass); }

/* ---------- nav bar: logo / centered hamburger / CTA ---------- */
.nav-bar { position: relative; }
.logo-mark {
  display: inline-flex;
  color: var(--ink);
  transition: color 0.25s ease;
}
.logo-mark:hover { color: var(--brass-deep); }

.hamburger {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.hamburger:hover span { width: 18px; }

.nav-cta { opacity: 1; transition: opacity 0.25s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  font-family: var(--sans);
  font-weight: 500;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* ---------- menu overlay + drawer ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 17, 0.5);
  backdrop-filter: blur(4px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1);
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.menu-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 100%;
  max-width: 420px;
  background: var(--cream);
  z-index: 700;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 40px;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1);
}
.menu-drawer.is-open { opacity: 1; transform: translateX(0); }

.menu-drawer-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }

.menu-close {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-close:hover { background: rgba(23, 21, 17, 0.06); }
.menu-close span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}
.menu-close span:first-child { transform: translate(-50%, -50%) translateY(-3px); }
.menu-close span:last-child { transform: translate(-50%, -50%) translateY(3px); }
.menu-drawer.is-open .menu-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.menu-drawer.is-open .menu-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.menu-links a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  padding: 12px 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1), color 0.25s ease;
}
.menu-links a:hover { color: var(--brass-deep); }
.menu-drawer.is-open .menu-links a { opacity: 1; transform: translateX(0); }

.menu-cta {
  align-self: flex-start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1);
}
.menu-drawer.is-open .menu-cta { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 170px 0 20px;
  overflow: hidden;
}
.hero-center {
  text-align: center;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04;
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-deep);
}
.hero-lede {
  margin: 24px auto 0;
  max-width: 520px;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ==========================================================================
   IMAGE MARQUEE
   ========================================================================== */
.marquee-section {
  position: relative;
  padding: 4px 0;
  overflow: hidden;
  background: var(--cream);
}
.marquee-mask {
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 2;
  line-height: 0;
}
.marquee-mask svg { width: 100%; height: 100%; display: block; }
.mask-fill { fill: var(--cream); }
.marquee-mask-top { top: 0; }
.marquee-mask-bottom { bottom: 0; }
@media (min-width: 640px) {
  .marquee-mask { height: 90px; }
}

.marquee-track {
  display: flex;
  gap: 14px;
  padding: 24px 0;
  width: max-content;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  will-change: transform;
}
.marquee-track.is-dragging { cursor: grabbing; }
.marquee-slide {
  flex: none;
  width: 190px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.marquee-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
@media (min-width: 640px) {
  .marquee-slide { width: 280px; height: 360px; gap: 18px; }
  .marquee-track { gap: 18px; }
}

/* ==========================================================================
   BOTTOM TEASER
   ========================================================================== */
.bottom-teaser { padding: 12px 0 72px; text-align: center; }
.bottom-teaser .wrap { max-width: 640px; }
.bottom-teaser-copy {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.bottom-teaser-links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 640px) {
  .bottom-teaser-links { flex-direction: row; justify-content: center; gap: 36px; }
}
.link-underline {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.25s ease;
}
.link-underline:hover { text-decoration-color: var(--brass); }

/* ==========================================================================
   WORK / SHOP GRID
   ========================================================================== */
.work { padding: 140px 0; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.piece {
  display: flex;
  flex-direction: column;
}
.piece-frame {
  position: relative;
  background: var(--paper);
  padding: 14px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: hidden;
}
.piece-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.piece:hover .piece-frame img { transform: scale(1.045); }

.status-pill {
  position: absolute;
  top: 26px; left: 26px;
  background: rgba(250,247,242,0.94);
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.status-pill.is-available { color: var(--brass-deep); }
.status-pill.is-soon { color: var(--ink-faint); }
.status-pill.is-sold { color: var(--ink-faint); }
.piece.is-sold .piece-frame img { filter: grayscale(0.4) opacity(0.85); }

.piece-title { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.piece-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.piece-prints-note {
  display: block;
  margin: -8px 0 14px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  width: fit-content;
}
.piece-prints-note:hover { color: var(--ink); border-color: var(--ink); }
.piece-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.piece-price { font-size: 14px; font-weight: 600; }
.piece-link {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
}
.piece-link:hover { color: var(--ink); border-color: var(--ink); }

.piece-empty {
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line-strong);
  background: repeating-linear-gradient(135deg, rgba(23,21,17,0.02) 0 12px, transparent 12px 24px);
  text-align: center;
  padding: 32px;
}
.piece-empty-inner .plus {
  width: 34px; height: 34px;
  margin: 0 auto 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
  font-size: 16px;
}
.piece-empty-inner p {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

.work-more {
  text-align: center;
  margin-top: 64px;
}
.work-more p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 20px;
}

/* ==========================================================================
   LIMITED EDITION PRINTS
   ========================================================================== */
.editions { padding: 20px 0 140px; }

.editions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.edition-card {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}
.edition-thumb {
  flex: none;
  width: 92px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.edition-thumb img { width: 100%; height: 100%; object-fit: cover; }

.edition-info { flex: 1; min-width: 0; }
.edition-title { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin-bottom: 4px; }
.edition-sub {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
.edition-original {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.edition-original strong { color: var(--brass-deep); font-weight: 600; }
.edition-original.is-sold strong { color: var(--ink-faint); }

.edition-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.edition-tiers li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.edition-tiers li span:first-child { color: var(--ink-soft); flex: 1; }
.edition-tiers li span:nth-child(2) { color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.edition-tiers li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.editions-note {
  max-width: 620px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ==========================================================================
   LIFESTYLE / COLLECTOR WALL
   ========================================================================== */
.lifestyle {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.lifestyle-media {
  position: relative;
  overflow: hidden;
}
.lifestyle-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.lifestyle-copy {
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 100px);
}
.lifestyle-copy .eyebrow { color: var(--brass-soft); }
.lifestyle-copy .eyebrow::before { background: var(--brass-soft); }
.lifestyle-copy h2 {
  color: var(--cream);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
}
.lifestyle-copy p {
  margin: 24px 0 0;
  color: rgba(250,247,242,0.68);
  font-size: 16px;
  max-width: 440px;
}
.lifestyle-copy .caption {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(250,247,242,0.16);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(250,247,242,0.5);
  font-style: italic;
  font-family: var(--serif);
}

/* ==========================================================================
   ABOUT / PROCESS
   ========================================================================== */
.about { padding: 140px 0; }
.about .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
}
.about-badges { display: flex; flex-direction: column; gap: 34px; }
.badge b {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--brass-deep);
  margin-bottom: 6px;
}
.badge span {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-portrait {
  margin-top: 12px;
  max-width: 280px;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
  box-shadow: 0 24px 50px -24px rgba(23, 21, 17, 0.22);
}
.about-portrait-cap {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-faint);
}
.about-copy h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 26px;
}
.about-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 18px;
}
.about-copy .signature {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.process-quote {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 560px;
}

.about .wrap.process-block {
  display: block;
  margin-top: 70px;
}
.process-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
}
.detail-shot {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.detail-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.16,.84,.44,1);
}
.detail-shot:hover img { transform: scale(1.06); }
.process-details-cap {
  margin: 20px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ==========================================================================
   CONTACT / COMMISSION
   ========================================================================== */
.contact { padding: 140px 0 160px; }
.contact-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(36px, 6vw, 80px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
}
.contact-intro h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 20px; }
.contact-intro p { color: var(--ink-soft); font-size: 16px; margin: 0 0 30px; max-width: 380px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14.5px;
}
.contact-detail a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; width: fit-content; }
.contact-detail a:hover { border-color: var(--ink); }
.contact-detail .label { color: var(--ink-faint); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

form.commission { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 4px;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--ink-faint); max-width: 320px; }
.form-status { font-size: 13px; color: var(--brass-deep); min-height: 18px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-links a:hover { color: var(--ink); }
.footer-fine { font-size: 12.5px; color: var(--ink-faint); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero { padding-top: 140px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .editions-grid { grid-template-columns: repeat(2, 1fr); }
  .lifestyle { grid-template-columns: 1fr; }
  .lifestyle-media { min-height: 380px; }
  .about .wrap { grid-template-columns: 1fr; }
  .about-badges { flex-direction: row; flex-wrap: wrap; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-cta { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .editions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .menu-drawer { max-width: none; transform: translateY(100%); }
  .menu-drawer.is-open { transform: translateY(0); }
  .menu-links a { font-size: 26px; }
}
