/* Vesna Delevska, Beyond the Surface.
   Layout concept: a gallery building. Plaster walls, works hung at true relative scale,
   text set like museum wall labels, and night rooms for performance and arrival.
   The paintings carry all of the color. The interface stays neutral, with one muted gold leaf
   accent borrowed from her icon painting. */
:root {
  --wall: #ecebe6;          /* plaster gallery wall */
  --paper: #f6f5f1;         /* lighter wall, labels, panels */
  --ink: #1a1917;           /* text */
  --graphite: #3b3935;      /* secondary text on light */
  --stone: #77736b;         /* captions, meta */
  --hair: rgba(26, 25, 23, .14);
  --hair-2: rgba(26, 25, 23, .08);
  --gold: #9a7e4d;          /* gold leaf, used sparingly */
  --gold-soft: #d9cdb4;
  --night: #121110;         /* night rooms */
  --night-2: #1c1b19;
  --night-ink: #ece9e2;
  --night-mute: #9f9a90;
  --ok: #3d6b4a;
  --danger: #8f3b2c;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --bar-h: 44px;
  --nav-h: 76px;
  --gutter: max(20px, 4.2vw);
  --ease: cubic-bezier(.22, .61, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-art: 0 1px 1px rgba(0,0,0,.06), 0 18px 36px -12px rgba(30, 24, 16, .35), 0 40px 80px -30px rgba(30, 24, 16, .35);
  color-scheme: light;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-top: var(--bar-h); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 1em; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 600; text-decoration: none; }
.skip:focus { top: calc(var(--bar-h) + 10px); }

/* ---------- Type scale ---------- */
.eyebrow { font-family: var(--sans); font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: var(--stone); }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -.01em; }
.h-xxl { font-family: var(--display); font-weight: 300; font-size: clamp(54px, 9.5vw, 148px); line-height: .9; letter-spacing: -.02em; }
.h-xl { font-family: var(--display); font-weight: 300; font-size: clamp(42px, 6vw, 92px); line-height: .95; letter-spacing: -.015em; }
.h-l { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -.01em; }
.h-m { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; }
.h-s { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.15; }
em, .it { font-style: italic; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--graphite); max-width: 36em; font-weight: 300; }
.body-copy { max-width: 34em; color: var(--graphite); font-weight: 300; font-size: 17px; line-height: 1.75; }
.body-copy p + p { margin-top: -.2em; }
.small { font-size: 13.5px; color: var(--stone); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 1080px; }
.section { padding-block: clamp(80px, 11vw, 168px); }
.section.tight { padding-block: clamp(56px, 7vw, 96px); }
.night { background: var(--night); color: var(--night-ink); }
.night .eyebrow, .night .small { color: var(--night-mute); }
.night .lede, .night .body-copy { color: #cfcac0; }
.paper { background: var(--paper); }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.night .rule { background: rgba(255,255,255,.12); }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .start-7 { grid-column: 7 / span 6; } .start-8 { grid-column: 8 / span 5; }
@media (max-width: 900px) { .split > * { grid-column: 1 / -1 !important; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); white-space: nowrap; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.light:hover { background: #fff; }
.btn.ghost-light { background: transparent; color: var(--night-ink); border-color: rgba(236,233,226,.5); }
.btn.ghost-light:hover { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.btn.block { width: 100%; }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 11.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.link:hover { background-size: 30% 1px; }
.link .arr { transition: transform .35s var(--ease); }
.link:hover .arr { transform: translateX(5px); }
.textlink { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Site navigation ---------- */
.nav { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 120; height: var(--nav-h); display: flex; align-items: center; transition: background .45s var(--ease), color .45s var(--ease), transform .5s var(--ease), box-shadow .45s; color: var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.nav.is-solid { background: rgba(236, 235, 230, .94); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); box-shadow: 0 1px 0 var(--hair-2); }
.nav.on-dark { color: var(--night-ink); background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
.nav.is-hidden { transform: translateY(-110%); }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; gap: 6px; flex: 0 0 auto; }
.wordmark b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: .34em; text-transform: uppercase; }
.wordmark small { font-size: 9.5px; letter-spacing: .44em; text-transform: uppercase; opacity: .7; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; position: relative; padding-block: 8px; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }
.cart-count[data-n="0"] { display: none; }
.menu-btn { display: none; }
.menu-btn span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn span + span { margin-top: 7px; }
@media (max-width: 1080px) { .nav-links { display: none; } .menu-btn { display: inline-grid; align-content: center; justify-items: center; } .nav-tools { margin-left: auto; } }
@media (max-width: 560px) { :root { --nav-h: 64px; } .wordmark b { font-size: 17px; letter-spacing: .28em; } .wordmark small { font-size: 8.5px; } }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 300; background: var(--night); color: var(--night-ink); display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 18px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-close { color: var(--night-ink); }
.menu-close svg { stroke: currentColor; }
.menu nav { display: grid; align-content: center; gap: 4px; padding-block: 24px; }
.menu nav a { font-family: var(--display); font-size: clamp(34px, 8vw, 54px); font-weight: 300; text-decoration: none; line-height: 1.2; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s; }
.menu nav a:hover { color: var(--gold-soft); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu nav a:nth-child(2) { transition-delay: .04s; } .menu nav a:nth-child(3) { transition-delay: .08s; } .menu nav a:nth-child(4) { transition-delay: .12s; } .menu nav a:nth-child(5) { transition-delay: .16s; } .menu nav a:nth-child(6) { transition-delay: .2s; } .menu nav a:nth-child(7) { transition-delay: .24s; } .menu nav a:nth-child(8) { transition-delay: .28s; } .menu nav a:nth-child(9) { transition-delay: .32s; } .menu nav a:nth-child(10) { transition-delay: .36s; }
.menu-foot { font-size: 13.5px; color: var(--night-mute); display: grid; gap: 4px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .eyebrow { margin-bottom: 26px; display: block; }
.page-head h1 { max-width: 14ch; }
.page-head .lede { margin-top: 28px; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-bottom: 26px; list-style: none; padding: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* ---------- Image treatments ---------- */
.hang { box-shadow: var(--shadow-art); background: #ddd; }
.frame-img { position: relative; overflow: hidden; background: #d9d6cf; }
.frame-img img { width: 100%; height: 100%; object-fit: cover; }
.cap { margin-top: 14px; font-size: 13px; color: var(--stone); line-height: 1.5; }
.cap b { font-weight: 500; color: var(--ink); }
.night .cap b { color: var(--night-ink); }
.tag-viz { display: inline-block; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 8px; border: 1px solid currentColor; opacity: .75; margin-left: 8px; vertical-align: 1px; }
.reveal-img { clip-path: inset(0 0 0 0); }
[data-rv] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-rv].in { opacity: 1; transform: none; }
[data-rv="2"] { transition-delay: .1s; } [data-rv="3"] { transition-delay: .2s; } [data-rv="4"] { transition-delay: .3s; }
.no-js [data-rv], .reduced [data-rv] { opacity: 1; transform: none; }

/* ---------- Wall label (artwork caption) ---------- */
.label { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--stone); }
.label .t { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink); line-height: 1.15; margin-bottom: 2px; }
.night .label .t { color: var(--night-ink); }
.label .p { color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; letter-spacing: .02em; }
.night .label .p { color: var(--night-ink); }
.label .p s { color: var(--stone); margin-right: 6px; }
.label .collected { color: var(--stone); font-style: italic; }
.pip { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 7px; vertical-align: 1px; }
.pip.held { background: var(--gold); }
.pip.gone { background: #b0aca4; }

/* ---------- Artwork grid (collection) ---------- */
.masonry { columns: 4 260px; column-gap: clamp(22px, 2.6vw, 44px); }
.card { break-inside: avoid; margin-bottom: clamp(40px, 4vw, 64px); display: block; text-decoration: none; position: relative; }
.card .pic { position: relative; background: #d9d6cf; box-shadow: 0 10px 22px -14px rgba(30,24,16,.45); transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.card .pic img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; }
.card:hover .pic { transform: translateY(-6px); box-shadow: 0 26px 40px -18px rgba(30,24,16,.5); }
.card .label { margin-top: 16px; }
.card .flag { position: absolute; top: 12px; left: 12px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; background: rgba(246,245,241,.92); padding: 5px 9px; color: var(--ink); }
.card.is-collected .pic img { filter: saturate(.9); }
.card .quick { position: absolute; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.card:hover .quick, .card:focus-within .quick { opacity: 1; transform: none; }
.quick .btn { min-height: 38px; padding: 0 14px; font-size: 10.5px; background: rgba(246,245,241,.95); color: var(--ink); border-color: transparent; }
.quick .btn:hover { background: var(--ink); color: var(--paper); }
@media (hover: none) { .card .quick { display: none; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field .lbl { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; color: var(--graphite); }
.field .hint { font-size: 12.5px; color: var(--stone); letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(26,25,23,.3); padding: 12px 0; font-size: 17px; font-weight: 300; border-radius: 0; outline: none; transition: border-color .3s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 6px top 55%, right 0 top 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 24px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.field .msg { font-size: 12.5px; color: var(--danger); min-height: 0; }
.night .field label, .night .field .lbl { color: #cfcac0; }
.night .field input, .night .field select, .night .field textarea { border-color: rgba(236,233,226,.35); color: var(--night-ink); }
.night .field input:focus, .night .field textarea:focus, .night .field select:focus { border-color: var(--night-ink); }
.night .field select option { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); font-size: 13.5px; cursor: pointer; transition: all .25s var(--ease); background: transparent; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.night .chip span { border-color: rgba(236,233,226,.3); }
.night .chip input:checked + span { background: var(--night-ink); color: var(--night); }
.drop { border: 1px dashed rgba(26,25,23,.35); padding: 22px; text-align: center; cursor: pointer; transition: background .3s; }
.drop:hover, .drop.is-over { background: rgba(255,255,255,.5); }
.drop input { display: none; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumbs figure { margin: 0; width: 76px; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; }
.thumbs figcaption { font-size: 11px; color: var(--stone); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-done { border-top: 1px solid var(--hair); padding-top: 28px; }
.demo-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--stone); border-left: 1px solid var(--gold); padding-left: 14px; }
.night .demo-note { color: var(--night-mute); }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--night-ink); padding-top: clamp(72px, 9vw, 130px); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer .big { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7vw, 108px); line-height: .95; letter-spacing: -.015em; }
.footer .big i { color: var(--gold-soft); }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(56px, 7vw, 96px); }
.f-grid h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--night-mute); font-weight: 500; margin-bottom: 18px; }
.f-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; font-weight: 300; }
.f-grid a { text-decoration: none; color: #d8d4cb; }
.f-grid a:hover { color: #fff; }
.f-news p { color: #cfcac0; font-weight: 300; font-size: 15px; max-width: 30em; }
.f-news form { display: flex; gap: 0; border-bottom: 1px solid rgba(236,233,226,.4); margin-top: 18px; max-width: 420px; }
.f-news input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--night-ink); padding: 14px 0; font-size: 16px; font-weight: 300; outline: none; }
.f-news input::placeholder { color: #8d887f; }
.f-news button { background: transparent; border: 0; color: var(--night-ink); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; cursor: pointer; padding: 0 0 0 16px; }
.f-base { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--night-mute); letter-spacing: .04em; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-news { grid-column: 1 / -1; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- Cart drawer ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 380; background: rgba(18,17,16,.42); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.drawer-bg.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 390; width: min(460px, 100%); background: var(--paper); transform: translateX(100%); transition: transform .55s var(--ease-out); display: grid; grid-template-rows: auto 1fr auto; padding-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.is-open { transform: none; box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--hair); }
.drawer-body { overflow-y: auto; padding: 8px 26px; }
.drawer-foot { padding: 22px 26px 26px; border-top: 1px solid var(--hair); display: grid; gap: 14px; }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair-2); align-items: start; }
.line-item img { width: 76px; height: 76px; object-fit: cover; background: #ddd; }
.line-item .t { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.15; }
.line-item .m { font-size: 12.5px; color: var(--stone); }
.line-item .x { background: none; border: 0; padding: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); cursor: pointer; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.line-item .x:hover { color: var(--danger); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--hair); margin-top: 8px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 28px; text-align: center; font-size: 14px; }
.totals { display: grid; gap: 6px; font-size: 14.5px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-family: var(--display); font-size: 24px; padding-top: 8px; border-top: 1px solid var(--hair); margin-top: 6px; }
.empty { text-align: center; padding: 60px 10px; color: var(--stone); }
.empty .display { font-size: 30px; color: var(--ink); margin-bottom: 8px; }

/* ---------- Lightbox / zoom viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 500; background: #0d0c0b; color: var(--night-ink); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.viewer.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: 14px max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); gap: 12px; }
.viewer-top .t { font-family: var(--display); font-style: italic; font-size: 20px; }
.viewer-stage { position: relative; overflow: hidden; cursor: zoom-in; touch-action: none; }
.viewer-stage.zoomed { cursor: grab; }
.viewer-stage.dragging { cursor: grabbing; }
.viewer-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.viewer-bottom { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 18px 18px; flex-wrap: wrap; }
.viewer-thumbs { display: flex; gap: 8px; }
.viewer-thumbs button { width: 54px; height: 54px; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .55; }
.viewer-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--night-ink); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vbtn { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--night-ink); min-width: 44px; height: 44px; padding: 0 14px; cursor: pointer; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.vbtn:hover { background: rgba(255,255,255,.16); }
.viewer-hint { font-size: 12px; color: var(--night-mute); letter-spacing: .08em; }

/* ---------- Dialogs and toasts (site styled) ---------- */
.dlg-backdrop { position: fixed; inset: 0; z-index: 520; background: rgba(18,17,16,.5); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .25s; }
.dlg-backdrop.is-in { opacity: 1; }
.dlg { background: var(--paper); color: var(--ink); width: min(100%, 680px); max-height: calc(100vh - 40px); display: flex; flex-direction: column; transform: translateY(14px); transition: transform .35s var(--ease-out); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.dlg.sm { width: min(100%, 460px); }
.dlg.lg { width: min(100%, 920px); }
.dlg-backdrop.is-in .dlg { transform: none; }
.dlg-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 26px 28px 16px; border-bottom: 1px solid var(--hair); }
.dlg-title { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.05; }
.dlg-sub { margin: 6px 0 0; color: var(--stone); font-size: 14px; }
.dlg-x { background: none; border: 1px solid var(--hair); width: 40px; height: 40px; font-size: 20px; cursor: pointer; flex: 0 0 auto; }
.dlg-body { padding: 22px 28px; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 28px 24px; flex-wrap: wrap; }
.dlg .btn.primary { background: var(--ink); }
.dlg .btn.danger { background: var(--danger); border-color: var(--danger); }
@media (max-width: 600px) { .dlg-backdrop { padding: 0; align-items: end; } .dlg { max-height: 92vh; } }
body.has-dialog { overflow: hidden; }
.toast-wrap { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 560; display: grid; gap: 10px; width: min(480px, calc(100% - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--night); color: var(--night-ink); padding: 15px 16px; font-size: 14px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: translateY(14px); opacity: 0; transition: transform .35s var(--ease-out), opacity .35s; }
.toast.is-in { transform: none; opacity: 1; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: 0 0 auto; }
.toast-body { flex: 1; }
.toast-body a { color: #fff; }
.toast-x { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 18px; line-height: 1; }

/* ---------- Sea Grape Labs preview bar (presenter chrome, distinct from Vesna's brand) ---------- */
.demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 450; height: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); display: flex; align-items: center; gap: 14px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); background: #08181a; color: #f3efe3; font-family: "Manrope", var(--sans); font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; flex: 0 0 auto; }
.demo-brand .sgl-mark { width: 26px; height: 26px; }
.demo-brand span { display: grid; line-height: 1.05; }
.demo-brand b { font-size: 12.5px; font-weight: 700; }
.demo-brand small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #a9bdb5; margin-top: 2px; }
.demo-steps { display: flex; gap: 2px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.demo-step { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; text-decoration: none; color: #a9bdb5; font-weight: 600; }
.demo-step:hover { background: rgba(255,255,255,.08); color: #fff; }
.demo-step-n { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; background: rgba(255,255,255,.1); }
.demo-step.is-done .demo-step-n { background: #426544; color: #fff; }
.demo-step.is-current { background: #f3efe3; color: #08181a; }
.demo-step.is-current .demo-step-n { background: #08181a; color: #fff; }
.demo-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.demo-pill { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #eadfc9; border: 1px solid rgba(234,223,201,.35); padding: 4px 8px; border-radius: 999px; }
.demo-reset { background: transparent; border: 1px solid rgba(255,255,255,.22); color: #f3efe3; border-radius: 999px; padding: 5px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.demo-reset:hover { border-color: #fff; }
.demo-bar :focus-visible { outline-color: #8fbf72; }
.demo-menu { display: none; margin-left: auto; height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: transparent; color: #f3efe3; font: 600 11.5px "Manrope", sans-serif; cursor: pointer; }
.demo-sheet { position: fixed; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 449; background: #0d2c33; color: #f3efe3; padding: 12px max(12px, env(safe-area-inset-right, 0px)) 14px max(12px, env(safe-area-inset-left, 0px)); display: none; flex-wrap: wrap; gap: 6px; font-family: "Manrope", var(--sans); font-size: 13px; box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.demo-sheet.is-open { display: flex; }
.demo-sheet a, .demo-sheet button { color: #f3efe3; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.demo-sheet a[aria-current="page"] { background: #f3efe3; color: #08181a; }
@media (max-width: 1180px) { .demo-step-l { display: none; } .demo-step.is-current .demo-step-l { display: inline; } .demo-pill { display: none; } }
@media (max-width: 760px) { .demo-steps, .demo-right { display: none; } .demo-menu { display: inline-flex; align-items: center; } }

/* Guided scenario panel */
.guide { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 470; width: min(370px, calc(100vw - 32px)); background: #08181a; color: #f3efe3; border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.4); font-family: "Manrope", var(--sans); border: 1px solid rgba(255,255,255,.1); }
.guide-head { display: flex; gap: 10px; align-items: center; }
.guide-head .sgl-mark { width: 26px; height: 26px; flex: 0 0 auto; }
.guide-head span { flex: 1; line-height: 1.15; }
.guide-head b { display: block; font-size: 13.5px; }
.guide-head small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #a9bdb5; }
.guide-x { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 17px; }
.guide p { margin: 12px 0; font-size: 13.5px; line-height: 1.5; color: #e6ebe7; }
.guide-foot { display: flex; justify-content: space-between; gap: 8px; }
.guide-foot button { font: 700 12.5px "Manrope", sans-serif; border-radius: 999px; padding: 8px 14px; cursor: pointer; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #f3efe3; }
.guide-foot button.go { background: #426544; border-color: #426544; color: #fff; }
.guide-foot button[disabled] { opacity: .4; cursor: default; }
.guide-target { outline: 3px solid #8fbf72 !important; outline-offset: 6px; animation: gpulse 1.6s ease-in-out 3; }
@keyframes gpulse { 0%, 100% { outline-color: #8fbf72; } 50% { outline-color: transparent; } }
@media (max-width: 600px) { .guide { left: 8px; right: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
