/* KC Kitchen Cabinet Design Studio — warm showroom palette */
@font-face {
  font-family: "Italiana";
  src: url("/assets/fonts/italiana.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f7f4ef;
  --paper: #fffdfa;
  --stone: #ece6dd;
  --line: #ddd5c9;
  --ink: #1f1d1a;
  --ink-2: #3a362f;
  --muted: #6b645b;
  --oak: #b08a4e;
  --oak-dark: #8a6630;
  --night: #23211e;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oak-dark);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--oak-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(247,244,239,.5); color: var(--cream); }
.btn--ghost-light:hover { border-color: var(--cream); background: rgba(247,244,239,.08); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .93rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--oak); padding-bottom: 2px; }
.link-arrow:hover { color: var(--oak-dark); }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand__kc { font: 400 2.5rem/1 "Italiana", var(--serif); letter-spacing: .04em; }
.brand__rule { width: 1px; height: 36px; background: var(--oak); margin: 0 14px; flex: none; }
.brand__words { display: flex; flex-direction: column; gap: 5px; font: 500 .66rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.brand__words span:last-child { color: var(--oak-dark); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--oak-dark); }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 520px) {
  .topbar__inner { height: 64px; gap: 12px; }
  .brand__kc { font-size: 2.1rem; }
  .brand__rule { height: 30px; margin: 0 10px; }
  .brand__words { font-size: .58rem; letter-spacing: .26em; }
  .topbar .btn span { display: none; }
  .topbar .btn { width: 44px; padding: 0; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: min(720px, calc(100vh - 72px)); }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 56px 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.hero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__addr { font-size: .93rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__addr svg { width: 16px; height: 16px; color: var(--oak); }
.hero__img { position: relative; overflow: hidden; background: var(--stone); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__badge {
  position: absolute; left: 24px; bottom: 24px; background: rgba(31,29,26,.78); color: var(--cream);
  padding: 8px 14px; border-radius: 999px; font-size: .8rem; backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__img { order: -1; aspect-ratio: 16 / 10; }
  .hero__text { padding: 36px 24px 44px; gap: 18px; }
}

/* Facts strip */
.facts { background: var(--night); color: var(--cream); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 30px 24px; border-left: 1px solid rgba(247,244,239,.12); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact svg { width: 28px; height: 28px; flex: none; color: #c9a46a; margin-top: 2px; }
.fact strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.fact span { font-size: .9rem; color: rgba(247,244,239,.72); }
@media (max-width: 900px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 12px; border-left: 0; }
  .fact:first-child { padding-left: 12px; }
}
@media (max-width: 480px) { .facts__grid { grid-template-columns: 1fr; } .fact { padding: 16px 0; } .fact:first-child { padding-left: 0; } }

/* Sections */
.section { padding: 104px 0; }
.section--paper { background: var(--paper); }
.section--stone { background: var(--stone); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 44px; }
.section__head > div { max-width: 640px; display: grid; gap: 14px; }
.section__head p { color: var(--muted); font-size: 1.07rem; }
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
}

/* Door-style scenes */
.styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.styles-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.scene { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.scene img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform .6s ease; }
.styles-grid figure:first-child img { position: absolute; inset: 0; aspect-ratio: auto; }
.scene:hover img { transform: scale(1.04); }
.scene figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 14px; display: flex; flex-direction: column;
  color: rgba(255,255,255,.85); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(to top, rgba(20,18,16,.72), rgba(20,18,16,0));
}
.scene figcaption b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: #fff; }
.styles-grid figure:first-child figcaption b { font-size: 1.5rem; }
@media (max-width: 760px) {
  .styles-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .styles-grid figure:first-child { grid-row: auto; }
  .styles-grid figure:first-child img { position: static; aspect-ratio: 16 / 10; }
}

/* Swatches */
.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 40px; }
.swatches--6 { grid-template-columns: repeat(6, 1fr); margin-top: 0; }
.swatch { margin: 0; }
.swatch img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 8px; }
.swatches--slab .swatch img { aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }
.swatches--floor .swatch img { aspect-ratio: 1; }
.swatch figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-2); }
.section__more { margin-top: 36px; }
@media (max-width: 900px) {
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .swatches--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .swatches, .swatches--6 { grid-template-columns: repeat(2, 1fr); } }

/* Two-up product sections */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.duo > section { display: grid; gap: 22px; align-content: start; }
.duo p.lead { color: var(--muted); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; gap: 72px; } }
.duo .swatches--6 { grid-template-columns: repeat(3, 1fr); }

/* Real photos */
.real { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.real img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.real img:first-child { grid-row: span 2; }
@media (max-width: 900px) {
  .real { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .real img { scroll-snap-align: start; }
  .real img:first-child { grid-row: auto; }
}

/* How it works */
.steps { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--oak);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--oak-dark);
}
.steps h3 { margin-bottom: 6px; }
.steps li p { color: var(--muted); }
.measure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; position: sticky; top: 96px; }
.measure img { width: 100%; }
.measure h3 { font-size: 1.15rem; }
.measure p { font-size: .92rem; color: var(--muted); }
.note { margin-top: 36px; padding: 18px 22px; border-radius: var(--radius); background: var(--stone); display: flex; gap: 14px; align-items: center; }
.note svg { width: 26px; height: 26px; color: var(--oak); flex: none; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; } .measure { position: static; } }

/* Ideas */
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ideas .scene img { aspect-ratio: 16 / 10; }
@media (max-width: 760px) { .ideas { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; }
.about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__text { display: grid; gap: 20px; }
.about__text p { color: var(--ink-2); font-size: 1.07rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.22rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--oak); border-bottom: 2px solid var(--oak); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 680px; }

/* Visit */
.visit { background: var(--night); color: var(--cream); }
.visit__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: stretch; }
.visit__info { display: grid; gap: 24px; align-content: center; }
.visit .eyebrow { color: #c9a46a; }
.visit__lead { color: rgba(247,244,239,.78); font-size: 1.1rem; }
.visit dl { margin: 0; display: grid; gap: 16px; }
.visit dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,239,.55); }
.visit dd { margin: 2px 0 0; font-size: 1.08rem; }
.visit dd a { text-decoration: none; border-bottom: 1px solid rgba(247,244,239,.3); }
.visit dd a:hover { border-color: var(--cream); }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #33302b; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) contrast(1.05); }
@media (max-width: 900px) { .visit__grid { grid-template-columns: 1fr; gap: 36px; } }

/* CTA band (products page) */
.band { background: var(--night); color: var(--cream); border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.band p { color: rgba(247,244,239,.75); margin-top: 8px; }

/* Footer */
.footer { background: #181715; color: rgba(247,244,239,.7); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer strong { color: var(--cream); font-family: var(--serif); font-weight: 500; font-size: 1.1rem; display: block; margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer__small { margin-top: 32px; font-size: .8rem; color: rgba(247,244,239,.45); }

/* Mobile action bar */
.actionbar { display: none; }
@media (max-width: 760px) {
  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,244,239,.96);
    border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .actionbar .btn { min-height: 48px; padding: 0 12px; }
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Products page */
.page-head { padding: 72px 0 28px; display: grid; gap: 14px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(247,244,239,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 8px; overflow-x: auto; padding: 12px 24px; }
.subnav a { flex: none; text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; background: var(--paper); }
.subnav a:hover { border-color: var(--ink); }
.subnav a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
@media (max-width: 520px) { .subnav { top: 64px; } }
.cat { padding: 64px 0 24px; }
.cat__head { display: grid; gap: 8px; margin-bottom: 28px; }
.cat__head p { color: var(--muted); }
.cat h3 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-dark); margin: 30px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 18px; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { margin: 0; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.grid--wide .card img { aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }
.grid--floor .card img { aspect-ratio: 1; }
.card figcaption { margin-top: 10px; font-size: .93rem; font-weight: 500; }
.cat { scroll-margin-top: 140px; }
.section__head .eyebrow, .about__text .eyebrow, .duo .eyebrow { color: var(--oak-dark); font-size: .8rem; }
.visit .eyebrow { color: #c9a46a; }
.measure img { max-width: 360px; margin: 0 auto; }
.steps { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .styles-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .styles-grid figure { scroll-snap-align: start; }
  .styles-grid figure:first-child { grid-column: auto; }
  .styles-grid figure:first-child figcaption b { font-size: 1.15rem; }
}
.page-head { padding: 72px 24px 28px; }
.cat { padding: 64px 24px 24px; }
.page-head .eyebrow { color: var(--oak-dark); font-size: .8rem; }
@media (max-width: 760px) { .page-head { padding-top: 44px; } .cat { padding-top: 48px; } }
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .grid--wide { grid-template-columns: 1fr; }
  .card figcaption { font-size: .88rem; }
}
.visit dd a.dir { display: inline-block; margin-top: 8px; font-size: .95rem; color: #c9a46a; border-color: rgba(201,164,106,.5); }

/* Marble texture (Fantasy Gold) */
.hero__text { background: linear-gradient(rgba(247,244,239,.74), rgba(247,244,239,.74)), url("/assets/img/marble.webp") center / cover; }
.band { background: linear-gradient(rgba(250,248,244,.62), rgba(250,248,244,.62)), url("/assets/img/marble.webp") center / cover; color: var(--ink); border: 1px solid var(--line); }
.band p { color: var(--ink-2); }
.band .btn--light { background: var(--ink); color: var(--cream); }
.band .btn--light:hover { background: var(--oak-dark); }
.footer__logo { display: flex !important; align-items: center; color: var(--cream); margin-bottom: 14px !important; }
.footer__logo .brand__kc { font-size: 2rem; }
.footer__logo .brand__words span:last-child { color: #c9a46a; }

/* ---------- Mix & match (3D) ---------- */
.mix { background: var(--paper); }
.mix__grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 36px; align-items: start; }
.mix__stage {
  position: relative; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 38%, #fffdf9 0%, #f3ede4 58%, #e7ded1 100%);
}
.mix__poster, .mix__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mix__poster { object-fit: contain; transition: opacity .6s .25s; }
.mix__canvas { opacity: 0; transition: opacity .6s; touch-action: pan-y; cursor: grab; outline: none; }
.mix__canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--oak); }
.mix__canvas.is-dragging { cursor: grabbing; }
.mix__stage.is-live .mix__canvas { opacity: 1; }
.mix__stage.is-live .mix__poster { opacity: 0; }
.mix__hint {
  position: absolute; left: 14px; bottom: 14px; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: rgba(31,29,26,.72); color: var(--cream); font-size: .78rem; letter-spacing: .04em;
  opacity: 0; transition: opacity .4s .8s; pointer-events: none;
}
.mix__stage.is-live .mix__hint { opacity: 1; }
.mix__panel { display: grid; gap: 22px; }
.mix__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.mix__group legend { padding: 0; margin-bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--oak-dark); }
.mix__group legend span { margin-left: 8px; font: 500 1.02rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.mix__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  width: 48px; height: 48px; padding: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.chip img { width: 100%; height: 100%; object-fit: cover; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--oak); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.mix__cta {
  display: grid; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(rgba(250,248,244,.7), rgba(250,248,244,.7)), url("/assets/img/marble.webp") center / cover;
}
.mix__combo { font: 500 1.1rem/1.35 var(--serif); }
.mix__cta .btn { justify-self: start; }
.mix__note { font-size: .82rem; color: var(--muted); }
.hero__try { margin-top: -4px; }
@media (max-width: 900px) {
  .mix__grid { grid-template-columns: 1fr; gap: 24px; }
  .mix__stage { aspect-ratio: 4 / 3.4; margin: 0 -8px; }
}

/* ---------- Gold shimmer along the marble veins (hero) ---------- */
.hero__text { position: relative; }
.hero__text > * { position: relative; z-index: 1; }
.hero__text::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(212,170,96,0) 40%, rgba(212,170,96,.85) 50%, rgba(212,170,96,0) 60%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url("/assets/img/marble-veins.webp") center / cover; mask: url("/assets/img/marble-veins.webp") center / cover;
  animation: vein-shine 9s ease-in-out 1.2s infinite;
}
@keyframes vein-shine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .hero__text::after { display: none; } }

/* ---------- Product full view (viewer.js) ---------- */
.is-viewable { position: relative; cursor: zoom-in; }
.is-viewable:focus-visible { outline: 2px solid var(--oak); outline-offset: 4px; border-radius: 10px; }
.is-viewable::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; pointer-events: none;
  background: rgba(31,29,26,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7f4ef' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; z-index: 2;
}
.is-viewable:hover::after, .is-viewable:focus-visible::after { opacity: 1; transform: none; }
.is-viewable:hover img { filter: brightness(1.02); }

html.viewer-open { overflow: hidden; }
.viewer { padding: 0; margin: 0; border: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: rgba(20,18,16,.96); color: var(--cream); overflow: hidden; }
.viewer::backdrop { background: rgba(20,18,16,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.viewer__frame { position: relative; box-sizing: border-box; width: 100%; height: 100%; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 28px 8px; }
.viewer__fig { grid-column: 2; justify-self: center; width: 100%; margin: 0; min-height: 0; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.viewer__media { min-height: 0; display: flex; justify-content: center; background: #fff; border-radius: 16px; padding: 20px; max-width: min(1120px, 100%); touch-action: pan-y; }
.viewer__media img { display: block; max-width: 100%; max-height: calc(100dvh - 200px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; }
.viewer[data-kind="countertops"] .viewer__media, .viewer.is-scene .viewer__media { padding: 0; background: transparent; }
.viewer[data-kind="countertops"] .viewer__media img, .viewer.is-scene .viewer__media img { border-radius: 12px; }
.viewer__bar { width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.viewer__text { flex: 1; min-width: 200px; }
.viewer__kind { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9a46a; }
.viewer__name { font: 500 1.6rem/1.2 var(--serif); margin-top: 4px; }
.viewer__count { color: rgba(247,244,239,.6); font-size: .9rem; }
.viewer__nav, .viewer__close {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(247,244,239,.35); background: rgba(247,244,239,.08); color: var(--cream); font: 400 2rem/1 var(--sans);
  transition: background .2s, border-color .2s;
}
.viewer__nav:hover, .viewer__close:hover { background: rgba(247,244,239,.18); border-color: var(--cream); }
.viewer__nav:focus-visible, .viewer__close:focus-visible, .viewer__cta:focus-visible { outline: 2px solid #c9a46a; outline-offset: 3px; }
.viewer__nav--prev { grid-column: 1; justify-self: center; }
.viewer__nav--next { grid-column: 3; justify-self: center; }
.viewer__frame:focus { outline: none; }
.viewer__close { position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.9rem; z-index: 3; }
.viewer.is-single .viewer__nav { visibility: hidden; }
@media (max-width: 760px) {
  .viewer__frame { grid-template-columns: minmax(0, 1fr); padding: 70px 12px calc(16px + env(safe-area-inset-bottom)); align-items: start; }
  .viewer__fig { grid-column: 1; gap: 14px; width: 100%; min-width: 0; }
  .viewer__media { padding: 12px; border-radius: 12px; }
  .viewer__media img { max-height: calc(100dvh - 290px); }
  .viewer__nav { position: absolute; top: 14px; width: 46px; height: 46px; font-size: 1.7rem; }
  .viewer__nav--prev { left: 12px; } .viewer__nav--next { left: 66px; }
  .viewer__name { font-size: 1.3rem; }
  .viewer__cta { width: 100%; }
}

/* social link with brand icon (footer) */
.social { display: inline-flex; align-items: center; gap: 8px; }
.social img { width: 20px; height: 20px; }
.guides-teaser { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.guides-teaser a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; }
.guides-teaser a strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
.guides-teaser a span { color: var(--muted); font-size: .95rem; }
.guides-teaser a:hover { border-color: var(--oak); }
