﻿/* Pigmenta — a colourman's shop in north light. Plaster and paper, ink, one madder accent;
   the colour on the page comes from the paintings themselves. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/iserif-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/iserif-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/iserif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/iserif-italic-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/isans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/isans-latinext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F4F0E8;
  --paper-2: #ECE6DB;
  --plaster: #E6DFD2;
  --card: #FBF9F5;
  --ink: #1C1A17;
  --ink-2: #4A453E;
  --muted: #7A7368;
  --line: #DCD4C6;
  --line-2: #CFC6B6;
  --madder: #A3343F;
  --madder-2: #8C2A34;
  --ochre: #C68E27;
  --viridian: #2E6E5B;
  --amber: #A86A12;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gut: 24px;
  --nav-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* A whisper of paper grain over everything. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--madder); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.02; text-wrap: balance; }
.display em { font-style: italic; color: var(--madder); }
h1.display { font-size: clamp(3.3rem, 7vw, 6.5rem); line-height: .96; }
.h2 { font-size: clamp(2.5rem, 4.8vw, 4.3rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--madder); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { justify-items: center; text-align: center; }
.sec-head.center .lede { margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; text-decoration: none;
  font: 500 15.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease), border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 10px 24px -14px rgba(28,26,23,.9); }
.btn-primary:hover { background: #2B2823; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 0 0 4px rgba(163,52,63,.18), 0 16px 30px -16px rgba(28,26,23,.9); }
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { background: #8F887D; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2B2823; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-quiet { padding: 0 6px; min-height: 44px; border-radius: 0; color: var(--ink); background: linear-gradient(currentColor, currentColor) 6px calc(100% - 10px) / calc(100% - 12px) 1px no-repeat; }
.btn-quiet:hover { background-size: 0 1px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip svg { width: 15px; height: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(244, 240, 232, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-word { font: 400 27px/1 var(--serif); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { font: 600 11.5px/1 var(--sans); letter-spacing: .08em; padding: 7px 9px; border-radius: 999px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero-light { position: absolute; inset: -20% -10% 0 30%; pointer-events: none; }
.hero-light::before {
  /* North window light falling across the plaster: four panes, softly out of focus. */
  content: ""; position: absolute; left: 18%; top: 4%; width: 62%; height: 82%;
  background-image: linear-gradient(#FFFCF4, #FFFCF4), linear-gradient(#FFFCF4, #FFFCF4), linear-gradient(#FFFCF4, #FFFCF4), linear-gradient(#FFFCF4, #FFFCF4);
  background-size: 46.5% 46.5%;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
  background-repeat: no-repeat;
  transform: perspective(900px) rotateY(-24deg) rotateZ(-8deg) skewX(-12deg);
  filter: blur(22px); opacity: .75;
}
.hero-light::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 58% 42%, rgba(255,251,240,.75), transparent 70%); mix-blend-mode: soft-light; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lede { max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.assure { display: grid; gap: 9px; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: 10px; }
.assure svg { width: 17px; height: 17px; color: var(--viridian); flex: none; }

.hero-art { display: grid; justify-items: center; gap: 22px; }
.hang { width: min(100%, 470px); }
.stretch { position: relative; aspect-ratio: 4 / 5; background: #FBF9F4; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(60,48,36,.06), 1px 2px 3px rgba(60,48,36,.16), 14px 22px 30px -14px rgba(60,48,36,.42), 40px 60px 80px -40px rgba(60,48,36,.45); }
.stretch::after { /* the canvas edge catching the light */
  content: ""; position: absolute; inset: 0; border-radius: 2px; pointer-events: none;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.55), inset -1px -1px 0 rgba(0,0,0,.08); }
.stretch canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 2px; transition: opacity 1.1s ease; }
#heroCanvasB { opacity: 0; }
.hero-cap { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; width: min(100%, 470px); font-size: 13.5px; color: var(--ink-2); }
.cap-title { font: italic 400 19px/1.2 var(--serif); color: var(--ink); }
.cap-pot { display: inline-flex; align-items: center; gap: 8px; justify-self: end; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 0 rgba(255,255,255,.6); transition: background-color .3s; flex: none; }
.cap-bar { grid-column: 1 / -1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.cap-bar i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- ribbon ---------- */
.ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper-2); }
.ribbon-track { display: flex; width: max-content; gap: 0; animation: ribbon 60s linear infinite; }
.ribbon-track span { font: italic 400 26px/1 var(--serif); color: var(--ink-2); white-space: nowrap; padding: 0 26px; display: inline-flex; align-items: center; gap: 52px; }
.ribbon-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--madder); opacity: .75; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- studio ---------- */
.studio { padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 9vw, 120px); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.stage-col { display: grid; gap: 18px; min-width: 0; }
.stage {
  position: relative; height: clamp(440px, 74vh, 800px); border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,252,244,.7), transparent 60%),
    linear-gradient(160deg, #EAE4D8, #DFD7C9);
  box-shadow: inset 0 0 0 1px rgba(60,48,36,.06);
}
.drop { position: absolute; inset: 16px; border: 1.5px dashed var(--line-2); border-radius: 4px; display: grid; place-items: center; text-align: center; transition: border-color .25s, background-color .25s; }
.drop.over { border-color: var(--ink); background: rgba(255,255,255,.35); }
.drop-inner { display: grid; justify-items: center; gap: 12px; padding: 24px; max-width: 420px; }
.drop-icon { width: 54px; height: 54px; color: var(--ink-2); margin-bottom: 4px; }
.drop-title { font: 400 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--serif); }
.drop-or { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.drop-hint { font-size: 13.5px; color: var(--muted); }
.drop-error { font-size: 14px; color: var(--madder); min-height: 1em; }
.btn input.sr-only { pointer-events: none; }
label.btn, label.chip { cursor: pointer; }

.art { position: absolute; inset: 0; display: none; place-items: center; }
[data-state="result"] .art, [data-state="working"] .art { display: grid; }
[data-state="result"] .drop, [data-state="working"] .drop { display: none; }
.art-frame { position: relative; background: #FBF9F4; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(60,48,36,.06), 1px 2px 3px rgba(60,48,36,.16), 14px 22px 30px -14px rgba(60,48,36,.42), 40px 60px 80px -40px rgba(60,48,36,.42);
  transition: opacity .4s; }
.art-frame .layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; border-radius: 2px; object-fit: cover; }
.art-frame .layer.on { opacity: 1; }
.lens { position: absolute; width: 190px; height: 190px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.9);
  transition: opacity .2s, transform .2s var(--ease); box-shadow: 0 0 0 1px rgba(28,26,23,.25), 0 0 0 6px rgba(251,249,244,.85), 0 18px 40px -12px rgba(28,26,23,.55); background: #FBF9F4; }
.lens.on { opacity: 1; transform: none; }
.wall { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; pointer-events: none; }
.wall.on { opacity: 1; }
.wall-note { position: absolute; left: 16px; bottom: 14px; font-size: 12.5px; color: rgba(255,255,255,.92); text-shadow: 0 1px 6px rgba(0,0,0,.35); opacity: 0; transition: opacity .4s; }
.wall.on ~ .wall-note { opacity: 1; }
[data-view-active="wall"] .art-frame { opacity: 0; }

.working { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px); display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 14px; border-radius: 999px; background: rgba(251,249,244,.92); box-shadow: 0 10px 30px -12px rgba(28,26,23,.45);
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-state="working"] .working, .stage.busy .working { opacity: 1; transform: translate(-50%, 0); }
.working-pencil { width: 34px; height: 14px; background: linear-gradient(90deg, var(--ink) 0 0) left center / 0 1.5px no-repeat; animation: scribble 1.1s var(--ease) infinite; position: relative; }
.working-pencil::after { content: ""; position: absolute; right: -4px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--madder); animation: dot 1.1s var(--ease) infinite; }
@keyframes scribble { 0% { background-size: 0 1.5px; } 60%, 100% { background-size: 100% 1.5px; } }
@keyframes dot { 0%, 100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }

.stage-bar { display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
[data-state="result"] .stage-bar, [data-state="working"] .stage-bar { display: flex; }
.tabs { display: inline-flex; padding: 4px; gap: 2px; background: var(--paper-2); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 8px 15px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background-color .25s, color .25s, box-shadow .25s; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(28,26,23,.12), 0 0 0 1px var(--line); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.now { display: none; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; font-size: 14px; color: var(--ink-2); }
.now.on { display: grid; }
.now .sw { width: 16px; height: 16px; }
.now-bar { grid-column: 1 / -1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.now-bar i { display: block; height: 100%; width: 0; background: var(--ink); }
.lens-hint { font-size: 13px; color: var(--muted); display: none; }
.lens-hint.on { display: block; }

.samples { display: grid; gap: 12px; }
.samples p { font-size: 14px; color: var(--muted); }
.sample-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sample { display: grid; gap: 6px; justify-items: start; font-size: 13px; color: var(--ink-2); }
.sample img { width: 76px; height: 95px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(60,48,36,.1), 0 8px 16px -10px rgba(60,48,36,.6); transition: transform .35s var(--ease), box-shadow .35s; }
.sample:hover img { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 0 0 1px rgba(60,48,36,.12), 0 14px 22px -12px rgba(60,48,36,.7); }
.sample[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--ink), 0 8px 16px -10px rgba(60,48,36,.6); }
[data-state="result"] .samples p, [data-state="working"] .samples p { display: none; }
[data-state="result"] .sample img, [data-state="working"] .sample img { width: 48px; height: 60px; }
[data-state="result"] .sample span, [data-state="working"] .sample span { display: none; }

.palette { display: none; gap: 14px; padding-top: 6px; }
[data-state="result"] .palette { display: grid; }
.palette-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.palette-head h3 { font: 400 28px/1.1 var(--serif); }
.palette-head p { font-size: 13.5px; color: var(--muted); }
.pots { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.pot { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; padding: 9px 12px 9px 9px; border-radius: 6px; text-align: left; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s var(--ease); }
.pot:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.pot[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.pot-lid { grid-row: span 2; position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--sans); font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), inset 0 0 0 4px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.25); }
.pot-name { font-size: 13px; line-height: 1.25; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pot-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pot.painting { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink-2), 0 8px 18px -12px rgba(28,26,23,.6); }

/* config */
.config { position: sticky; top: calc(var(--nav-h) + 14px); display: grid; gap: 18px; padding: 22px 22px 20px; background: var(--card); border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(60,48,36,.5); }
.cfg-group { display: grid; gap: 8px; }
.cfg-group h3, .stats dt { font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opt { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; padding: 10px 13px; border-radius: 6px; text-align: left; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s, color .2s; }
.opt:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.opt[aria-checked="true"] { background: var(--ink); color: var(--paper); box-shadow: 0 10px 22px -14px rgba(28,26,23,.8); }
.opt[aria-checked="true"] .opt-s { color: rgba(244,240,232,.66); }
.opt-t { font: 400 20px/1.1 var(--serif); }
.opt-s { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.opt-p { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.levels, .finish { display: grid; gap: 6px; }
.finish .opt-t { font-size: 19px; }
.orient { display: flex; gap: 8px; }
.orient button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.orient button[aria-checked="true"] { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.orient i { display: inline-block; border: 1.5px solid currentColor; border-radius: 1.5px; }
.o-p { width: 10px; height: 13px; } .o-l { width: 14px; height: 10px; }
.gift, .consent { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.gift input, .consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { width: 20px; height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff; transition: background-color .2s, box-shadow .2s; }
.gift input:checked + .tick, .consent input:checked + .tick { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.5 2.5 5.2-5.6' fill='none' stroke='%23F4F0E8' stroke-width='1.7'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.gift input:focus-visible + .tick, .consent input:focus-visible + .tick { outline: 2px solid var(--madder); outline-offset: 2px; }
.gift b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.stats { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
[data-state="result"] .stats { display: grid; }
.stats div { background: var(--card); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.stats dd { font: 400 30px/1 var(--serif); font-variant-numeric: tabular-nums; min-height: 30px; display: flex; align-items: center; }
.stats dd small { font: 400 14px var(--sans); color: var(--muted); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--ink); }
.quality { gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.quality::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--viridian); }
.quality.warn::before { background: var(--amber); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.total span { font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.total strong { font: 400 40px/1 var(--serif); font-variant-numeric: tabular-nums; }
.ship, .note, .includes { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ship { color: var(--ink-2); margin-top: -6px; }
.note { margin-top: -10px; }
.includes { padding-top: 12px; border-top: 1px solid var(--line); }
.quality { display: none; }
[data-state="result"] .quality:not([hidden]) { display: flex; }

/* ---------- how ---------- */
.how { padding: clamp(72px, 10vw, 130px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.steps { display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: 74px 1fr; gap: 18px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step-n { font: italic 400 46px/0.9 var(--serif); color: var(--madder); }
.steps h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 30em; }
.how-photo { position: relative; }
.how-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2.25; object-fit: cover; border-radius: 4px; box-shadow: 0 40px 70px -40px rgba(60,48,36,.6); }
.quote { position: absolute; left: clamp(-40px, -3vw, -16px); bottom: -28px; max-width: 15ch; padding: 22px 26px; background: var(--ink); color: var(--paper); font: italic 400 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--serif); border-radius: 3px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }

/* ---------- kit ---------- */
.kit { padding: clamp(80px, 11vw, 150px) 0; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.kit-photo img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 40px 70px -40px rgba(60,48,36,.6); }
.kit-list { display: grid; }
.kit-list > div { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.kit-list > div:last-child { border-bottom: 1px solid var(--line); }
.kit-list dt { display: flex; align-items: baseline; gap: 16px; }
.kit-list dt span { font: italic 400 22px/1 var(--serif); color: var(--madder); width: 18px; }
.kit-list dt b { font: 400 25px/1.15 var(--serif); }
.kit-list dd { padding-left: 34px; color: var(--ink-2); font-size: 16px; }

/* ---------- diff ---------- */
.diff { padding: clamp(72px, 9vw, 120px) 0; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.diff-table { max-width: 920px; margin: 0 auto; }
.diff-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.diff-row:last-child { border-bottom: 1px solid var(--line); }
.diff-row span { padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.diff-row span:first-child { color: var(--muted); }
.diff-row span:last-child { background: var(--paper); font-weight: 500; }
.diff-row:not(.diff-head) span:first-child::before { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(45deg, transparent 45%, var(--muted) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--muted) 45% 55%, transparent 55%); opacity: .7; }
.diff-row:not(.diff-head) span:last-child::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--madder) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3C/svg%3E") center/16px no-repeat; }
.diff-head span { font: 600 11.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 14px 24px; }
.diff-head span:last-child { color: var(--ink); }

/* ---------- gallery ---------- */
.gallery { padding: clamp(80px, 11vw, 150px) 0; }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.gal-card { display: grid; gap: 14px; align-content: start; }
.cmp { position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; background: var(--plaster); box-shadow: 0 0 0 1px rgba(60,48,36,.06), 0 30px 50px -32px rgba(60,48,36,.6); touch-action: pan-y; }
.cmp canvas, .cmp .cmp-wait { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp .cmp-wait { object-fit: cover; }
.cmp canvas { opacity: 0; transition: opacity .9s var(--ease); }
.cmp.ready canvas { opacity: 1; }
.cmp .cmp-tag, .cmp .cmp-handle, .cmp-photo { opacity: 0; transition: opacity .6s; }
.cmp.ready .cmp-tag, .cmp.ready .cmp-handle, .cmp.ready .cmp-photo { opacity: 1; }
.cmp .cmp-paint { clip-path: inset(0 0 0 var(--cut, 50%)); }
.cmp-photo { position: absolute; left: 12px; bottom: 14px; width: 27%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid #FBF9F5; border-radius: 1px; box-shadow: 0 10px 20px -8px rgba(28,26,23,.55); transform: rotate(-3.5deg); pointer-events: none; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); box-shadow: 0 0 10px rgba(0,0,0,.25); pointer-events: none; }
.cmp-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(251,249,244,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%231C1A17' stroke-width='1.6'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.cmp-tag { position: absolute; top: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border-radius: 3px; background: rgba(251,249,244,.88); color: var(--ink); pointer-events: none; }
.cmp-tag.l { left: 12px; } .cmp-tag.r { right: 12px; }
.gal-card h3 { font: italic 400 23px/1.15 var(--serif); }
.gal-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gal-try { justify-self: start; font-size: 14px; padding: 2px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); }
.gal-try:hover { background-size: 0 1px; }

/* ---------- pricing ---------- */
.pricing { padding: clamp(80px, 11vw, 140px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price { position: relative; display: grid; gap: 18px; align-content: start; padding: 30px 26px 26px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.price .p-size { font: 400 34px/1 var(--serif); }
.price .p-size small { font: 400 16px var(--sans); color: var(--muted); margin-left: 4px; }
.price .p-art { height: 150px; display: grid; place-items: end center; padding-bottom: 6px; }
.price .p-art i { height: auto; }
.price .p-art i { display: block; background: linear-gradient(135deg, #EDE6D9, #DCD2C1); border-radius: 1.5px; box-shadow: 0 0 0 1px rgba(60,48,36,.1), 6px 10px 18px -8px rgba(60,48,36,.45); position: relative; overflow: hidden; }
.price .p-amt { font: 400 54px/1 var(--serif); font-variant-numeric: tabular-nums; }
.price ul { display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.price li { display: flex; gap: 10px; align-items: baseline; }
.price li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--madder); flex: none; transform: translateY(-2px); }
.price .btn { margin-top: 6px; }
.price.pick { background: var(--ink); color: var(--paper); box-shadow: 0 30px 60px -30px rgba(28,26,23,.7); }
.price.pick ul { color: rgba(244,240,232,.78); }
.price.pick .p-size small { color: rgba(244,240,232,.6); }
.price.pick .btn { background: var(--paper); color: var(--ink); }
.p-badge { position: absolute; top: 16px; right: 16px; font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px; border-radius: 999px; background: var(--madder); color: #fff; }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 11vw, 140px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 24px/1.2 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center/14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center/1.5px 14px no-repeat; transition: transform .35s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--ink-2); }

/* ---------- closing ---------- */
.closing { background: var(--ink); color: var(--paper); padding: clamp(90px, 13vw, 170px) 0; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(198,142,39,.14), transparent 70%); }
.closing-inner { position: relative; display: grid; justify-items: center; gap: 40px; text-align: center; }
.salon { --u: clamp(1.7px, .26vw, 3.6px); display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.6vw, 44px); margin-bottom: clamp(10px, 2vw, 30px); min-height: calc(65 * var(--u) * 1.25); }
.salon-piece { position: relative; width: calc(var(--w) * var(--u) * 1.25); aspect-ratio: 4 / 5; margin: 0; }
.salon-piece canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1px; background: #2A2723; opacity: .25; transition: opacity 1.4s var(--ease);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 8px 26px 40px -16px rgba(0,0,0,.9); }
.salon-piece.lit canvas { opacity: 1; }
.salon-piece::before { /* the picture light's glow on the wall */
  content: ""; position: absolute; left: -50%; right: -50%; top: -55%; height: 150%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,222,170,.16), rgba(255,222,170,.05) 55%, transparent); opacity: 0; transition: opacity 1.6s var(--ease); }
.salon-piece.lit::before { opacity: 1; }
.salon-piece::after { /* the brass lamp */
  content: ""; position: absolute; left: 32%; right: 32%; top: -14px; height: 5px; border-radius: 3px; background: linear-gradient(#C9A46A, #8A6B3A); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.closing .h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); max-width: 15ch; }
.closing .display em { color: #E2A86B; }

/* ---------- footer ---------- */
.foot { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--paper); font-size: 13.5px; color: var(--muted); }
.foot-inner { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px 48px; align-items: start; }
.foot-brand { font: 400 26px/1 var(--serif); color: var(--ink); margin-bottom: 8px; }
.foot a { color: var(--ink-2); }

/* ---------- buy bar (phones) ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: rgba(251,249,244,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -20px rgba(28,26,23,.4); transform: translateY(110%); transition: transform .45s var(--ease); }
.buybar.show { transform: none; }
.buybar > div { display: grid; line-height: 1.15; }
.buybar-size { font-size: 12.5px; color: var(--muted); }
.buybar strong { font: 400 28px/1 var(--serif); }
.buybar .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }

/* ---------- cropper ---------- */
.cropper { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(20,18,16,.72); padding: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cropper[hidden] { display: none; }
.cropper-card { width: min(100%, 720px); max-height: 100%; display: grid; gap: 12px; padding: 22px; border-radius: 10px; background: var(--card); }
.cropper-card h3 { font: 400 30px/1.1 var(--serif); }
.cropper-card > p { font-size: 14px; color: var(--muted); }
.crop-area { position: relative; height: min(62vh, 560px); overflow: hidden; border-radius: 4px; background: #1C1A17; touch-action: none; cursor: grab; user-select: none; }
.crop-area:active { cursor: grabbing; }
.crop-area img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-frame { position: absolute; box-shadow: 0 0 0 9999px rgba(20,18,16,.6); outline: 1.5px solid rgba(255,255,255,.95); pointer-events: none; }
.crop-frame i { position: absolute; background: rgba(255,255,255,.35); }
.crop-frame i:nth-child(1) { left: 33.33%; top: 0; bottom: 0; width: 1px; }
.crop-frame i:nth-child(2) { left: 66.66%; top: 0; bottom: 0; width: 1px; }
.crop-frame i:nth-child(3) { top: 33.33%; left: 0; right: 0; height: 1px; }
.crop-frame i:nth-child(4) { top: 66.66%; left: 0; right: 0; height: 1px; }
.cropper-actions { display: flex; justify-content: flex-end; gap: 12px; }

/* ---------- checkout ---------- */
.checkout { width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 50px 120px -40px rgba(0,0,0,.6); overflow: auto; }
.checkout::backdrop { background: rgba(20,18,16,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.checkout[open] { animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.co-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.co-close button { width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); background: rgba(251,249,244,.9); }
.co-close button:hover { background: var(--paper-2); }
.co-grid { display: grid; grid-template-columns: 340px 1fr; }
.co-summary { display: grid; gap: 18px; align-content: start; padding: 34px 30px; background: var(--paper-2); }
.co-art { padding: 18px; background: linear-gradient(160deg, #EAE4D8, #DFD7C9); border-radius: 4px; display: grid; place-items: center; }
.co-art canvas { width: 100%; height: auto; box-shadow: 1px 2px 3px rgba(60,48,36,.16), 10px 16px 24px -12px rgba(60,48,36,.45); }
.co-lines { display: grid; gap: 8px; font-size: 14px; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.co-lines li b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line-2); }
.co-total span { font: 600 11.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.co-total strong { font: 400 38px/1 var(--serif); }
.co-pay { font-size: 13px; color: var(--muted); }
.co-form, .co-done { display: grid; gap: 18px; align-content: start; padding: 34px 34px 30px; }
.co-form h2, .co-done h2 { font-size: 40px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.f.wide { grid-column: 1 / -1; }
.f input, .f select, .f textarea { width: 100%; padding: 12px 14px; border-radius: 6px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 16px; color: var(--ink); transition: box-shadow .2s; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.f.bad input, .f.bad select { box-shadow: inset 0 0 0 1.5px var(--madder); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-abroad { font-size: 13.5px; color: var(--amber); }
.consent { grid-template-columns: auto 1fr; font-size: 13.5px; }
.consent.bad .tick { box-shadow: inset 0 0 0 1.5px var(--madder); }
.co-error { font-size: 14px; color: var(--madder); min-height: 0; }
.co-error:empty { display: none; }
.co-done { justify-items: start; padding-top: 60px; }
.co-done p:not(.eyebrow) { color: var(--ink-2); max-width: 32em; }

/* ---------- reveal ---------- */
/* Only what starts below the fold is hidden, and only once the script has run. */
.reveal.pre { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }
.hero-copy > * { animation: heroIn 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero-art { animation: heroArt 1.4s var(--ease) .1s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes heroArt { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.scene .hero-copy > *, .scene .hero-art { animation: none; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; max-width: min(92vw, 460px); transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14.5px; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .hero-grid, .how-grid, .kit-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .hang { width: min(78%, 420px); }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
  .config { position: static; }
  .stage { height: auto; aspect-ratio: 4 / 4.6; }
  .faq-grid .sec-head { position: static; }
  .quote { left: 16px; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { grid-template-columns: 110px 1fr; align-items: start; padding: 24px; }
  .co-art { grid-row: span 3; padding: 10px; }
  .co-total, .co-pay { grid-column: 2; }
  .buybar { display: flex; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 16px; }
  .nav-cta { display: none; }
  .hero { padding-top: 12px; }
  .hang { width: min(84%, 360px); }
  .hero-cap { width: min(84%, 360px); }
  .cta-row .btn-primary { width: 100%; }
  .ribbon-track span { font-size: 21px; padding: 0 18px; gap: 36px; }
  .stage { aspect-ratio: 4 / 5.2; }
  .stage-bar { justify-content: flex-start; }
  .tabs button { padding: 8px 12px; font-size: 13.5px; }
  .config { padding: 20px; }
  .gal-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  [data-state="result"] .stats { grid-template-columns: 1fr 1fr; }
  .stats dd { font-size: 26px; }
  .co-summary { padding-right: 56px; }
  .hero-cap { grid-template-columns: 1fr; gap: 6px; }
  .cap-pot { justify-self: start; }
  .cap-title { font-size: 18px; }
  .diff-row span { padding: 16px 14px; font-size: 14.5px; gap: 10px; }
  .diff-head span { padding: 12px 14px; }
  .steps li { grid-template-columns: 54px 1fr; }
  .step-n { font-size: 38px; }
  .kit-list dd { padding-left: 34px; font-size: 15px; }
  .faq-list summary { font-size: 21px; }
  .faq-list details p { padding-right: 0; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .co-form, .co-done { padding: 26px 20px 24px; }
  .co-form h2, .co-done h2 { font-size: 34px; }
  .checkout { width: 100%; max-height: 100%; height: 100%; max-width: none; border-radius: 0; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon-track { animation: none; }
  .reveal.pre { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-art { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
