:root {
  --white: #FFFFFF;
  --ink: #222222;
  --ink-soft: #6B6B6B;
  --line: #E4E2DD;
  --stone: #F5F4F1;      /* product backdrop */
  --linen: #F3EEE6;      /* story panel */
  --oxide: #9A3B2C;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 2.5vw, 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.55; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar + header */
.topbar { background: var(--ink); color: var(--white); text-align: center; font-size: 12px; font-weight: 500; padding: 9px var(--gutter); letter-spacing: 0.01em; }
.site-header {
  position: sticky; top: 0; z-index: 10; background: var(--white);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--gutter); border-bottom: 1px solid var(--line);
}
.nav-left, .nav-right { display: flex; gap: 26px; align-items: center; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }
.nav-right { justify-content: flex-end; }
.nav-left a:hover, .nav-right a:hover, .bag-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; line-height: 1; }
.bag-link { background: none; border: none; padding: 0; cursor: pointer; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; }

/* Image slots: photo when set, illustration placeholder until then */
[data-slot] { position: relative; overflow: hidden; background: var(--stone); }
[data-slot] > img, [data-slot] > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: min(82vh, 820px); min-height: 440px; }
.hero-panel { height: 100%; }
.label-button {
  display: inline-block; background: var(--white); color: var(--ink); border: 1px solid var(--ink);
  padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.label-button:hover { background: var(--ink); color: var(--white); }
.label-button.dark { background: var(--ink); color: var(--white); }
.label-button.dark:hover { background: var(--white); color: var(--ink); }
.hero-label { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); white-space: nowrap; }

/* Product row + grid */
.row-section { padding: 72px var(--gutter); }
.product-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gutter); }
.card { text-align: center; }
.card-art, .qv-art { position: relative; overflow: hidden; }
.card-art > svg, .card-art > img, .qv-art > svg, .qv-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-art { background: var(--stone); }
.card-art { display: block; width: 100%; aspect-ratio: 4 / 5; border: none; padding: 0; cursor: pointer; background: var(--stone); }
.card-art > svg, .card-art > img { transition: transform 400ms ease; }
.card-art:hover > svg, .card-art:hover > img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-art:hover > svg, .card-art:hover > img { transform: none; } }
.card.is-sold .card-art > * { opacity: 0.5; }
.card-name { font-size: 14px; font-weight: 500; margin: 16px auto 2px; max-width: 24ch; line-height: 1.35; }
.card-name button { background: none; border: none; padding: 0; cursor: pointer; font: inherit; text-align: center; }
.card-name button:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-price { font-family: var(--serif); font-size: 14px; }
.card-sold { color: var(--oxide); font-size: 12px; margin-top: 2px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.tile span { position: relative; z-index: 1; color: var(--white); font-family: var(--serif); font-size: clamp(28px, 3vw, 42px); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.2); }
.tile > img, .tile > svg { transition: transform 600ms ease; }
.tile:hover > img, .tile:hover > svg { transform: scale(1.03); }

/* Shop */
.shop { padding: 96px var(--gutter) 110px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); text-align: center; margin: 0 0 18px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 52px; }
.filters button {
  background: none; border: none; padding: 4px 0; cursor: pointer; color: var(--ink-soft);
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em; border-bottom: 1px solid transparent;
}
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters button:hover { color: var(--ink); }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.story-text { background: var(--linen); padding: clamp(40px, 7vw, 110px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; text-align: center; align-items: center; }
.story-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; margin: 0 0 28px; max-width: 18ch; }
.story-text p { max-width: 46ch; margin: 0 0 14px; font-size: 14px; }
.story-image { min-height: 420px; }

/* Visit */
.visit { text-align: center; padding: 96px var(--gutter); }
.visit h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 40px); margin: 0 0 12px; }
.visit p { color: var(--ink-soft); margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 0 var(--gutter) 28px; }
.site-footer { position: relative; }
.footer-mark { font-family: var(--serif); font-weight: 700; font-size: 26px; text-align: center; margin: 0 auto; padding: 48px 0 0; line-height: 1; letter-spacing: 0.02em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 56px; max-width: 980px; margin: 0 auto; }
.footer-cols h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 14px; }
.footer-cols a, .footer-cols span { display: block; color: var(--ink-soft); margin-bottom: 8px; }
.footer-cols a:hover { color: var(--ink); }
.copyright { text-align: center; color: var(--ink-soft); font-size: 12px; margin: 0; }

/* Drawers */
.drawer {
  border: none; padding: 0; margin: 0 0 0 auto; background: var(--white); color: var(--ink);
  width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
}
.drawer::backdrop { background: rgba(0, 0, 0, 0.35); }
.drawer[open] { animation: drawer-in 240ms ease-out; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); z-index: 2; }
.drawer-head h2 { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.close-x { background: none; border: none; cursor: pointer; font-size: 12px; text-transform: uppercase; font-weight: 500; letter-spacing: 0.02em; padding: 4px; }
.close-x:hover { text-decoration: underline; text-underline-offset: 3px; }

.product-drawer { width: min(560px, 100vw); }
.qv-art { aspect-ratio: 1; }
.qv-body { padding: 28px 28px 40px; }
.qv-body h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.qv-price { font-family: var(--serif); font-size: 18px; margin: 0 0 18px; }
.qv-meta { color: var(--ink-soft); margin: 0 0 18px; }
.qv-desc { margin: 0 0 8px; max-width: 52ch; }
.qv-body .btn { margin-top: 24px; }

.btn { display: flex; width: 100%; justify-content: center; align-items: center; padding: 15px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; font-size: 13px; font-weight: 500; }
.btn:hover:not([disabled]) { background: var(--white); color: var(--ink); }
.btn.outline { background: var(--white); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.text-button { background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; color: var(--ink-soft); font-size: 12px; }
.text-button:hover { color: var(--ink); }

/* Bag */
.bag-section { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: start; padding: 10px 0; }
.bag-thumb { width: 72px; aspect-ratio: 1; position: relative; overflow: hidden; background: var(--stone); }
.bag-thumb > svg, .bag-thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bag-line-name { margin: 0 0 8px; font-weight: 500; line-height: 1.35; }
.bag-line-controls { display: flex; align-items: center; gap: 14px; }
.price { font-family: var(--serif); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; border: none; background: none; cursor: pointer; font-size: 15px; }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty span { min-width: 20px; text-align: center; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin-top: 8px; }
.totals > :nth-child(even) { padding-left: 12px; text-align: right; }
.totals .grand { font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 15px; }
.totals .price.grand { font-weight: 400; font-size: 17px; }
.empty { padding: 48px 24px; text-align: center; }
.empty p { color: var(--ink-soft); margin: 0 0 20px; }

fieldset { border: none; margin: 0 0 22px; padding: 0; }
legend { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 12px; padding: 0; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--ink-soft); }
.field input, .field textarea { border: 1px solid #CFCDC8; background: var(--white); border-radius: 0; padding: 11px 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.choice { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: start; border: 1px solid #CFCDC8; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--ink); }
.choice input { margin: 3px 0 0; accent-color: var(--ink); }
.choice small { grid-column: 2 / 4; color: var(--ink-soft); font-size: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--ink-soft); margin: 18px 0 16px; }
.consent input { margin-top: 2px; accent-color: var(--ink); }
.consent a { text-decoration: underline; }
.form-error { color: var(--oxide); margin: 0 0 12px; font-size: 13px; }
.pay-note { color: var(--ink-soft); font-size: 12px; margin: 10px 0 0; text-align: center; }

/* Result + terms pages */
.result, .terms { max-width: 640px; margin: 0 auto; padding: clamp(56px, 10vw, 120px) var(--gutter) 110px; text-align: center; }
.result h1, .terms h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 20px; }
.result p { color: var(--ink-soft); font-size: 15px; }
.result .ref { color: var(--ink); font-weight: 600; }
.result .label-button { margin-top: 12px; }
.terms { text-align: left; max-width: 720px; }
.terms h1 { text-align: center; }
.terms h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin: 40px 0 10px; }
.terms p, .terms li { font-size: 14px; }
.terms a { text-decoration: underline; }

@media (max-width: 900px) {
  .product-row, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-left a:not(:first-child) { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-image { min-height: 360px; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .hero { grid-template-columns: 1fr; height: 72vh; }
  .tiles { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1; }
  .row-section { padding: 48px var(--gutter); }
  .product-row .card:nth-child(n+3) { display: none; }
  .grid { gap: 36px 12px; }
  .wordmark { font-size: 22px; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===================== v3: chapters, table, rituals, makers, gift builder ===================== */
html { scroll-snap-type: y proximity; scroll-padding-top: 0; }
.site-header.overlay { position: fixed; left: 0; right: 0; top: 0; background: var(--white); transition: background 250ms ease, color 250ms ease, border-color 250ms ease; }
body.on-chapters .site-header.overlay { background: transparent; color: var(--white); border-bottom-color: transparent; }
body.on-chapters .site-header.overlay .menu-button span { background: var(--white); }
body.on-chapters .site-header .search-line input { color: var(--white); border-bottom-color: rgba(255,255,255,.8); }
body.on-chapters .site-header .search-line input::placeholder { color: rgba(255,255,255,.85); }
.header-left { display: flex; align-items: center; gap: 22px; }
.menu-button { width: 26px; height: 18px; display: grid; align-content: space-between; background: none; border: none; padding: 3px 0; cursor: pointer; }
.menu-button span { display: block; height: 1.5px; background: var(--ink); }
.search-line input { border: none; border-bottom: 1px solid var(--ink); background: transparent; width: 170px; padding: 3px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; border-radius: 0; }
.search-line input:focus { outline: none; border-bottom-width: 2px; }
.search-line input::placeholder { color: var(--ink); }

.chapter { position: relative; height: 100svh; min-height: 520px; scroll-snap-align: start; overflow: hidden; }
.chapter.split { display: grid; grid-template-columns: 1fr 1fr; }
.chapter.split > [data-slot] { height: 100%; }
.chapter-cta { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
.chapter-caption { position: absolute; left: 0; right: 0; bottom: 120px; text-align: center; color: rgba(255,255,255,.85); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; pointer-events: none; }
.chapter-nav {
  position: fixed; left: 0; right: 0; bottom: 34px; z-index: 6; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px;
  transition: opacity 250ms ease; padding: 0 var(--gutter);
}
body:not(.on-chapters) .chapter-nav { opacity: 0; pointer-events: none; }
.chapter-nav button { background: none; border: none; color: rgba(255,255,255,.85); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; padding: 4px 0; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.chapter-nav button[aria-current="true"] { color: var(--white); font-weight: 600; }

/* The table */
.chapter-table { background: #3A332C; }
.table-scene, .table-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.table-scene .spot { cursor: pointer; }
.table-scene .spot .tag { opacity: 0; transition: opacity 200ms ease; pointer-events: none; }
.table-scene .spot:hover .tag, .table-scene .spot:focus .tag { opacity: 1; }
.table-scene .spot:focus { outline: none; }
.table-scene .spot:focus .pin circle:first-child { stroke: #fff; stroke-width: 3; }
.table-scene .pin { animation: breathe 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .table-scene .pin { animation: none; } }
.table-scene .sold-object { opacity: 0.35; }

/* Section headings */
.section-lede { text-align: center; color: var(--ink-soft); max-width: 52ch; margin: -6px auto 44px; }
.section-title.left { text-align: left; }

/* Rituals */
.rituals { padding: 110px var(--gutter) 40px; }
.ritual-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gutter); }
.ritual { display: flex; flex-direction: column; }
.ritual-art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--stone); }
.ritual-art > svg, .ritual-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ritual h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 18px 0 2px; }
.ritual .line { color: var(--ink-soft); font-style: italic; font-family: var(--serif); margin: 0 0 12px; }
.ritual ul { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--line); }
.ritual li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ritual li button { background: none; border: none; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.ritual li button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ritual li.gone { color: var(--ink-soft); }
.ritual li.gone .price { text-decoration: line-through; }
.ritual .btn { margin-top: auto; }

/* Shop bar + density */
.shop-bar { display: flex; justify-content: center; align-items: center; gap: 24px; position: relative; margin-bottom: 52px; }
.shop-bar .filters { margin-bottom: 0; }
.density { position: absolute; right: 0; display: flex; gap: 6px; }
.density button { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 11px; letter-spacing: 1px; padding: 4px 6px; }
.density button[aria-pressed="true"] { color: var(--ink); }
.grid.dense-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.dense-2 .card-name { font-size: 16px; }
.search-status { text-align: center; color: var(--ink-soft); margin: -28px 0 36px; }
.search-status button { background: none; border: none; text-decoration: underline; cursor: pointer; color: var(--ink); padding: 0; font: inherit; }
.card-badge { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 4px; }
.card.is-sold .card-sold { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 13px; }

/* Makers */
.makers { padding: 40px var(--gutter) 110px; }
.maker-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1100px; border-top: 1px solid var(--line); }
.maker-list li { border-bottom: 1px solid var(--line); }
.maker-list button { width: 100%; display: grid; grid-template-columns: 1.1fr 1.6fr 90px; gap: 24px; align-items: baseline; background: none; border: none; padding: 26px 0; cursor: pointer; text-align: left; font: inherit; }
.maker-list .maker-name { font-family: var(--serif); font-size: clamp(24px, 3vw, 38px); line-height: 1.1; }
.maker-list .maker-makes { color: var(--ink-soft); }
.maker-list .maker-count { text-align: right; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.maker-list button:hover .maker-name { font-style: italic; }

/* Gift builder */
.gift-builder { display: grid; grid-template-columns: 1fr 1fr; background: var(--linen); }
.gift-form { padding: clamp(40px, 7vw, 100px) clamp(24px, 6vw, 96px); }
.gift-form > p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.amounts button { border: 1px solid var(--ink); background: transparent; padding: 10px 18px; cursor: pointer; font-family: var(--serif); font-size: 16px; }
.amounts button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.gift-form .field input, .gift-form .field textarea { background: var(--white); }
.gift-form .btn { margin-top: 10px; max-width: 360px; }
.gift-preview { display: grid; place-items: center; padding: 48px var(--gutter); background: #E6DDCF; }
.gift-card { width: min(420px, 100%); aspect-ratio: 1.6; background: var(--white); box-shadow: 0 18px 40px rgba(60, 45, 30, 0.14); padding: 26px 28px; display: flex; flex-direction: column; transform: rotate(-2deg); }
.gift-card .gc-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.gift-card .gc-mark { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: 0.02em; text-transform: none; }
.gift-card .gc-amount { font-family: var(--serif); font-size: 52px; line-height: 1; margin: auto 0 10px; }
.gift-card .gc-msg { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.4; min-height: 2.8em; overflow-wrap: anywhere; }
.gift-card .gc-names { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* Menu overlay */
.menu-overlay { border: none; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; background: var(--white); color: var(--ink); }
.menu-overlay::backdrop { background: rgba(0,0,0,.2); }
.menu-overlay[open] { animation: fade-in 200ms ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.menu-head { display: flex; justify-content: flex-start; padding: 22px var(--gutter); }
.menu-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px var(--gutter) 64px; }
.menu-links { display: flex; flex-direction: column; gap: 6px; }
.menu-links a { font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); line-height: 1.15; width: max-content; }
.menu-links a:hover { font-style: italic; }
.search-line.big input { width: 100%; font-size: 15px; padding: 8px 0; }
.menu-results { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.menu-results button { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; width: 100%; background: none; border: none; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.menu-results .thumb { width: 64px; aspect-ratio: 1; position: relative; overflow: hidden; background: var(--stone); }
.menu-results .thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-results .empty-note { color: var(--ink-soft); }

/* Checkout extras */
.extras { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); }
.check small { display: block; color: var(--ink-soft); font-size: 12px; }
.day-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.day-picker button { border: 1px solid #CFCDC8; background: var(--white); padding: 7px 10px; font-size: 12px; cursor: pointer; line-height: 1.2; text-align: center; }
.day-picker button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.day-picker-label { font-size: 12px; color: var(--ink-soft); margin: 0 0 6px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 18px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .ritual-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-builder { grid-template-columns: 1fr; }
  .menu-body { grid-template-columns: 1fr; }
  .maker-list button { grid-template-columns: 1fr auto; }
  .maker-list .maker-makes { grid-column: 1 / -1; grid-row: 2; }
  .density { position: static; }
  .shop-bar { flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  .chapter.split { grid-template-columns: 1fr; }
  .chapter.split > [data-slot]:nth-child(2) { display: none; }
  .ritual-row { grid-template-columns: 1fr; }
  .chapter-cta, .chapter-caption { bottom: 104px; }
  .chapter-nav { gap: 4px 16px; bottom: 28px; }
  .chapter-nav button { font-size: 11px; }
}

/* ===================== v4: language, gallery, sound, reserve, table box ===================== */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.lang-switch button { background: none; border: none; padding: 2px 1px; cursor: pointer; font-size: 12px; font-weight: 500; opacity: .55; color: inherit; letter-spacing: 0.02em; }
.lang-switch button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch span { opacity: .5; }

/* Gallery in quick view */
.gallery { position: relative; background: var(--stone); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; position: relative; overflow: hidden; }
.gallery-slide > svg, .gallery-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-tag { position: absolute; left: 14px; top: 14px; background: var(--white); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 9px; z-index: 1; }
.gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.gallery-dots button { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: var(--ink); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; background: rgba(255,255,255,.9); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.gallery-arrow.prev { left: 12px; } .gallery-arrow.next { right: 12px; }
.gallery-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .gallery-arrow { display: none; } }
.card-photos { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 5px; z-index: 1; }
.card-photos span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(255,255,255,.92); padding: 3px 7px; }

/* Sound */
.sound-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); background: var(--white); padding: 9px 14px; cursor: pointer; font-size: 13px; margin: 4px 0 6px; }
.sound-button .wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.sound-button .wave i { width: 2px; height: 5px; background: var(--ink); display: block; }
.sound-button.playing .wave i { animation: wave 600ms ease-in-out infinite alternate; }
.sound-button.playing .wave i:nth-child(2) { animation-delay: 120ms; } .sound-button.playing .wave i:nth-child(3) { animation-delay: 240ms; } .sound-button.playing .wave i:nth-child(4) { animation-delay: 360ms; }
@keyframes wave { to { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .sound-button.playing .wave i { animation: none; height: 10px; } }
.sound-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; }

/* Reserve */
.reserve-link { display: block; width: 100%; text-align: center; margin-top: 10px; background: none; border: 1px solid var(--ink); padding: 13px; cursor: pointer; font-size: 13px; }
.reserve-link:hover { background: var(--ink); color: var(--white); }
.card-reserved { font-size: 12px; color: var(--ink-soft); font-style: italic; font-family: var(--serif); margin-top: 2px; }
.reserve-piece { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.reserve-piece .bag-thumb { width: 72px; }
.reserve-done { padding: 40px 24px; }
.reserve-done h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 12px; }

/* Table box */
.table-box { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: #2F2924; color: #F3EEE6; }
.box-image { min-height: 420px; }
.box-text { padding: clamp(40px, 7vw, 100px) clamp(24px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.box-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: #CDBBA3; margin: 0 0 14px; }
.box-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; margin: 0 0 20px; }
.box-text > p { max-width: 48ch; color: #D9D0C2; margin: 0 0 30px; }
.box-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; max-width: 560px; }
.box-plan { border: 1px solid rgba(243,238,230,.35); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.box-plan h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0; }
.box-plan .box-price { font-family: var(--serif); font-size: 26px; }
.box-plan .box-save { font-size: 12px; color: #CDBBA3; min-height: 1.4em; }
.box-plan button { margin-top: 10px; background: #F3EEE6; color: #2F2924; border: 1px solid #F3EEE6; padding: 12px; cursor: pointer; font-size: 13px; font-weight: 500; }
.box-plan button:hover { background: transparent; color: #F3EEE6; }
.box-plan.featured { border-color: #F3EEE6; }
.box-points { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #D9D0C2; display: grid; gap: 6px; }
.box-points li::before { content: "—  "; color: #CDBBA3; }

@media (max-width: 900px) {
  .table-box { grid-template-columns: 1fr; }
  .box-plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .lang-switch { margin-right: 4px; }
}

/* ===================== v5: workshops, add-ons, business page ===================== */
.workshops { background: #2B2723; color: #F3EEE6; }
.workshop-feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 680px; }
.wf-image { position: relative; overflow: hidden; min-height: 420px; }
.wf-image > svg, .wf-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wf-text { padding: clamp(40px, 6vw, 90px) clamp(24px, 5vw, 80px); }
.wf-text h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 0 0 20px; }
.wf-lede { color: #D9D0C2; max-width: 52ch; margin: 0 0 24px; }
.wf-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 30px; max-width: 520px; }
.wf-details dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #CDBBA3; }
.wf-details dd { margin: 2px 0 0; }
.workshops .day-picker-label { color: #CDBBA3; }
.session-list { display: grid; gap: 8px; max-width: 520px; margin-bottom: 20px; }
.session-list button { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline; text-align: left; background: transparent; color: inherit; border: 1px solid rgba(243,238,230,.35); padding: 14px 16px; cursor: pointer; font: inherit; }
.session-list button[aria-pressed="true"] { border-color: #F3EEE6; box-shadow: inset 0 0 0 1px #F3EEE6; }
.session-list button:disabled { opacity: .4; cursor: not-allowed; }
.session-list .s-date { font-family: var(--serif); font-size: 18px; }
.session-list .s-left { font-size: 12px; color: #CDBBA3; }
.wf-row { display: flex; justify-content: space-between; align-items: center; max-width: 520px; margin-bottom: 18px; }
.workshops .qty { border-color: rgba(243,238,230,.35); }
.workshops .qty button { color: inherit; }
.wf-piece { max-width: 520px; }
.wf-piece legend { color: #CDBBA3; font-weight: 500; }
.workshops .choice { background: transparent; border-color: rgba(243,238,230,.35); }
.workshops .choice:has(input:checked) { border-color: #F3EEE6; }
.workshops .choice small { color: #CDBBA3; }
.workshops .choice input { accent-color: #F3EEE6; }
.btn.light { background: #F3EEE6; color: #2B2723; border-color: #F3EEE6; max-width: 520px; }
.btn.light:hover:not([disabled]) { background: transparent; color: #F3EEE6; }
.more-workshops { padding: 56px var(--gutter) 72px; border-top: 1px solid rgba(243,238,230,.15); }
.more-workshops h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 24px; text-align: center; }
.more-workshops ul { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; }
.more-workshops li { border-top: 1px solid rgba(243,238,230,.3); padding-top: 16px; }
.more-workshops h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.more-workshops p { color: #D9D0C2; margin: 0 0 10px; font-size: 13px; }
.more-workshops a { text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.more-note { text-align: center; color: #D9D0C2; margin: 36px 0 0; }
.more-note a { color: #F3EEE6; text-decoration: underline; text-underline-offset: 3px; }

.addons { background: var(--stone); }
.addon { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 6px 0; }
.addon .bag-thumb { width: 56px; }
.addon-add { border: 1px solid var(--ink); background: var(--white); padding: 7px 12px; cursor: pointer; font-size: 12px; }
.addon-add:hover { background: var(--ink); color: var(--white); }

/* Business page */
.biz-hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 78vh; }
.biz-hero-text { padding: clamp(110px, 12vw, 160px) clamp(24px, 6vw, 96px) 72px; display: flex; flex-direction: column; justify-content: center; }
.biz-hero-text h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.5vw, 72px); line-height: 1.02; margin: 0 0 22px; max-width: 14ch; }
.biz-hero-text p { color: var(--ink-soft); max-width: 50ch; font-size: 16px; }
.biz-hero-image { position: relative; overflow: hidden; min-height: 380px; }
.biz-hero-image > svg, .biz-hero-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-offers { padding: 96px var(--gutter); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); max-width: 1200px; margin: 0 auto; border: 1px solid var(--line); }
.offer { background: var(--white); padding: 40px clamp(24px, 4vw, 48px); display: flex; flex-direction: column; }
.offer .who { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin: 0 0 12px; }
.offer h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 14px; }
.offer p { color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.offer ul { margin: 0 0 22px; padding-left: 18px; color: var(--ink); }
.offer ul li { margin-bottom: 4px; }
.offer .label-button { margin-top: auto; align-self: flex-start; }
.biz-proof { background: var(--linen); padding: 72px var(--gutter); text-align: center; }
.biz-proof h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 38px); margin: 0 0 28px; }
.proof-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; max-width: 980px; margin: 0 auto; color: var(--ink-soft); }
.proof-row span { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.biz-form { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); padding: 96px var(--gutter) 110px; max-width: 1200px; margin: 0 auto; }
.biz-form h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin: 0 0 18px; }
.biz-form .side p { color: var(--ink-soft); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.topics label { border: 1px solid #CFCDC8; padding: 9px 14px; cursor: pointer; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.topics label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.biz-done { padding: 40px; background: var(--linen); }
.biz-done h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.site-header.solid { position: sticky; }

@media (max-width: 900px) {
  .workshop-feature, .biz-hero, .biz-form { grid-template-columns: 1fr; }
  .more-workshops ul { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .biz-hero-text { padding-top: 56px; }
}

/* v6: kit pairing */
.kit-check { max-width: 520px; border: 1px solid rgba(243,238,230,.35); padding: 12px 14px; margin: 4px 0 16px; }
.kit-check:has(input:checked) { border-color: #F3EEE6; }
.kit-check input { accent-color: #F3EEE6; }
.kit-check small { color: #CDBBA3; }
.wf-kit-alt { margin: 18px 0 0; color: #D9D0C2; max-width: 520px; }
.wf-kit-alt button { background: none; border: none; color: #F3EEE6; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; padding: 0; }
.chapter::before, .chapter::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.chapter::before { top: 0; height: 140px; background: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,0)); }
.chapter::after { bottom: 0; height: 200px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.3)); }
.chapter-table::before, .chapter-table::after { display: none; }

.viva-mark { display: block; height: 18px; width: auto; margin: 0 auto 6px; }

/* ===================== v8: logo, options, specs, card carousel, workshops, studio badge ===================== */
.logo-mark { display: inline-block; height: 22px; aspect-ratio: 999 / 253; background: currentColor; vertical-align: middle;
  -webkit-mask: url(images/logo.png) center / contain no-repeat; mask: url(images/logo.png) center / contain no-repeat; }
.footer-mark .logo-mark { height: 30px; }
@media (max-width: 700px) { .wordmark .logo-mark { height: 18px; } }

/* swipe through a piece's photos right on the card */
.card-art[role="button"] { outline-offset: 3px; }
.card-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card-track::-webkit-scrollbar { display: none; }
.card-track > img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.card-count, .gallery-count { position: absolute; right: 10px; bottom: 10px; z-index: 1; font-size: 11px; letter-spacing: 0.04em; background: rgba(255,255,255,.92); padding: 3px 8px; pointer-events: none; }
.card-count b { font-weight: 500; }
.gallery-count { top: 14px; right: 14px; bottom: auto; }

/* options: scent, size, colour */
.opt-group { margin: 6px 0 14px; }
.opt-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 0 0 8px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chips button { border: 1px solid #CFCDC8; background: var(--white); padding: 8px 12px; font-size: 13px; cursor: pointer; line-height: 1.25; }
.opt-chips button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-chips button:disabled { color: #A3A19B; border-style: dashed; cursor: not-allowed; }
.opt-chips small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.opt-detail { font-size: 13px; color: var(--ink-soft); margin: -4px 0 16px; line-height: 1.5; }
.qv-includes { margin: 0 0 18px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.qv-specs { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qv-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 13px; }
.qv-specs dt { color: var(--ink-soft); }
.qv-specs dd { margin: 0; }
.bag-line-sub { font-size: 12px; color: var(--ink-soft); margin: -4px 0 8px; }

/* workshops: one block each, image side alternates */
[data-workshops] > .workshop-feature + .workshop-feature { border-top: 1px solid rgba(243,238,230,.18); }
@media (min-width: 801px) { [data-workshops] > .workshop-feature:nth-child(even) .wf-image { order: 2; } }
.wf-price { font-family: var(--serif); font-size: 22px; margin: -6px 0 18px; }
.wf-price span { font-family: var(--sans); font-size: 12px; color: #CDBBA3; }
.slot-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 560px; padding-bottom: 4px; margin-bottom: 14px; }
.slot-days::-webkit-scrollbar { display: none; }
.slot-days button { flex: 0 0 auto; display: grid; justify-items: center; gap: 1px; min-width: 54px; padding: 8px 6px; background: transparent; color: inherit; border: 1px solid rgba(243,238,230,.35); cursor: pointer; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
.slot-days b { font-family: var(--serif); font-weight: 400; font-size: 20px; text-transform: none; }
.slot-days button[aria-pressed="true"], .slot-times button[aria-pressed="true"] { background: #F3EEE6; color: #2B2723; border-color: #F3EEE6; }
.slot-times { display: flex; gap: 6px; margin-bottom: 18px; }
.slot-times button { background: transparent; color: inherit; border: 1px solid rgba(243,238,230,.35); padding: 9px 16px; cursor: pointer; font-size: 14px; }
.workshops .kit-check { max-width: 520px; margin-bottom: 18px; }

/* pay at the studio: a small see-through badge, bottom right */
.visit-badge { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: stretch;
  background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(34,34,34,.18); box-shadow: 0 6px 24px rgba(0,0,0,.08); animation: vb-in .4s ease both; }
.visit-badge[hidden] { display: none; }
.vb-open { background: none; border: none; padding: 10px 6px 10px 14px; text-align: left; cursor: pointer; display: grid; gap: 2px; color: var(--ink); }
.vb-open b { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.vb-open span { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.02em; }
.vb-hide { background: none; border: none; padding: 0 12px; font-size: 16px; color: var(--ink-soft); cursor: pointer; }
@keyframes vb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .visit-badge { animation: none; } }
[data-visit-body] s { color: var(--ink-soft); font-size: 12px; margin-right: 4px; }
.wf-text, .wf-image, .card, .qv-body { min-width: 0; }
.slot-days { max-width: 100%; }

/* ===================== v10: phone header, chapter nav, small fixes ===================== */
.card-count, .gallery-count { color: var(--ink); }
.nav-left a, .nav-right a, .bag-link { white-space: nowrap; }
@media (max-width: 600px) {
  .site-header { gap: 10px; }
  .nav-right { gap: 12px; }
  .nav-left, .nav-right, .lang-switch, .lang-switch button { font-size: 11px; }
  .lang-switch { margin-right: 0; }
  /* "Back to the shop" becomes an arrow on small screens */
  .site-header.solid .nav-left a[data-b="backToShop"] { font-size: 0; }
  .site-header.solid .nav-left a[data-b="backToShop"]::before { content: "←"; font-size: 18px; line-height: 1; }
  /* chapter names on one swipeable line, clear of the button */
  .chapter-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 18px; bottom: 24px; mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%); }
  .chapter-nav::-webkit-scrollbar { display: none; }
  .chapter-nav button { flex: 0 0 auto; }
  .chapter-cta, .chapter-caption { bottom: 84px; }
}

/* ===================== v11: bigger logo, badge on the left, smoother scrolling ===================== */
.wordmark .logo-mark { height: 30px; }
.footer-mark .logo-mark { height: 40px; }
@media (max-width: 700px) { .wordmark .logo-mark { height: 22px; } .footer-mark .logo-mark { height: 32px; } }
/* bottom-left, so it never sits under the hosting badge on the right */
.visit-badge { right: auto; left: 16px; bottom: 16px; }
@media (max-width: 600px) { body.on-chapters .visit-badge { bottom: 64px; } }
/* smoother: keep the header on its own layer */
.site-header { will-change: background-color; }
html { overscroll-behavior-y: none; }
.visit-badge { background: rgba(255,255,255,.78); }

/* ===================== v12: the studio −20%, visible where people decide ===================== */
.qv-studio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin: -6px 0 16px; }
.qv-studio span, .studio-note > span:first-child, .pay-option em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #fff; background: #8A5A3B; padding: 2px 6px; }
.studio-note { display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.pay-how { display: grid; gap: 8px; }
.pay-option { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid #CFCDC8; background: var(--white); font: inherit; color: inherit; }
.pay-option.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option.studio { cursor: pointer; background: #F6EFE6; border-color: #D9C3AC; }
.pay-option.studio:hover { border-color: #8A5A3B; }
.pay-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); margin-top: 2px; }
.pay-option.is-on .pay-dot { background: radial-gradient(circle, var(--ink) 0 4px, transparent 5px); }
.pay-option b { display: block; font-weight: 500; font-size: 14px; }
.pay-option small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.pay-option u { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pay-option .price { font-size: 14px; white-space: nowrap; }
.pay-option .price s { color: var(--ink-soft); font-size: 12px; margin-right: 4px; }

/* ===================== v13: the real table photo ===================== */
.table-photo { position: absolute; inset: 0; overflow: hidden; container-type: size; background: #2E2925; }
.table-photo-inner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.table-photo.is-landscape .table-photo-inner { aspect-ratio: 2450 / 1199; width: max(100cqw, calc(100cqh * 2450 / 1199)); }
.table-photo.is-portrait .table-photo-inner { aspect-ratio: 1199 / 2450; width: max(100cqw, calc(100cqh * 1199 / 2450)); }
.table-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-spot { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.photo-spot .pin { position: relative; display: block; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform 200ms ease; }
.photo-spot .pin::before, .photo-spot .pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.photo-spot .pin::after { transform: translate(-50%, -50%) rotate(90deg); }
.photo-spot .pin { animation: pin-breathe 3.2s ease-in-out infinite; }
@keyframes pin-breathe { 0%, 100% { box-shadow: 0 2px 10px rgba(0,0,0,.18), 0 0 0 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 2px 10px rgba(0,0,0,.18), 0 0 0 8px rgba(255,255,255,0); } }
.photo-spot .tag { position: absolute; left: calc(100% - 4px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; padding: 9px 13px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 200ms ease; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.photo-spot.tag-left .tag { left: auto; right: calc(100% - 4px); }
.photo-spot:hover .pin, .photo-spot:focus-visible .pin { transform: scale(1.12); }
.photo-spot:hover .tag, .photo-spot:focus-visible .tag { opacity: 1; }
.photo-spot:focus { outline: none; }
.photo-spot:focus-visible .pin { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: none) { .photo-spot .tag { display: none; } }
@media (prefers-reduced-motion: reduce) { .photo-spot .pin { animation: none; } }
/* soft shade at the top and bottom so the white header and chapter names stay readable on the light linen */
.table-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.32) 100%); }
.table-photo.is-portrait .table-photo-inner { transform: translate(-50%, -51%); }

/* ritual set saving */
.ritual-saving { font-size: 14px; margin: 4px 0 12px; }
.ritual-saving s { color: var(--ink-soft); font-size: 12px; margin-right: 4px; }
.ritual-saving span { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; color: #fff; background: #8A5A3B; padding: 2px 6px; }
.totals .saving { color: #8A5A3B; }
