/*
  Molly Deb gallery design system.
  Light theme "Forest & Gold" and dark theme "Gallery at Night", following the visitor's system setting
  unless they pick one with the header toggle. Gold is the single accent (it is the gold leaf in her work).
  Shape rule: everything is square-cornered like a gallery wall and its labels; the only circles are the
  zoom loupe and the wall-preview measuring handles, which stand for physical round objects.
*/

:root {
  color-scheme: light;
  --bg: #EDEDE6;
  --bg-2: #E3E4DB;
  --wall: #E1E2D8;
  --spot: rgba(255, 255, 255, .6);
  --ink: #14231C;
  --body: #2F3B34;
  --muted: #56615A;
  --line: rgba(20, 35, 28, .14);
  --line-strong: rgba(20, 35, 28, .34);
  --accent: #8A6A1E;
  --cta: #14231C;
  --cta-ink: #EDEDE6;
  --cta-hover: #26392F;
  --field: #F6F6F1;
  --shadow: 0 1px 2px rgba(20, 35, 28, .14), 0 22px 44px -24px rgba(20, 35, 28, .5);
  --display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 72px);
  --section: clamp(64px, 9vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F1210;
    --bg-2: #151916;
    --wall: #181C19;
    --spot: rgba(255, 234, 196, .09);
    --ink: #ECEAE2;
    --body: #CFCDC5;
    --muted: #9EA49E;
    --line: rgba(236, 234, 226, .12);
    --line-strong: rgba(236, 234, 226, .3);
    --accent: #D1AE66;
    --cta: #D1AE66;
    --cta-ink: #111410;
    --cta-hover: #E1C07C;
    --field: #1A1E1B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 30px 60px -28px rgba(0, 0, 0, .95);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1210;
  --bg-2: #151916;
  --wall: #181C19;
  --spot: rgba(255, 234, 196, .09);
  --ink: #ECEAE2;
  --body: #CFCDC5;
  --muted: #9EA49E;
  --line: rgba(236, 234, 226, .12);
  --line-strong: rgba(236, 234, 226, .3);
  --accent: #D1AE66;
  --cta: #D1AE66;
  --cta-ink: #111410;
  --cta-hover: #E1C07C;
  --field: #1A1E1B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 30px 60px -28px rgba(0, 0, 0, .95);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; }
p, figure, blockquote { margin: 0; }
strong { font-weight: 600; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--cta); color: var(--cta-ink); z-index: 20; }
.skip:focus { left: 8px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--section); }
.band { background: var(--bg-2); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--tight { gap: 10px; }
.muted { color: var(--muted); }

/* Type */
.display { font-size: clamp(46px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.display--page { font-size: clamp(40px, 5vw, 76px); }
.accent { color: var(--accent); }
.section-title { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.section-title--solo { margin-bottom: clamp(32px, 4vw, 56px); }
.stacked-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-lede, .lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.body-copy { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 62ch; }
.statement { font-family: var(--display); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); max-width: 30ch; }
.caption { font-size: 14px; color: var(--muted); }
.work-name { font-family: var(--display); font-weight: 500; color: var(--ink); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 15px/1 var(--sans); letter-spacing: .01em; cursor: pointer; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); color: var(--cta-ink); }
.btn-block { display: flex; width: 100%; }
.btn[hidden] { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.text-link .icon-arrow-right { transition: transform .25s var(--ease); }
.text-link:hover .icon-arrow-right { transform: translateX(4px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button:hover { color: var(--accent); }
.icon-button .icon { width: 22px; height: 22px; }

/* Header */
.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-right: auto; }
.site-nav { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-tools { display: flex; align-items: center; margin-right: -10px; }
.ship-to { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 13px; color: var(--muted); }
.ship-to select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); background: transparent; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.ship-to select:hover { border-color: var(--line-strong); }
:root[data-ship-to="us"] .gst-only, :root[data-ship-to="intl"] .gst-only { display: none; }
.ship-hint { border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.ship-hint-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.ship-hint-inner p { margin-right: auto; }
.ship-hint .text-link { padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.menu-toggle { display: none; }
[data-theme-toggle] .icon-sun { display: none; }
:root[data-theme="dark"] [data-theme-toggle] .icon-sun { display: block; }
:root[data-theme="dark"] [data-theme-toggle] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) [data-theme-toggle] .icon-sun { display: block; }
  :root:not([data-theme]) [data-theme-toggle] .icon-moon { display: none; }
}

/* Hero: the words on the left, her paintings rotating on a lit wall on the right */
.hero { padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(0px, 4vw, 48px); }
.hero-copy .lede { max-width: 44ch; }
.hero-stage { position: relative; height: min(76dvh, 780px); min-height: 440px; background: radial-gradient(ellipse 58% 52% at 50% 42%, var(--spot), transparent 72%), var(--wall); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.slide-art { position: absolute; inset: 7% 9% 84px; display: flex; align-items: center; justify-content: center; }
.slide-art img { width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: var(--shadow); }
.slide-caption { position: absolute; left: 28px; right: 84px; bottom: 26px; }
.slide-caption a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.slide-title { font-family: var(--display); font-size: 19px; font-weight: 500; }
.slide-price { color: var(--muted); }
.hero-pause { position: absolute; right: 16px; bottom: 14px; }
.hero-pause .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }

/* Salon hang: every painting uncropped, in its true shape, on its own lit patch of wall */
.salon { columns: 3 300px; column-gap: clamp(20px, 3vw, 48px); }
.piece { display: block; break-inside: avoid; margin-bottom: clamp(36px, 4vw, 64px); }
.piece[hidden] { display: none; }
.piece-wall { display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 44px); background: radial-gradient(ellipse 70% 60% at 50% 42%, var(--spot), transparent 75%), var(--wall); }
.piece-wall img { width: 100%; box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.label { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 2px; padding-top: 14px; color: var(--ink); }
.label-title { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.label-price { font-size: 15px; font-weight: 500; white-space: nowrap; }
.label-price.is-muted { color: var(--muted); }
.label-meta { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.piece:hover .label-title { color: var(--accent); }
.section-foot { display: flex; justify-content: center; margin-top: 8px; }

/* Rails: swipeable rows that start in line with the page content */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 340px); gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.rail > * { scroll-snap-align: start; }
.rail-card { display: flex; flex-direction: column; gap: 6px; }
.rail-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 10px; transition: transform .6s var(--ease); }
.rail-title { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.rail-meta { font-size: 14px; color: var(--muted); }
.rail--pieces { grid-auto-columns: clamp(220px, 22vw, 300px); }
.piece--fixed { margin: 0; }
.piece--fixed .piece-wall { height: clamp(240px, 22vw, 320px); }
.piece--fixed .piece-wall img { width: auto; max-width: 100%; max-height: 100%; }

/* The room photo, full bleed, with its words set on a panel that overlaps it */
.room-image { display: block; }
.room-image img { width: 100%; height: min(80dvh, 780px); object-fit: cover; object-position: 50% 10%; }
.room-panel { position: relative; margin-top: -160px; margin-left: calc(-1 * clamp(24px, 3.5vw, 48px)); width: min(640px, 100%); padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 48px) 0; background: var(--bg); display: flex; flex-direction: column; gap: 18px; }
.room + .section { padding-top: clamp(56px, 7vw, 104px); }

/* Commissions: words beside three examples hung at staggered heights */
.commission-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--body); }
.steps li { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; }
.steps li span { font-family: var(--display); font-weight: 600; color: var(--accent); }
.commission-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); align-items: start; }
.commission-art figure { display: flex; flex-direction: column; gap: 10px; }
.commission-art img { width: 100%; box-shadow: var(--shadow); }
.commission-art figure:nth-child(2) { margin-top: clamp(28px, 5vw, 72px); }
.commission-art figure:nth-child(3) { margin-top: clamp(56px, 10vw, 144px); }
.commission-art--flat figure:nth-child(n) { margin-top: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { display: flex; flex-direction: column; gap: 12px; }
.about-photo img { width: 100%; max-height: 720px; object-fit: cover; }

.quote blockquote { max-width: 900px; display: flex; flex-direction: column; gap: 20px; }
.quote p { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); line-height: 1.25; letter-spacing: -0.02em; }
.quote cite { font-style: normal; color: var(--muted); }

/* Buying promises */
.promises { border-block: 1px solid var(--line); }
.promise-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.promise { display: flex; align-items: center; gap: 14px; padding: 28px 24px 28px 0; font-size: 15px; font-weight: 500; }
.promise + .promise { padding-left: 24px; border-left: 1px solid var(--line); }
.promise .icon { width: 26px; height: 26px; color: var(--accent); }
.promise-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.promise-list .promise { padding: 0; border: 0; font-size: 14px; font-weight: 400; color: var(--body); }
.promise-list .promise .icon { width: 20px; height: 20px; }

/* Footer */
.site-footer { padding-block: clamp(64px, 8vw, 112px) 40px; }
.footer-cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.footer-title { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 48px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-brand { gap: 8px; }
.footer-head { font-size: 13px; font-weight: 600; color: var(--muted); }
.icon-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Shop */
.page-head { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.page-head--roomy { padding-bottom: var(--section); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.salon--shop { padding-bottom: var(--section); }
.empty-note { padding-bottom: var(--section); color: var(--muted); }

/* Artwork page */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); }
.artwork { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(32px, 5vw, 80px); padding-block: 20px var(--section); align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(80dvh, 820px); padding: clamp(24px, 5vw, 80px); background: radial-gradient(ellipse 60% 55% at 50% 44%, var(--spot), transparent 74%), var(--wall); overflow: hidden; }
.stage img { width: auto; height: auto; max-width: 100%; max-height: min(68dvh, 680px); box-shadow: var(--shadow); }
.loupe { position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); background-repeat: no-repeat; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .2s, transform .2s var(--ease); }
.stage.is-zooming { cursor: zoom-in; }
.stage.is-zooming .loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.thumbs { display: flex; gap: 12px; }
.thumb { width: 88px; height: 88px; padding: 0; border: 1px solid var(--line); background: var(--wall); cursor: pointer; overflow: hidden; }
.thumb[aria-pressed="true"] { border: 2px solid var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.artwork-info { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 24px; }
.artwork-title { font-size: clamp(38px, 3.8vw, 58px); line-height: 1.02; letter-spacing: -0.035em; }
.artwork-price { font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.price-suffix { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-incl { margin-top: 4px; font-size: 14px; color: var(--muted); }
.editions { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.editions legend { padding: 0 0 10px; font-size: 14px; font-weight: 600; }
.edition { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 12px 18px; border: 1px solid var(--line-strong); cursor: pointer; }
.edition:hover { border-color: var(--ink); }
.edition:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg-2); }
.edition:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.edition input { position: absolute; opacity: 0; pointer-events: none; }
.edition-text { display: flex; flex-direction: column; gap: 2px; }
.edition-name { font-size: 15px; font-weight: 600; }
.edition-note { font-size: 13px; color: var(--muted); }
.edition-price { font-size: 15px; font-weight: 500; white-space: nowrap; }
.buy { display: flex; flex-direction: column; gap: 10px; }
.buy .text-link { align-self: center; padding: 8px 0; }
.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.details dt { color: var(--muted); font-size: 13px; }
.details dd { margin: 2px 0 0; }

.story { border-top: 1px solid var(--line); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-pull p { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--accent); }
.story-body .statement { max-width: 34ch; }
.words { margin-top: 12px; padding: clamp(24px, 3vw, 40px); background: #5B1D29; color: #F6E7C8; display: flex; flex-direction: column; gap: 14px; }
.words-original { font-family: 'Tiro Bangla', var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.4; color: #E9C77B; }
.words-translit { font-style: italic; font-size: 17px; }
.words figcaption { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(233, 199, 123, .35); }
.words-translation { font-family: var(--display); font-size: 22px; }
.words-source { font-size: 14px; color: #E3CFA6; }

.process { border-top: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.process-item { display: flex; flex-direction: column; gap: 12px; }
.process-item img, .process-item video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--wall); }
.process-link { aspect-ratio: 4 / 5; align-items: center; justify-content: center; text-align: center; padding: 24px; border: 1px solid var(--line-strong); font-size: 17px; font-weight: 500; }
.process-link .icon { width: 40px; height: 40px; }

/* Commissions page */
.commission-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: clamp(40px, 5vw, 72px) var(--section); }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); }
.form-title { font-size: clamp(26px, 2.4vw, 34px); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--field); font: 400 16px var(--sans); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-note { font-size: 13px; color: var(--muted); }

/* Policy pages */
.prose { max-width: 720px; padding-bottom: var(--section); font-size: 17px; line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* See it on your wall */
.wall { width: min(1120px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); overflow: auto; }
.wall::backdrop { background: rgba(10, 12, 11, .78); }
.wall-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--line); }
.wall-bar h2 { font-size: 22px; letter-spacing: -0.02em; }
.wall-stage { --ar: 1.7857; position: relative; aspect-ratio: var(--ar); width: min(100%, calc(62dvh * var(--ar))); margin: 0 auto; overflow: hidden; background: #E6E4DC; user-select: none; -webkit-user-select: none; }
.wall-room, .wall-photo, .wall-measure { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall-photo { object-fit: fill; }
.wall-room[hidden], .wall-photo[hidden], .wall-measure[hidden], .wall-handle[hidden] { display: none; }
.wall-measure line { stroke: #fff; stroke-width: 2; stroke-dasharray: 6 5; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6)); }
.wall-handle { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 3px solid #fff; background: #8A6A1E; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); cursor: grab; touch-action: none; padding: 0; }
.wall-handle::before { content: ''; position: absolute; inset: -10px; }
.wall-art { position: absolute; cursor: grab; touch-action: none; box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .55), 0 2px 5px rgba(0, 0, 0, .25); }
.wall-art:active, .wall-handle:active { cursor: grabbing; }
.wall-art img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wall-controls { display: flex; flex-direction: column; gap: 14px; padding: 18px 24px 22px; }
.wall-hint { font-size: 15px; color: var(--body); }
.wall-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; }
.wall-row[hidden] { display: none; }
.wall-upload { cursor: pointer; }
.wall-upload:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.wall-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.wall-field[hidden] { display: none; }
.wall-field select, .wall-field input[type="number"] { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); background: var(--field); font: 400 15px var(--sans); color: var(--ink); }
.wall-size { flex: 1 1 280px; }
.wall-size input { width: 100%; accent-color: var(--accent); min-height: 32px; }
.wall-note { font-size: 13px; color: var(--muted); }

/* Checkout sheet: delivery details and the price with GST, before Razorpay's payment window */
.checkout { width: min(580px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); overflow: auto; }
.checkout::backdrop { background: rgba(10, 12, 11, .78); }
.checkout-body { display: flex; flex-direction: column; gap: 22px; padding: 22px 24px 26px; }
.checkout-body[hidden], .checkout [hidden] { display: none; }
.checkout-piece { display: flex; align-items: center; gap: 16px; }
.checkout-piece img { width: 72px; height: 72px; padding: 6px; object-fit: contain; flex: none; background: var(--bg-2); }
.checkout-title { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.checkout-piece .muted { font-size: 14px; }
.checkout-lines { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.checkout-lines div { display: flex; justify-content: space-between; gap: 16px; }
.checkout-lines dt { color: var(--body); }
.checkout-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.checkout-total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.checkout-total dt { color: var(--ink); }
.checkout-fields { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout-fields legend { padding: 0 0 14px; font-size: 14px; font-weight: 600; }
.checkout .field textarea { min-height: 84px; }
.checkout-error { padding: 12px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); background: var(--bg-2); font-size: 14px; color: var(--ink); }
.checkout-error .text-link { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.checkout .form-note { display: block; line-height: 1.6; }
.checkout .form-note .icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.checkout .form-note a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-done { align-items: flex-start; gap: 14px; padding-top: 30px; }
.checkout-done > .icon { width: 44px; height: 44px; color: var(--accent); }
.checkout-done-title { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; }
.checkout-done .muted { font-size: 13px; }
.checkout-done .btn { margin-top: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise:nth-child(3) { padding-left: 0; border-left: 0; }
  .promise:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 20px; font-family: var(--display); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; }
  .header-inner { min-height: 64px; }
  .wordmark { font-size: 21px; }
  .hero-grid, .commission-grid, .about-grid, .story-grid, .artwork, .commission-page { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 64dvh; min-height: 380px; }
  .artwork-info { position: static; }
  .stage { min-height: 0; padding: 24px; }
  .stage img { max-height: 70dvh; }
  .room-panel { margin-top: 0; margin-left: 0; padding: 32px 0 0; width: 100%; }
  .room-image img { height: 56dvh; }
}
@media (max-width: 600px) {
  .ship-to-label { display: none; }
  .ship-to select { max-width: 112px; }
  .salon { columns: 2; column-gap: 14px; }
  .piece { margin-bottom: 28px; }
  .piece-wall { padding: 12px; }
  .label { grid-template-columns: 1fr; padding-top: 10px; }
  .label-title { font-size: 16px; }
  .label-price { font-size: 14px; }
  .label-meta { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .slide-caption { left: 18px; right: 64px; bottom: 18px; }
  .slide-art { inset: 6% 6% 70px; }
  .promise-row { grid-template-columns: minmax(0, 1fr); }
  .promise, .promise + .promise, .promise:nth-child(3) { padding: 18px 0; border-left: 0; }
  .promise:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .field-row, .details { grid-template-columns: minmax(0, 1fr); }
  .thumb { width: 72px; height: 72px; }
  .wall, .checkout { width: 100vw; max-height: 100dvh; height: 100dvh; }
  .checkout-body { padding: 18px 18px 24px; }
  .wall-stage { width: 100%; }
}

/* Motion: only for people who haven't asked their device to reduce it */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

  .hero-copy > * { animation: rise .9s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-stage { animation: fade 1.2s ease .1s backwards; }
  .hero-slide.is-active .slide-art img { animation: settle 7s ease-out both; }

  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s var(--ease); transition-delay: var(--delay, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }

  .piece:hover .piece-wall img, .piece:focus-visible .piece-wall img { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 36px 60px -30px rgba(0, 0, 0, .6); }
  .rail-card:hover img, .rail-card:focus-visible img { transform: translateY(-6px); }

  @supports (animation-timeline: view()) {
    .room-image img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.035); } to { transform: scale(1); } }
@keyframes drift { from { object-position: 50% 0%; } to { object-position: 50% 30%; } }
