/* Greda · demo ficticia de Alza. Bone paper, kiln ink, glaze accents. */
@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@property --glaze { syntax: "<color>"; inherits: true; initial-value: #1f37a6; }
@property --glaze-deep { syntax: "<color>"; inherits: true; initial-value: #1c3191; }
@property --on-glaze { syntax: "<color>"; inherits: true; initial-value: #f6f2ea; }

:root {
  --paper: #f2ede3;
  --paper-2: #e9e1d2;
  --ink: #1d1a16;
  --ink-2: #514a40;
  --rule: #cbbfa9;
  --clay: #d8c5a8;
  --clay-ink: #3b2a1c;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Bricolage", system-ui, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4.2vw, 64px);
  --max: 1360px;
  --strip-h: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body[data-finish="cobalt"] { --glaze: #1f37a6; --glaze-deep: #1c3191; --on-glaze: #f6f2ea; --glaze-lift: #8fa0ff; }
body[data-finish="chalk"]  { --glaze: #e4dccb; --glaze-deep: #5f5545; --on-glaze: #221d17; --glaze-lift: #efe6d3; }
body[data-finish="earth"]  { --glaze: #b4542e; --glaze-deep: #8c3b1b; --on-glaze: #fbf3e8; --glaze-lift: #f0a07c; }
body { transition: --glaze .35s var(--ease), --glaze-deep .35s var(--ease), --on-glaze .35s var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; scroll-padding-bottom: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--glaze-deep); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: .75rem; top: -5rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .8rem 1rem; }
.skip:focus { top: .75rem; }
.noscript-note { margin-top: 1rem; padding: 1rem; border: 1px dashed var(--rule); }

/* ---------- header: demo strip scrolls away, masthead sticks ---------- */
.site-head { position: sticky; top: calc(-1 * var(--strip-h)); z-index: 20; }
.demo-strip {
  display: flex; gap: 1rem; justify-content: space-between; align-items: center; height: var(--strip-h);
  padding: 0 var(--gut); background: var(--ink); color: #e9e1d2; font-size: .875rem; white-space: nowrap; overflow: hidden;
}
.demo-strip p { overflow: hidden; text-overflow: ellipsis; }
.demo-strip a { text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; flex: none; }
.demo-strip strong { font-weight: 650; color: #fff; }
.masthead {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: .45rem var(--gut); background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; min-height: 44px; }
.wordmark svg { width: 30px; height: 30px; fill: var(--glaze); stroke: var(--ink); stroke-width: 1.5; }
.wordmark span { font: italic 400 1.75rem/1 var(--serif); letter-spacing: -.02em; }
.sitenav { display: flex; gap: .1rem; justify-content: center; }
.sitenav a {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  text-decoration: none; padding: .5rem .7rem; font-size: .93rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.sitenav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem; height: 2px;
  background: var(--glaze-deep); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.sitenav a:hover, .sitenav a[aria-current] { color: var(--ink); }
.sitenav a:hover::after, .sitenav a[aria-current]::after { transform: scaleX(1); }
.mast-action {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: .95rem; background: var(--glaze-deep); color: #fff; border-radius: 999px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .75rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .3s, color .3s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--glaze-deep); color: #fff; }
.btn-solid:hover { background: var(--ink); }
.btn-solid:disabled { background: var(--paper-2); color: var(--ink-2); cursor: not-allowed; border-color: var(--rule); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- 1 · arrival ---------- */
.arrival {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4.5rem);
  max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gut) clamp(3rem, 5vw, 5rem);
  align-items: start;
}
.arrival h1 { font: 400 clamp(2.5rem, 6vw, 5.4rem)/.98 var(--serif); letter-spacing: -.035em; max-width: 11ch; }
.arrival h1 em { font-style: italic; color: var(--glaze-deep); }
.lede { margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); }
.finish-picker { margin-top: clamp(1.5rem, 2.6vw, 2.4rem); padding-top: 1rem; border-top: 1px solid var(--ink); }
.picker-title { font: 600 1rem/1.3 var(--sans); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; }
.swatches button {
  display: flex; align-items: center; gap: .65rem; min-height: 62px; padding: .6rem .7rem; text-align: left;
  background: transparent; border: 1px solid var(--rule); border-radius: 14px; transition: border-color .25s, background-color .25s;
}
.swatches button span { display: grid; font-weight: 600; line-height: 1.15; }
.swatches small { font-weight: 400; font-size: .82rem; color: var(--ink-2); }
.swatches button:hover { border-color: var(--ink); }
.swatches button[aria-pressed="true"] { border-color: var(--ink); background: #fffaf1; box-shadow: inset 0 0 0 1px var(--ink); }
.chip { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.chip-cobalt { background: radial-gradient(circle at 32% 30%, #8ea0ff 0 8%, #2a45c4 22%, #14246e 80%); }
.chip-chalk { background: radial-gradient(circle at 32% 30%, #fff 0 10%, #ece5d6 35%, #cfc4ae 90%); }
.chip-earth { background: #b4542e; background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.2px); background-size: 4px 4px; }
button[aria-pressed="true"] .chip { transform: scale(1.12); }
.finish-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; border-top: 1px solid var(--rule); }
.finish-ledger div { padding: .6rem .2rem .6rem 0; border-bottom: 1px solid var(--rule); }
.finish-ledger div:nth-child(odd) { padding-right: 1rem; }
.finish-ledger dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.finish-ledger dd { font: 400 1.12rem/1.3 var(--serif); }
.arrival-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.arrival-photo { position: relative; }
.photo-stack { position: relative; aspect-ratio: 4 / 5; max-height: 78vh; width: 100%; overflow: hidden; border-radius: 220px 220px 6px 6px; background: #d9d6cf; }
.photo-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%;
  opacity: 0; transform: scale(1.03); transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.photo-stack img.is-active { opacity: 1; transform: none; }
.stamp { position: absolute; width: clamp(96px, 10vw, 136px); left: clamp(-1.5rem, -2vw, -.5rem); bottom: 18%; }
.stamp-disc { fill: var(--glaze); stroke: var(--ink); stroke-width: 1.5; }
.stamp text { fill: var(--on-glaze); font-family: var(--sans); }
.stamp-ring { fill: none; stroke: var(--on-glaze); stroke-width: 1.2; stroke-dasharray: 2 4; opacity: .8; }
.stamp-temp { font: italic 400 30px var(--serif); }
.stamp-sub { font-size: 15px; letter-spacing: 1.5px; font-weight: 700; }
.arrival-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .75rem; font-size: .9rem; color: var(--ink-2); }
.arrival-photo figcaption span:first-child { font: italic 1.05rem var(--serif); color: var(--ink); }

/* ---------- 2 · close-up ---------- */
.closeup {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut); background: var(--ink); color: #efe7d8; align-items: center;
}
.closeup h2 { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; }
.closeup-copy > p:first-of-type { margin-top: 1.1rem; color: #c9bfae; max-width: 30rem; }
.crop-list { margin-top: 1.75rem; border-top: 1px solid #4a433a; }
.crop-list button {
  display: flex; align-items: baseline; gap: 1rem; width: 100%; min-height: 50px; padding: .7rem .2rem; text-align: left;
  background: none; border: 0; border-bottom: 1px solid #4a433a; font-size: 1.08rem; color: #cfc6b6;
  transition: color .2s, padding-left .3s var(--ease);
}
.crop-list b { font: 600 .8rem var(--sans); letter-spacing: .05em; color: #a59a89; }
.crop-list button:hover { color: #fff; }
.crop-list button[aria-pressed="true"] { color: #fff; padding-left: .9rem; box-shadow: inset 3px 0 0 var(--glaze-lift); }
.crop-list button[aria-pressed="true"] b { color: #fff; }
.closeup :focus-visible { outline-color: #f2d27a; }
.crop-note { margin-top: 1.4rem; min-height: 5.2em; color: #d8cfbf; max-width: 30rem; }
.crop-note strong { font: italic 400 1.2rem var(--serif); color: #fff; }
.loupe-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: #2a2620; }
.loupe-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; transition: transform .4s var(--ease); }
.loupe-map {
  position: absolute; right: clamp(.6rem, 1.5vw, 1.2rem); bottom: clamp(.6rem, 1.5vw, 1.2rem);
  width: clamp(92px, 17%, 170px); aspect-ratio: 3 / 2; border: 2px solid #efe7d8; overflow: hidden; background: #2a2620; box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.loupe-map img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.loupe-rect {
  position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(20,17,13,.45);
  transition: left .4s var(--ease), top .4s var(--ease), width .4s var(--ease), height .4s var(--ease); left: 0; top: 0; width: 100%; height: 100%;
}
.loupe-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: .9rem; color: #b9ae9c; }
.loupe-meta span:first-child { font: italic 1.05rem var(--serif); color: #efe7d8; }

/* ---------- 3 · collection ---------- */
.collection { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut); }
.collection-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.collection h2 { font: 400 clamp(2.4rem, 5.4vw, 4.8rem)/.98 var(--serif); letter-spacing: -.035em; max-width: 9ch; }
.collection-head p { color: var(--ink-2); max-width: 32rem; justify-self: end; }
.pieces { margin-top: clamp(2rem, 4vw, 3rem); border-top: 2px solid var(--ink); }
.piece {
  display: grid; grid-template-columns: 3rem 72px minmax(0, 1.1fr) minmax(0, 1.4fr) 8rem 6rem auto;
  align-items: center; gap: 1.25rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); transition: background-color .25s;
}
.piece:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.piece-no { font: 600 .85rem var(--sans); color: var(--ink-2); padding-left: .25rem; }
.glyph-tile { display: grid; place-items: center; width: 72px; height: 60px; padding: 4px; overflow: hidden; align-self: center; }
.glyph-tile img { width: 100%; height: 100%; object-fit: contain; }
.piece h3 { font: 400 1.55rem/1.1 var(--serif); letter-spacing: -.015em; }
.piece-desc { color: var(--ink-2); font-size: .98rem; }
.piece-size { font-size: .92rem; color: var(--ink-2); }
.piece-price { font: 400 1.35rem var(--serif); text-align: right; }
.add { min-height: 44px; min-width: 6.5rem; padding: .5rem 1rem; border-radius: 999px; background: transparent; border: 1.5px solid var(--ink); font-weight: 600; transition: background-color .2s, color .2s; }
.add:hover { background: var(--ink); color: var(--paper); }
.add.is-bumped { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.08); background: var(--glaze-deep); color: #fff; border-color: var(--glaze-deep); } }
.collection-foot { margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }

.add-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: .2rem; position: relative; }
.in-order { font-size: .8rem; font-weight: 650; color: var(--glaze-deep); white-space: nowrap; }
body[data-finish="chalk"] .in-order { color: var(--ink); }
.in-order.is-fresh { animation: bump .5s var(--ease); }

/* ---------- 4 · process ---------- */
.process { background: var(--clay); color: var(--clay-ink); padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut); }
.process-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "bench text" "curve curve";
  gap: clamp(1.5rem, 3.5vw, 3.5rem) clamp(2rem, 4vw, 4rem); max-width: var(--max); margin: 0 auto; align-items: start;
}
.bench { grid-area: bench; position: relative; border-radius: 6px; overflow: hidden; border: 1.5px solid var(--clay-ink); background: #efe3cf; }
.bench img { display: block; width: 100%; height: auto; }
.bench-read {
  position: absolute; left: 1rem; top: 1rem; font: italic 400 clamp(1.2rem, 2.2vw, 1.8rem) var(--serif);
  padding: .15rem .75rem; border-radius: 999px; background: var(--clay-ink); color: #f3e7d3;
}
.process-text { grid-area: text; }
.process h2 { font: 400 clamp(2.2rem, 4.2vw, 3.8rem)/1 var(--serif); letter-spacing: -.03em; }
.process-intro { margin-top: 1rem; max-width: 34rem; }
.stages { margin-top: 1.5rem; border-top: 1px solid rgba(59, 42, 28, .35); }
.stages li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgba(59, 42, 28, .35); }
.stage-no { font: 400 2.2rem/1 var(--serif); }
.stages h3 { font: 600 1.15rem/1.25 var(--sans); }
.stages p { margin-top: .3rem; }
.stage-meta { font-size: .92rem; font-weight: 600; color: #5e4129; }
.is-scrubbing .stages { border: 0; margin-top: 1.25rem; display: grid; }
.is-scrubbing .stages li { grid-area: 1 / 1; visibility: hidden; border: 0; padding: 0; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@keyframes stIn { from { opacity: 0; } }
.is-scrubbing .stages li.is-current { visibility: visible; animation: stIn .35s var(--ease); }
.is-scrubbing .stage-no { font-size: clamp(4.5rem, 8vw, 7rem); line-height: .78; letter-spacing: -.05em; }
.is-scrubbing .stages h3 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--serif); letter-spacing: -.02em; }
.is-scrubbing .stages p { font-size: 1.05rem; margin-top: .6rem; }
.is-scrubbing .stage-meta { display: inline-block; padding: .25rem .8rem; border: 1.5px solid currentColor; border-radius: 999px; font-size: .9rem; }
.scrub-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: .8rem; align-items: center; margin-top: 1rem; }
.step-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--clay-ink); background: transparent; display: grid; place-items: center; color: var(--clay-ink); }
.step-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step-btn:hover:not([aria-disabled="true"]) { background: var(--clay-ink); color: var(--clay); }
.step-btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.process :focus-visible { outline-color: var(--clay-ink); }
.stage-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.stage-range::-webkit-slider-runnable-track { height: 4px; background: rgba(59, 42, 28, .45); border-radius: 4px; }
.stage-range::-moz-range-track { height: 4px; background: rgba(59, 42, 28, .45); border-radius: 4px; }
.stage-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--clay-ink); border: 3px solid var(--clay); box-shadow: 0 0 0 1.5px var(--clay-ink); }
.stage-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--clay-ink); border: 3px solid var(--clay); }
.curve { grid-area: curve; }
.curve-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.curve-legend span::before { content: ""; display: inline-block; width: 22px; height: 0; margin-right: .5rem; vertical-align: middle; border-top: 3px solid; }
.lg-water::before { border-color: #5b7f8c !important; border-top-style: dashed !important; }
.lg-heat::before { border-color: #c4521f !important; }
.curve-svg { width: 100%; height: 110px; border-bottom: 1.5px solid rgba(59, 42, 28, .5); overflow: visible; }
.curve-band { fill: rgba(59, 42, 28, .12); transition: x .35s var(--ease); }
.curve-grid { stroke: rgba(59, 42, 28, .2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve-water { fill: none; stroke: #5b7f8c; stroke-width: 3; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.curve-heat { fill: none; stroke: #c4521f; stroke-width: 3.2; vector-effect: non-scaling-stroke; }
.curve-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.curve-steps button {
  display: flex; gap: .4rem; align-items: baseline; justify-content: center; min-height: 52px; padding: .45rem .2rem;
  background: none; border: 0; border-radius: 0 0 6px 6px; font-size: .9rem; color: #5a4029; text-align: left;
}
.curve-steps b { font: 400 1.25rem var(--serif); }
.curve-steps span { display: grid; line-height: 1.15; }
.curve-steps small { font-size: .8rem; color: #6a4a2f; }
.curve-steps button:hover { background: rgba(59, 42, 28, .08); }
.curve-steps button[aria-current] { background: var(--clay-ink); color: #f3e7d3; }
.curve-steps button[aria-current] small { color: #e8d6bd; }

/* ---------- 5 · glazes (signature band) ---------- */
.glazes { background: var(--glaze-deep); color: #fff; padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut); }
.glazes-title {
  max-width: var(--max); margin: 0 auto; font: 400 clamp(2.8rem, 8.2vw, 7.6rem)/.92 var(--serif); letter-spacing: -.045em;
}
.glazes-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); max-width: var(--max); margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; align-items: start; }
.glazes :focus-visible { outline-color: #fff; }
.pairs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pairs button { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-weight: 500; }
.pairs button span { opacity: .75; margin: 0 .15rem; }
.pairs button:hover { border-color: #fff; }
.pairs button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.compare { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #d9d6cf; border-radius: 4px; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 50%; pointer-events: none; }
.cmp-b { clip-path: inset(0 0 0 var(--split)); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 1; }
.cmp-knob {
  position: absolute; top: 50%; left: clamp(24px, var(--split), calc(100% - 24px)); width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; z-index: 1;
  background-image: linear-gradient(90deg, transparent 15px, var(--ink) 15px 17px, transparent 17px 31px, var(--ink) 31px 33px, transparent 33px);
  background-size: 48px 14px; background-position: 0 50%; background-repeat: no-repeat;
}
.cmp-tag { position: absolute; top: 1rem; z-index: 1; padding: .35rem .8rem; border-radius: 999px; background: rgba(29, 26, 22, .85); color: #fff; font-weight: 600; font-size: .9rem; pointer-events: none; transition: opacity .2s; }
.cmp-tag-a { left: 1rem; } .cmp-tag-b { right: 1rem; }
.cmp-tag.is-gone { opacity: 0; visibility: hidden; }
.compare .cmp-range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y;
}
.compare .cmp-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.compare .cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 100%; background: transparent; border: 0; }
.compare .cmp-range::-moz-range-thumb { width: 1px; height: 100%; border: 0; background: transparent; }
.compare:has(.cmp-range:focus-visible) { outline: 3px solid #fff; outline-offset: 4px; }
.compare:has(.cmp-range:focus-visible) .cmp-knob { box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px #fff; }
.glazes-hint { margin-top: .7rem; font-size: .9rem; opacity: .9; }
.glazes-lede { font: 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.35 var(--serif); margin-top: 3.6rem; }
.glaze-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 1.5rem; }
.glaze-table th, .glaze-table td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.glaze-table thead th { font: 400 1.4rem var(--serif); border-bottom: 2px solid #fff; padding-bottom: .5rem; }
.glaze-table tbody th { font-weight: 600; font-size: .9rem; opacity: .92; width: 7.5rem; }
.glaze-table thead th:first-child { width: 7.5rem; }
.glaze-table .is-off { display: none; }
.glaze-table thead th.is-yours::after {
  content: "su elección"; display: block; width: max-content; margin-top: .25rem; padding: .05rem .55rem; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 .72rem/1.5 var(--sans);
}

/* ---------- 6 · order planner ---------- */
.order { background: var(--paper-2); padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut); }
.order-noscript { max-width: var(--max); margin: 0 auto; }
.order-noscript h2, .order h2 { font: 400 clamp(2.3rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; }
.order-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); max-width: var(--max); margin: 0 auto; align-items: start; }
.order-lede { margin-top: 1rem; color: var(--ink-2); max-width: 36rem; }
.order-form { margin-top: 1.75rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 .82rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding: 0; margin-bottom: .5rem; }
.qty-list { border-top: 2px solid var(--ink); padding-top: .8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.qty-list legend { float: left; grid-column: 1 / -1; }
.qty { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.qty-name { display: grid; font: 400 1.2rem/1.2 var(--serif); }
.qty-name small { font: 400 .86rem var(--sans); color: var(--ink-2); margin-top: .15rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--ink); border-radius: 999px; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.stepper button:hover:not([aria-disabled="true"]) { background: var(--ink); color: var(--paper); }
.stepper button[aria-disabled="true"] { opacity: .3; cursor: default; }
.stepper button[aria-disabled="true"]:hover { background: transparent; color: inherit; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.qty.has-qty .qty-name { color: var(--glaze-deep); }
body[data-finish="chalk"] .qty.has-qty .qty-name { color: var(--ink); text-decoration: underline 2px var(--glaze-deep); text-underline-offset: 4px; }
.order-options { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; margin-top: 1.4rem; }
.finish-radios label {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .3rem .95rem .3rem .45rem; margin: 0 .3rem .3rem 0;
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-weight: 500;
}
.finish-radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.finish-radios .chip { width: 26px; height: 26px; }
.finish-radios label:has(input:checked) { border-color: var(--ink); background: #fffaf1; box-shadow: inset 0 0 0 1px var(--ink); }
.finish-radios label:has(input:focus-visible) { outline: 3px solid var(--glaze-deep); outline-offset: 2px; }
.check { display: flex; gap: .7rem; align-items: center; cursor: pointer; min-height: 46px; margin-bottom: .3rem; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--glaze-deep); flex: none; }
.check span { display: grid; font-weight: 500; line-height: 1.25; }
.check small { color: var(--ink-2); font-weight: 400; font-size: .88rem; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .92rem; color: var(--ink-2); }
.presets button { min-height: 44px; padding: .4rem .9rem; border-radius: 999px; border: 1px dashed var(--ink-2); background: transparent; color: var(--ink); }
.presets button:hover { border-style: solid; border-color: var(--ink); }
.kiln-view { margin-top: 1.75rem; }
.kiln-title { font: italic 400 1.3rem var(--serif); margin-bottom: .6rem; }
.kilns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem 1.2rem; }
.kiln-shelf { display: grid; gap: .35rem; }
.kiln-shelf p { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.kiln-cells { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; padding: 6px; background: #ddcfb7; border-radius: 8px 8px 2px 2px; border-bottom: 5px solid #8e5a34; }
.kiln-cells span { aspect-ratio: 1; border-radius: 3px; background: rgba(59, 42, 28, .12); }
.kiln-cells span.on { background: var(--glaze); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.kiln-cells span.on.alt { background: color-mix(in srgb, var(--glaze) 70%, var(--ink)); }
.kiln-cells span.new { animation: cellIn .3s var(--ease) both; }
.kilns.is-empty .kiln-cells { background: transparent; border: 1.5px dashed #a99b84; }
@keyframes cellIn { from { transform: scale(.4); opacity: 0; } }
.ticket { position: sticky; top: 6.5rem; background: #fffbf3; border: 1px solid var(--ink); padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 6px; box-shadow: 0 22px 40px -28px rgba(29, 26, 22, .55); }
.ticket:focus { outline: none; }
.ticket h3 { font: italic 400 1.9rem/1 var(--serif); padding-bottom: .9rem; border-bottom: 1px dashed var(--ink-2); }
.ticket-empty { padding: 1rem 0 .25rem; color: var(--ink-2); }
.ticket-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .42rem 0; border-bottom: 1px dotted var(--rule); font-size: .98rem; }
.ticket-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-lines li.extra { color: var(--ink-2); }
.ticket-sum { margin-top: 1rem; }
.ticket-sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.ticket-sum dt { color: var(--ink-2); }
.ticket-sum dd { font-weight: 600; text-align: right; }
.sum-total { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: .7rem !important; align-items: baseline; }
.sum-total dt { color: var(--ink); font-weight: 600; }
.sum-total dd { font: 400 1.9rem/1 var(--serif); }
.ticket-send { width: 100%; margin-top: 1.2rem; }
.ticket-note { margin-top: .8rem; font-size: .88rem; color: var(--ink-2); }
.ticket-note.is-sent { color: var(--ink); background: #f1e6cf; padding: .7rem .8rem; border-radius: 4px; }
.order-peek { display: none; }

/* ---------- 7 · visit ---------- */
.visit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
  background: #2b2722; color: #efe7d8; padding: clamp(3.5rem, 6vw, 5.5rem) var(--gut);
}
.visit h2 { font: 400 clamp(2.3rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.03em; }
.visit-copy > p { margin-top: 1rem; color: #cfc5b4; max-width: 32rem; }
.visit :focus-visible { outline-color: #f2d27a; }
.hours { margin-top: 1.6rem; border-top: 1px solid #5a5248; max-width: 32rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid #5a5248; }
.hours dd { font: 400 1.15rem var(--serif); font-variant-numeric: tabular-nums; }
.classes { margin-top: 1.6rem; padding: 1.1rem 1.3rem; border-left: 4px solid var(--glaze-lift); background: #36312b; max-width: 32rem; }
.classes h3 { font: italic 400 1.45rem var(--serif); }
.classes p { margin-top: .4rem; color: #d8cfbf; }
.classes strong { color: #fff; }
.visit address { margin-top: 1.4rem; font-style: normal; color: #efe7d8; font-weight: 500; }
.map svg { width: 100%; height: auto; border-radius: 4px; }
.m-ground { fill: #d9c9ae; }
.m-blocks rect { fill: #c3ad8b; stroke: #a8916d; stroke-width: 1; }
.m-roofs path { fill: #b39b76; }
.m-greda { fill: var(--glaze); stroke: #1d1a16; stroke-width: 2.5; }
.m-patio { fill: #efe3cd; stroke: #1d1a16; stroke-width: 1.2; }
.m-kiln { fill: #c4521f; stroke: #1d1a16; stroke-width: 1.2; }
.m-door { fill: #1d1a16; }
.m-plaza { fill: #a9b08a; }
.m-path { stroke: #d9ccb0; stroke-width: 8; }
.m-fountain { fill: #d9ccb0; stroke: #6f7a55; stroke-width: 2; } .m-fountain-in { fill: #8fb4c0; }
.m-trees circle { fill: #6f7d52; stroke: #4f5a37; stroke-width: 2; }
.m-walk { stroke: #efe3cd; stroke-width: 26; }
.m-walk-line { stroke: #d2c1a0; stroke-width: 1.5; stroke-dasharray: 8 8; }
.m-label { font: italic 17px var(--serif); fill: #1d1a16; }
.m-street { font: 600 17px var(--sans); fill: #4a3523; }
.m-pin path { fill: #fff; stroke: #1d1a16; stroke-width: 2.5; }
.m-pin circle { fill: #1d1a16; }
.m-tag { font: italic 700 24px var(--serif); fill: #1d1a16; paint-order: stroke; stroke: #efe3cd; stroke-width: 5px; }
.m-compass circle { fill: #efe3cd; stroke: #1d1a16; stroke-width: 1.5; } .m-compass path { fill: #1d1a16; }
.m-compass text { font: 700 17px var(--sans); fill: #1d1a16; }
.map figcaption { margin-top: .6rem; font-size: .88rem; color: #c4b9a7; }

/* ---------- 8 · FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: clamp(3.5rem, 6vw, 5rem) var(--gut); }
.faq h2 { font: 400 clamp(2.2rem, 4.4vw, 3.8rem)/1 var(--serif); letter-spacing: -.03em; max-width: 8ch; position: sticky; top: 7rem; align-self: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 58px; padding: .8rem 0; font: 400 1.28rem/1.25 var(--serif); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq summary:hover { color: var(--glaze-deep); }
.faq details p { padding: 0 0 1.2rem; max-width: 40rem; color: var(--ink-2); }

/* ---------- 9 · closing ---------- */
.closing {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem;
  background: var(--glaze); color: var(--on-glaze); padding: clamp(3.5rem, 7vw, 6rem) var(--gut); border-top: 1px solid var(--ink);
}
.closing h2 { font: italic 400 clamp(2.8rem, 8vw, 7.2rem)/.95 var(--serif); letter-spacing: -.04em; max-width: 12ch; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.btn-invert { background: var(--on-glaze); color: var(--glaze-deep); }
body[data-finish="chalk"] .btn-invert { color: #f6f0e4; }
.btn-invert:hover { background: var(--ink); color: #fff; }
.closing-alza { font-weight: 600; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.closing :focus-visible { outline-color: var(--on-glaze); }
.closing-art { width: clamp(140px, 20vw, 280px); height: auto; overflow: visible; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 2rem; background: var(--ink); color: #cfc5b4; padding: clamp(2.5rem, 5vw, 4rem) var(--gut) 2rem; font-size: .95rem; }
.foot-mark { font: italic 400 3rem/1 var(--serif); color: #fff; margin-bottom: .8rem; }
.foot-brand p:last-child { max-width: 30rem; }
.foot ul { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 2rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: #efe7d8; text-underline-offset: 3px; }
.foot-alza { display: grid; align-content: start; }
.foot-alza p { margin-top: .8rem; color: #a99f8d; }
.foot :focus-visible { outline-color: #f2d27a; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .masthead { grid-template-columns: 1fr auto; row-gap: .1rem; padding-bottom: .2rem; }
  .sitenav {
    grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: .3rem;
    margin: 0 calc(-1 * var(--gut)); padding: .15rem var(--gut) .35rem; scroll-padding-inline: var(--gut);
  }
  .sitenav::-webkit-scrollbar { display: none; }
  .sitenav.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
  .sitenav.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
  .sitenav.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
  .sitenav a { border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .9rem; min-height: 44px; flex: none; }
  .sitenav a::after { display: none; }
  .sitenav a[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  html { scroll-padding-top: 8.5rem; }
  .ticket { top: 9rem; }
  .faq h2 { top: 10rem; }
}
@media (max-width: 1100px) {
  .piece { grid-template-columns: 2.4rem 72px minmax(0, 1fr) auto auto; grid-template-areas: "no g name price add" "no g desc size add"; row-gap: .2rem; }
  .piece-no { grid-area: no; } .glyph-tile { grid-area: g; } .piece h3 { grid-area: name; }
  .piece-desc { grid-area: desc; } .piece-size { grid-area: size; text-align: right; } .piece-price { grid-area: price; } .add-wrap { grid-area: add; }
  .qty-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .arrival { grid-template-columns: minmax(0, 1fr); }
  .arrival-copy { display: contents; }
  .arrival h1 { order: 1; } .lede { order: 2; margin-top: -.75rem; } .arrival-actions { order: 3; margin-top: -.5rem; } .arrival-photo { order: 4; }
  .finish-picker { order: 5; margin-top: 0; }
  .photo-stack { aspect-ratio: 5 / 4; border-radius: 160px 160px 6px 6px; }
  .stamp { left: .75rem; bottom: 3.6rem; width: 104px; }
  .closeup, .visit, .faq { grid-template-columns: minmax(0, 1fr); }
  .closeup { gap: 1.25rem; }
  .closeup-copy { display: contents; }
  .closeup h2 { order: 1; } .closeup-copy > p:first-of-type { order: 2; margin-top: -.5rem; } .closeup noscript { order: 3; }
  .crop-list { order: 3; display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 0; border: 0; }
  .crop-list button { width: auto; min-height: 44px; padding: .45rem 1rem; border: 1px solid #5a5248; border-radius: 999px; font-size: .98rem; }
  .crop-list button b { display: none; }
  .crop-list button[aria-pressed="true"] { padding-left: 1rem; box-shadow: none; background: #efe7d8; color: var(--ink); border-color: #efe7d8; }
  .closeup .loupe { order: 4; }
  .crop-note { order: 5; margin-top: 0; min-height: 0; }
  .faq h2 { position: static; }
  .collection-head { grid-template-columns: minmax(0, 1fr); }
  .collection-head p { justify-self: start; }
  .process-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "bench" "curve"; }
  .process-text { display: contents; }
  .process h2 { grid-row: 1; }
  .process-intro { grid-row: 2; margin-top: -1rem; }
  .bench { grid-row: 3; max-width: 560px; width: 100%; justify-self: center; }
  .stages { grid-row: 4; }
  .scrub-row { grid-row: 5; margin-top: -.5rem; }
  .curve { grid-row: 6; }
  .is-scrubbing .stages { margin-top: 0; }
  .glazes-grid { grid-template-columns: minmax(0, 1fr); }
  .glazes-lede { margin-top: 0; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: relative; top: 0; }
  .order-peek:not([hidden]) {
    position: sticky; bottom: .75rem; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    min-height: 52px; padding: .6rem 1.1rem; border-radius: 999px; text-decoration: none; margin-top: 1rem;
    background: var(--ink); color: var(--paper); box-shadow: 0 8px 24px rgba(29, 26, 22, .3); font-variant-numeric: tabular-nums;
  }
  .order-peek strong { font-weight: 650; color: #fff; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .demo-strip { font-size: .8rem; }
  .strip-more { display: none; }
  .wordmark span { font-size: 1.5rem; }
  .mast-action { padding: .5rem .85rem; font-size: .88rem; }
  .lede { font-size: 1rem; }
  .swatches { gap: .35rem; }
  .swatches button { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .6rem .55rem; min-height: 0; }
  .finish-ledger dd { font-size: 1rem; }
  .arrival-actions { gap: .5rem; }
  .arrival-actions .btn { flex: 1 1 auto; padding-inline: 1rem; }
  .stamp { width: 100px; }
  .piece { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "g name price" "g desc desc" "g size add"; column-gap: .9rem; padding: 1rem 0; align-items: start; }
  .piece-no { display: none; }
  .glyph-tile { width: 64px; height: 56px; padding: 6px; border-radius: 10px; background: var(--paper-2); align-self: start; }
  .piece h3 { font-size: 1.32rem; }
  .piece-size { text-align: left; align-self: center; }
  .piece-price { font-size: 1.15rem; }
  .add { min-width: 0; }
  .is-scrubbing .stage-no { font-size: 3.6rem; }
  .curve-steps button { flex-direction: column; align-items: center; gap: 0; padding: .35rem 0; }
  .curve-steps span { font-size: 0; }
  .curve-steps small { font-size: .72rem; }
  .curve-svg { height: 80px; }
  .glaze-table thead th:first-child, .glaze-table tbody th { width: 6.2rem; }
  .glaze-table thead th { font-size: 1.2rem; }
  .glaze-table td, .glaze-table th { padding-right: .6rem; font-size: .95rem; }
  .compare { aspect-ratio: 4 / 5; }
  .cmp-tag { top: .6rem; font-size: .8rem; } .cmp-tag-a { left: .6rem; } .cmp-tag-b { right: .6rem; }
  .qty-name { font-size: 1.1rem; }
  .closing { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .closing-art { width: 120px; justify-self: end; margin-top: -1rem; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .mast-action { font-size: .8rem; padding: .45rem .7rem; }
  .swatches small { font-size: .75rem; }
  .strip-by { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* "En el encargo" badge sits under the button without growing the ledger row */
@media (min-width: 641px) {
  .in-order { position: absolute; top: 100%; right: 0; margin-top: .15rem; }
}
