/* Concept L – Atelier. Warm paper tone sampled from the hero photo's faded edges. */
:root {
  --paper: #F7EAD8;
  --paper-2: #F1E1CA;
  --card: #FBF4EA;
  --ink: #2E241B;
  --ink-2: #4A3B2D;
  --muted: #7A6450;
  --line: rgba(46, 36, 27, .16);
  --accent: #9A6B35;
  --sun: 255, 228, 175;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 300; letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-weight: 200; font-size: clamp(46px, 7vw, 96px); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--sans); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 40px; padding-bottom: 72px; }

/* Buttons and links */
.btn { display: inline-block; font-family: var(--sans); font-size: 15px; line-height: 1.2; color: var(--ink); background: transparent; text-decoration: none;
  border: 1px solid rgba(46, 36, 27, .55); padding: 14px 26px; min-height: 48px; cursor: pointer; transition: background-color .6s, color .6s, border-color .6s; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link { font-family: var(--sans); font-size: 15px; text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--ease); }
.link:hover { background-size: 30% 1px; }
.eyebrow { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Header */
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter); font-family: var(--sans); font-weight: 300; font-size: 15px; }
.site-header.on-hero { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top, 0px); max-width: none; }
.brand { text-decoration: none; font-size: 17px; font-weight: 400; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { max-height: 46px; width: auto; }
.site-nav { display: flex; gap: clamp(18px, 2.6vw, 34px); }
.site-nav a { text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) left 80% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; min-height: min(94vh, 840px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -4;
  transform: scale(1.02); transition: filter 2.4s ease; }
.hero-fade { position: absolute; inset: 0; z-index: -3; pointer-events: none; background:
  linear-gradient(to bottom, rgba(247, 234, 216, .55) 0, rgba(247, 234, 216, 0) 130px),
  linear-gradient(to bottom, rgba(247, 234, 216, 0) 50%, rgba(247, 234, 216, .45) 70%, rgba(247, 234, 216, .85) 86%, var(--paper) 97%),
  linear-gradient(to right, rgba(247, 234, 216, .55) 0%, rgba(247, 234, 216, .15) 30%, rgba(247, 234, 216, 0) 48%); }
.hero-sun, .hero-rays { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: -2; mix-blend-mode: screen; }
.hero-sun { transition: opacity 1.6s ease; background:
  radial-gradient(ellipse 48% 58% at 0% 0%, rgba(var(--sun), .95) 0%, rgba(var(--sun), .5) 30%, rgba(var(--sun), 0) 68%),
  linear-gradient(to bottom, rgba(255, 244, 222, .7) 0, rgba(255, 244, 222, 0) 70px),
  linear-gradient(to right, rgba(255, 244, 222, .6) 0, rgba(255, 244, 222, 0) 70px); }
.hero-rays { background: repeating-linear-gradient(118deg, rgba(255, 240, 210, .32) 0 26px, rgba(255, 240, 210, 0) 26px 84px);
  -webkit-mask: radial-gradient(ellipse 60% 70% at 0% 0%, #000 0%, transparent 70%); mask: radial-gradient(ellipse 60% 70% at 0% 0%, #000 0%, transparent 70%);
  filter: blur(7px); transform: translateX(-14px); transition: opacity 1.8s ease, transform 6s ease-out; }
.hero:hover .hero-sun, .hero.lit .hero-sun { opacity: 1; }
.hero:hover .hero-rays, .hero.lit .hero-rays { opacity: 1; transform: translateX(10px); }
.hero:hover .hero-img, .hero.lit .hero-img { filter: brightness(1.04) saturate(1.04); }
.hero-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero-copy { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 90px; }
.hero-copy h1 { max-width: 640px; margin-bottom: 22px; }
.hero-tagline { font-style: italic; font-size: 20px; line-height: 1.55; max-width: 420px; color: var(--ink-2); margin-bottom: 32px; }

/* Intro & section heads */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px 60px; align-items: end; padding-top: 30px; padding-bottom: 40px; }
.intro-text { font-size: clamp(20px, 2vw, 24px); line-height: 1.6; max-width: 780px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head h2 { margin: 0; }
.page-head { padding-top: 40px; padding-bottom: 10px; }
.page-head h1 { margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 720px; }
.sec-title { font-size: 26px; margin: 10px 0 34px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.empty { color: var(--muted); font-style: italic; }

/* Works grid */
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 52px); align-items: start; }
.work { margin: 0; }
.work a { display: block; text-decoration: none; outline: none; }
.pic { position: relative; display: block; background: var(--paper-2); box-shadow: 4px 14px 24px rgba(80, 50, 20, .2);
  transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.pic img { width: 100%; height: 100%; object-fit: contain; }
.pic-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.pic::before, .pic::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity 1.1s ease; z-index: 1; }
.pic::before { inset: 0; box-shadow: inset 0 0 0 1px rgba(var(--sun), .75), inset 10px 10px 22px -12px rgba(var(--sun), .9);
  background: linear-gradient(135deg, rgba(var(--sun), .3) 0%, rgba(var(--sun), 0) 28%); }
.pic::after { inset: -1px; box-shadow: -10px -12px 34px -6px rgba(var(--sun), .6), 0 0 18px 2px rgba(var(--sun), .25); }
.work a:hover .pic, .work a:focus-visible .pic { transform: translateY(-6px); box-shadow: 6px 22px 34px rgba(80, 50, 20, .24); }
.work a:hover .pic::before, .work a:hover .pic::after, .work a:focus-visible .pic::before, .work a:focus-visible .pic::after { opacity: 1; }
.work a:focus-visible .pic { outline: 2px solid var(--accent); outline-offset: 6px; }
.work figcaption { margin-top: 16px; font-family: var(--sans); font-size: 15px; }
.w-title { display: block; }
.w-meta { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); }
.tag { display: inline-block; margin-top: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); }
.tag-sold { color: #8b3a2a; border-color: rgba(139, 58, 42, .35); }
.tag-reserved { color: var(--accent); border-color: rgba(154, 107, 53, .4); }

/* Exhibitions */
.next-show, .show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.show { margin-bottom: 64px; }
.show.no-img, .next-show:not(:has(.show-img)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.show-img img { width: 100%; box-shadow: 4px 14px 24px rgba(80, 50, 20, .16); }
.show-meta { font-family: var(--sans); font-size: 15px; color: var(--muted); line-height: 1.6; }
.contact-cta { text-align: center; padding-top: 30px; padding-bottom: 110px; }
.contact-cta h2 { max-width: 640px; margin: 0 auto 28px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.about.has-portrait { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); max-width: none; align-items: start; }
.about h3 { margin-top: 40px; }
.prose p { max-width: 68ch; }
.plain { list-style: none; padding: 0; margin: 0 0 30px; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 26px; margin: 0 0 40px; font-family: var(--sans); font-size: 16px; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact dd a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; }
.seller h2 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.seller p { font-size: 15px; color: var(--ink-2); }
.contact-form { background: var(--card); padding: clamp(24px, 3vw, 44px); box-shadow: 0 18px 40px -24px rgba(80, 50, 20, .35); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--sans); font-size: 14px; margin-bottom: 6px; }
.field .opt { color: var(--muted); }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1px solid rgba(46, 36, 27, .25); border-radius: 0; padding: 12px 14px; min-height: 48px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field.check label { font-family: var(--serif); font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.has-err input, .has-err textarea { border-color: #a33c2c; }
.err { color: #a33c2c; font-family: var(--sans); font-size: 14px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice h2 { margin-bottom: 10px; }
.enquiry-for { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Legal */
.legal h2 { font-size: 22px; font-weight: 400; margin-top: 34px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(247, 234, 216, .97); color: var(--ink); }
.lightbox::backdrop { background: rgba(46, 36, 27, .4); }
.lightbox[open] { display: block; animation: lb-in .5s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 40px; padding: 70px 80px 40px; align-items: center; }
.lb-figure { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 6px 22px 40px rgba(80, 50, 20, .25); transition: opacity .4s; }
.lb-img.loading { opacity: .2; }
.lb-info { align-self: center; max-height: 100%; overflow: auto; }
.lb-title { font-size: 30px; margin-bottom: 8px; }
.lb-meta { font-style: italic; color: var(--muted); }
.lb-status, .lb-price { font-family: var(--sans); font-size: 15px; margin-bottom: 6px; }
.lb-desc { margin: 18px 0 26px; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: transparent; border: 0; color: var(--ink); font-family: var(--sans); font-weight: 200; cursor: pointer;
  width: 52px; height: 52px; font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-close { top: 12px; right: 14px; font-size: 40px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(360px + 40px + 30px); top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; color: var(--muted); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 34px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-start; }
.foot-name { color: var(--ink); font-size: 16px; margin: 0; }
.foot-text { margin: 6px 0 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-inner { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 64px 24px 24px; gap: 20px; }
  .lb-info { max-height: 34vh; }
  .lb-next { right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 0; color: var(--ink); cursor: pointer; margin-right: -10px; }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .4s var(--ease), background-color .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; } .bars::after { top: 7px; }
  .menu-open .bars { background: transparent; }
  .menu-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: -1; background: var(--paper); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 90px var(--gutter) 40px; gap: 6px; font-size: 34px; font-weight: 200; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .4s ease; }
  html.menu-lock, html.menu-lock body { overflow: hidden; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .site-header.on-hero { position: relative; top: 0; }
  .hero-media { position: relative; order: 2; height: 62vw; min-height: 260px; }
  .hero-img { object-position: 72% center; }
  .hero-fade { background: linear-gradient(to bottom, var(--paper) 0%, rgba(247, 234, 216, 0) 22%, rgba(247, 234, 216, 0) 70%, var(--paper) 100%); }
  .hero-copy { order: 1; padding-top: 10px; padding-bottom: 24px; }
  .hero-tagline { margin-bottom: 24px; }

  .intro { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .next-show, .show, .about.has-portrait, .contact { grid-template-columns: 1fr; }
  .section { padding-bottom: 56px; }
}

@media (hover: none) {
  .work a:active .pic { transform: translateY(-4px); }
  .work a:active .pic::before, .work a:active .pic::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .work a:hover .pic { transform: none; }
}
