/* davidbrunning.com — v0.1 preview
   Colours and fonts from the DB Brand Kit. White, clean, lots of air. */
@font-face { font-family: "Anton"; src: url("/assets/fonts/Anton.woff2") format("woff2"); font-display: block; }
@font-face { font-family: "DB Hand"; src: url("/assets/fonts/DBHand.woff") format("woff"); font-display: block; }
@font-face { font-family: "Epilogue"; src: url("/assets/fonts/Epilogue.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --green: #3E4A35;
  --orange: #F06000;
  --white: #FFFFFF;
  --ink: #3E4A35;
  --muted: #8A9182;
  --hair: #E6E6E1;
  --ease: cubic-bezier(.5, .3, 0, 1);
  /* placeholder until David's handwriting font is made */
  --hand: "DB Hand", "Epilogue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); }
body { font-family: "Epilogue", system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100svh; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- top logo ---------- */
.logo { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); width: 180px; z-index: 5; }
.logo img { width: 100%; height: auto; }

/* ---------- the deal (landing) ---------- */
.deal { min-height: 100svh; display: grid; place-items: center; padding: 90px 16px 90px; }
.hand { display: flex; gap: clamp(10px, 3vw, 40px); perspective: 1400px; }
.card {
  width: clamp(92px, 26vw, 230px); aspect-ratio: 250 / 350; position: relative;
  border: 0; padding: 0; background: none; cursor: pointer;
  transform-style: preserve-3d; transition: transform .8s var(--ease);
  opacity: 0; translate: 0 40px;
}
.card.dealt { opacity: 1; translate: 0 0; transition: transform .8s var(--ease), opacity .6s ease, translate .7s var(--ease); }
.card .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6%/4.3%;
  box-shadow: 0 14px 30px rgba(30, 36, 25, .16), 0 2px 6px rgba(30, 36, 25, .10); overflow: hidden; }
.card .side img { width: 100%; height: 100%; object-fit: cover; }
.card .front { transform: rotateY(180deg); }
.card.flipped { transform: rotateY(180deg); }
.card:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 8px; }
.card.done { cursor: default; }

/* the King / Joker glow once all three are face up */
.card.glow { cursor: pointer; }
.card.glow .front { animation: glow 2.2s ease-in-out infinite; }
.card.glow[data-colour="orange"] .front { --g: rgba(240, 96, 0, .55); }
.card.glow[data-colour="green"]  .front { --g: rgba(62, 74, 53, .55); }
@keyframes glow {
  0%, 100% { box-shadow: 0 14px 30px rgba(30,36,25,.16), 0 0 0 0 var(--g); }
  50%      { box-shadow: 0 14px 30px rgba(30,36,25,.16), 0 0 28px 6px var(--g); }
}

.enter { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--hand); font-size: 19px; letter-spacing: .02em; color: #BFC3B9; text-decoration: none; }
.enter:hover { color: var(--muted); }

/* ---------- inside pages ---------- */
.page { min-height: 100svh; display: flex; flex-direction: column; padding: 100px 20px 30px; }
.three-wrap { flex: 1; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; max-width: 1240px; width: 100%; margin: 0 auto; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 40px); align-items: end; }
.tile { text-decoration: none; display: block; }
.tile figure { margin: 0; }
.tile .art { aspect-ratio: 4 / 5; display: flex; align-items: flex-end; justify-content: center; }
.tile .art img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .8s var(--ease); }
.tile:hover .art img { transform: scale(1.03); }
.tile figcaption { padding-top: 12px; font-size: 13px; line-height: 1.35; }
.tile figcaption b { display: block; font-family: "Anton"; font-weight: 400; font-size: 17px; letter-spacing: .02em; text-transform: uppercase; }
.tile figcaption span { color: var(--muted); }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; }
.arrow:hover { border-color: var(--ink); }

.word-tile .art { aspect-ratio: 4 / 5; display: grid; place-items: center; border-radius: 10px; background: #F4F4F1; }
.word-tile .art b { font-family: "Anton"; font-weight: 400; font-size: clamp(26px, 4vw, 54px); letter-spacing: .03em; color: var(--ink); }
.word-tile:nth-child(2) .art { background: var(--green); } .word-tile:nth-child(2) .art b { color: #fff; }
.word-tile:nth-child(3) .art { background: var(--orange); } .word-tile:nth-child(3) .art b { color: #fff; }

/* print view: three panels */
.panel { background: #F4F4F1; border-radius: 10px; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; }
.panel img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.panel.room { color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }
.panel.info { background: #fff; border: 1px solid var(--hair); place-items: stretch; padding: clamp(16px, 2.4vw, 30px); }
.info h1 { font-family: "Anton"; font-weight: 400; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: .02em; line-height: 1.05; margin: 0 0 10px; text-transform: uppercase; }
.info p { font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 6px 0 16px; }
.info dt { color: var(--muted); } .info dd { margin: 0; }
.buy { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-size: 13px; letter-spacing: .02em; }
.buy:hover { background: var(--orange); }

.nav { display: flex; justify-content: center; gap: 46px; padding-top: 28px; }
.nav a { font-family: var(--hand); font-size: 15px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

@media (max-width: 700px) {
  .three-wrap { grid-template-columns: 1fr; }
  .three-wrap .arrow { display: none; }
  .three { gap: 10px; }
  .tile figcaption { font-size: 11px; } .tile figcaption b { font-size: 13px; }
  .info p, .info dl { font-size: 12px; }
  /* print view on phones: swipe through the three panels */
  .three.panels { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .three.panels > * { flex: 0 0 86%; scroll-snap-align: center; }
  .tile figcaption span { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card.dealt { transition: none; }
  .card.glow .front { animation: none; box-shadow: 0 0 0 3px var(--g); }
}


/* =========================================================
   v2 — "once in": three pieces floating at random sizes
   ========================================================= */
.menu { position: fixed; top: 30px; right: 28px; display: flex; gap: 22px; z-index: 6; }
.menu a { font-family: var(--hand); font-size: 18px; color: var(--muted); text-decoration: none; }
.menu a:hover, .menu a.on { color: var(--ink); }

.room { min-height: 100svh; display: flex; flex-direction: column; padding: 110px 24px 26px; }
.stage { position: relative; flex: 1; width: min(1180px, 100%); margin: 0 auto; min-height: 380px; }
.float { position: absolute; display: block; cursor: pointer; opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .9s var(--ease), left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease); }
.float.in { opacity: 1; transform: none; }
.float img { width: 100%; height: 100%; object-fit: contain; display: block;
  box-shadow: 0 18px 40px rgba(30, 36, 25, .14), 0 3px 8px rgba(30, 36, 25, .08); }
.float:hover img { box-shadow: 0 24px 50px rgba(30, 36, 25, .2), 0 3px 8px rgba(30, 36, 25, .08); }
.float .cap { position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: center; font-size: 12px; line-height: 1.3; color: var(--muted); opacity: 0; transition: opacity .4s; }
.float .cap b { display: block; font-family: "Anton"; font-weight: 400; font-size: 15px; letter-spacing: .03em; color: var(--ink); text-transform: uppercase; }
.float:hover .cap, .touch .float .cap { opacity: 1; }

.bottom { display: flex; justify-content: center; gap: 54px; padding-top: 20px; }
.bottom a, .bottom button { font-family: var(--hand); font-size: 20px; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.bottom a:hover, .bottom button:hover { color: var(--ink); }

/* piece view: the three are the artwork, the room view and the info card */
.float.card-info { cursor: default; background: #fff; border: 1px solid var(--hair); padding: 22px; overflow: auto;
  box-shadow: 0 18px 40px rgba(30, 36, 25, .10); }
.card-info h1 { font-family: "Anton"; font-weight: 400; font-size: 26px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 10px; }
.card-info p { font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.card-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; margin: 0 0 16px; }
.card-info dt { color: var(--muted); } .card-info dd { margin: 0; }
.float.card-room { cursor: default; background: #F4F4F1; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.acquire { display: inline-block; background: var(--green); color: #fff; text-decoration: none; padding: 12px 24px; border-radius: 999px; font-size: 13px; letter-spacing: .04em; }
.acquire:hover { background: var(--orange); }

/* vintage treatment for photos of David */
.vintage img { filter: sepia(.28) saturate(.78) contrast(1.06) brightness(1.02); }
.vintage::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* about */
.bio { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, 80%); text-align: center; z-index: 2; background: rgba(255,255,255,.92); padding: 18px; }
.bio h1 { font-family: "Anton"; font-weight: 400; font-size: 30px; letter-spacing: .03em; margin: 0 0 12px; }
.bio p { font-size: 14px; line-height: 1.6; margin: 0; }

/* connect */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 44px); width: min(1080px, 100%); margin: auto; align-items: start; }
.trio section h2 { font-family: "Anton"; font-weight: 400; font-size: 24px; letter-spacing: .03em; margin: 0 0 6px; text-transform: uppercase; }
.trio section p { font-size: 13px; line-height: 1.5; color: #5d6556; margin: 0 0 14px; min-height: 58px; }
.trio input, .trio textarea { width: 100%; font: inherit; font-size: 13px; border: 0; border-bottom: 1px solid var(--hair); padding: 10px 0; margin-bottom: 8px; background: transparent; color: var(--ink); }
.trio textarea { min-height: 90px; resize: vertical; }
.trio input:focus, .trio textarea:focus { outline: none; border-color: var(--ink); }
.trio button { margin-top: 8px; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; font: inherit; font-size: 13px; cursor: pointer; }
.trio button:hover { background: var(--orange); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(246,244,239,.97); display: none; place-items: center; z-index: 200; cursor: zoom-out; padding: 40px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 88svh; object-fit: contain; box-shadow: 0 20px 50px rgba(30,36,25,.18); }

@media (max-width: 700px) {
  .menu { position: absolute; top: 66px; left: 0; right: 0; justify-content: center; gap: 18px; }
  .room { padding: 110px 14px 24px; }
  .stack { display: grid !important; gap: 16px; }
  .stack .float { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; opacity: 1; transform: none; }
  .stack .float img { height: auto; }
  .stack .card-room { aspect-ratio: 4 / 3; }
  .logo { width: 150px; }
  .trio { grid-template-columns: 1fr; }
  .trio section p { min-height: 0; }
  .bio { position: relative; left: auto; top: auto; transform: none; margin: 0 auto 20px; width: 100%; }
}

/* paper grain: a whisper of texture on the white background only (artwork stays true) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* worn cards sit on a slightly softer shadow */
.card .side { box-shadow: 0 14px 28px rgba(60, 45, 25, .16), 0 2px 5px rgba(60, 45, 25, .12); }

/* commissions: the form opens up further once someone starts */
.trio .more-fields { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .7s var(--ease), opacity .4s ease; }
.trio form.grow.open .more-fields, .trio form.grow:focus-within .more-fields { max-height: 520px; opacity: 1; }

/* room view: the piece hanging at real size */
.float.roomview { background: var(--room) center / cover no-repeat #eee; cursor: pointer; overflow: hidden; padding: 0; box-shadow: 0 18px 40px rgba(30, 36, 25, .12); }
.roomview .hung { position: absolute; box-shadow: 0 6px 14px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .25); }
.roomview .hung.frame, .roomview .hung.matted { background: #1d1d1b; }
.roomview .hung .mat { position: absolute; background: #FBFAF6; }
.roomview .hung.canvas .mat { background: transparent; }
.roomview .hung img { position: absolute; max-width: none; object-fit: fill; box-shadow: none !important; }
.roomview .roomtag { position: absolute; left: 10px; bottom: 8px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.roomview:hover .roomtag, .touch .roomview .roomtag { opacity: 1; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.sizes button { font: inherit; font-size: 12px; border: 1px solid var(--hair); background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.sizes button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.card-info .kind { font-family: var(--hand); font-size: 17px; color: var(--orange); margin: 0 0 4px; }

/* menu: give the handwriting room so tails (g, y) aren't clipped */
.menu a { line-height: 1.5; padding-bottom: 4px; }

/* about: the bio written on 90s loose-leaf, lying on a pile of photos */
.about .pile { position: relative; width: min(980px, 100%); margin: 10px auto 40px; padding: 30px 0 120px; }
.snap { position: absolute; display: block; transform: rotate(var(--r)); z-index: 1; filter: drop-shadow(0 8px 14px rgba(40, 30, 15, .22)); transition: transform .4s var(--ease); }
.snap:hover { transform: rotate(0deg) scale(1.03); z-index: 3; }
.snap img { width: 100%; display: block; }
.paper { --line: 32px; position: relative; z-index: 2; width: min(620px, 94%); margin: 0 auto; transform: rotate(-1.1deg);
  padding: 34px 44px 60px 96px; color: #2d3a4a; font-family: var(--hand); font-size: 21px; line-height: var(--line);
  background:
    linear-gradient(90deg, transparent 78px, rgba(214, 104, 104, .55) 78px, rgba(214, 104, 104, .55) 80px, transparent 80px),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(110, 150, 200, .38) calc(var(--line) - 1px) var(--line)) 0 109px / 100% calc(100% - 109px) no-repeat,
    radial-gradient(120% 90% at 30% 20%, #fdfcf7, #f4efe2);
  box-shadow: 0 1px 0 #e9e2cf, 0 18px 40px rgba(40, 30, 15, .16), 0 3px 8px rgba(40, 30, 15, .08); }
.paper::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .48 0 0 0 0 .38 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper .hole { position: absolute; left: 26px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, .22); }
.paper .hole:nth-child(1) { top: 9%; } .paper .hole:nth-child(2) { top: 50%; } .paper .hole:nth-child(3) { top: 89%; }
.paper h1 { font-family: var(--hand); font-weight: 400; font-size: 44px; line-height: 44px; margin: 0; color: #2d3a4a; }
.paper .sub { color: var(--orange); font-size: 20px; line-height: 31px; margin: 0 0 var(--line); }
.paper p { margin: 0 0 var(--line); }
.paper a { color: inherit; text-decoration-color: rgba(45, 58, 74, .4); }
@media (max-width: 700px) {
  .paper { --line: 28px; font-size: 17px; padding: 26px 18px 40px 58px; width: 100%;
    background:
      linear-gradient(90deg, transparent 46px, rgba(214, 104, 104, .55) 46px, rgba(214, 104, 104, .55) 48px, transparent 48px),
      repeating-linear-gradient(180deg, transparent 0 27px, rgba(110, 150, 200, .38) 27px 28px) 0 93px / 100% calc(100% - 93px) no-repeat,
      #fbf9f2; }
  .paper .hole { left: 13px; width: 17px; height: 17px; }
  .paper h1 { font-size: 34px; line-height: 38px; }
  .paper .sub { font-size: 17px; line-height: 27px; }
  .snap { width: 44% !important; }
  .about .pile { padding-bottom: 60%; }
}
.about { overflow-x: hidden; }
/* room view: light falls on the piece; a whisper of film grain over the whole photo */
.roomview .spot { position: absolute; inset: 0; pointer-events: none; }
.roomview::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.roomview .hung { box-shadow: 0 8px 18px rgba(20, 12, 4, .32), 0 2px 4px rgba(20, 12, 4, .25); }

/* store "all": every piece in one loose wall */
.allgrid { columns: 4 220px; column-gap: 34px; width: min(1180px, 100%); margin: 10px auto 20px; }
.allgrid a { display: block; break-inside: avoid; margin: 0 0 40px; text-decoration: none; color: var(--muted); font-size: 12px; text-align: center; }
.allgrid a:nth-child(3n+2) { padding: 0 18px; } .allgrid a:nth-child(5n+3) { padding: 0 32px; }
.allgrid img { width: 100%; display: block; margin-bottom: 10px; box-shadow: 0 14px 30px rgba(30, 36, 25, .13); transition: transform .6s var(--ease); }
.allgrid a:hover img { transform: translateY(-4px); }
.allgrid b { display: block; font-family: "Anton"; font-weight: 400; font-size: 14px; letter-spacing: .03em; color: var(--ink); text-transform: uppercase; }
@media (max-width: 700px) { .allgrid { columns: 2; column-gap: 14px; } .allgrid a { padding: 0 !important; margin-bottom: 24px; } }

/* currency switch */
.cur { position: fixed; right: 18px; bottom: 16px; z-index: 6; display: flex; gap: 2px; }
.cur button { font-family: var(--hand); font-size: 16px; background: none; border: 0; color: #BFC3B9; cursor: pointer; padding: 4px 6px; }
.cur button.on { color: var(--ink); }
.cur button + button::before { content: "/"; margin-right: 8px; color: #D6D8D1; }

/* about: two 8.5 x 11 sheets, the second tucked under the first */
.sheets { position: relative; z-index: 2; width: min(600px, 94%); margin: 0 auto; }
.sheets .paper { width: 100%; aspect-ratio: 8.5 / 11; --line: 26px; font-size: 17.5px; padding: 30px 36px 30px 92px; overflow: hidden; }
.sheets .paper h1 { font-size: 38px; line-height: 40px; }
.sheets .paper .sub { font-size: 18px; line-height: 28px; }
.sheets .paper.one { position: relative; z-index: 2; transform: rotate(-1.4deg); }
.sheets .paper.two { position: relative; z-index: 1; margin-top: -42%; transform: rotate(1.8deg) translateX(16px); padding-top: calc(42% + 10px); padding-bottom: 14px; }
/* second sheet's lines start at the top too */
.sheets .paper.two { background:
    linear-gradient(90deg, transparent 78px, rgba(214, 104, 104, .55) 78px, rgba(214, 104, 104, .55) 80px, transparent 80px),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(110, 150, 200, .38) calc(var(--line) - 1px) var(--line)) 0 34px / 100% calc(100% - 34px) no-repeat,
    radial-gradient(120% 90% at 70% 30%, #fbf9f2, #f1ebdc); }
.sheets .paper.one { background:
    linear-gradient(90deg, transparent 78px, rgba(214, 104, 104, .55) 78px, rgba(214, 104, 104, .55) 80px, transparent 80px),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(110, 150, 200, .38) calc(var(--line) - 1px) var(--line)) 0 112px / 100% calc(100% - 112px) no-repeat,
    radial-gradient(120% 90% at 30% 20%, #fdfcf7, #f4efe2); }
@media (max-width: 700px) {
  .sheets { width: 100%; }
  .sheets .paper { aspect-ratio: auto; min-height: 120vw; font-size: 16px; --line: 26px; padding: 24px 16px 30px 54px; }
  .sheets .paper.one, .sheets .paper.two { background:
      linear-gradient(90deg, transparent 44px, rgba(214, 104, 104, .55) 44px, rgba(214, 104, 104, .55) 46px, transparent 46px),
      repeating-linear-gradient(180deg, transparent 0 25px, rgba(110, 150, 200, .38) 25px 26px) 0 24px / 100% calc(100% - 24px) no-repeat,
      #fbf9f2; }
  .sheets .paper.two { margin-top: -22vw; padding-top: calc(22vw + 30px); }
  .sheets .paper h1 { font-size: 32px; line-height: 36px; }
}

.roomview img.front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; box-shadow: none !important; }

/* about: the photo pile runs the full width of the screen and off its edges */
.about .pile { width: 100vw; margin-left: calc(50% - 50vw); padding: 30px 0 0; }
.about .pile .sheets { position: relative; z-index: 50; }
.snap img { display: block; width: 100%; }

/* frames: colour set per piece; painted/oak frames get a fine wood grain */
.roomview .hung .win { position: absolute; overflow: hidden; }
.roomview .hung .win img { position: absolute; left: -2.5%; top: -2%; width: 105%; height: 104%; object-fit: fill; }
.roomview .hung.grain { background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 3px, rgba(255,255,255,.05) 3px 4px, transparent 4px 7px) !important; background-blend-mode: multiply; }
.roomview .hung .mat { box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25), inset 1px 1px 2px rgba(0,0,0,.18); }
.frames { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.frames button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); cursor: pointer; padding: 0; }
.frames button.on { outline: 2px solid var(--ink); outline-offset: 2px; }

/* idle: a worn deck thrown across the page */
.idle-deck { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.idle-deck img { position: absolute; left: 0; top: 0; filter: drop-shadow(0 6px 10px rgba(40, 30, 15, .28)) drop-shadow(0 1px 2px rgba(40, 30, 15, .2)); will-change: transform; }

/* the whole site sits on a clean, lightly used white desk */
html, body { background: #f6f4ef url("/assets/brand/desk.webp") repeat; background-size: 1024px; }

.logo, .menu { z-index: 60; }

.snap:hover { z-index: 45 !important; }

/* about v3: sheet 8% larger; writing sits on the ruled lines */
.sheets { width: min(648px, 94%); }
.sheets .paper { --line: 28px; font-size: 19px; padding: 28px 38px 28px 99px; }
.sheets .paper h1 { font-size: 41px; line-height: 56px; }
.sheets .paper .sub { font-size: 19.5px; line-height: 28px; margin: 0 0 28px; }
.sheets .paper p { margin: 0 0 28px; }
.sheets .paper.one { background:
    linear-gradient(90deg, transparent 84px, rgba(214, 104, 104, .55) 84px, rgba(214, 104, 104, .55) 86px, transparent 86px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(110, 150, 200, .38) 27px 28px) 0 var(--rule0, 132px) / 100% calc(100% - var(--rule0, 132px)) no-repeat,
    radial-gradient(120% 90% at 30% 20%, #fdfcf7, #f4efe2); }
.sheets .paper .hole { left: 30px; }
.allgrid a:hover img { transform: none; filter: brightness(1.04); }
.allgrid img { transition: filter .3s ease; -webkit-transform: translateZ(0); }
.allgrid a { -webkit-column-break-inside: avoid; }
.trio section p { min-height: 0; }

/* room viewer: the room big, arrows either side */
.roombox { position: fixed; inset: 0; z-index: 210; background: rgba(246, 244, 239, .97); display: none; align-items: center; justify-content: center; gap: 18px; }
.roombox.open { display: flex; }
.roombox .rb-stage .float { cursor: default; box-shadow: 0 24px 60px rgba(30, 36, 25, .25); }
.roombox button { font-family: var(--hand); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 30px; padding: 10px; }
.roombox button:hover { color: var(--ink); }
.roombox .rb-close { position: absolute; top: 18px; right: 24px; font-size: 20px; }
.roombox .rb-label { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-family: var(--hand); color: var(--muted); font-size: 17px; margin: 0; }
@media (max-width: 700px) { .roombox { gap: 0; } .roombox .rb-prev, .roombox .rb-next { position: absolute; bottom: 40px; } .roombox .rb-prev { left: 30%; } .roombox .rb-next { right: 30%; } }
.float.roomview { cursor: zoom-in; }

/* clearer "open me" on hover: photos lift and catch the light */
.allgrid a { cursor: zoom-in; }
.allgrid img { transition: filter .3s ease, box-shadow .3s ease; }
.allgrid a:hover img { filter: brightness(1.07) contrast(1.03); box-shadow: 0 26px 50px rgba(30, 36, 25, .28), 0 0 0 3px rgba(255, 255, 255, .9); }
.allgrid a:hover b { color: var(--orange); }
.snap { cursor: zoom-in; }
.float:hover { filter: brightness(1.04); }
.roombox .roomtag { display: none; }

/* menu on both sides of the logo */
.menu.menu-left { right: auto; left: 28px; }
@media (max-width: 700px) {
  .menu.menu-left { left: 0; right: 0; top: 66px; }
  .menu:not(.menu-left) { top: 92px; }
  .room { padding-top: 136px; }
}
/* lightbox caption */
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox figcaption { font-size: 13px; color: var(--muted); text-align: center; max-width: 640px; line-height: 1.5; }
.lightbox figcaption b { display: block; font-family: "Anton"; font-weight: 400; font-size: 20px; letter-spacing: .03em; color: var(--ink); text-transform: uppercase; }
.lightbox img { max-height: 80svh; }
/* collected works: series tabs */
.series { width: min(1180px, 100%); margin: 0 auto 26px; text-align: center; }
.series .lede { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin: 0 0 14px; }
.series nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.series button { font-family: var(--hand); font-size: 20px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.series button.on, .series button:hover { color: var(--ink); }
.series button.on { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }

.roombox .rb-frames { position: absolute; bottom: 44px; left: 0; right: 0; justify-content: center; margin: 0; }
.roombox .rb-frames button { width: 26px; height: 26px; padding: 0; font-size: 0; border: 1px solid rgba(0,0,0,.2); border-radius: 50%; }
.roombox .rb-label { bottom: 12px; }

/* picture walls: hand-built columns (steady in Safari) */
.allgrid { columns: auto !important; display: flex; gap: 34px; align-items: flex-start; }
.allgrid .mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.allgrid .mcol:nth-child(2) { padding-top: 48px; } .allgrid .mcol:nth-child(4) { padding-top: 22px; }
.allgrid img { -webkit-transform: none; }
@media (max-width: 700px) { .allgrid { gap: 14px; } .allgrid .mcol:nth-child(2) { padding-top: 28px; } }

/* about: photos uploaded through the editor get a simple old-print border */
.snap.fresh img { background: #f3eee2; padding: 6% 6% 16%; border-radius: 3px; filter: sepia(.25) contrast(.95) saturate(.85); box-shadow: 0 2px 6px rgba(0,0,0,.25); box-sizing: border-box; }

/* about: the brands sheet waits under the bio; "want to know a little more?" brings it to the top */
.sheets { position: relative; }
.sheets .paper.brands { position: absolute; top: 0; left: 0; z-index: 1; transform: rotate(2.2deg) translate(14px, 10px); background: inherit;
  transition: transform .33s cubic-bezier(.4,0,.2,1); }
.sheets .paper.one { transition: transform .33s cubic-bezier(.4,0,.2,1); }
.sheets .paper.brands h1 { margin-bottom: 28px; }
.sheets .paper.brands b { font-weight: 400; color: #2d3a4a; font-size: 1.15em; }
.sheets .paper.brands i { font-style: normal; color: var(--orange); font-size: .85em; margin-left: 6px; }
.more-link { position: absolute; right: 38px; bottom: 26px; background: none; border: 0; padding: 0; font: inherit; color: var(--orange); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(214,120,60,.35); text-underline-offset: 4px; }
.more-link:hover { text-decoration-color: currentColor; }
.sheets.shuffle .paper.one { transform: rotate(-3deg) translateX(-34%); }
.sheets.shuffle .paper.brands { transform: rotate(4deg) translateX(34%); }
.sheets.flip .paper.brands { z-index: 3; }
.sheets.flip .paper.one { z-index: 1; }
@media (max-width: 700px) { .more-link { right: 16px; bottom: 18px; } .sheets.shuffle .paper.one, .sheets.shuffle .paper.brands { transform: none; opacity: .6; } }
/* connect: the quiet mailing list line, sent notes */
.list { max-width: 560px; margin: 46px auto 0; text-align: center; }
.list p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.list p a { color: inherit; }
.list form { display: flex; gap: 10px; justify-content: center; align-items: center; }
.list input[type=email] { width: 240px; font: inherit; font-size: 13px; border: 0; border-bottom: 1px solid var(--hair); padding: 9px 0; background: transparent; color: var(--ink); }
.list input:focus { outline: none; border-color: var(--ink); }
.list button { background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 13px; cursor: pointer; }
.list button:hover { background: var(--orange); }
.hp { position: absolute; left: -9999px; }
.sent { font-family: var(--hand); font-size: 20px; color: var(--green); }
form .note { font-size: 12px; color: var(--orange); }
/* small copyright, bottom left on every page */
.copy { position: fixed; left: 18px; bottom: 18px; z-index: 6; font-family: var(--hand); font-size: 14px; color: #BFC3B9; }
@media (max-width: 700px) { .copy { position: static; display: block; text-align: center; padding: 18px 0 70px; } }
.sheets .paper.brands { --rule0: 104px; background:
    linear-gradient(90deg, transparent 84px, rgba(214, 104, 104, .55) 84px, rgba(214, 104, 104, .55) 86px, transparent 86px),
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(110, 150, 200, .38) 27px 28px) 0 var(--rule0) / 100% calc(100% - var(--rule0)) no-repeat,
    radial-gradient(120% 90% at 60% 30%, #fbf9f2, #f1ebdc); }
.sheets .paper.brands p { margin: 0 0 28px; }
.sheets .paper.brands .sub { display: none; }
@media (max-width: 700px) {
  .sheets .paper { font-size: 16.5px; padding: 24px 16px 64px 56px; }
  .sheets .paper h1 { font-size: 34px; line-height: 56px; }
  .sheets .paper .hole { left: 14px; }
  .sheets .paper.one, .sheets .paper.brands { background:
      linear-gradient(90deg, transparent 44px, rgba(214, 104, 104, .55) 44px, rgba(214, 104, 104, .55) 46px, transparent 46px),
      repeating-linear-gradient(180deg, transparent 0 27px, rgba(110, 150, 200, .38) 27px 28px) 0 24px / 100% calc(100% - 24px) no-repeat,
      #fbf9f2; }
  .sheets .paper.brands { display: none; position: relative; transform: rotate(.6deg); }
  .sheets.flip .paper.brands { display: block; }
  .sheets.flip .paper.one { display: none; }
}
/* copyright sits on the same line as the cad / usd switch */
.copy { bottom: 16px; margin: 0; font-size: 16px; line-height: normal; padding: 4px 0; }
.cur button { line-height: normal; }
@media (max-width: 700px) { .copy { padding: 18px 0 70px; } }
.card-info .left { color: var(--orange); }
.soldout { color: var(--orange); }
/* phones: the cad / usd switch sits centred under the page, above the copyright, never on top of back / all / more */
@media (max-width: 700px) {
  .cur { position: static; justify-content: center; padding: 26px 0 0; }
  .copy { padding-top: 8px; }
  .stage { flex: none; }
}

/* about: the punched holes are real holes. The paper is cut away there (mask), so whatever is underneath
   (the other sheet, a photo, the desk) shows through. The shadow moves to the stack so it follows the holes too. */
.sheets { --hx: 41px; --hr: 11px; filter: drop-shadow(0 14px 22px rgba(40, 30, 15, .16)) drop-shadow(0 2px 4px rgba(40, 30, 15, .1)); }
.sheets .paper { box-shadow: none;
  --h1: radial-gradient(circle var(--hr) at var(--hx) calc(9% + var(--hr)), transparent 96%, #000 100%);
  --h2: radial-gradient(circle var(--hr) at var(--hx) calc(50% + var(--hr)), transparent 96%, #000 100%);
  --h3: radial-gradient(circle var(--hr) at var(--hx) calc(89% + var(--hr)), transparent 96%, #000 100%);
  -webkit-mask-image: var(--h1), var(--h2), var(--h3); -webkit-mask-composite: source-in, source-in;
  mask-image: var(--h1), var(--h2), var(--h3); mask-composite: intersect; }
.sheets .paper .hole { background: transparent; box-shadow: inset 0 0 0 .6px rgba(90, 70, 40, .22), inset 1px 1.5px 1.5px rgba(90, 70, 40, .18); }
/* a little life in the paper: a soft fold across the top right corner and a faint thumb smudge low down */
.sheets .paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(225deg, transparent 0 9%, rgba(255, 255, 255, .55) 9.1% 9.4%, rgba(120, 100, 70, .10) 9.5% 10.4%, transparent 11% 100%),
    linear-gradient(225deg, rgba(120, 100, 70, .05) 0 9.4%, transparent 9.5%),
    radial-gradient(ellipse 70px 44px at 84% 90%, rgba(110, 95, 75, .07), transparent 70%),
    radial-gradient(ellipse 40px 26px at 88% 93%, rgba(110, 95, 75, .05), transparent 70%); }
.sheets .paper.brands::before { background:
    linear-gradient(135deg, transparent 0 88%, rgba(120, 100, 70, .08) 88.2% 89%, rgba(255, 255, 255, .5) 89.1% 89.4%, transparent 89.6%),
    radial-gradient(ellipse 60px 40px at 14% 12%, rgba(110, 95, 75, .06), transparent 70%); }
.sheets .paper > * { position: relative; z-index: 1; }
.sheets .paper > .hole { position: absolute; }
.sheets .paper > .more-link { position: absolute; }
@media (max-width: 700px) { .sheets { --hx: 23px; --hr: 9px; } .sheets .paper .hole { width: 18px; height: 18px; } }
.list p { margin-bottom: 22px; line-height: 1.6; }
.list p a { text-decoration: underline; text-underline-offset: 3px; }
.list p { text-wrap: balance; }

/* ---- Aaron's pass ---- */
/* the page never shifts sideways when a scrollbar comes or goes */
html { overflow-y: scroll; scrollbar-gutter: stable; }
/* back / all / more / about: one small pill, always in the same spot */
.bottom { position: sticky; bottom: 14px; z-index: 55; width: fit-content; margin: 26px auto 0; gap: 8px; padding: 4px 10px;
  border-radius: 999px; background: rgba(246, 244, 239, .72); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 0 0 1px rgba(62, 74, 53, .08), 0 6px 18px rgba(30, 36, 25, .08); }
.bottom a, .bottom button { padding: 6px 14px; font-size: 19px; transition: color .2s ease; }
/* the details card: room to breathe, grows to fit, softly rounded so it reads as interface, not artwork */
.float.card-info { padding: 30px 30px 26px; border-radius: 12px; overflow: visible; }
.card-info .acquire { display: inline-block; }
.card-info .ask { margin-top: 14px; display: grid; gap: 8px; }
.card-info .ask[hidden] { display: none; }
.card-info .ask input, .card-info .ask textarea { font: inherit; font-size: 13px; border: 0; border-bottom: 1px solid var(--hair); padding: 8px 0; background: transparent; color: var(--ink); }
.card-info .ask textarea { min-height: 70px; resize: vertical; }
.card-info .ask input:focus, .card-info .ask textarea:focus { outline: none; border-color: var(--ink); }
.card-info .ask button { justify-self: start; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-size: 13px; cursor: pointer; }
.card-info .ask button:hover { background: var(--orange); }
.card-info .sent { font-size: 18px; margin: 14px 0 0; }
/* lightbox: the picture travels from its spot to the centre and back */
.lightbox { display: grid; opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; }
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .32s ease; }
.lightbox img { will-change: transform; }
.lightbox figcaption { transition: opacity .3s ease .12s; }
.lightbox:not(.open) figcaption { opacity: 0; transition-delay: 0s; }
/* about: softer hover on the photos, smoother sheet shuffle */
.snap { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, filter .45s ease; }
.snap:hover { filter: brightness(1.03); }
.sheets .paper.one, .sheets .paper.brands { transition: transform .55s cubic-bezier(.45,0,.2,1); }
/* collected works: series as sequences, with room between */
.seq { margin: 0 0 70px; }
.seq h2 { font-family: var(--hand); font-weight: 400; font-size: 26px; color: var(--green); margin: 0 0 6px; }
.seq h2 small { font-size: 16px; color: var(--muted); margin-left: 10px; }
.float.card-info { height: auto !important; }
.snap picture { display: block; }
/* connect: the three ways in lead; the mailing list sits quietly below them */
.list { opacity: .85; }
.card-info .acquire[hidden] { display: none; }

/* ---- refinement brief ---- */
:root { --muted: #68705f; --ease: cubic-bezier(.22, .61, .36, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }
/* page to page: a quiet cross-fade, with the logo and menus held still */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: var(--ease); }
.logo { view-transition-name: logo; } .menu-left { view-transition-name: menu-left; } .menu:not(.menu-left) { view-transition-name: menu-right; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
/* pictures fade in when they arrive; hovers ease in and out */
.allgrid img, .float img, .snap img { opacity: 0; transition: opacity .6s var(--ease), filter .5s var(--ease), transform .6s var(--ease); }
.allgrid img.ld, .float img.ld, .snap img.ld, .roomview img, .card img { opacity: 1; }
.allgrid a { transition: transform .5s var(--ease); }
.allgrid a:hover img { filter: brightness(1.05) contrast(1.02); }
.allgrid a span, .float .cap { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.menu a, .bottom a, .bottom button { transition: color .3s var(--ease); }
.copy, .cur button { color: var(--muted); }
/* contact: the address, hand-written, with a copy button */
.mailto { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin: 0 auto 40px; flex-wrap: wrap; }
.mailto .addr { font-family: var(--hand); font-size: clamp(26px, 4vw, 40px); color: var(--green); text-decoration: none; letter-spacing: .01em; }
.mailto .addr:hover { color: var(--orange); }
.copymail { font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: transparent;
  border: 1px solid rgba(62, 74, 53, .3); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.copymail:hover { border-color: var(--green); }
.copymail.done { background: var(--green); color: #fff; border-color: var(--green); }
/* inquiry window over the page */
html.inq-lock { overflow: hidden; }
.inq { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(246, 244, 239, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .38s var(--ease), visibility 0s linear .38s; }
.inq.open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease); }
.inq-card { position: relative; width: min(460px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: #fff; border-radius: 14px; padding: 34px 32px 28px;
  box-shadow: 0 30px 70px rgba(30, 36, 25, .18), 0 0 0 1px rgba(62, 74, 53, .06); transform: translateY(14px) scale(.98); transition: transform .45s var(--ease); }
.inq.open .inq-card { transform: none; }
.inq-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.inq-x:hover { color: var(--ink); background: #f4f2ec; }
.inq .kind { font-family: var(--hand); color: var(--orange); font-size: 17px; margin: 0 0 4px; }
.inq h2 { font-family: "Anton"; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 26px; line-height: 1.05; margin: 0 0 6px; color: var(--ink); }
.inq-ref { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.inq form { display: grid; gap: 12px; }
.inq label { display: grid; gap: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inq input:not([type=hidden]):not(.hp), .inq textarea { font: inherit; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); border: 0; border-bottom: 1px solid var(--hair); padding: 8px 0; background: transparent; }
.inq textarea { resize: vertical; min-height: 84px; }
.inq input:focus, .inq textarea:focus { outline: none; border-color: var(--ink); }
.inq fieldset { border: 0; padding: 0; margin: 2px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inq legend { float: left; margin-right: 10px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inq .pref button { font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; transition: all .3s var(--ease); }
.inq .pref button.on { background: var(--green); border-color: var(--green); color: #fff; }
.inq-err { color: var(--orange); font-size: 13px; margin: 0; min-height: 1em; }
.inq-send, .inq-close2 { justify-self: start; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font: inherit; font-size: 14px; cursor: pointer; transition: background .3s var(--ease); }
.inq-send:hover, .inq-close2:hover { background: var(--orange); }
.inq-send:disabled { opacity: .6; cursor: wait; }
.inq-done .sent { font-family: var(--hand); font-size: 22px; line-height: 1.35; color: var(--green); margin: 8px 0 20px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.inq legend { float: none; width: 100%; margin: 0 0 8px; padding: 0; }

/* the bag */
.bagbtn { color: var(--orange) !important; }
.bagbtn[hidden] { display: none; }
.bag { position: fixed; inset: 0; z-index: 290; background: rgba(246, 244, 239, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .38s var(--ease), visibility 0s linear .38s; }
.bag.open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease); }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(30, 36, 25, .12); transform: translateX(30px); transition: transform .45s var(--ease); }
.bag.open .bag-panel { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px 10px; }
.bag-head h2 { font-family: var(--hand); font-weight: 400; font-size: 28px; margin: 0; color: var(--green); }
.bag-x { width: 36px; height: 36px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.bag-x:hover { background: #f4f2ec; color: var(--ink); }
.bag-list { flex: 1; overflow: auto; padding: 6px 28px; }
.bag-empty { color: var(--muted); font-size: 14px; }
.bag-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.bag-row img { width: 64px; height: 64px; object-fit: contain; background: #f6f4ef; border-radius: 6px; opacity: 1; }
.bag-row b { display: block; font-family: "Anton"; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 15px; color: var(--ink); }
.bag-row span { font-size: 12px; color: var(--muted); }
.bag-row .qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.bag-row .qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; cursor: pointer; color: var(--ink); }
.bag-row .qty span { min-width: 18px; text-align: center; font-size: 13px; color: var(--ink); }
.bag-row .qty .rm { width: auto; border: 0; background: none; font-size: 12px; color: var(--muted); text-decoration: underline; margin-left: 8px; }
.bag-price { margin: 0; font-size: 14px; color: var(--ink); }
.bag-foot { padding: 18px 28px 26px; border-top: 1px solid var(--hair); }
.bag-sub { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.bag-sub b { color: var(--ink); font-weight: 500; }
.bag-note { font-size: 12px; color: var(--muted); margin: 0 0 16px; }
.bag-go { width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 999px; padding: 14px; font: inherit; font-size: 15px; cursor: pointer; transition: background .3s var(--ease); }
.bag-go:hover { background: var(--orange); } .bag-go[hidden] { display: none; } .bag-go:disabled { opacity: .6; }
.bag-err { color: var(--orange); font-size: 13px; margin: 10px 0 0; }
.thanks { max-width: 560px; margin: 0 auto; padding-top: 60px; text-align: center; }
.thanks .kind { font-family: var(--hand); color: var(--orange); font-size: 22px; margin: 0; }
.thanks h1 { font-family: "Anton"; font-weight: 400; text-transform: uppercase; font-size: 40px; color: var(--ink); margin: 6px 0 18px; }
.thanks p { color: var(--ink); line-height: 1.6; }

/* murals + collected works: a clean, even grid, newest first */
.cleangrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; max-width: 1240px; margin: 0 auto; padding: 10px 0 40px; }
.cleangrid a { display: block; text-decoration: none; color: inherit; cursor: zoom-in; }
.cleangrid .frame { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(62, 74, 53, .035); border-radius: 2px; }
.cleangrid.photo .frame { aspect-ratio: 4 / 3; }
.cleangrid img { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease), filter .5s var(--ease); }
.cleangrid img.ld { opacity: 1; }
.cleangrid.art img { object-fit: contain; padding: 9%; box-sizing: border-box; }
.cleangrid.photo img { object-fit: cover; }
.cleangrid a:hover img { transform: scale(1.03); filter: brightness(1.03); }
.cleangrid.art a:hover img { transform: scale(1.02); }
.cleangrid a > span:last-child { display: block; padding-top: 12px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.cleangrid a > span:last-child b { display: block; font-family: "Anton"; font-weight: 400; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 1050px) { .cleangrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cleangrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; } .cleangrid.art img { padding: 7%; } }

/* contact: just the address, the copy button, and the list */
.contact { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60vh; }
.mailto { align-items: center; gap: 18px; margin: 0 auto 64px; }
.mailto .addr { line-height: 1; padding-bottom: 6px; }
.copymail { display: inline-flex; align-items: center; justify-content: center; line-height: 1; height: 32px; padding: 0 18px; }
.loop h2 { font-family: var(--hand); font-weight: 400; font-size: 24px; color: var(--green); margin: 0 0 14px; }
.loop form { display: flex; gap: 12px; align-items: center; justify-content: center; }
.loop input[type=email] { width: 240px; font: inherit; font-size: 14px; border: 0; border-bottom: 1px solid var(--hair); padding: 9px 0; background: transparent; color: var(--ink); text-align: left; }
.loop input:focus { outline: none; border-color: var(--ink); }
.loop button { display: inline-flex; align-items: center; height: 36px; padding: 0 20px; line-height: 1; background: var(--green); color: #fff; border: 0; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; transition: background .3s var(--ease); }
.loop button:hover { background: var(--orange); }
.loop .sent { font-family: var(--hand); font-size: 20px; color: var(--green); }
/* the bag: a small icon at the far right of the menu, with a count when something's in it */
.bagbtn { position: relative; display: inline-flex; align-items: center; color: var(--ink) !important; margin-left: 4px; }
.bagbtn svg { display: block; }
.bagn { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--orange); color: #fff;
  font: 600 10px/17px "Epilogue", sans-serif; text-align: center; box-sizing: border-box; }

/* store "all" uses the clean grid; tiles open the piece */
.cleangrid a[href^="/piece/"] { cursor: pointer; }
/* contact v2: the address in the middle of the page, the list quieter below it */
.contact { min-height: calc(100svh - 230px); padding-bottom: 40px; }
.mailto { margin-bottom: 46px; }
.copymail, .loop button { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 2px 18px 0; line-height: 1;
  font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: transparent; color: var(--green);
  border: 1px solid rgba(62, 74, 53, .3); border-radius: 999px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.copymail:hover, .loop button:hover { background: transparent; border-color: var(--green); color: var(--green); }
.copymail.done { background: var(--green); color: #fff; border-color: var(--green); }
.loop { opacity: .72; transition: opacity .4s var(--ease); }
.loop:hover, .loop:focus-within { opacity: 1; }
.loop h2 { font-size: 21px; color: var(--muted); }

/* easter egg in the lightbox: a glowing shape you can click */
.lightbox .egg { position: fixed; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.lightbox .egg.on { opacity: 1; }
.lightbox:not(.open) .egg { opacity: 0; transition: opacity .2s ease; }
.lightbox.hot { cursor: pointer; }
.egg-glow { position: absolute; inset: 0; filter: drop-shadow(0 0 6px rgba(255,250,232,1)) drop-shadow(0 0 22px rgba(255,236,190,.9)); animation: eggPulse 2.6s ease-in-out infinite; }
.egg-glow::before { content: ""; position: absolute; inset: 0; background: rgba(255,253,245,.6); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
.lightbox.hot .egg-glow { animation: none; opacity: 1; }
.egg-note { position: absolute; left: 0; right: 0; top: calc(100% + 16px); text-align: center; font-family: "DB Hand"; font-size: clamp(20px, 2vw, 26px); line-height: 1; color: var(--ink); white-space: nowrap; transform: rotate(-2deg); opacity: 0; animation: eggNote .8s ease .5s forwards; }
@keyframes eggPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes eggNote { from { opacity: 0; transform: translateY(6px) rotate(-2deg); } to { opacity: .6; transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .egg-glow { animation: none; opacity: .8; } .egg-note { animation: none; opacity: .6; } }

/* room view, softer and more photographic: the art takes the room's light, and the whole picture shares one film grain */
.roomview .hung img, .roomview .hung .win img { filter: saturate(.86) contrast(.94) brightness(.95) sepia(.06); }
.roomview .hung::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(170deg, rgba(255, 244, 225, .06), rgba(255, 244, 225, 0) 45%, rgba(20, 14, 8, .10)); }
.roomview::after { z-index: 3; opacity: .4; mix-blend-mode: soft-light; background-size: 220px 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.roomview .roomtag { z-index: 4; }

/* rooms: no wall names or heights shown, just the picture (and frame options in the big view) */
.roomview .roomtag, .roombox .rb-label { display: none !important; }
.roombox .rb-frames { bottom: 26px; }

/* contact: the email sits an inch lower (centred on a desktop screen); "stay in the loop" 20% lighter */

.loop { opacity: .58; }

/* contact: the email sits in the middle of the screen on every device */
.contact { justify-content: flex-start; padding-top: max(170px, calc(50svh - 30px)); }
/* phones: the header (logo + menu) and the footer (© + cad / usd) stay put while the page scrolls */
@media (max-width: 700px) {
  .menu { position: fixed; }
  .logo { z-index: 62; }
  .menu-left::before { content: ""; position: absolute; left: 0; right: 0; top: -66px; height: 136px; z-index: -1; pointer-events: none;
    background: rgba(246, 244, 239, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .copy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; text-align: left; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)) !important;
    background: rgba(246, 244, 239, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .cur { position: fixed; right: 10px; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 59; padding: 0; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  .bottom { bottom: calc(56px + env(safe-area-inset-bottom)); }
}
