/* ============================================================
   Pawsterpiece · the gallery wall
   World: Rijksmuseum Gallery of Honour at closing time.
   Varnished umber walls, picture-light gold, madder-velvet rope.
   ============================================================ */

:root {
  /* wall + furniture */
  --wall:       oklch(0.215 0.020 60);
  --wall-deep:  oklch(0.165 0.018 55);
  --plaque:     oklch(0.275 0.026 68);
  --plaque-line:oklch(0.36 0.035 75);

  /* type */
  --ink:        oklch(0.945 0.018 88);
  --ink-soft:   oklch(0.815 0.028 84);
  --ink-dim:    oklch(0.70 0.030 82);

  /* gilt + madder */
  --gilt:        oklch(0.760 0.105 84);
  --gilt-deep:   oklch(0.580 0.090 78);
  --madder:      oklch(0.435 0.130 14);
  --madder-hover:oklch(0.495 0.145 14);

  --frame-wood:  oklch(0.240 0.030 55);

  --serif-display: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --serif-text:    "Libre Caslon Text", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z scale */
  --z-head: 10;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

/* anchor smoothness handled in JS (native smooth scroll stalls some embedded renderers) */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  background-color: var(--wall);
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* canvas-weave grain tiled straight on the wall, no fixed compositing layer */
body {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, oklch(0.26 0.028 68 / 0.55), transparent 60%);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

section { padding-inline: clamp(1.25rem, 5vw, 4rem); scroll-margin-top: 4.5rem; }

a { color: inherit; }
::selection { background: var(--madder); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- skip link + honeypot ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 30;
  background: var(--gilt);
  color: oklch(0.22 0.03 60);
  padding: 0.6em 1.1em;
  border-radius: 2px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 1rem; }
.pawprint {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-text);
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--madder);
  color: var(--ink);
  border-color: oklch(0.55 0.14 14 / 0.55);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.12) inset, 0 10px 24px -12px oklch(0.30 0.11 14 / 0.85);
}
.btn-primary:hover { background: var(--madder-hover); }

.btn-ghost {
  color: var(--ink-soft);
  border-color: var(--plaque-line);
  background: transparent;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gilt-deep); }

.btn-quiet {
  color: var(--ink-soft);
  border-color: var(--plaque-line);
  padding: 0.55em 1.1em;
  font-size: 0.9375rem;
  background: oklch(0.215 0.02 60 / 0.75);
}
.btn-quiet:hover { color: var(--ink); border-color: var(--gilt-deep); }
.cta-short { display: none; }
@media (max-width: 480px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hero { padding-block: 1.6rem 2.4rem; }
  .hero-copy h1 { margin-bottom: 0.9rem; }
  .hero-sub { margin-bottom: 0.7rem; }
  .hero-note { margin-bottom: 1.2rem; }
  .hero-actions { gap: 0.7rem; }
  .hero-actions .btn-ghost {
    border: none;
    padding: 0.72em 0.3em;
    min-height: 44px;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: var(--gilt-deep);
    text-underline-offset: 4px;
  }
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: var(--z-head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.25rem, 5vw, 4rem);
  background: var(--wall-deep);
  border-bottom: 1px solid oklch(0.36 0.035 75 / 0.35);
}
.wordmark {
  font-family: var(--serif-display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.wordmark-corner {
  width: 0.72em; height: 0.72em;
  color: var(--gilt);
  align-self: center;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 78rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 9vh, 6.5rem) clamp(4rem, 10vh, 7rem);
}
.hero-copy, .hero-frame, .memorial-copy, .memorial-frame { min-width: 0; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  margin-bottom: 1.4rem;
  text-indent: -0.42em;
  hanging-punctuation: first;
}
@supports (hanging-punctuation: first) {
  .hero-copy h1 { text-indent: 0; }
}
.hero-sub {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 30ch;
  margin-bottom: 1.1rem;
}
.hero-note {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 1rem;
  max-width: 34ch;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- frames ---------- */
.frame {
  --lip: clamp(10px, 1.4vw, 18px);
  position: relative;
  background: var(--frame-wood);
  padding: var(--lip);
  border-radius: 1px;
  box-shadow:
    0 1px 0 oklch(0.9 0.09 85 / 0.28) inset,
    0 0 0 1px oklch(0.62 0.09 80 / 0.55),
    0 2px 6px oklch(0 0 0 / 0.45),
    0 24px 60px -18px oklch(0 0 0 / 0.75);
}
.frame::before {
  /* gold leaf bevel */
  content: "";
  position: absolute; inset: 4px;
  border: 2px solid oklch(0.68 0.1 82 / 0.85);
  border-bottom-color: oklch(0.5 0.08 76 / 0.85);
  border-right-color: oklch(0.56 0.085 78 / 0.85);
  pointer-events: none;
}
.frame::after {
  /* canvas inner shadow */
  content: "";
  position: absolute; inset: var(--lip);
  box-shadow: 0 2px 10px oklch(0 0 0 / 0.55) inset;
  pointer-events: none;
}

.picture-light {
  position: absolute;
  inset: -22% 0 auto;
  height: 70%;
  background: radial-gradient(55% 45% at 50% 12%, oklch(0.85 0.09 88 / 0.16), transparent 70%);
  pointer-events: none;
  filter: blur(2px);
}

/* ---------- before / after ---------- */
.hero-frame { position: relative; justify-self: end; width: min(100%, 34rem); margin: 0; }
.ba {
  position: relative;
  overflow: hidden;
  aspect-ratio: 864 / 1184;
  --pos: 38%;
  touch-action: pan-y;
}
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba-under { position: relative; }
.ba-over {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-over img { filter: saturate(0.96); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--gilt);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wall-deep);
  border: 1.5px solid var(--gilt);
  box-shadow: 0 4px 14px oklch(0 0 0 / 0.5);
}
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%; translate: 0 -50%;
  border: 5px solid transparent;
}
.ba-handle span::before { left: 8px;  border-right-color: var(--gilt); }
.ba-handle span::after  { right: 8px; border-left-color: var(--gilt); }
.ba:has(.ba-range:focus-visible) .ba-handle span {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
}
.ba-range {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-tag {
  position: absolute;
  pointer-events: none;
  bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  background: oklch(0.165 0.018 55 / 0.82);
  color: var(--ink-soft);
}
.ba-tag-photo { left: 0.9rem; }
.ba-tag-oil { right: 0.9rem; }

/* ---------- museum plaques ---------- */
.plaque {
  margin-top: 1rem;
  display: inline-block;
  background: linear-gradient(oklch(0.3 0.028 70), var(--plaque));
  border: 1px solid var(--plaque-line);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.35);
}
.plaque strong { color: var(--ink); font-weight: 700; }
.plaque-center { display: block; text-align: center; margin-inline: auto; }

/* ---------- the wall ---------- */
.wall { padding-block: clamp(3rem, 8vh, 6rem); max-width: 78rem; margin-inline: auto; }
.wall-intro { max-width: 56ch; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.wall-intro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.wall-intro p { color: var(--ink-soft); }

.salon {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}
.piece { margin: 0; min-width: 0; }
.piece[data-size="l"] { grid-column: span 3; }
.piece[data-size="m"] { grid-column: span 2; }
.piece[data-drop="1"] { padding-top: clamp(1.6rem, 4vw, 3.4rem); }
.piece[data-drop="2"] { padding-top: clamp(0.8rem, 2vw, 1.7rem); }

.swap {
  position: relative; overflow: hidden; aspect-ratio: 864 / 1184;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.swap img { width: 100%; height: 100%; object-fit: cover; }
.swap .swap-photo {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.piece.is-peeking .swap-photo { opacity: 1; }
@media (hover: hover) {
  .piece:hover .swap-photo { opacity: 1; }
}

.piece .frame { cursor: pointer; transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
@media (hover: hover) {
  .piece:hover .frame { transform: translateY(-3px); }
}

.wall-honesty {
  margin-top: clamp(2rem, 5vh, 3rem);
  color: var(--ink-dim);
  font-style: italic;
  max-width: 62ch;
}

/* ---------- how it works ---------- */
.how {
  padding-block: clamp(3rem, 8vh, 6rem);
  max-width: 72rem;
  margin-inline: auto;
}
.how h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: clamp(2rem, 5vh, 3.2rem); max-width: 24ch; }
.sittings {
  list-style: none;
  counter-reset: sitting;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
}
.sittings li {
  counter-increment: sitting;
  border-top: 1px solid var(--plaque-line);
  padding-top: 1.4rem;
  position: relative;
}
.sittings li::before {
  content: "Sitting " counter(sitting, upper-roman);
  display: block;
  font-style: italic;
  color: var(--gilt);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.sittings h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.sittings p { color: var(--ink-soft); font-size: 1rem; max-width: 60ch; }

/* ---------- promise ---------- */
.promise {
  background: linear-gradient(oklch(0.19 0.02 58), oklch(0.175 0.019 56));
  border-block: 1px solid oklch(0.36 0.035 75 / 0.3);
  padding-block: clamp(3rem, 8vh, 6rem);
}
.promise-inner { max-width: 60ch; margin-inline: auto; }
.promise h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1.4rem; }
.promise-lead { color: var(--ink-soft); margin-bottom: 1.4rem; }
.locks {
  list-style: none;
  padding: 0;
  margin-bottom: 1.6rem;
}
.locks li {
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  color: var(--ink);
}
.locks li + li { border-top: 1px solid oklch(0.36 0.035 75 / 0.25); }
.locks li::before {
  content: "";
  position: absolute;
  left: 0.2rem; top: 1.15em;
  width: 0.55rem; height: 0.55rem;
  border: 1.5px solid var(--gilt);
  transform: rotate(45deg);
}
.promise p:last-child { color: var(--ink-soft); }

/* ---------- sizes ---------- */
.sizes { padding-block: clamp(3rem, 8vh, 6rem); max-width: 72rem; margin-inline: auto; }
.sizes h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 0.8rem; }
.sizes-sub { color: var(--ink-soft); max-width: 52ch; margin-bottom: clamp(2.4rem, 6vh, 4rem); }

.elevation {
  position: relative;
  /* to-scale unit: capped so three frames + gaps always fit, never exceeding 4.6px/cm */
  --cm: min(calc((100vw - 190px) / 130), 4.6px);
}
.size-frames {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.4rem, 4vw, 3.2rem);
  padding-bottom: 1rem;
}
.size-frame {
  flex-shrink: 0;
  width: calc(var(--w) * var(--cm) + 2 * clamp(8px, 1vw, 12px));
  height: calc(var(--h) * var(--cm) + 2 * clamp(8px, 1vw, 12px));
  background: var(--frame-wood);
  border: none;
  padding: clamp(8px, 1vw, 12px);
  position: relative;
  cursor: pointer;
  box-shadow:
    0 0 0 1px oklch(0.62 0.09 80 / 0.5),
    0 14px 34px -14px oklch(0 0 0 / 0.7);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-family: var(--serif-text);
}
.size-frame::before {
  content: "";
  position: absolute;
  inset: clamp(8px, 1vw, 12px);
  background:
    linear-gradient(oklch(0.16 0.02 55 / 0.42), oklch(0.14 0.02 50 / 0.6)),
    image-set(url("assets/golden-oil-600.webp") type("image/webp"), url("assets/golden-oil-600.jpg") type("image/jpeg")) center 20% / cover;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.5) inset;
}
.size-frame .size-dim, .size-frame .size-price { text-shadow: 0 1px 6px oklch(0 0 0 / 0.8); }
.size-frame > * { position: relative; }
.size-frame:hover { transform: translateY(-3px); }
.size-frame.is-chosen {
  z-index: 1;
  box-shadow:
    0 0 0 2px var(--gilt),
    0 18px 44px -14px oklch(0 0 0 / 0.8);
  color: var(--ink);
}
.size-dim { font-size: clamp(0.8rem, 1.4vw, 1rem); }
.size-price { font-family: var(--serif-display); font-size: clamp(1.2rem, 2.4vw, 1.9rem); color: var(--ink); }
.size-badge {
  position: absolute;
  top: -0.95rem;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  background: var(--gilt);
  color: oklch(0.22 0.03 60);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28em 0.75em;
  border-radius: 2px;
}

.sofa { color: oklch(0.33 0.03 62); width: calc(160 * var(--cm)); margin-inline: auto; }
.sofa svg { width: 100%; }
.sofa-note {
  display: block;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.add-ons {
  list-style: none;
  padding: 0;
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.6rem;
  justify-content: center;
  color: var(--ink-soft);
}
.add-ons strong { color: var(--ink); }
.logistics {
  margin: 1.4rem auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- memorial ---------- */
.memorial {
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vh, 7rem);
  background:
    radial-gradient(90% 80% at 30% 40%, oklch(0.27 0.035 78 / 0.5), transparent 70%),
    linear-gradient(oklch(0.20 0.024 66), oklch(0.185 0.022 62));
  border-block: 1px solid oklch(0.36 0.035 75 / 0.3);
}
.memorial-frame { position: relative; width: min(100%, 26rem); justify-self: center; margin: 0; }
.picture-light-soft {
  background: radial-gradient(60% 50% at 50% 10%, oklch(0.88 0.07 85 / 0.22), transparent 70%);
}
.frame-soft { box-shadow: 0 0 0 1px oklch(0.62 0.09 80 / 0.4), 0 30px 70px -20px oklch(0 0 0 / 0.8); }
.memorial-copy h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  max-width: 18ch;
  margin-bottom: 1.3rem;
}
.memorial-copy p { color: var(--ink-soft); max-width: 46ch; margin-bottom: 1.1rem; }
.memorial-copy .btn { margin-top: 0.8rem; }

/* ---------- easel ---------- */
.easel { padding-block: clamp(3.5rem, 9vh, 7rem); max-width: 60rem; margin-inline: auto; text-align: center; }
.easel h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0.8rem; }
.easel-sub { color: var(--ink-soft); margin-bottom: clamp(2rem, 5vh, 3rem); }

.easel-stage { position: relative; }
.easel-stage > div { display: none; }
.easel-stage[data-state="empty"]    .canvas-blank { display: flex; }
.easel-stage[data-state="painting"] .canvas-painting,
.easel-stage[data-state="done"]     .canvas-done { display: block; }

.canvas-blank {
  margin-inline: auto;
  width: min(100%, 26rem);
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(80% 70% at 50% 35%, oklch(0.30 0.026 72), oklch(0.255 0.024 66));
  border: 1px dashed oklch(0.5 0.06 78 / 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.canvas-blank:hover, .canvas-blank.is-drag {
  border-color: var(--gilt);
  transform: translateY(-2px);
}
.easel-paw { width: 3rem; fill: oklch(0.5 0.06 78 / 0.8); }
.canvas-cta { font-family: var(--serif-display); font-size: 1.35rem; }
.canvas-cta span { display: block; font-family: var(--serif-text); font-size: 0.95rem; color: var(--ink-dim); margin-top: 0.2rem; }
.canvas-hint { font-size: 0.875rem; color: var(--ink-dim); max-width: 30ch; }

.canvas-painting { margin-inline: auto; width: min(100%, 26rem); }
.painting-veil {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  background: oklch(0.255 0.024 66);
}
.painting-veil.veil-fallback {
  background:
    radial-gradient(80% 70% at 50% 35%, oklch(0.30 0.026 72), oklch(0.255 0.024 66));
}
.painting-veil img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(0.5) contrast(0.92) brightness(0.8) saturate(0.7);
  animation: veilPulse 2.6s ease-in-out infinite alternate;
}
.painting-veil::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, oklch(0.9 0.08 85 / 0.14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: brush 2.2s var(--ease-out) infinite;
}
@keyframes brush { to { transform: translateX(100%); } }
@keyframes veilPulse { from { opacity: 0.75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .painting-veil::after { animation: none; }
  .painting-veil img { animation: none; }
}
.painting-demo-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-dim);
}
.painting-status {
  margin-top: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  min-height: 1.6em;
}
.painting-bar {
  margin: 0.8rem auto 0;
  width: min(100%, 18rem);
  height: 3px;
  background: oklch(0.34 0.03 70);
}
.painting-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gilt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.canvas-done .frame-preview {
  width: min(100%, 26rem);
  margin-inline: auto;
}
.preview-wrap { position: relative; overflow: hidden; }
.watermark {
  position: absolute;
  inset: auto 0 14%;
  text-align: center;
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  letter-spacing: 0.42em;
  color: oklch(1 0 0 / 0.5);
  text-shadow: 0 1px 4px oklch(0 0 0 / 0.5);
  transform: rotate(-14deg);
  pointer-events: none;
}
.demo-tag {
  position: absolute;
  top: 0.8rem; left: 50%;
  translate: -50% 0;
  max-width: calc(100% - 1.6rem);
  text-align: center;
  background: oklch(0.165 0.018 55 / 0.85);
  border: 1px solid var(--plaque-line);
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 0.35em 0.8em;
}
.done-actions { margin-top: 1.6rem; display: grid; gap: 0.9rem; justify-items: center; }
.done-line { font-style: italic; color: var(--ink-soft); }

.easel-fineprint {
  margin-top: clamp(2rem, 5vh, 3rem);
  color: var(--ink-dim);
  font-style: normal;
  font-size: 0.9rem;
  max-width: 52ch;
  margin-inline: auto;
}

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(3rem, 8vh, 6rem); max-width: 46rem; margin-inline: auto; }
.faq h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: clamp(1.6rem, 4vh, 2.6rem); }
.faq-list details {
  border-top: 1px solid var(--plaque-line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--plaque-line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.4rem 1.1rem 0.2rem;
  font-family: var(--serif-display);
  font-size: 1.18rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.4rem; top: 50%;
  translate: 0 -50%;
  color: var(--gilt);
  font-size: 1.5rem;
  transition: rotate 0.3s var(--ease-out);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p {
  padding: 0 0.2rem 1.3rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--wall-deep);
  border-top: 1px solid oklch(0.36 0.035 75 / 0.35);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center;
}
.foot-mark { font-family: var(--serif-display); font-size: 1.6rem; margin-bottom: 0.5rem; }
.foot-line { color: var(--ink-dim); font-size: 0.95rem; margin-bottom: 1.4rem; }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}
.foot-nav a { text-decoration-color: var(--gilt-deep); text-underline-offset: 3px; padding: 0.4em 0.2em; display: inline-block; }
.foot-copy { color: var(--ink-dim); font-size: 0.875rem; }

/* ---------- kickers, chips, notes ---------- */
.aim-kicker {
  font-style: italic;
  color: var(--gilt);
  font-size: 0.98rem;
  margin-bottom: 0.7rem;
}
.canvas-note {
  font-size: 0.82rem;
  color: var(--ink-dim);
  font-style: italic;
  max-width: 30ch;
}
.canvas-error {
  margin: 0.9rem auto 0;
  color: oklch(0.82 0.09 45);
  font-style: italic;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chip {
  font-family: var(--serif-text);
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--plaque-line);
  border-radius: 2px;
  padding: 0.5em 0.95em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.chip:hover { color: var(--ink); border-color: var(--gilt-deep); }
.chip.is-on { color: var(--ink); border-color: var(--gilt); box-shadow: 0 0 0 1px var(--gilt) inset; }
.done-note { font-size: 0.85rem; color: var(--ink-dim); }
.done-actions.is-demo #order-cta {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--plaque-line);
  box-shadow: none;
}
.done-actions.is-demo #order-cta:hover { color: var(--ink); border-color: var(--gilt-deep); }
.waitlist { display: grid; gap: 0.5rem; justify-items: center; width: min(100%, 26rem); margin-inline: auto; }
.waitlist-standalone {
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  padding-top: clamp(1.4rem, 3vh, 2rem);
  border-top: 1px solid oklch(0.36 0.035 75 / 0.25);
}
.waitlist-label { font-style: italic; color: var(--ink-soft); }
.waitlist-row { display: flex; gap: 0.6rem; width: 100%; }
.waitlist-row input {
  flex: 1;
  min-width: 0;
  font-family: var(--serif-text);
  font-size: 1rem;
  color: var(--ink);
  background: oklch(0.18 0.02 58);
  border: 1px solid var(--plaque-line);
  border-radius: 2px;
  padding: 0.7em 0.9em;
}
.waitlist-row input::placeholder { color: var(--ink-dim); }
.waitlist-row input:focus-visible { outline: 2px solid var(--gilt); outline-offset: 1px; }
.waitlist-msg { min-height: 1.4em; font-style: italic; color: var(--ink-soft); font-size: 0.92rem; }
.quiet-cta { text-align: center; margin-top: 1.6rem; }
.quiet-cta a {
  color: var(--ink-soft);
  font-style: italic;
  text-decoration-color: var(--gilt-deep);
  text-underline-offset: 4px;
}
.quiet-cta a:hover { color: var(--ink); }

/* ---------- reveal motion (enhances visible content) ---------- */
/* transform-only: content is always visible, motion is pure enhancement */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transform: translateY(16px);
    transition: transform 0.8s var(--ease-out);
  }
  .js .reveal.is-in { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.5rem 3.5rem;
  }
  .hero-frame { justify-self: center; width: min(100%, 28rem); }
  .hero-copy { text-align: center; }
  .hero-sub, .hero-note { margin-inline: auto; }
  .hero-actions { justify-content: center; }

  /* tablet hang: a deliberate two-up salon, stagger carried by the drops */
  .salon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .piece[data-size="l"], .piece[data-size="m"] { grid-column: span 1; }
  /* the wall closes on a single centered piece, hung like the room's last portrait */
  .piece:last-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 24rem); padding-top: clamp(1rem, 3vw, 2rem); }

  .sittings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sittings li:nth-child(3) { grid-column: 1 / -1; }

  .memorial { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .memorial-copy h2, .memorial-copy p { margin-inline: auto; }
}

@media (max-width: 560px) {
  .sittings { grid-template-columns: minmax(0, 1fr); }
  .sittings li:nth-child(3) { grid-column: auto; }
  /* two-up salon keeps the scroll to the easel civilized */
  .salon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 0.75rem; }
  .piece[data-size="l"], .piece[data-size="m"] { grid-column: span 1; padding-top: 0; }
  /* the wall still closes on one centered piece (must follow the span-1 rule) */
  .piece[data-size="l"]:last-child, .piece[data-size="m"]:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 20rem);
    padding-top: 0.9rem;
  }
  .plaque { font-size: 0.78rem; padding: 0.4rem 0.6rem; }

  /* frames rest on a shared picture rail; tags share one baseline beneath */
  .size-frames { align-items: flex-end; padding-bottom: 4.2rem; }
  .size-frame { overflow: visible; }
  .size-frame .size-dim, .size-frame .size-price {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    white-space: nowrap;
    text-shadow: none;
  }
  .size-frame .size-dim { top: calc(100% + 0.5rem); font-size: 0.78rem; }
  .size-frame .size-price { top: calc(100% + 1.6rem); font-size: 1.15rem; }
  .ba-tag { font-size: 0.68rem; }
}


@media (pointer: coarse) {
  .chip, .btn-quiet { padding: 0.72em 1.05em; min-height: 44px; }
  .ba-range { min-height: 44px; }
  .foot-nav a { padding: 0.75em 0.4em; }
  .site-foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ---------- mobile bottom rail ---------- */
.bottom-rail {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-head);
  display: none;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: linear-gradient(oklch(0.165 0.018 55 / 0), oklch(0.165 0.018 55 / 0.96) 35%);
  text-align: center;
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
}
.bottom-rail .btn { width: min(100%, 22rem); }
.bottom-rail.is-shown { transform: none; visibility: visible; transition-delay: 0s; }
@media (pointer: coarse) {
  .bottom-rail { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-rail { transition: none; }
}

/* ---------- legal pages ---------- */
.legal {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2rem) 5rem;
}
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.legal-updated { color: var(--ink-dim); font-style: italic; font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.35rem; margin: 1.8rem 0 0.5rem; }
.legal p { color: var(--ink-soft); margin-bottom: 0.8rem; }
.legal a { text-decoration-color: var(--gilt-deep); text-underline-offset: 3px; }

/* ============================================================
   COMMERCE LAYER (v2): style lines + order configurator
   ============================================================ */

/* ---------- style lines ---------- */
.styles { padding-block: clamp(3rem, 8vh, 6rem); max-width: 78rem; margin-inline: auto; }
.styles-intro { max-width: 54ch; margin-bottom: clamp(2rem, 5vh, 3.4rem); }
.styles-intro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1rem; }
.styles-intro p { color: var(--ink-soft); }
.style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.style-card { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.style-frame { width: 100%; margin-bottom: 1.2rem; }
.style-frame img { width: 100%; aspect-ratio: 864 / 1184; object-fit: cover; }
.style-card h3 { font-family: var(--serif-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.style-card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.7rem; }
.style-price { color: var(--gilt); font-style: italic; margin-bottom: 1rem !important; }
.style-card .btn { margin-top: auto; }
.style-card-premium {
  padding: clamp(1rem, 2vw, 1.6rem);
  border: 1px solid oklch(0.5 0.08 82 / 0.4);
  border-radius: 2px;
  background: linear-gradient(oklch(0.2 0.024 66 / 0.6), oklch(0.18 0.022 62 / 0.3));
}
.style-crest {
  align-self: center;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.22 0.03 60);
  background: var(--gilt);
  padding: 0.3em 0.9em;
  border-radius: 2px;
}
.opt-tag {
  font-family: var(--serif-text);
  font-size: 0.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--gilt);
  border: 1px solid var(--gilt-deep);
  border-radius: 2px;
  padding: 0.15em 0.5em;
  margin-left: 0.4em;
}

/* ---------- the order configurator ---------- */
.builder {
  width: min(100%, 30rem);
  margin: 1.4rem auto 0;
  text-align: left;
  display: grid;
  gap: 1.3rem;
}
.builder-group { border: none; padding: 0; margin: 0; }
.builder-group legend {
  font-family: var(--serif-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
  padding: 0;
}
.opt {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--plaque-line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  margin-bottom: 0.5rem;
}
.opt:last-child { margin-bottom: 0; }
.opt:hover { border-color: var(--gilt-deep); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border: 1.5px solid var(--plaque-line);
  border-radius: 50%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.opt-check::before { border-radius: 3px; }
.opt:has(input:checked) {
  border-color: var(--gilt);
  background: oklch(0.24 0.026 66 / 0.5);
}
.opt:has(input:checked)::before {
  border-color: var(--gilt);
  box-shadow: inset 0 0 0 4px var(--gilt);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--gilt); outline-offset: 2px; }
.opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.opt-name { font-size: 1rem; color: var(--ink); }
.opt-note { font-size: 0.82rem; color: var(--ink-dim); }
.opt-from, .opt-price { font-family: var(--serif-display); color: var(--ink); white-space: nowrap; }
.opt-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--serif-text);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gilt);
}
.opt-premium { border-color: oklch(0.5 0.08 82 / 0.5); }

.handpainted-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid var(--gilt-deep);
  background: oklch(0.2 0.024 66 / 0.4);
}
.builder-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--plaque-line);
}
.builder-total span { color: var(--ink-soft); }
.builder-total strong { font-family: var(--serif-display); font-size: 1.9rem; color: var(--ink); font-weight: 400; }
.btn-checkout { width: 100%; font-size: 1.05rem; }
.checkout-msg { min-height: 1.3em; font-style: italic; color: var(--ink-soft); font-size: 0.92rem; text-align: center; }
.checkout-msg[data-error] { color: oklch(0.82 0.09 45); }
.builder-guarantee {
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-align: center;
  max-width: 40ch;
  margin-inline: auto;
  line-height: 1.6;
}
.done-secondary { margin-top: 1.4rem; display: grid; gap: 1rem; justify-items: center; }

@media (pointer: coarse) {
  .opt { padding: 0.85rem 0.9rem; min-height: 44px; }
}

/* --- trust chips (hero) + secure-checkout note (v2 fixes) --- */
.trust-chips{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem .9rem;margin:1.15rem 0 0;padding:0}
.trust-chips li{position:relative;font-family:var(--font-text,Georgia,serif);font-size:.78rem;letter-spacing:.02em;color:var(--ink-soft,#6b5d47);padding-left:1.15rem}
.trust-chips li::before{content:"";position:absolute;left:0;top:.18em;width:.85em;height:.85em;border-radius:50%;
  background:radial-gradient(circle at 50% 45%, var(--gilt,#c9a45c) 0 42%, transparent 46%);
  box-shadow:inset 0 0 0 1px color-mix(in oklab, var(--gilt,#c9a45c) 55%, transparent)}
.checkout-secure{margin:.6rem 0 0;font-family:var(--font-text,Georgia,serif);font-size:.74rem;color:var(--ink-soft,#6b5d47);text-align:center;letter-spacing:.01em}
@media (max-width:640px){.trust-chips{gap:.4rem .7rem}.trust-chips li{font-size:.72rem}}

/* --- founder's note: an honest, signed placard where we admit we are new --- */
.founder-note{max-width:52ch;margin:1.6rem auto 0;padding:1.4rem 1.6rem;border:1px solid color-mix(in oklab, var(--gilt,#c9a45c) 42%, transparent);
  border-radius:3px;background:color-mix(in oklab, var(--ground,#241c12) 82%, #000 6%);position:relative}
.founder-note::before{content:"";position:absolute;inset:5px;border:1px solid color-mix(in oklab, var(--gilt,#c9a45c) 16%, transparent);border-radius:2px;pointer-events:none}
.founder-body{font-family:var(--font-text,Georgia,serif);font-size:.98rem;line-height:1.62;color:var(--ink,#f0e7d8);margin:0}
.founder-sign{font-family:var(--font-display,"Libre Caslon Display",Georgia,serif);font-style:italic;font-size:.9rem;color:var(--gilt,#c9a45c);
  margin:.9rem 0 0;letter-spacing:.02em}
@media (max-width:640px){.founder-note{padding:1.15rem 1.2rem;margin-top:1.2rem}.founder-body{font-size:.92rem}}
