:root {
  --paper: #f6f1e7;
  --paper-2: #ede5d5;
  --ink: #1e1c19;
  --ink-2: #3a3631;
  --muted: #6d665b;
  --line: #ddd2bf;
  --accent: #b5432a;
  --accent-ink: #8e3220;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hind", "Frutiger", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; }
h2 { font-size: clamp(34px, 4.6vw, 52px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 2px;
  font: 500 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-paper:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* hero: Kingsland House panorama, slow zoom + small animated touches (js/hero.js) */
.hero { padding: 0; }
.stage {   /* a band a little wider than the painting, so it can pan vertically as you scroll */
  position: relative; overflow: hidden; background: var(--paper);
  height: clamp(260px, calc(100vw / 3.6), 70vh);   /* painting is 2.86:1, so ~20 % of it is spare for travel */
}
.scene { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.kb {
  position: absolute; inset: 0;
  transform-origin: 42% 56%;
  animation: kb 36s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kb {
  from { transform: scale(1.0); }
  to   { transform: scale(1.1) translate(-.6%, .5%); }
}
.kb > img { width: 100%; height: 100%; display: block; }
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx > * { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); }

/* string of lights under the eaves, baubles on the tree */
.lamp {
  width: var(--s, .9%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,170,.95) 0 18%, rgba(255,190,90,.55) 38%, rgba(255,170,60,0) 70%);
  mix-blend-mode: screen; opacity: .25;
  animation: twinkle var(--t, 2.6s) ease-in-out var(--d, 0s) infinite;
}
.lamp.blue { background: radial-gradient(circle, rgba(225,245,255,.95) 0 18%, rgba(120,190,255,.55) 40%, rgba(90,160,255,0) 70%); }
@keyframes twinkle { 0%, 100% { opacity: .2; } 45% { opacity: .95; } 60% { opacity: .55; } }

/* candle-warm window and fanlight */
.glow {
  width: var(--s, 5%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,120,.75) 0 22%, rgba(255,180,70,.35) 45%, rgba(255,170,60,0) 70%);
  mix-blend-mode: screen;
  animation: flicker 5.3s steps(1, end) var(--d, 0s) infinite, breathe 7s ease-in-out infinite;
}
@keyframes flicker { 0% { filter: brightness(1); } 11% { filter: brightness(.82); } 13% { filter: brightness(1.05); } 47% { filter: brightness(.9); } 52% { filter: brightness(1); } 78% { filter: brightness(.86); } 81% { filter: brightness(1.04); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

/* low winter sun */
.sun {
  width: 9%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,206,80,.0) 0 34%, rgba(244,206,80,.34) 40%, rgba(244,206,80,.12) 56%, rgba(244,206,80,0) 70%);
  animation: sun 8s ease-in-out infinite;
}
@keyframes sun { 0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .65; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }

/* chimney smoke */
.smoke {
  width: 1.1%; aspect-ratio: 1.4; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(118,124,136,.38) 0 25%, rgba(118,124,136,.14) 55%, rgba(118,124,136,0) 72%);
  filter: blur(1.5px); opacity: 0;
  animation: smoke 9s cubic-bezier(.3,.6,.4,1) var(--d, 0s) infinite;
}
@keyframes smoke {
  0%   { transform: translate(-50%, -60%) scale(.5) rotate(0deg); opacity: 0; }
  10%  { opacity: .7; }
  55%  { opacity: .35; }
  100% { transform: translate(calc(-50% + 380%), calc(-60% - 700%)) scale(3) rotate(25deg); opacity: 0; }
}

/* ink birds gliding across the sky */
.bird {
  width: 1.5%; left: -3%; top: calc(var(--y) * 1%); transform: none;
  animation: fly var(--t, 48s) linear var(--d, 0s) infinite;
}
.bird svg { width: 100%; height: auto; overflow: visible; display: block; animation: flap .9s ease-in-out infinite; transform-origin: 50% 70%; }
.bird path { fill: none; stroke: #2b2925; stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@keyframes fly {
  0%   { left: -3%; transform: translateY(0); }
  25%  { transform: translateY(-40%); }
  50%  { transform: translateY(30%); }
  75%  { transform: translateY(-20%); }
  100% { left: 103%; transform: translateY(0); }
}
@keyframes flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }

.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage::before, .stage::after {   /* soft fade into the page above and below */
  content: ""; position: absolute; left: 0; right: 0; height: 14%; z-index: 1;
  pointer-events: none;
}
.stage::before { top: 0; background: linear-gradient(to top, rgba(246,241,231,0), var(--paper)); }
.stage::after { bottom: 0; height: 18%; background: linear-gradient(to bottom, rgba(246,241,231,0), var(--paper)); }
.stage-cap {   /* bottom-left, clear of Shaun's painted signature bottom-right */
  position: absolute; left: calc(var(--gut) + 118px); bottom: 15px; z-index: 2; margin: 0;
  font-size: 13px; color: var(--muted);
}
.stage-cap em { font-family: var(--serif); font-size: 16px; color: var(--ink-2); }
.motion-toggle {
  position: absolute; left: var(--gut); bottom: 12px; z-index: 2;
  font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--muted);
  background: color-mix(in srgb, var(--paper) 80%, transparent); border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 12px; cursor: pointer;
}
.motion-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.stage.still .kb, .stage.still .fx *, .stage.still .bird svg,
.stage.offscreen .kb, .stage.offscreen .fx *, .stage.offscreen .bird svg { animation-play-state: paused !important; }

.hero-copy {   /* now on top, the painting band below it */
  display: grid; grid-template-columns: 6fr 5fr; gap: clamp(20px, 5vw, 72px); align-items: end;
  padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(26px, 3.6vw, 48px);
}
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 0; }
.hero h1 em { font-weight: 500; color: var(--accent-ink); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 700px) {
  .stage { height: 46vh; min-height: 300px; }
  .stage-cap { bottom: 10px; font-size: 12px; }
  .stage-cap em { font-size: 15px; }
  .hero-copy { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .kb, .fx *, .bird svg { animation: none !important; }
  .lamp { opacity: .6; } .glow { opacity: .75; } .smoke, .bird { display: none; }
  .motion-toggle { display: none; }
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
figcaption em { font-family: var(--serif); font-size: 17px; color: var(--ink-2); }

/* sections */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tint { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 17px; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; max-width: 640px; }

/* gallery */
.gallery { columns: 3 300px; column-gap: clamp(16px, 2.4vw, 28px); }
.work {
  break-inside: avoid; margin: 0 0 clamp(20px, 3vw, 34px);
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit;
}
.work img { width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: transform .35s ease, box-shadow .35s ease; }
.work:hover img { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(40,25,10,.5); }
.work-cap { display: block; margin-top: 10px; }
.work-title { display: block; font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.15; }
.work-meta { display: block; font-size: 14px; color: var(--muted); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 3vw, 34px); }
.card { display: flex; flex-direction: column; }
/* 3D mock-up: a folded card standing like a tent on the table (fold at the top).
   .tent holds two panels hinged at the top edge: the front (art) leans towards you, the back leans away. */
.mock {
  position: relative; aspect-ratio: 180 / 134; margin: 0 0 10px;
  perspective: 1100px; perspective-origin: 50% 10%;
}
.tent {
  position: absolute; left: 11%; right: 11%; top: 9%; aspect-ratio: 180 / 123;
  transform-style: preserve-3d;
  transform: rotateX(-9deg) rotateY(-24deg);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.card:nth-child(even) .tent { transform: rotateX(-9deg) rotateY(-14deg); }
.panel {
  position: absolute; inset: 0; transform-origin: 50% 0;
  backface-visibility: hidden;
}
.panel.front { transform: rotateX(17deg); background: #fff; }
.panel.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel.front::after {   /* paper edge, so white-ground cards don't vanish into the page */
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(60,45,30,.10);
}
.shade {   /* soft light from top-left, a little shade towards the table */
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(172deg, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 32%, rgba(0,0,0,0) 62%, rgba(40,28,15,.12) 100%),
    linear-gradient(90deg, rgba(255,255,255,.06), rgba(40,28,15,.06));
}
.panel.back {   /* inside of the back panel, seen past the front: plain card in shadow */
  transform: rotateX(-17deg) rotateY(180deg); backface-visibility: visible;
  background: linear-gradient(180deg, #f3eee4, #d8cfbf);
  box-shadow: inset 0 0 0 1px rgba(60,45,30,.08);
}
.floor {   /* shadow on the table under the card's footprint (between the two bottom edges) */
  position: absolute; left: 8%; right: 3%; top: 70%; height: 26%;
  background:
    radial-gradient(ellipse 47% 22% at 50% 38%, rgba(45,30,15,.32), rgba(45,30,15,0) 100%),
    radial-gradient(ellipse 56% 42% at 56% 42%, rgba(45,30,15,.16), rgba(45,30,15,0) 100%);
  filter: blur(4px);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .7s;
}
.card:hover .tent, .card:focus-within .tent { transform: rotateX(-6deg) rotateY(-6deg) translateY(-3%); }
.card:hover .floor, .card:focus-within .floor { transform: scale(.94); opacity: .8; }
.card h3 { font-size: 22px; margin-bottom: 2px; }
.card .by { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 600; font-size: 17px; }
.price.tbc { font-weight: 400; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-bottom: 4px; }

/* about */
.about { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-art { margin: 0; }
.big { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 27px); line-height: 1.35; color: var(--ink); }
.about-text p { color: var(--ink-2); }
.quals { font-size: 14px; letter-spacing: .06em; color: var(--muted) !important; }

/* commissions */
.commissions { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.commissions p { color: #d9d1c3; font-size: 18px; max-width: 32em; }
.commissions figure { margin: 0; }
.commissions img { box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }

/* contact */
.contact > * { max-width: 760px; }
.contact .big a { text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; }
.foot-in p { margin: 0 0 6px; }
.corsiva { font-family: var(--serif); font-style: italic; font-size: 22px; }

/* lightbox */
.lightbox {
  border: 0; padding: 0; width: min(1180px, 96vw); max-height: 94vh;
  background: var(--paper); color: var(--ink); overflow: auto;
}
.lightbox::backdrop { background: rgba(20,17,13,.82); }
.lb-body { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 28px; align-items: center; }
.lb-body img { max-height: 80vh; width: auto; margin: 0 auto; }
.lb-info h3 { font-size: 30px; }
.lb-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.lb-close { position: absolute; top: 6px; right: 10px; font-size: 32px; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px 10px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 40px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 8px 10px; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-nav:hover, .lb-close:hover { color: var(--accent); }

/* shop info page */
.page { padding: clamp(40px, 6vw, 80px) 0; }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 32px; margin-top: 1.6em; }
.tbc-box { background: #fff7d6; border-left: 3px solid #d6a700; padding: 2px 6px; }

@media (max-width: 860px) {
  .hero-in, .about, .commissions { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .lb-body { grid-template-columns: 1fr; padding: 44px 18px 22px; }
  .lb-nav { top: auto; bottom: 8px; transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .nav { width: 100%; overflow-x: auto; gap: 18px; font-size: 14px; }
  html { scroll-padding-top: 100px; }
  .gallery { columns: 2; column-gap: 14px; }
  .work { margin-bottom: 18px; }
  .work-title { font-size: 17px; }
  .work-meta { font-size: 12px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .card h3 { font-size: 18px; }
  .card .row { flex-direction: column; align-items: stretch; }
  .card .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
