/* ============================================================
   Pistritto Marble Imports — pistrittomarble.com
   Palette: bianco (marble white) / verde alpi (deep green) / brass
   Type: Marcellus (display) · Figtree (body) · IBM Plex Mono (tags)
   ============================================================ */

:root {
  --bianco: #F6F4EF;
  --bianco-2: #EDEAE1;
  --vein: #D9D3C6;
  --vein-soft: #E6E1D6;
  --ink: #23211C;
  --stone: #6E685C;
  --verde: #16382E;
  --verde-deep: #0E2620;
  --verde-line: #2A4C40;
  --brass: #A8804A;
  --brass-bright: #C29A5E;
  --brass-btn: #8A6531;
  --paper-dark: #E9E5DA;
  --muted-dark: #9FB0A6;
  --radius: 10px;
  --shadow: 0 18px 50px -18px rgba(20, 30, 26, .35);
  --font-display: "Marcellus", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bianco);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 300;
  background: var(--verde); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 6px 6px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ---------- type helpers ---------- */

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}

.lede { color: var(--stone); max-width: 56ch; margin-top: 1rem; font-size: 1.1rem; }

.tag {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brass);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  letter-spacing: .04em;
  padding: .95rem 1.7rem; border-radius: 6px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:active { transform: translateY(1px); }

.btn-brass { background: var(--brass-btn); color: #FBF8F1; }
.btn-brass:hover { background: #74521f; }

.btn-ghost { border-color: var(--vein); color: inherit; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-btn); }
.section-dark .btn-ghost { border-color: var(--verde-line); }
.section-dark .btn-ghost:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- top bar ---------- */

.topbar {
  background: var(--verde-deep); color: var(--paper-dark);
  font-family: var(--font-mono); font-size: .78rem;
}
.topbar-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 38px; justify-content: space-between;
}
.topbar a { color: var(--brass-bright); text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
.topbar-addr { display: none; color: var(--muted-dark); }
@media (min-width: 720px) { .topbar-addr { display: inline; } }

.lamp { display: inline-flex; align-items: center; gap: .5rem; }
.lamp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7d7d72; flex: none;
}
.lamp.is-open .lamp-dot { background: #59B87A; box-shadow: 0 0 8px rgba(89,184,122,.7); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246, 244, 239, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vein);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 42px; width: auto; display: block; }

/* nav */
.site-nav { display: flex; align-items: center; gap: 1.45rem; }
.site-nav > a, .nav-drop > a {
  text-decoration: none; font-weight: 500; font-size: .96rem;
  color: var(--ink);
}
.site-nav > a:hover, .nav-drop > a:hover { color: var(--brass-btn); }
.site-nav .btn-nav { padding: .6rem 1.1rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; position: relative; z-index: 260;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; display: block; position: absolute; left: 10px;
  width: 26px; height: 2px; background: var(--ink); transition: transform .22s, top .22s, opacity .22s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { top: -8px; left: 0; }
.nav-toggle-bar::after { top: 8px; left: 0; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* mega dropdown */
.nav-drop { position: relative; display: flex; align-items: center; gap: .15rem; }
.nav-caret {
  background: none; border: 0; cursor: pointer; color: var(--stone);
  font-size: .7rem; padding: .35rem; transition: transform .2s;
}
.nav-drop.open .nav-caret { transform: rotate(180deg); }
.nav-mega {
  position: absolute; top: calc(100% + 18px); left: -1rem;
  display: none; grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1.4rem; width: min(660px, 92vw);
  background: #FDFCF9; border: 1px solid var(--vein); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem 1.6rem 1.1rem;
}
.nav-drop.open .nav-mega { display: grid; }
.nav-mega::before {
  content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px;
}
@media (min-width: 961px) {
  .nav-drop:hover .nav-mega,
  .nav-drop:focus-within .nav-mega { display: grid; }
}
.nav-mega.nav-mini {
  grid-template-columns: 1fr; width: 240px; min-width: 0; left: -.6rem;
}
.mega-col h4 {
  font-family: var(--font-mono); font-weight: 500; font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-btn);
  margin-bottom: .55rem;
}
.mega-col a {
  display: block; text-decoration: none; font-size: .92rem;
  padding: .28rem 0; color: var(--ink);
}
.mega-col a:hover { color: var(--brass-btn); }
.mega-foot {
  grid-column: 1 / -1; border-top: 1px solid var(--vein-soft);
  padding-top: .85rem; font-size: .9rem;
}
.mega-foot a { color: var(--verde); text-decoration: none; font-weight: 600; }
.mega-foot a:hover { color: var(--brass-btn); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  /* backdrop-filter makes the header the containing block for the fixed
     drawer inside it (clipping it to header height) — disable on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bianco); }
  body.nav-open .site-header { z-index: 260; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 240;
    background: rgba(11, 28, 23, .45);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility .28s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 250;
    width: min(86vw, 380px);
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0; padding: 5.4rem 1.5rem 6.5rem;
    background: var(--bianco); overflow-y: auto;
    box-shadow: -20px 0 50px rgba(20, 30, 26, .28);
    transform: translateX(105%); visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .site-nav > a {
    font-size: 1.2rem; font-family: var(--font-display);
    padding: .75rem 0; border-bottom: 1px solid var(--vein-soft);
  }
  .nav-drop { display: block; border-bottom: 1px solid var(--vein-soft); padding: .75rem 0 .55rem; }
  .nav-drop > a { font-size: 1.2rem; font-family: var(--font-display); }
  .nav-caret { display: none; }
  .nav-mega {
    display: grid !important;
    position: static; box-shadow: none; border: 0; background: none;
    padding: .55rem 0 .2rem; width: 100%; grid-template-columns: 1fr 1fr; gap: .9rem;
  }
  .nav-mega::before { display: none; }
  .mega-foot { display: none; }
  .site-nav .btn-nav {
    font-family: var(--font-body); font-size: 1rem; text-align: center;
    border-bottom: 0; margin-top: 1.4rem; padding: .95rem 1.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
  .nav-backdrop { transition: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; color: #F2EFE7; overflow: hidden; background: var(--verde-deep); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(98deg, rgba(11, 28, 23, .93) 8%, rgba(11, 28, 23, .72) 46%, rgba(11, 28, 23, .38) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  align-items: center;
}
.hero h1 { color: #FBF9F3; margin: 0 0 1.1rem; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero-sub { font-size: 1.12rem; max-width: 50ch; color: #D8D9CE; }
.hero .eyebrow { color: var(--brass-bright); }

.hero-points { list-style: none; margin-top: 1.6rem; display: grid; gap: .55rem; }
.hero-points li {
  padding-left: 1.5rem; position: relative; color: #E4E2D6; font-size: .99rem;
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 11px; height: 11px;
  background: linear-gradient(135deg, var(--brass-bright), var(--brass-btn));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* the ticket (lead form) */
.ticket {
  background: var(--bianco); color: var(--ink);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 460px; justify-self: end; width: 100%;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--verde); color: var(--paper-dark);
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; padding: .8rem 1.4rem;
}
.ticket-head .ticket-no { color: var(--brass-bright); }
.ticket-body { padding: 1.4rem 1.4rem 1.5rem; }
.form-sub { font-size: .95rem; color: var(--stone); margin-bottom: 1.1rem; }

.field { margin-bottom: .95rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600;
  letter-spacing: .02em; margin-bottom: .3rem;
}
.field .optional { color: var(--stone); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--ink);
  background: #FDFCF9; border: 1px solid var(--vein);
  border-radius: 6px; padding: .68rem .8rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hidden-field { display: none; }
.form-alt { text-align: center; font-size: .9rem; color: var(--stone); margin-top: .9rem; }
.form-alt a { color: var(--verde); font-weight: 600; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .ticket { justify-self: stretch; max-width: none; }
  .hero-bg { object-position: 32% 50%; }
}

/* ---------- vein divider ---------- */

.vein-divider { display: block; width: 100%; height: 64px; color: var(--vein); }
.section-dark + .vein-wrap .vein-divider,
.vein-wrap.on-dark .vein-divider { color: var(--verde-line); }
.vein-wrap { line-height: 0; background: var(--bianco); }

/* ---------- sections ---------- */

.section { padding: clamp(3.4rem, 7vw, 5.6rem) 0; }
.section-alt { background: var(--bianco-2); }
.section-dark { background: linear-gradient(180deg, var(--verde) 0%, var(--verde-deep) 100%); color: var(--paper-dark); }
.section-dark h2, .section-dark h3 { color: #F5F2E9; }
.section-dark .lede { color: var(--muted-dark); }
.section-dark .eyebrow { color: var(--brass-bright); }

.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.gallery-item {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--vein-soft);
}
.gallery-media { overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover .gallery-media img { transform: scale(1.045); }
.gallery-caption {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .85rem 1.05rem;
  border-top: 1px solid var(--vein-soft);
}
.gallery-no { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; color: var(--brass-btn); white-space: nowrap; }
.gallery-title { font-size: .93rem; font-weight: 500; }
.gallery-cue { margin-left: auto; color: var(--brass); transition: transform .25s; }
.gallery-item:hover .gallery-cue { transform: translateX(4px); }

@media (max-width: 880px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- stone (materials) ---------- */

.stone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.stone-card {
  background: #FDFCF9; border: 1px solid var(--vein-soft); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.stone-chip {
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 3px 12px rgba(30,30,25,.25);
  background-size: 520%; background-position: center;
  margin-bottom: .4rem;
}
.stone-card h3 { font-size: 1.25rem; }
.stone-card p { font-size: .95rem; color: var(--stone); }
.stone-card .tag { margin-top: auto; padding-top: .5rem; }
.stone-more {
  display: inline-block; margin-top: .55rem;
  font-size: .93rem; font-weight: 600; color: var(--verde); text-decoration: none;
}
.stone-more:hover { color: var(--brass-btn); }

.stone-quote {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-left: 3px solid var(--brass);
  padding: .4rem 0 .4rem 1.5rem;
  max-width: 62ch;
}
.stone-quote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.45; }
.stone-quote footer { margin-top: .5rem; font-size: .88rem; color: var(--stone); }

@media (max-width: 880px) { .stone-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .stone-grid { grid-template-columns: 1fr; } }

/* ---------- surfaces (what we fabricate) ---------- */

.surface-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.surface {
  border: 1px solid var(--verde-line); border-radius: var(--radius);
  padding: 1.45rem 1.5rem; background: rgba(255,255,255,.025);
}
.surface h3 { font-size: 1.22rem; margin-bottom: .45rem; }
.surface p { font-size: .95rem; color: var(--muted-dark); }
.surface .tag { display: inline-block; margin-bottom: .8rem; color: var(--brass-bright); }
.surface-cta { margin-top: 2.2rem; display: flex; gap: .9rem; flex-wrap: wrap; }

@media (max-width: 880px) { .surface-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .surface-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */

.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem;
  counter-reset: step;
}
.step { border-top: 2px solid var(--vein); padding-top: 1.1rem; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.6rem; color: var(--brass);
  display: block; line-height: 1; margin-bottom: .55rem;
}
.step h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; color: var(--stone); }

@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- trade band ---------- */

.trade-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border: 1px solid var(--brass); border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background:
    linear-gradient(285deg, rgba(22, 56, 46, .05), transparent 55%),
    #FDFCF9;
}
.trade-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.trade-band p { color: var(--stone); max-width: 52ch; }

/* ---------- family / about ---------- */

.family-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.family-copy p { margin-top: 1rem; }
.family-copy p:first-of-type { margin-top: 0; }
.family-quote {
  font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4;
  color: var(--verde); margin-top: 1.6rem;
  border-top: 1px solid var(--vein); padding-top: 1.4rem;
}
.family-names {
  margin-top: 1.4rem; font-family: var(--font-mono); font-size: .8rem;
  letter-spacing: .1em; color: var(--stone); text-transform: uppercase;
}
.family-reach { margin-top: .9rem; font-size: .92rem; color: var(--stone); }
.family-reach a { color: var(--verde); font-weight: 600; }
.family-reach a:hover { color: var(--brass-btn); }
.family-photo { position: relative; }
.family-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.family-photo figcaption {
  display: flex; gap: .8rem; align-items: baseline;
  font-size: .88rem; color: var(--stone); padding: .8rem .2rem 0;
}
@media (max-width: 880px) { .family-inner { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review {
  background: #FDFCF9; border: 1px solid var(--vein-soft); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem; display: flex; flex-direction: column;
}
.stars { color: var(--brass); letter-spacing: .18em; font-size: .95rem; margin-bottom: .8rem; }
.review p { font-size: .98rem; }
.review footer { margin-top: auto; padding-top: 1rem; font-size: .85rem; color: var(--stone); }
.review-links { margin-top: 1.8rem; font-size: .92rem; color: var(--stone); }
.review-links a { color: var(--verde); font-weight: 600; }

@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */

.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.visit-details { display: grid; gap: 1.05rem; margin: 1.6rem 0 1.9rem; }
.visit-details dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--brass-bright); margin-bottom: .15rem;
}
.visit-details dd { color: var(--paper-dark); }
.visit-details a { color: #fff; }
.visit-details .directions-link { color: var(--brass-bright); font-size: .92rem; }
.visit-hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1.2rem; font-size: .98rem; }
.visit-hours span:nth-child(odd) { color: var(--muted-dark); }
.visit-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--verde-line); min-height: 320px; height: 100%;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 880px) { .visit-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { background: #fff; border-top: 1px solid var(--vein); color: var(--stone); font-size: .94rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.4rem; padding: 3.2rem 0 2.2rem;
}
.footer-logo { height: 54px; width: auto; display: block; margin-bottom: 1rem; }
.footer-nav { display: grid; gap: .45rem; align-content: start; }
.footer-nav a, .footer-contact a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brass-btn); }
.footer-contact p { margin: .4rem 0; }
.footer-contact a { display: inline-block; margin-bottom: .2rem; }
.footer-social { margin-top: .7rem; }
.footer-legal {
  border-top: 1px solid var(--vein-soft);
  padding-top: 1.4rem; padding-bottom: 1.6rem;
  font-size: .82rem;
}
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--brass-btn); }
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- mobile tab bar ---------- */

.tabbar {
  /* sticky (not fixed): iOS Chrome/Safari leave a gap under fixed bottom
     bars while their toolbar collapses during scroll */
  position: sticky; bottom: 0; z-index: 210;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(14, 38, 32, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--verde-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: .55rem .2rem .6rem; text-decoration: none;
  color: var(--muted-dark); font-size: .66rem; font-weight: 600; letter-spacing: .04em;
}
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.tab-active { color: var(--brass-bright); }
.tab-cta { position: relative; color: var(--paper-dark); }
.tab-cta-btn {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-top: -20px;
  background: linear-gradient(150deg, var(--brass-bright), var(--brass-btn));
  border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.4);
  color: #fff;
}
.tab-cta-btn svg { width: 22px; height: 22px; }
@media (min-width: 961px) { .tabbar { display: none; } }
@media (max-width: 960px) { body { padding-bottom: 0; } }

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery-media img { transition: none; }
}

/* ---------- gallery pages ---------- */

.gallery-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.gallery-tabs a {
  padding: .5rem 1.15rem; border: 1px solid var(--vein); border-radius: 999px;
  text-decoration: none; font-size: .93rem; font-weight: 600; color: var(--ink);
  transition: border-color .18s, color .18s;
}
.gallery-tabs a:hover { border-color: var(--brass); color: var(--brass-btn); }
.gallery-tabs a[aria-current="page"] { background: var(--verde); border-color: var(--verde); color: #fff; }

.masonry { columns: 3; column-gap: 1.1rem; }
.masonry img {
  width: 100%; display: block; margin-bottom: 1.1rem;
  border-radius: var(--radius); border: 1px solid var(--vein-soft);
  break-inside: avoid;
}
@media (max-width: 880px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }

/* ---------- stone detail pages ---------- */

.crumbs {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 1.1rem;
}
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brass-btn); }

.stone-intro {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.stone-intro p { margin-top: 1rem; }
.stone-intro figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.stone-intro figcaption {
  display: flex; gap: .8rem; align-items: baseline;
  font-size: .88rem; color: var(--stone); padding: .8rem .2rem 0;
}
@media (max-width: 880px) { .stone-intro { grid-template-columns: 1fr; } }

.traits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem; margin-top: .6rem;
}
.traits > div {
  border-top: 2px solid var(--vein); padding-top: .9rem;
}
.traits dt {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-btn); margin-bottom: .3rem;
}
.traits dd { font-size: .96rem; color: var(--stone); }

.stone-others {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem;
  border-top: 1px solid var(--vein-soft);
  font-size: .95rem; color: var(--stone);
}
.stone-others a { color: var(--verde); font-weight: 600; text-decoration: none; white-space: nowrap; }
.stone-others a:hover { color: var(--brass-btn); }

/* ---------- blog ---------- */

.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.post-card {
  background: #FDFCF9; border: 1px solid var(--vein-soft); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .55rem;
}
.post-card h2 { font-size: 1.32rem; }
.post-card h2 a { text-decoration: none; color: inherit; }
.post-card h2 a:hover { color: var(--brass-btn); }
.post-card p { font-size: .95rem; color: var(--stone); }
.post-card .stone-more { margin-top: auto; padding-top: .5rem; }
@media (max-width: 700px) { .post-list { grid-template-columns: 1fr; } }

.article { max-width: 740px; }
.article-meta {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone); margin-top: 1rem;
}
.article h2 { font-size: 1.55rem; margin: 2.2rem 0 .7rem; }
.article h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; margin: 1.7rem 0 .35rem; }
.article p { margin: .9rem 0; }
.article ul { margin: .9rem 0 .9rem 1.3rem; }
.article li { margin: .4rem 0; }
.article a { color: var(--verde); font-weight: 600; }
.article a:hover { color: var(--brass-btn); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--vein); }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-weight: 600; font-size: 1.06rem; padding: 1.05rem 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1; color: var(--brass);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list details > p { padding: 0 0 1.15rem; color: var(--stone); max-width: 64ch; }
.faq-list details a { color: var(--verde); font-weight: 600; }

/* ---------- thanks page ---------- */

.thanks-main { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.thanks-main .eyebrow { margin-bottom: .8rem; }
.thanks-main p { max-width: 46ch; margin: 1rem auto 1.8rem; color: var(--stone); }
