/* Self-hosted fonts (SIL Open Font License): Bodoni Moda by Owen Earl, Jost by Owen Earl. */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/bodoni-moda-latin-opsz-normal.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: 'Bodoni Moda'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(../fonts/bodoni-moda-latin-ext-opsz-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/jost-latin-wght-normal.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: 'Jost'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/jost-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Stonora design system
   Palette taken from the stones themselves: Statuario white, Verde Alpi green-black, honed brass. */
:root {
  --stone: #EEEDEA;
  --stone-2: #E4E2DD;
  --stone-3: #D6D3CC;
  --ink: #1B2420;
  --ink-2: #48514C;
  --fossil: #7E847E;
  --verde: #122019;
  --verde-2: #1B2D24;
  --verde-3: #2A3F34;
  --pale: #E9EBE6;
  --pale-2: #A9B3AC;
  --brass: #B8925A;
  --brass-2: #D5B27B;
  --line: rgba(27, 36, 32, .14);
  --line-dark: rgba(233, 235, 230, .16);
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .7, .15, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font-family: var(--text); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute !important; 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(--stone); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(46px, 7vw, 108px); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--fossil); }
.label { font-size: 14px; color: var(--fossil); letter-spacing: .01em; margin: 0 0 14px; }
.on-dark { color: var(--pale); }
.on-dark .muted, .on-dark .label { color: var(--pale-2); }
.on-dark .lede { color: var(--pale-2); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 150px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.dark { background: var(--verde); color: var(--pale); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--stone); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: #2C3832; }
.btn--light { background: var(--pale); color: var(--verde); }
.btn--light:hover { background: #fff; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: rgba(127, 127, 127, .08); }
.btn--brass { background: var(--brass); color: #16110A; }
.btn--brass:hover { background: var(--brass-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.text-link { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); font-weight: 500; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 76px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  color: var(--ink); background: rgba(238, 237, 234, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.site-header[data-tone="dark"] { color: var(--pale); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header[data-tone="dark"].is-scrolled { background: rgba(18, 32, 25, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-dark); }
.site-header[data-tone="studio"] { color: var(--pale); background: var(--verde); border-color: var(--line-dark); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 27px; letter-spacing: .01em; line-height: 1; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: clamp(18px, 2.2vw, 34px); margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--brass); }
.box-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid currentColor; border-radius: 2px; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.box-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brass); color: #16110A; font-size: 12px; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; font-size: 15px; font-weight: 500; padding: 8px 0; }
@media (max-width: 900px) {
  .site-header { gap: 14px; height: 64px; }
  .menu-btn { display: block; margin-left: auto; }
  .box-btn { order: 2; height: 36px; padding: 0 10px; }
  .box-btn .box-word { display: none; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px; background: var(--verde); color: var(--pale); margin: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
  .nav a { font-family: var(--display); font-size: 32px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- Sample chip motif: a cut stone sample with a visible edge ---------- */
.sample { position: relative; display: block; background: var(--stone-3); padding-bottom: 5px; border-radius: 1px; }
.sample::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.28)); mix-blend-mode: multiply; }
.sample canvas { width: 100%; height: auto; aspect-ratio: var(--ratio, 1); background: var(--stone-2); }
.on-dark .sample, .dark .sample { background: #0B140F; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; background: radial-gradient(120% 90% at 70% 40%, #20362B 0%, var(--verde) 55%, #0A130E 100%); color: var(--pale); overflow: hidden; }
.hero canvas.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: absolute; left: var(--gutter); bottom: clamp(36px, 7vh, 80px); max-width: 620px; z-index: 2; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lede { color: var(--pale-2); margin-bottom: 30px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stone { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 80px); z-index: 2; text-align: right; }
.hero-stone .name { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.hero-stone .meta { font-size: 14px; color: var(--pale-2); margin: 4px 0 10px; }
.hero-hint { position: absolute; left: var(--gutter); top: 100px; z-index: 2; font-size: 13px; color: var(--pale-2); }
.hero-fallback { display: none; }
@media (max-width: 900px) {
  .hero { min-height: 720px; }
  .hero-copy { right: var(--gutter); bottom: 32px; }
  .hero-stone { display: none; }
  .hero-hint { display: none; }
}

/* ---------- Home: intro ---------- */
.intro .grid-12 { align-items: end; row-gap: 32px; }
.intro h2 { grid-column: 1 / span 8; }
.intro .intro-side { grid-column: 9 / span 4; }
@media (max-width: 900px) { .intro h2, .intro .intro-side { grid-column: 1 / -1; } }

/* ---------- Home: families ---------- */
.families { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 6vw, 88px); }
.family { text-decoration: none; display: block; }
.family .sample { --ratio: 4 / 5; }
.family--big .sample { --ratio: 5 / 6; }
.family-stack { display: grid; gap: clamp(20px, 3vw, 44px); align-content: start; }
.family-stack .sample { --ratio: 16 / 9; }
.family-text { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-top: 18px; }
.family-text p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; max-width: 30em; }
.family-count { font-size: 14px; color: var(--fossil); white-space: nowrap; }
.family:hover h3 { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 800px) { .families { grid-template-columns: 1fr; } }

/* ---------- Home: studio teaser ---------- */
.teaser { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.teaser-stage { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(90% 90% at 50% 45%, #22382D, #0E1913); border: 1px solid var(--line-dark); }
.teaser-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.teaser-controls { margin-top: 28px; }
.teaser-controls .label { margin-bottom: 10px; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- Chips (material pickers) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 14px; }
.on-dark .chip, .dark .chip { border-color: var(--line-dark); }
.chip canvas, .chip .dotc { width: 30px; height: 30px; border-radius: 1px; }
.chip[aria-pressed="true"] { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.tone-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.tone-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); padding: 0; background: var(--c, #ccc); position: relative; }
.tone-dot[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); border-radius: 50%; }
.on-dark .tone-dot[aria-pressed="true"]::after { border-color: var(--pale); }

/* ---------- Home: the edit (horizontal strip) ---------- */
.edit-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.edit-strip { scroll-padding-inline: var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23vw); gap: clamp(18px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 44px var(--gutter) 18px; margin-top: 8px; scrollbar-width: thin; }
.edit-item { scroll-snap-align: start; text-decoration: none; }
.edit-item .sample { --ratio: 3 / 4; }
.edit-item h3 { font-size: 24px; margin-top: 16px; }
.edit-item p { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
.edit-controls { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; border-radius: 2px; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Material boards (projects) ---------- */
.board { position: relative; aspect-ratio: 4 / 3; background: var(--stone-2); overflow: hidden; }
.board canvas { width: 100%; height: 100%; }
.project-row { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(44px, 6vw, 90px) 0; border-top: 1px solid var(--line); }
.project-row:nth-child(even) .board-wrap { order: 2; }
.project-row h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 8px; }
.project-meta { font-size: 15px; color: var(--fossil); margin-bottom: 22px; }
.project-materials { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.project-materials li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.project-materials canvas { width: 38px; height: 38px; }
.project-materials a { text-decoration: none; }
.project-materials a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
@media (max-width: 860px) { .project-row { grid-template-columns: 1fr; } .project-row:nth-child(even) .board-wrap { order: 0; } }
.teaser-projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: 48px; }
.teaser-projects a { text-decoration: none; }
.teaser-projects h3 { margin-top: 18px; font-size: 26px; }
@media (max-width: 760px) { .teaser-projects { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.page-head { padding: calc(76px + clamp(56px, 8vw, 120px)) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { font-size: clamp(48px, 7.4vw, 120px); max-width: 11em; }
.page-head .lede { margin-top: 26px; }

/* ---------- Collections ---------- */
.filters { position: sticky; top: 76px; z-index: 20; background: rgba(238, 237, 234, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters-inner { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-group .fg-label { font-size: 13px; color: var(--fossil); margin-right: 6px; }
.seg { background: none; border: 1px solid transparent; border-radius: 2px; padding: 6px 11px; font-size: 14px; }
.seg:hover { border-color: var(--line); }
.seg[aria-pressed="true"] { background: var(--ink); color: var(--stone); }
.on-dark .seg[aria-pressed="true"], .studio .seg[aria-pressed="true"] { background: var(--pale); color: var(--verde); }
.result-count { margin-left: auto; font-size: 14px; color: var(--fossil); }
@media (max-width: 900px) { .filters { top: 64px; } .filters-inner { overflow-x: auto; flex-wrap: nowrap; } .filter-group { flex-wrap: nowrap; } .result-count { display: none; } }
.type-block { padding: clamp(48px, 6vw, 90px) 0 0; }
.type-block h2 { font-size: clamp(30px, 3.2vw, 46px); }
.type-block .type-note { color: var(--ink-2); max-width: 40em; margin-top: 10px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); margin-top: 36px; }
.product-grid { grid-auto-flow: dense; }
.product-grid .p-card:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.pair-grid .p-card:nth-child(n) { grid-column: auto; grid-row: auto; }
.pair-grid .p-card:nth-child(n) h3 { font-size: 23px; }
.p-card .sample { --ratio: 1; }
.p-card-body { padding-top: 14px; }
.p-card h3 { font-size: 23px; }
.p-card h3 a { text-decoration: none; }
.p-card h3 a::after { content: ""; position: absolute; inset: 0; }
.p-card { position: relative; }
.p-card:nth-child(7n+1) h3 { font-size: 32px; }
.p-card .p-meta { font-size: 14px; color: var(--fossil); margin: 2px 0 12px; }
.p-card .tone-dots { position: relative; z-index: 2; }
.p-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.empty { padding: 80px 0; font-size: 18px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .product-grid, .pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .product-grid .p-card:nth-child(7n+1) { grid-row: auto; } }

/* ---------- Product page ---------- */
.product-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 100svh; padding-top: 76px; }
.slab-stage { position: relative; background: radial-gradient(100% 80% at 50% 40%, #EDECE8, #D7D4CD); min-height: 520px; }
.slab-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.stage-bar { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; pointer-events: none; }
.stage-bar > * { pointer-events: auto; }
.seg-set { display: inline-flex; background: rgba(238, 237, 234, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 2px; padding: 3px; }
.stage-hint { font-size: 13px; color: var(--ink-2); position: absolute; top: 20px; left: 20px; }
.product-info { padding: clamp(32px, 4vw, 64px) var(--gutter); display: flex; flex-direction: column; gap: 26px; }
.product-info h1 { font-size: clamp(46px, 5.4vw, 86px); }
.product-info .crumbs { font-size: 14px; color: var(--fossil); }
.product-info .crumbs a { text-decoration: none; }
.product-info .crumbs a:hover { text-decoration: underline; }
.tone-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tone-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: none; padding: 4px 14px 4px 4px; border-radius: 2px; font-size: 14px; }
.tone-btn canvas { width: 34px; height: 34px; }
.tone-btn[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.specs { display: grid; grid-template-columns: 9em 1fr; margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.specs dt { color: var(--fossil); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.room-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
@media (max-width: 960px) { .product-top { grid-template-columns: 1fr; } .slab-stage { min-height: 70svh; } }
.macro { position: relative; height: clamp(260px, 38vw, 460px); overflow: hidden; background: var(--stone-2); }
.macro canvas { width: 100%; height: 100%; }
.macro-note { position: absolute; left: var(--gutter); bottom: 18px; font-size: 14px; background: rgba(238,237,234,.88); padding: 6px 12px; border-radius: 2px; }
.uses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 40px; }
.use { border-top: 1px solid var(--line); padding-top: 18px; }
.use h3 { font-size: 26px; margin-bottom: 8px; }
.use.is-off { opacity: .5; }
@media (max-width: 760px) { .uses-grid { grid-template-columns: 1fr; } }

/* ---------- Room studio ---------- */
body.studio { background: var(--verde); color: var(--pale); overflow: hidden; }
.studio-app { position: fixed; inset: 76px 0 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.stage { position: relative; overflow: hidden; background: radial-gradient(90% 80% at 45% 45%, #24392E, #0C1611 80%); }
.stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage-top { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.stage-top > * { pointer-events: auto; }
.room-tabs { display: inline-flex; background: rgba(12, 22, 17, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-dark); border-radius: 2px; padding: 3px; }
.room-tabs .seg { color: var(--pale); font-size: 15px; padding: 8px 14px; }
.room-tabs .seg[aria-pressed="true"] { background: var(--pale); color: var(--verde); }
.stage-tools { display: inline-flex; gap: 8px; }
.tool { height: 42px; padding: 0 14px; border: 1px solid var(--line-dark); background: rgba(12, 22, 17, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--pale); border-radius: 2px; font-size: 14px; }
.tool[aria-pressed="true"] { border-color: var(--brass); color: var(--brass-2); }
.stage-hint-s { position: absolute; left: 18px; bottom: 18px; font-size: 13px; color: var(--pale-2); pointer-events: none; }
.hover-tag { position: absolute; z-index: 5; pointer-events: none; background: var(--pale); color: var(--verde); font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 2px; transform: translate(14px, 14px); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.hover-tag.is-on { opacity: 1; }
.busy { position: absolute; right: 18px; bottom: 18px; font-size: 13px; color: var(--pale-2); opacity: 0; transition: opacity .2s; }
.busy.is-on { opacity: 1; }
.panel { background: var(--verde-2); border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; min-height: 0; }
.panel-scroll { overflow-y: auto; padding: 22px 24px 28px; flex: 1; scrollbar-width: thin; scrollbar-color: var(--verde-3) transparent; }
.panel h2 { font-size: 26px; margin: 0 0 14px; }
.panel-block + .panel-block { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line-dark); }
.surface-list { display: grid; gap: 6px; }
.surface { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 2px; padding: 6px; color: var(--pale); }
.surface canvas { width: 44px; height: 44px; }
.surface .s-name { font-size: 15px; font-weight: 500; display: block; line-height: 1.3; }
.surface .s-mat { font-size: 13px; color: var(--pale-2); display: block; line-height: 1.35; }
.surface:hover { border-color: var(--line-dark); }
.surface[aria-pressed="true"] { border-color: var(--brass); background: rgba(184, 146, 90, .08); }
.type-tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.type-tabs .seg { color: var(--pale); padding: 6px 10px; }
.mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mat { background: none; border: 0; padding: 0; color: var(--pale); text-align: left; display: flex; flex-direction: column; align-self: start; }
.mat canvas { width: 100%; aspect-ratio: 1; border: 1px solid transparent; border-radius: 1px; }
.mat span { display: block; font-size: 12px; line-height: 1.3; margin-top: 5px; color: var(--pale-2); }
.mat[aria-pressed="true"] canvas { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }
.mat[aria-pressed="true"] span { color: var(--pale); }
.mat-detail { margin-top: 20px; padding: 16px; background: rgba(0, 0, 0, .18); border-radius: 2px; }
.mat-detail h3 { font-size: 24px; }
.mat-detail .origin { font-size: 13px; color: var(--pale-2); margin: 2px 0 12px; }
.opt-row { margin-top: 14px; }
.opt-row .label { font-size: 13px; margin-bottom: 8px; }
.opt-row .seg { color: var(--pale); border-color: var(--line-dark); padding: 5px 10px; font-size: 13px; }
.look-list { display: grid; gap: 8px; }
.look { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; text-align: left; background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; padding: 10px; color: var(--pale); }
.look:hover { border-color: var(--pale-2); }
.look .trio { display: flex; }
.look .trio canvas { width: 30px; height: 44px; }
.look strong { font-weight: 500; font-size: 15px; display: block; }
.look small { font-size: 13px; color: var(--pale-2); display: block; line-height: 1.35; }
.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line-dark); background: var(--verde-2); }
.panel-actions .btn { min-height: 44px; font-size: 14px; padding: 10px 12px; }
@media (max-width: 960px) {
  body.studio { overflow: auto; }
  .studio-app { position: static; display: block; padding-top: 64px; }
  .stage { height: 62svh; min-height: 380px; }
  .panel { border-left: 0; }
  .panel-scroll { overflow: visible; }
  .mat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel-actions { position: sticky; bottom: 0; }
  .stage-hint-s { display: none; }
}

/* ---------- Atelier ---------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); }
.block-sticky { position: sticky; top: 120px; height: calc(100svh - 160px); display: grid; place-items: center; perspective: 1600px; }
.block3d { position: relative; width: min(340px, 70%); aspect-ratio: 1 / 1.25; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); }
.slice { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.slice .face { position: absolute; inset: 0; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.slice .edge-b { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; transform-origin: bottom; transform: rotateX(-90deg); background-size: cover; filter: brightness(.78); }
.slice .edge-r { position: absolute; top: 0; bottom: 0; right: 0; width: 14px; transform-origin: right; transform: rotateY(90deg); background-size: cover; filter: brightness(.66); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { min-height: 62svh; padding: 40px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; counter-increment: step; opacity: .38; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 20px; color: var(--brass); margin-bottom: 14px; }
.step h3 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 14px; }
.step p { max-width: 34em; color: var(--ink-2); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .block-sticky { position: relative; top: 0; height: 360px; } .step { min-height: 0; opacity: 1; } }
.origins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); margin-top: 44px; }
.origin-item { border-top: 1px solid var(--line-dark); padding: 20px 0 26px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.origin-item canvas { width: 56px; height: 56px; }
.origin-item h3 { font-size: 22px; }
.origin-item p { font-size: 15px; color: var(--pale-2); margin: 4px 0 0; }
@media (max-width: 860px) { .origins { grid-template-columns: 1fr; } }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 44px; }
.promise div { border-top: 1px solid var(--line); padding-top: 18px; }
.promise h3 { font-size: 24px; margin-bottom: 8px; }
.promise p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--fossil); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: #F7F6F3; border: 1px solid var(--stone-3); border-radius: 2px; font-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: #9A3B2E; box-shadow: 0 0 0 1px #9A3B2E; }
.field .error { font-size: 13px; color: #9A3B2E; min-height: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-set { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.radio-set label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--stone-3); padding: 10px 14px; border-radius: 2px; font-weight: 400; cursor: pointer; background: #F7F6F3; }
.radio-set input { accent-color: var(--ink); width: 16px; height: 16px; min-height: 0; margin: 0; }
.radio-set label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.picked { display: grid; gap: 8px; }
.picked-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: #F7F6F3; border: 1px solid var(--stone-3); padding: 6px 10px 6px 6px; border-radius: 2px; font-size: 15px; }
.picked-item canvas { width: 44px; height: 44px; }
.picked-item button { background: none; border: 0; font-size: 14px; text-decoration: underline; color: var(--ink-2); }
.aside-card { border-top: 1px solid var(--line); padding-top: 22px; }
.aside-card + .aside-card { margin-top: 36px; }
.aside-card h3 { font-size: 26px; margin-bottom: 10px; }
.aside-card p { color: var(--ink-2); font-size: 16px; }
.success { padding: 34px; background: var(--verde); color: var(--pale); border-radius: 2px; }
.success h2 { font-size: 40px; margin-bottom: 12px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Sample box drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(8, 14, 11, .5); z-index: 80; opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--stone); color: var(--ink); z-index: 90; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer.is-open + .drawer-scrim, .drawer-scrim.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.drawer-close { background: none; border: 0; font-size: 15px; text-decoration: underline; }
.drawer-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 18px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: var(--stone); padding: 12px 18px; border-radius: 2px; font-size: 15px; z-index: 95; opacity: 0; transition: .35s var(--ease); pointer-events: none; max-width: calc(100% - 40px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--verde); color: var(--pale); padding: clamp(64px, 8vw, 110px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.footer-top h2 { font-size: clamp(34px, 3.6vw, 52px); max-width: 12em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-cols h3 { font-family: var(--text); font-size: 14px; color: var(--pale-2); font-weight: 400; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; font-size: 16px; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 14px; color: var(--pale-2); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Poster shown instead of 3D on weaker machines ---------- */
.stage-poster { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: var(--verde-2); display: grid; place-items: center; overflow: hidden; }
.stage-poster-face { position: absolute; inset: 0; opacity: .5; }
.stage-poster-face canvas { width: 100%; height: 100%; object-fit: cover; }
.stage-poster-cta { position: relative; background: var(--pale); color: var(--verde); padding: 12px 22px; border-radius: 2px; font-size: 15px; font-weight: 500; }
.teaser-stage { position: relative; }

/* ---------- Flat hero when 3D is off ---------- */
.hero-flat { position: absolute; right: var(--gutter); top: 46%; transform: translateY(-50%); z-index: 1; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.hero-copy, .hero-stone { z-index: 3; }
@media (max-width: 900px) { .hero-flat { right: 50%; top: 26%; transform: translate(50%, -50%); } }

/* ---------- Loading state for 3D ---------- */
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--verde-2); z-index: 4; transition: opacity .5s var(--ease); text-align: center; padding: 20px; }
.stage-loading.is-done { opacity: 0; pointer-events: none; }
.stage-loading p { margin: 0; font-size: 15px; color: var(--pale-2); }
.stage-loading .bar { width: min(240px, 60vw); height: 2px; background: rgba(233,235,230,.2); margin: 16px auto 0; overflow: hidden; }
.stage-loading .bar span { display: block; height: 100%; width: 0; background: var(--brass); transition: width .4s var(--ease); }
.quality-note { position: absolute; left: 18px; bottom: 46px; font-size: 13px; color: var(--pale-2); }
.quality-note button { background: none; border: 0; color: var(--brass-2); text-decoration: underline; padding: 0; font-size: 13px; }

/* ---------- Flat Room studio (3D off) ---------- */
.flat-room { padding: 22px var(--gutter) 40px; }
.flat-note { font-size: 14px; color: var(--pale-2); margin: 0 0 18px; }
.flat-note button { background: none; border: 0; color: var(--brass-2); text-decoration: underline; font-size: 14px; padding: 0; }
.flat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.flat-cell { background: none; border: 1px solid var(--line-dark); border-radius: 2px; padding: 0 0 12px; color: var(--pale); text-align: left; }
.flat-cell canvas { width: 100%; aspect-ratio: 4 / 3; }
.flat-cell span { display: block; padding: 12px 12px 0; }
.flat-cell strong { display: block; font-weight: 500; font-size: 15px; }
.flat-cell small { color: var(--pale-2); font-size: 13px; }
.flat-cell[aria-pressed="true"] { border-color: var(--brass); }
.stage.is-flat { background: var(--verde-2); overflow-y: auto; }
.stage.is-flat .stage-top { position: static; padding: 18px var(--gutter) 0; }
.stage.is-flat .quality-note { position: static; padding: 4px var(--gutter) 28px; }

/* ---------- Photos uploaded in the admin ---------- */
.board--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: 32px; }
.gallery-item { padding: 0; border: 0; background: var(--stone-2); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.gallery-item.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 14, 11, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; }
.lightbox figure { margin: 0; }
.lightbox figcaption { color: var(--pale); text-align: center; font-size: 15px; padding-top: 12px; }
.lightbox-close { position: fixed; top: 18px; right: 22px; background: var(--pale); color: var(--verde); border: 0; padding: 10px 16px; border-radius: 2px; font-size: 14px; font-weight: 500; }

/* ---------- WhatsApp button and spam trap ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1F7A4D; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.socials span + span { margin-left: 10px; }

/* ---------- Book-match hero in CSS 3D ---------- */
.book-stage { --ry: -12deg; --rx: 0deg; --sx: 35%; --sy: 30%; --edge: #ddd; position: absolute; right: calc(var(--gutter) + 2vw); top: 47%; width: min(37vw, 60vh); aspect-ratio: 1 / 1; transform: translateY(-52%); perspective: 2000px; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); }
.book-stage.is-ready { opacity: 1; }
.book { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .9s var(--ease); }
.leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.65, 0, .3, 1); }
.leaf-l { left: 0; transform-origin: 100% 50%; transform: rotateY(0deg); }
.leaf-r { left: 50%; transform-origin: 0 50%; transform: rotateY(-179deg) translateZ(1px); }
.book-stage.is-open .leaf-l { transform: rotateY(11deg); }
.book-stage.is-open .leaf-r { transform: rotateY(-11deg); }
.face, .back, .shine { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face { overflow: hidden; background: var(--edge); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 70px -20px rgba(0, 0, 0, .55); }
.face i { position: absolute; inset: 0; background-size: cover; background-position: center; }
.face.mirror i { transform: scaleX(-1); }
.back { transform: rotateY(180deg); background: repeating-linear-gradient(0deg, #8e8a83 0 2px, #99958d 2px 5px, #87837c 5px 7px); }
.shine { pointer-events: none; background: radial-gradient(circle at var(--sx) var(--sy), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 42%), linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, 0) 60%); mix-blend-mode: soft-light; transition: background-position .3s; }
.leaf-l::after, .leaf-r::after { content: ""; position: absolute; top: 0; bottom: 0; width: 10px; background: var(--edge); filter: brightness(.72); backface-visibility: hidden; }
.leaf-l::after { left: 0; transform-origin: 0 50%; transform: rotateY(90deg); }
.leaf-r::after { right: 0; transform-origin: 100% 50%; transform: rotateY(-90deg); }
.book-shadow { position: absolute; left: 6%; right: 6%; bottom: -7%; height: 12%; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); filter: blur(6px); transform: translateZ(-1px); }
@media (max-width: 900px) {
  .book-stage { right: 50%; top: 92px; width: min(74vw, 42vh); transform: translateX(50%); }
}

/* ---------- Kitchen preview (pre-rendered) ---------- */
a.teaser-stage { display: block; overflow: hidden; text-decoration: none; }
.teaser-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease), transform .8s var(--ease); }
.teaser-stage img.is-fading { opacity: 0; }
.teaser-stage:hover img { transform: scale(1.02); }
.teaser-cta { position: absolute; right: 16px; bottom: 16px; background: var(--pale); color: var(--verde); padding: 10px 16px; border-radius: 2px; font-size: 14px; font-weight: 500; }

/* ---------- Product slab viewer in CSS 3D ---------- */
.slab3d { --ry: -8deg; --rx: 0deg; --sx: 40%; --sy: 30%; --shine: 1; --edge: #ddd; position: absolute; left: 50%; top: 46%; height: min(76%, 820px); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); perspective: 2200px; opacity: 0; transition: opacity .5s var(--ease); }
.slab3d.is-ready { opacity: 1; }
.slab3d .leaf-l { transform: rotateY(0deg); transition: transform .8s var(--ease), left .8s var(--ease); }
.slab3d .leaf-r { transform: rotateY(0deg); transition: transform .8s var(--ease), opacity .5s var(--ease); }
.slab3d.is-single .leaf-l { left: 25%; }
.slab3d.is-single .leaf-r { opacity: 0; transform: rotateY(-100deg); }
.slab3d.is-book .leaf-l { transform: rotateY(7deg); }
.slab3d.is-book .leaf-r { transform: rotateY(-7deg); }
.slab3d .shine { opacity: var(--shine); transition: opacity .4s var(--ease); }
.slab3d.is-textured .face::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 30% 40%, rgba(0,0,0,.05) 0 1px, rgba(255,255,255,.04) 1px 3px); mix-blend-mode: multiply; }
.slab3d .face { box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 40px 60px -24px rgba(0,0,0,.35); }
.slab3d .book-shadow { bottom: -6%; opacity: .5; }
