/* Architect tools: Brescia Studio (For Architects) and the Book-match Composer. */
.fine { font-size: 12.5px; line-height: 1.55; color: var(--mute); max-width: 62ch; }
.display em { font-style: italic; color: var(--terracotta); }

/* ---------------- hero: a slab drawn to scale ---------------- */
.studio-hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 5vw, 80px); min-height: 100svh;
  padding: calc(var(--header-h) + clamp(30px, 5vw, 70px)) var(--gutter) clamp(40px, 5vw, 70px);
  background:
    linear-gradient(rgba(27, 28, 26, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(27, 28, 26, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(80% 70% at 75% 45%, #fbf8f2, var(--limestone) 70%); }
.studio-copy .display { font-size: clamp(44px, 5.6vw, 96px); margin: 14px 0 18px; }
.studio-copy .lede { max-width: 50ch; }
.studio-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.studio-stats { display: flex; gap: clamp(24px, 4vw, 54px); margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.studio-stats dt { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.studio-stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); line-height: 1; }

.studio-slab { margin: 0; display: grid; gap: 18px; justify-items: center; }
.slab-scene { --ratio: 0.617; position: relative; width: min(calc(100% - 80px), 620px); aspect-ratio: 1 / var(--ratio); margin: 40px 50px 30px 30px; perspective: 1400px;
  transition: aspect-ratio 0.9s var(--ease); }
.slab3d { --rx: 6deg; --ry: -14deg; --gx: 30%; --gy: 20%; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.9s var(--ease); }
.slab-face { position: absolute; inset: 0; background: var(--img) center / cover, var(--sand);
  box-shadow: 0 40px 70px -30px rgba(40, 30, 18, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.5) inset; }
/* the 20 mm edge, seen along the right side */
.slab-face::after { content: ""; position: absolute; top: 0; right: -14px; width: 14px; height: 100%; background: linear-gradient(90deg, #cfc6b6, #a39a8a);
  transform-origin: left; transform: rotateY(90deg); }
.slab-gloss { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(60% 50% at var(--gx) var(--gy), rgba(255, 255, 255, 0.85), transparent 60%), linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%); }
.slab3d.is-in .slab-face { animation: slab-in 1.1s var(--ease); }
@keyframes slab-in { from { opacity: 0; filter: blur(6px); transform: translateZ(-60px); } to { opacity: 1; filter: none; transform: none; } }
/* dimension lines, as on a drawing */
.dim { position: absolute; display: flex; align-items: center; justify-content: center; color: var(--terracotta); font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; }
.dim::before { content: ""; position: absolute; border: 0 solid currentColor; }
.dim b { position: relative; padding: 2px 8px; background: var(--limestone); }
.dim-w { left: 0; right: 0; top: -30px; height: 14px; }
.dim-w::before { left: 0; right: 0; top: 50%; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px; height: 7px; transform: translateY(-50%); }
.dim-h { top: 0; bottom: 0; right: -44px; width: 14px; }
.dim-h::before { top: 0; bottom: 0; left: 50%; border-left-width: 1px; border-top-width: 1px; border-bottom-width: 1px; width: 7px; transform: translateX(-50%); }
.dim-h b { writing-mode: vertical-rl; padding: 8px 2px; }
.dim-t { position: absolute; right: -30px; bottom: -26px; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; color: var(--mute); }
.slab-cap { display: grid; justify-items: center; gap: 2px; text-align: center; }
.slab-cap strong { font-family: var(--serif); font-weight: 520; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.slab-cap span:last-child { font-size: 13px; color: var(--mute); }
.slab-pick { display: flex; gap: 8px; }
.slab-pick button { width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #fff; background-size: cover; background-position: center; cursor: pointer;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.4); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.slab-pick button:hover { transform: translateY(-3px); }
.slab-pick button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--terracotta), 0 6px 14px -4px rgba(0, 0, 0, 0.5); }

/* ---------------- index of the four tools ---------------- */
.studio-index { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fbf9f5; }
.studio-index a { position: relative; display: flex; gap: 16px; align-items: baseline; padding: 24px var(--gutter) 26px; text-decoration: none; border-left: 1px solid var(--line); overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease); }
.studio-index a:first-child { border-left: 0; }
.studio-index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.55s var(--ease); }
.studio-index a:hover { color: var(--limestone); }
.studio-index a:hover::before { transform: none; }
.studio-index b { font-family: var(--mono); font-size: 11px; color: var(--terracotta); }
.studio-index span { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.15; }
.studio-index small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; color: var(--mute); transition: color 0.4s; }
.studio-index a:hover small { color: rgba(244, 240, 233, 0.65); }

/* ---------------- the stone library ---------------- */
.library-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: clamp(24px, 3vw, 40px); }
.library .display { font-size: clamp(36px, 4.4vw, 70px); margin: 12px 0 0; max-width: 16ch; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-filter button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fbf9f5; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.lib-filter button:hover { border-color: var(--ink); }
.lib-filter button[aria-selected="true"] { background: var(--ink); color: var(--limestone); border-color: var(--ink); }
.library-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }

.inspector { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; scroll-margin-top: calc(var(--header-h) + 10px); }
.insp-stage { --ratio: 0.51; position: relative; display: grid; place-items: center; padding: clamp(20px, 3vw, 40px); background: radial-gradient(90% 80% at 50% 40%, #fbf8f2, var(--bone));
  border: 1px solid var(--line); overflow: hidden; cursor: crosshair; }
.insp-slab { position: relative; width: 100%; aspect-ratio: 1 / var(--ratio); display: grid; grid-template-columns: 1fr; gap: 2px; transition: aspect-ratio 0.6s var(--ease); }
.insp-slab i { background: var(--img) center / cover, var(--sand); box-shadow: 0 30px 50px -28px rgba(40, 30, 18, 0.6); }
.insp-slab i:nth-child(n+2) { display: none; }
.insp-slab.is-in i { animation: slab-in 0.8s var(--ease); }
/* book-match: two leaves, the second mirrored; quad: four */
.insp-stage[data-match="book"] .insp-slab { aspect-ratio: 2 / var(--ratio); grid-template-columns: 1fr 1fr; }
.insp-stage[data-match="book"] .insp-slab i:nth-child(2) { display: block; transform: scaleX(-1); }
.insp-stage[data-match="quad"] .insp-slab { aspect-ratio: 2 / calc(var(--ratio) * 2); grid-template-columns: 1fr 1fr; }
.insp-stage[data-match="quad"] .insp-slab i { display: block; }
.insp-stage[data-match="quad"] .insp-slab i:nth-child(2) { transform: scaleX(-1); }
.insp-stage[data-match="quad"] .insp-slab i:nth-child(3) { transform: scaleY(-1); }
.insp-stage[data-match="quad"] .insp-slab i:nth-child(4) { transform: scale(-1, -1); }
.insp-stage[data-finish="polished"] .insp-slab::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(118deg, transparent 30%, rgba(255, 255, 255, 0.55) 46%, transparent 62%); }
.insp-stage[data-finish="honed"] .insp-slab i { filter: saturate(0.82) contrast(0.86) brightness(1.04); }
.insp-loupe { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; opacity: 0;
  background-repeat: no-repeat; border: 3px solid #fff; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.1); transition: opacity 0.25s; }
.insp-stage.is-looking .insp-loupe { opacity: 1; }
@media (pointer: coarse) { .insp-hint { display: none; } }
.insp-hint { position: absolute; right: 14px; bottom: 10px; font-size: 10px; color: var(--mute); transition: opacity 0.3s; }
.insp-stage.is-looking .insp-hint, .insp-stage:not([data-match="single"]) .insp-hint { opacity: 0; }
.insp-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.seg-mini { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bone); }
.seg-mini button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.seg-mini button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.3); }
.insp-info { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 18px 0 4px; border-top: 1px solid var(--line); }
.insp-info h3 { font-family: var(--serif); font-weight: 520; font-size: clamp(30px, 2.6vw, 42px); line-height: 1; margin: 6px 0 12px; }
.insp-specs { display: flex; gap: 22px; margin: 0; }
.insp-specs dt { font-family: var(--mono); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.insp-specs dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.insp-actions { display: grid; gap: 8px; justify-items: stretch; min-width: 230px; }
.insp-actions .btn { min-height: 44px; font-size: 13px; justify-content: center; }
.insp-actions .text-link { font-size: 13px; justify-self: start; }
#insp-spec.is-on { background: var(--leaf, #2f5e3a); border-color: var(--leaf, #2f5e3a); color: #fff; }

.lib-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lib-tiles li { animation: tile-in 0.7s var(--ease) both; animation-delay: var(--d); }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } }
.lib-tile { position: relative; display: grid; gap: 8px; width: 100%; padding: 8px 8px 12px; text-align: left; background: #fbf9f5; border: 1px solid var(--line); cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease); }
.lib-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -22px rgba(30, 22, 12, 0.6); }
.lib-tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lib-img { display: block; aspect-ratio: 2 / 1; overflow: hidden; }
.lib-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lib-tile:hover .lib-img img { transform: scale(1.08); }
.lib-meta { padding: 0 4px; display: grid; gap: 2px; }
.lib-meta strong { font-family: var(--serif); font-weight: 520; font-size: 18px; line-height: 1.15; }
.lib-meta small { font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.06em; color: var(--mute); }
.lib-mark { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: 12px;
  background: var(--leaf, #2f5e3a); color: #fff; opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s var(--ease); }
.lib-tile.in-spec .lib-mark { opacity: 1; transform: none; }

/* ---------------- spec list tray ---------------- */
.spec-tray { position: fixed; z-index: 50; right: 18px; bottom: 18px; display: grid; justify-items: end; gap: 10px; }
.spec-tray[hidden] { display: none; }
.spec-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px 0 8px; border-radius: 999px; border: 0; background: var(--ink); color: var(--limestone);
  font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6); }
.spec-pill b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: var(--terracotta); font-size: 12px; }
.spec-dots { display: flex; }
.spec-dots i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background-size: cover; margin-left: -10px; }
.spec-dots i:first-child { margin-left: 0; }
.spec-panel { order: -1; width: min(360px, calc(100vw - 36px)); padding: 18px; background: #fbf9f5; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5); display: grid; gap: 12px; }
.spec-panel[hidden] { display: none; }
.spec-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 20px; }
.spec-close { width: 34px; height: 34px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--mute); }
#spec-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
#spec-items li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
#spec-items i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background-size: cover; }
#spec-items span { font-weight: 600; font-size: 14px; }
#spec-items small { grid-column: 2; font-size: 12px; color: var(--mute); }
#spec-items button { grid-row: 1 / span 2; grid-column: 3; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.spec-panel .btn { justify-content: center; }

/* ---------------- AR ---------------- */
.ar { background: var(--bone); }
.ar-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.ar .display { font-size: clamp(40px, 5vw, 80px); margin: 0.14em 0 0.25em; }
.chips-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ar-grid > *, .library-grid > *, .yardwalk-grid > *, .studio-hero > * { min-width: 0; }
.ar-frame { position: relative; }
.ar-viewer { display: block; position: relative; width: 100%; min-height: 380px; aspect-ratio: 4 / 3.4; background:
  linear-gradient(rgba(27, 28, 26, 0.05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(27, 28, 26, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
  radial-gradient(70% 70% at 50% 40%, #fbf9f5, #e2dbcd); border: 1px solid var(--line); --poster-color: transparent; }
.ar-button { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); }
.ar-tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; background: rgba(251, 249, 245, 0.9); font-size: 10.5px; }
.ar-qr { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; background: #fbf9f5; border: 1px solid var(--line); max-width: 360px; }
.ar-qr[hidden] { display: none; }
.qr-box { flex: none; width: 84px; height: 84px; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.ar-qr p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
@media (max-width: 900px) { .ar-grid { grid-template-columns: 1fr; } }

/* ---------------- flow ---------------- */
.flow .display { font-size: clamp(34px, 4vw, 62px); margin: 12px 0 clamp(26px, 3vw, 44px); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow-steps li { position: relative; display: grid; gap: 8px; align-content: start; padding: 26px clamp(14px, 2vw, 28px) 0 0; }
.flow-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.flow-steps li::after { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px var(--limestone); }
.flow-steps b { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.flow-steps strong { font-family: var(--serif); font-weight: 520; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; }
.flow-steps span { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 30ch; }

/* ---------------- yard walk ---------------- */
.yardwalk { background: radial-gradient(70% 60% at 0% 0%, rgba(200, 161, 101, 0.12), transparent 70%), var(--limestone); }
.yardwalk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.yardwalk .display { font-size: clamp(40px, 5vw, 80px); margin: 0.14em 0 0.25em; }
.yardwalk-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 18px 0 10px; }
.clocks { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 22px; }
.clock { display: flex; gap: 12px; align-items: center; }
.clock small { display: block; font-family: var(--mono); font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.clock b { font-family: var(--serif); font-weight: 520; font-size: 28px; line-height: 1; }
.clock-face { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: #fbf9f5; }
.clock-bali .clock-face { border-color: var(--terracotta); }
.clock-face i { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; background: var(--ink); transform-origin: 50% 100%; border-radius: 2px; transition: transform 0.8s var(--ease); }
.clock-face .h { height: 12px; }
.clock-face .m { height: 18px; width: 1.5px; }
.clock-bali .clock-face i { background: var(--terracotta); }
.clock-open { flex-basis: 100%; margin: 0; font-size: 10.5px; color: var(--mute); }
.clock-open.is-open { color: var(--leaf, #2f5e3a); }
.walk-form { display: grid; gap: 14px; background: #fbf9f5; border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px -40px rgba(30, 22, 12, 0.5); }
.walk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.walk-form label { display: grid; gap: 4px; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.walk-form input, .walk-form select, .walk-form textarea { width: 100%; min-height: 46px; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); transition: border-color 0.3s; }
.walk-form input:focus, .walk-form select:focus, .walk-form textarea:focus { outline: none; border-bottom-color: var(--terracotta); }
.walk-form .btn { margin-top: 8px; justify-self: start; }
.walk-bali { margin: -4px 0 0; padding: 10px 12px; background: rgba(47, 94, 58, 0.08); color: var(--leaf, #2f5e3a); font-size: 13px; font-weight: 600; }
.walk-bali.is-off { background: rgba(192, 82, 58, 0.08); color: var(--terracotta); }
.walk-bali:empty { display: none; }

@media (max-width: 1000px) {
  .studio-hero { grid-template-columns: 1fr; min-height: 0; }
  .studio-slab { order: -1; }
  .studio-index { grid-template-columns: 1fr 1fr; }
  .studio-index a:nth-child(3) { border-left: 0; }
  .studio-index a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .library-grid { grid-template-columns: 1fr; }
  .inspector { position: static; }
  .lib-tiles { grid-template-columns: repeat(3, 1fr); }
  .flow-steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
}
@media (max-width: 900px) { .yardwalk-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .studio-hero { padding-top: calc(var(--header-h) + 20px); gap: 10px; }
  .slab-scene { margin: 34px 40px 22px 10px; width: calc(100% - 50px); }
  .studio-copy .display { font-size: clamp(38px, 11vw, 52px); }
  .studio-stats { gap: 22px; }
  .studio-index a { padding: 16px 16px 18px; gap: 10px; }
  .studio-index span { font-size: 17px; }
  .studio-index small { display: none; }
  .lib-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lib-meta strong { font-size: 15px; }
  .insp-info { grid-template-columns: 1fr; }
  .insp-actions { min-width: 0; }
  .insp-stage { padding: 14px; }
  .flow-steps { grid-template-columns: 1fr; }
  .walk-row { grid-template-columns: 1fr; }
  .chips-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ar-viewer { min-height: 300px; }
  .spec-tray { right: 12px; bottom: 12px; }
  .spec-pill { min-height: 44px; font-size: 13px; padding: 0 14px 0 6px; }
  .spec-dots i { width: 30px; height: 30px; }
  .spec-dots i:nth-child(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .slab3d, .lib-tiles li, .slab3d.is-in .slab-face, .insp-slab.is-in i { transition: none; animation: none; } }

/* composer */
.composer { padding: calc(var(--header-h) + 34px) var(--gutter) 90px; }
.composer-head .display { font-size: clamp(40px, 5.4vw, 86px); margin: 0.12em 0 0.4em; }
.composer-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.composer-controls { display: grid; gap: 22px; }
.composer-controls fieldset { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 0; }
.composer-controls legend { padding: 0 0 10px; color: var(--mute); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.pair input { min-height: 48px; padding: 0 12px; border: 1px solid var(--line); background: #fbf9f5; font-family: var(--mono); font-weight: 600; font-size: 16px; }
.composer-controls .chips { margin: 0; grid-template-columns: repeat(6, 1fr); }
.c-stone-name { font-size: 13.5px; color: var(--ink-soft); margin: 10px 0 0; }
.seg { display: flex; border: 1px solid var(--line); background: #fbf9f5; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; font-size: 13.5px; transition: background-color 0.25s, color 0.25s; }
.seg input:checked + span { background: var(--ink); color: var(--limestone); }
.seg input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.composer-stage { display: grid; gap: 14px; }
#c-canvas { width: 100%; aspect-ratio: 16 / 10; display: block; border: 1px solid var(--line); background: var(--bone); }
.composer-results { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #fbf9f5; }
.composer-results div { padding: 14px 16px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.composer-results div:first-child { border-left: 0; }
.composer-results strong { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; font-size: 34px; line-height: 1; }
@media (max-width: 960px) { .composer-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .composer-results { grid-template-columns: repeat(2, 1fr); } .composer-results div:nth-child(3) { border-left: 0; } .composer-results div:nth-child(n+3) { border-top: 1px solid var(--line); } #c-canvas { aspect-ratio: 4 / 5; } }
