/* Layout idea: generous white space, one narrow type scale, artwork is the only colour. */
:root {
  --bg: #ffffff;
  --ink: #141414;
  --ink-soft: #5d5d5d;
  --line: #e8e8e6;
  --dot: #d6262c;
  --font: "Inter", "Inter Display", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 32; /* Inter Display cut */
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

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

/* Header */
.site-header { padding: 40px 0 0; }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { font-size: 20px; font-weight: 400; letter-spacing: -0.025em; }
.site-header .brand .muted { color: #707070; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { color: var(--ink-soft); padding-bottom: 4px; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }


.ig { display: inline-flex; align-items: center; color: var(--ink-soft); transition: color .2s; }
.ig:hover { color: var(--ink); }
.nav a.ig { padding: 0; transform: translateY(-3px); }

/* Type */
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6.4vw, 92px); font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 300; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 28px; }
p { margin: 0 0 1.4em; max-width: 62ch; }
.muted { color: var(--ink-soft); }

.text-link { border-bottom: 1px solid var(--ink-soft); transition: border-color .2s; }
.text-link:hover { border-color: var(--ink); }


.link-arrow { display: inline-flex; gap: 12px; align-items: center; font-size: 16px; transition: gap .25s; }
.link-arrow:hover { gap: 20px; }

/* Home */
/* About */
.about { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 8vw, 128px); align-items: start; }
.about .portrait img { width: 100%; }
.about .portrait figcaption { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.about .portrait { margin: 0; }
@media (width > 960px) {
  .about .portrait { order: 1; }
}
.about h1 { font-size: clamp(36px, 5vw, 68px); }
.about > div { font-size: 16px; }
.about-gallery-link { padding-top: 8px; }

.facts { display: grid; grid-template-columns: 5fr 6fr; gap: 56px clamp(40px, 8vw, 128px); margin-top: clamp(64px, 9vw, 120px); padding-top: 32px; border-top: 1px solid var(--line); }
.facts > div { grid-column: 2; }
.facts h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; margin-bottom: 20px; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 7px 0; font-size: 16px; }
.facts li span:first-child { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Contact */
.contact h1 { font-size: clamp(40px, 5.6vw, 80px); }
.contact .lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 40ch; }
.contact .email { margin-top: 56px; font-size: clamp(22px, 3.2vw, 40px); font-weight: 300; letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* Gallery */
.about, .contact, .page-head { padding-top: 72px; }
.page-head { padding-bottom: clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(40px, 5.6vw, 80px); }
.about h1, .contact h1, .page-head h1 { margin-bottom: 32px; }
.page-head .gallery-subtitle { margin: 0; color: var(--ink-soft); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.work { margin: 0 0 clamp(56px, 6vw, 96px); }
.work button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; text-align: left; }
.work img { width: 100%; transition: opacity .3s; }
.work button:hover img { opacity: .92; }
.work figcaption { margin-top: 18px; letter-spacing: -0.005em; }
/* Title and price/Sold: one row, same size and line-height, first lines share a baseline. */
.work .row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 16px; line-height: 1.4; }
.work .t { min-width: 0; font-weight: 500; }
.work .price, .work .sold { flex: none; white-space: nowrap; }
.work .m { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.price { font-variant-numeric: tabular-nums; }
.sold { color: var(--ink-soft); }
.sold::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--dot); vertical-align: 0.04em; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 16px; margin: 0 0 clamp(40px, 5vw, 72px); }
.filter-row { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 0 16px; }
.filter-label { font-size: 15px; color: var(--ink-soft); }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fopt { background: var(--bg); border: 1px solid #d9d9d5; border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 13.5px; line-height: 1.3; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.fopt:hover { border-color: var(--ink); }
.fopt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fopt[data-group="availability"] { display: inline-flex; align-items: center; gap: 7px; }
.availability-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--dot); }
.fopt[data-value="available"] .availability-dot { background: #268348; }
.fopt.on[data-value="available"] .availability-dot { background: #52bd73; }
@media (min-width: 721px) {
  .filters { flex-direction: row; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
  .filters .filter-row { grid-template-columns: max-content minmax(0, 1fr); min-width: 0; }
}
.text-btn { background: none; border: 0; padding: 0 0 2px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--ink); }
.empty { padding: 24px 0 8px; color: var(--ink-soft); }
.empty p { margin-bottom: 18px; }
.gallery-enquiry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 4vw, 48px); background: #f3f3f2; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; letter-spacing: -0.025em; transition: background-color .2s; }
.gallery-enquiry:is(:hover, :focus-visible) { background: #eaeae8; }
.grid.fade { animation: gfade .3s ease; }
@keyframes gfade { from { opacity: .25; } to { opacity: 1; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Phone filter button and sheet */
.fab, .sheet { display: none; }
.lb.single .prev, .lb.single .next { visibility: hidden; }
@media (max-width: 720px) {
  .filter-row { grid-template-columns: 1fr; gap: 10px; align-items: start; }
  .fopt { padding: 6px 12px; font-size: 13.5px; }
  .filters { gap: 20px; }
  .fab { display: inline-flex; align-items: center; position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(12px); z-index: 30; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; letter-spacing: 0.01em; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
  .fab.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%); transition-delay: 0s; }
  .sheet { display: block; position: fixed; inset: 0; z-index: 40; visibility: hidden; pointer-events: none; transition: visibility 0s linear .28s; }
  .sheet.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.35); opacity: 0; transition: opacity .28s; }
  .sheet.open .sheet-backdrop { opacity: 1; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 18px var(--gutter) calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s ease; box-shadow: 0 -10px 40px rgba(0,0,0,.12); }
  .sheet.open .sheet-panel { transform: none; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
  .sheet-title { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
  .sheet-x { background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--ink); cursor: pointer; border-radius: 50%; }
  #sheet-body .filter-row { margin-bottom: 26px; gap: 12px; }
  #sheet-body .fopt { font-size: 13.5px; padding: 6px 12px; }
  #sheet-body .filter-opts { gap: 8px; }
  .sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
  .sheet-show { flex: 1; padding: 15px 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 16px; cursor: pointer; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: #fff; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 72px clamp(56px, 8vw, 120px) 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 50px rgba(0,0,0,.10); }
.lb-foot { display: contents; }
.lb-caption { padding: 18px var(--gutter) 28px; text-align: center; }
.lb-cap { display: flex; justify-content: center; gap: 28px; align-items: baseline; flex-wrap: wrap; font-size: 15px; letter-spacing: -0.005em; }
.lb-enquiry:not([hidden]) { display: inline-flex; align-items: center; min-height: 32px; margin-top: 10px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; line-height: 1.25; transition: background-color .2s; }
.lb-enquiry:is(:hover, :focus-visible) { background: #f3f3f2; }
@media (width > 720px) {
  .lb-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 28px; }
  .lb-enquiry:not([hidden]) { margin-top: 0; }
}
.lb-cap .t, .lb-cap .m, .lb-cap .price, .lb-cap .sold { font-size: 15px; }
.lb-cap .t { font-weight: 500; }
.lb-cap .m { color: var(--ink-soft); }
.lb button.ctl { position: absolute; background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.lb button.ctl:hover { background: #f2f2f0; }
.lb .close { top: 18px; right: clamp(12px, 3vw, 40px); }
.lb .prev { left: clamp(4px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb .next { right: clamp(4px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; top: 30px; left: var(--gutter); font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
body.lb-lock { overflow: hidden; }

/* Footer */
.site-footer { margin-top: clamp(96px, 12vw, 180px); padding: 40px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.home-footer { margin-top: clamp(64px, 7vw, 96px); }
.footer-navigation { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 24px; flex-wrap: wrap; }
.footer-navigation .brand { font-size: 16px; color: var(--ink); }
.footer-navigation .nav { font-size: 14px; gap: 12px 24px; flex-wrap: wrap; }
.site-footer small { display: block; margin-top: 24px; font-size: 12px; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .facts { grid-template-columns: 1fr; }
  .facts > div { grid-column: 1; }
  .about .portrait { width: 66%; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .about, .contact, .page-head { padding-top: 40px; }
  .about h1, .contact h1, .page-head h1 { margin-bottom: 24px; }
  .site-footer { padding-bottom: 28px; }
  .home-footer { margin-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .nav { gap: 24px; }
  .site-header .nav, .footer-navigation .nav { width: 100%; }
  .site-header .nav .ig, .footer-navigation .nav .ig { margin-left: auto; }
  .site-header { padding-top: 28px; }
  /* Phone: image fills the space left over; caption and arrows get their own rows below it,
     so nothing can overlap whatever the artwork's shape or caption length. */
  .lb-stage { padding: 64px 12px 8px; }
  .lb-foot { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "cap cap" "prev next"; align-items: center; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); }
  .lb-caption { grid-area: cap; padding: 14px 8px 6px; }
  .lb-cap { flex-direction: column; align-items: center; gap: 4px; }
  .lb .lb-foot button.ctl { position: static; transform: none; }
  .lb .lb-foot button.ctl.prev { grid-area: prev; justify-self: start; }
  .lb .lb-foot button.ctl.next { grid-area: next; justify-self: end; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Homepage artwork-led opening */
.home-artwork { padding-top: 40px; }
.home-artwork-figure { margin: 0; }
.home-artwork-figure img { width: 100%; }
@media (max-width: 720px) {
  .home-artwork { padding-top: 28px; }
  .home-artwork-figure img {
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
  }
}
@media (width > 720px) {
  .home-artwork-figure img {
    width: calc(min(100%, var(--max)) - 2 * var(--gutter));
    height: 90vh;
    margin-inline: auto;
    object-fit: cover;
    object-position: center top;
  }
}
.home-intro { --home-blurb-gap: clamp(40px, 5vw, 72px); padding-top: var(--home-blurb-gap); }
.home-intro-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "artwork menu"; gap: clamp(32px, 7vw, 104px); margin-top: var(--home-blurb-gap); }
.home-secondary-artwork { grid-area: artwork; margin: 0; }
.home-secondary-artwork img { width: 100%; }
@media (width > 720px) {
  .home-secondary-artwork { position: relative; }
  .home-secondary-artwork img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
}
.home-menu { grid-area: menu; }
.home-menu a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.home-menu a:last-child { border-bottom: 1px solid var(--line); }
.home-menu-title { font-size: 22px; line-height: 1.25; letter-spacing: -0.025em; color: #333; transition: color .2s; }
.home-menu-description { grid-column: 1; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.home-menu-arrow { grid-area: 1 / 2 / span 2; align-self: center; position: relative; width: 36px; height: 12px; color: var(--ink-soft); transition: color .2s; }
.home-menu-arrow::before { content: ""; position: absolute; top: 50%; right: 1px; width: 24px; border-top: 1px solid; transform-origin: right; transition: transform .25s; }
.home-menu-arrow::after { content: ""; position: absolute; top: 50%; right: 1px; width: 7px; height: 7px; border: solid; border-width: 1px 1px 0 0; transform: translateY(-50%) rotate(45deg); }
.home-menu a:is(:hover, :focus-visible) span { color: var(--ink); }
.home-menu a:is(:hover, :focus-visible) .home-menu-arrow::before { transform: scaleX(1.45); }
@media (max-width: 720px) {
  .home-intro-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "menu" "artwork"; }
  .home-secondary-artwork { margin-inline: calc(-1 * var(--gutter)); }
  .home-secondary-artwork img { aspect-ratio: 1; object-fit: cover; }
}
.home-intro h1 { max-width: 42ch; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.3; }
