/* ============ Base ============ */
:root {
  --bg: #f4f2ee;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #3a3a3a;
  --muted: #8a8580;
  --line: #e2ded7;
  --accent: #ff4b1f;
  --blue: #2440ff;
  --dark: #0f0f10;
  --display: "Syne", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.5rem); }
h2 sup { font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); vertical-align: top; margin-left: .3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.kicker { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 99px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-line-light { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-line-light:hover { border-color: #fff; }

/* ============ Navigation ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--pad);
  transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .7rem; padding-bottom: .7rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 2rem); font-size: .9rem; font-weight: 500; }
.nav-links a:not(.pill) { position: relative; }
.nav-links a:not(.pill)::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:not(.pill):hover::after { transform: scaleX(1); transform-origin: left; }
.pill { background: var(--ink); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; transition: background .3s; }
.pill:hover { background: var(--accent); }

/* ============ Hero ============ */
.hero { padding: clamp(7rem, 16vh, 10rem) var(--pad) clamp(2.5rem, 6vw, 4rem); }
.eyebrow { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.hero-title { font-size: clamp(2.3rem, 10.6vw, 12.5rem); font-weight: 800; line-height: .86; letter-spacing: -.055em; text-transform: uppercase; }
.hero-title .line { display: block; }
.hero-title .indent { padding-left: clamp(1.5rem, 11vw, 12rem); }
.hero-title .accent { color: var(--accent); }
.hero-bottom {
  display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 2rem; align-items: end;
  margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.35; max-width: 26ch; font-weight: 400; }
.highlights { list-style: none; display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--ink-2); }
.highlights li::before { content: "✦"; color: var(--accent); margin-right: .55rem; font-size: .75rem; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ============ Marquee ============ */
.marquee { overflow: hidden; padding: 1rem 0 clamp(3rem, 8vw, 6rem); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  height: clamp(200px, 32vw, 380px); flex: none; border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; background: var(--line); border: 0; padding: 0;
}
.marquee-item img { height: 100%; width: auto; transition: transform .8s var(--ease); }
.marquee-item:hover img { transform: scale(1.04); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ Section heads ============ */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ============ Works grid ============ */
.works { padding: clamp(3rem, 7vw, 6rem) var(--pad); background: var(--paper); border-radius: 28px 28px 0 0; }
.filters { display: flex; gap: .35rem; padding: .3rem; background: var(--bg); border-radius: 999px; }
.filters button {
  border: 0; background: none; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: .85rem; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s;
}
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; }
.filters button .n { opacity: .55; margin-left: .3rem; font-size: .75rem; }

.grid { columns: 3 300px; column-gap: clamp(1rem, 2.5vw, 2rem); }
.card { break-inside: avoid; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); cursor: zoom-in; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.card-media img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after {
  content: "View →"; position: absolute; right: .9rem; bottom: .9rem;
  background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.card:hover .card-media::after, .card:focus-visible .card-media::after { opacity: 1; transform: none; }
.tag {
  position: absolute; left: .9rem; top: .9rem; z-index: 1;
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink);
}
.tag.sold { background: var(--ink); color: #fff; }
.tag.award { background: var(--accent); color: #fff; }
.card-info { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .8rem; align-items: baseline; padding-top: .9rem; }
.card-num { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.2rem; letter-spacing: -.02em; font-weight: 600; }
.card-price { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-price.sold { color: var(--muted); font-weight: 500; }
.card-meta { grid-column: 2 / -1; font-size: .82rem; color: var(--muted); }

/* placeholder for works without a photo */
.art.placeholder svg { width: 100%; height: 100%; display: block; }

/* ============ Statement ============ */
.statement { background: var(--paper); padding: clamp(3rem, 8vw, 7rem) var(--pad) clamp(4rem, 10vw, 9rem); }
.statement p {
  font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.05;
  font-size: clamp(2rem, 6vw, 5.2rem); max-width: 18ch;
}
.statement p em { font-style: normal; color: var(--accent); }

/* ============ About ============ */
.about {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
}
.about.no-img { grid-template-columns: 1fr; max-width: 900px; }
.about-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-text h2 { margin-bottom: 1.8rem; }
.about-text p { color: var(--ink-2); margin-bottom: 1.1rem; max-width: 58ch; font-size: 1.02rem; }
.about-text p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); line-height: 1.45; }

/* ============ Studio ============ */
.studio { padding: 0 0 clamp(4rem, 9vw, 8rem); }
.studio .section-head { padding: 0 var(--pad); }
.studio-strip {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 var(--pad) 1rem; scrollbar-width: thin;
}
.studio-strip img {
  flex: none; height: clamp(240px, 36vw, 440px); width: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); scroll-snap-align: start;
}

/* ============ Exhibitions ============ */
.exhibitions { background: var(--dark); color: #f4f2ee; padding: clamp(4rem, 9vw, 8rem) var(--pad); border-radius: 28px 28px 0 0; }
.exhibitions .kicker { color: #8f8a84; }
.ex-list { list-style: none; border-top: 1px solid #2b2b2d; }
.ex-list li {
  display: grid; grid-template-columns: 7rem 1.3fr 1fr; gap: 1.5rem; align-items: baseline;
  padding: clamp(1.2rem, 2.5vw, 1.8rem) 0; border-bottom: 1px solid #2b2b2d;
  transition: padding .4s var(--ease), color .3s;
}
.ex-list li:hover { padding-left: .8rem; }
.ex-year { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 1.1rem; }
.ex-title { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ex-place { color: #a7a29b; font-size: .92rem; }
.ex-place span { display: block; color: #6f6b66; font-size: .82rem; margin-top: .2rem; }

/* ============ Contact ============ */
.contact { background: var(--dark); color: #f4f2ee; padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(4rem, 9vw, 8rem); text-align: left; border-top: 1px solid #2b2b2d; }
.contact .kicker { color: #8f8a84; }
.contact-big {
  display: inline-flex; align-items: flex-start; gap: .1em;
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(3.5rem, 13vw, 12rem); transition: color .35s;
}
.contact-big .arrow { font-size: .45em; transition: transform .45s var(--ease); }
.contact-big:hover { color: var(--accent); }
.contact-big:hover .arrow { transform: translate(.12em, -.12em); }
.contact-mail { margin-top: 1.5rem; font-size: 1.05rem; color: #c9c4bd; }
.social { margin-top: 1.2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: .9rem; }
.social a { border-bottom: 1px solid #555; padding-bottom: 2px; transition: border-color .3s, color .3s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }

.footer {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem var(--pad); background: var(--dark); color: #77726c; font-size: .8rem; border-top: 1px solid #2b2b2d;
}
.footer a:hover { color: #fff; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: #0b0b0c; color: #f4f2ee;
  display: grid; grid-template-columns: 1fr 340px; grid-template-rows: auto 1fr;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--pad); font-size: .85rem; }
.lb-count { font-variant-numeric: tabular-nums; color: #8f8a84; }
.lb-close { background: none; border: 1px solid #333; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; transition: border-color .3s; }
.lb-close:hover { border-color: #fff; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem 2rem; min-height: 0; }
.lb-image { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-image img { max-height: calc(100vh - 7rem); max-width: 100%; object-fit: contain; border-radius: 6px; animation: lbIn .45s var(--ease); }
.lb-image .art.placeholder { width: min(60vh, 100%); aspect-ratio: 4/5; }
@keyframes lbIn { from { opacity: 0; transform: scale(.98); } }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid #333; background: none; cursor: pointer;
  font-size: 1.1rem; transition: background .3s, border-color .3s;
}
.lb-nav:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lb-info { padding: 1rem var(--pad) 2rem 0; display: flex; flex-direction: column; justify-content: center; }
.lb-info .kicker { color: var(--accent); }
.lb-info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.lb-meta { color: #a7a29b; font-size: .92rem; line-height: 1.7; margin-bottom: 1.4rem; }
.lb-status { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.6rem; }
.lb-actions { display: flex; flex-direction: column; gap: .6rem; align-items: stretch; }
.lb-actions .btn { justify-content: center; }

/* ============ Reveal on scroll ============ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .card.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal, .js .card { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-bottom { grid-template-columns: 1fr 1fr; }
  .hero-cta { grid-column: 1 / -1; }
  .lightbox { display: flex; flex-direction: column; overflow-y: auto; }
  .lb-top { flex: none; }
  .lb-stage { flex: none; height: 62vh; padding: 0 var(--pad); }
  .lb-image img { max-height: 100%; }
  .lb-nav { background: rgba(11,11,12,.6); border-color: #444; }
  .lb-prev { left: calc(var(--pad) + .4rem); } .lb-next { right: calc(var(--pad) + .4rem); }
  .lb-info { flex: none; padding: 1.6rem var(--pad) 2.5rem; }
}
@media (max-width: 760px) {
  .nav-links a:not(.pill) { display: none; }
  .hero-bottom { grid-template-columns: 1fr; gap: 1.4rem; }
  .about { grid-template-columns: 1fr; }
  .ex-list li { grid-template-columns: 1fr; gap: .3rem; }
  .works, .exhibitions { border-radius: 20px 20px 0 0; }
  .filters { width: 100%; overflow-x: auto; }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}
