/* ==========================================================================
   Glacier Stone Fabrication — shared styles
   ========================================================================== */

:root {
  --charcoal: #17140f;
  --charcoal-2: #211d16;
  --charcoal-3: #2a251c;
  --stone-line: rgba(198, 162, 96, 0.28);

  --cream: #efe7d8;
  --cream-2: #e6dcc8;

  --gold: #c6a260;
  --gold-soft: #d9bd85;
  --gold-deep: #a3824c;

  --ink: #14110d;
  --text-cream: #f6f1e6;
  --text-cream-muted: rgba(246, 241, 230, 0.68);
  --text-ink: #211d16;
  --text-ink-muted: rgba(33, 29, 22, 0.66);

  --radius-sm: 2px;
  --radius: 3px;

  --serif: "Playfair Display", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  font-family: var(--sans);
  background: var(--charcoal);
  color: var(--text-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: min(94vw, 1760px);
  margin: 0 auto;
  padding: 0 40px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: 0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-deep);
}
.eyebrow.dark { color: var(--gold-deep); }

.section { padding: 110px 0; position: relative; }
.section-tight { padding: 90px 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 6px 22px rgba(198, 162, 96, 0.28); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text-cream);
  border-color: rgba(198, 162, 96, 0.55);
}
.btn-outline:hover { border-color: var(--gold-soft); background: rgba(198, 162, 96, 0.08); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--text-ink);
  border-color: rgba(33, 29, 22, 0.35);
}
.btn-outline-dark:hover { border-color: var(--text-ink); background: rgba(33, 29, 22, 0.05); }

.btn-block { width: 100%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(20, 17, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--gold-deep);
  transition: height 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.scrolled { height: 70px; background: rgba(17, 14, 9, 0.97); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  position: relative;
  z-index: 2;
}
.logo-img { width: 156px; height: auto; display: block; transition: width 0.25s var(--ease); }
.nav.scrolled .logo-img { width: 130px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text .l1 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links .link {
  position: relative;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-cream-muted);
  padding-bottom: 6px;
  transition: color 0.2s var(--ease);
}
.nav-links .link:hover { color: var(--text-cream); }
.nav-links .link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links .link:hover::after { width: 100%; }
.nav-links .link.active { color: var(--text-cream); }
.nav-links .link.active::after { width: 100%; }
.nav-links button.link { background: none; border: none; padding: 0; margin: 0; font-family: inherit; line-height: 1; appearance: none; -webkit-appearance: none; cursor: pointer; }

.nav-cta-wrap { display: flex; align-items: center; gap: 26px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: none;
  position: relative;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  height: 1px;
  background: var(--text-cream);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 26px; }
.nav-toggle.open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a, .mobile-menu button.js-coming-soon {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-cream);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.mobile-menu .close {
  position: absolute;
  top: 28px; right: 28px;
  background: none; border: none;
  color: var(--text-cream);
  font-size: 1.8rem;
  line-height: 1;
}
.mobile-menu .btn { margin-top: 10px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-video.ready { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,9,0.94) 0%, rgba(15,13,9,0.78) 40%, rgba(15,13,9,0.35) 75%, rgba(15,13,9,0.15) 100%);
}
.hero .wrap { max-width: none; width: 100%; margin: 0; padding-left: clamp(40px, 7vw, 130px); padding-right: 40px; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 620px;
  padding: 60px 0;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  color: var(--text-cream);
  margin-bottom: 26px;
}
.hero p.lead {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-cream-muted);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   VALUE STRIP
   ========================================================================== */
.value-strip {
  background: var(--cream);
  color: var(--text-ink);
  border-bottom: 1px solid rgba(33,29,22,0.08);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.value-item {
  padding: 46px 34px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border-right: 1px solid rgba(33, 29, 22, 0.12);
}
.value-item:last-child { border-right: none; }
.value-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.value-icon img { width: 100%; height: 100%; object-fit: contain; }
.value-copy h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--text-ink);
}
.value-copy p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text-ink-muted); }

/* ==========================================================================
   OUR WORK
   ========================================================================== */
.work-section { background: var(--charcoal); }
.work-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.7fr;
  gap: 60px;
  align-items: center;
}
.work-copy h2, .materials-copy h2 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); color: var(--text-cream); line-height: 1.2; margin-bottom: 20px; }
.work-copy p, .materials-copy p { font-size: 0.95rem; line-height: 1.7; color: var(--text-cream-muted); max-width: 380px; margin-bottom: 34px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  aspect-ratio: 3 / 5;
  border: 1px solid var(--stone-line);
  overflow: hidden;
  border-radius: var(--radius);
}
.project-card .ph, .project-card .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), filter 0.5s var(--ease); }
.project-card:hover .ph, .project-card:hover .ph-img { transform: scale(1.06); filter: brightness(1.08); }
.project-card-gradient {
  position: absolute; left: 0; right: 0; bottom: 0; height: 65%;
  background: linear-gradient(180deg, transparent, rgba(10,9,6,0.94) 78%);
  pointer-events: none;
}
.project-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 18px;
  z-index: 2;
}
.project-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.project-icon svg { width: 15px; height: 15px; }
.project-card-info h3 {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cream);
  margin-bottom: 6px;
}
.project-card-info p { margin: 0; font-size: 0.78rem; line-height: 1.4; color: var(--text-cream-muted); }

/* ==========================================================================
   MATERIALS
   ========================================================================== */
.materials-section { background: var(--charcoal-2); border-top: 1px solid var(--stone-line); }
.materials-row {
  display: grid;
  grid-template-columns: 1.7fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.material-card {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--charcoal-3);
  display: flex;
  flex-direction: column;
}
.material-card .ph, .material-card .ph-img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; transition: transform 0.5s var(--ease); }
.material-card:hover .ph, .material-card:hover .ph-img { transform: scale(1.05); }
.material-info { padding: 16px 16px 18px; }
.material-info h3 {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cream);
  margin-bottom: 8px;
}
.material-info p { margin: 0 0 14px; font-size: 0.78rem; line-height: 1.5; color: var(--text-cream-muted); min-height: 52px; }
.material-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
  background: none; border: none; padding: 0; font-family: inherit; cursor: pointer;
}
.material-link:hover { gap: 10px; color: var(--gold); }

/* ---------- quote panel ---------- */
.quote-panel {
  position: relative;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 44px 40px;
  background: rgba(19, 16, 12, 0.94);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.quote-panel h2 { font-size: 1.7rem; color: var(--text-cream); margin-bottom: 12px; }
.quote-panel > p.lead-sm { font-size: 0.86rem; line-height: 1.6; color: var(--text-cream-muted); margin: 0 0 28px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(246, 241, 230, 0.05);
  border: 1px solid rgba(198, 162, 96, 0.32);
  border-radius: var(--radius-sm);
  color: var(--text-cream);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(246,241,230,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  background: rgba(246, 241, 230, 0.08);
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c6a260' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select option { background: var(--charcoal); color: var(--text-cream); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-error { color: #e2a2a2; font-size: 0.72rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b56b6b; }
.field.has-error .form-error { display: block; }

.quote-contacts {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-cream-muted);
  flex-wrap: wrap;
}
.quote-contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-cream-muted); transition: color 0.2s; }
.quote-contacts a:hover { color: var(--gold-soft); }
.quote-contacts svg { width: 14px; height: 14px; }
.quote-divider { width: 1px; height: 14px; background: rgba(198,162,96,0.35); }

.quote-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.quote-success.show { display: block; }
.quote-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-soft);
}
.quote-success .check svg { width: 24px; height: 24px; }
.quote-success h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--text-cream); margin-bottom: 10px; }
.quote-success p { font-size: 0.86rem; color: var(--text-cream-muted); margin: 0; }
.quote-form.hide { display: none; }
.quote-submit-error { display: none; margin: 12px 0 0; color: #e2a2a2; font-size: 0.78rem; line-height: 1.5; text-align: center; }
.quote-submit-error.show { display: block; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-section { background: var(--cream); color: var(--text-ink); padding: 60px 0; scroll-margin-top: 90px; }
.process-header { text-align: center; margin-bottom: 32px; }
.process-header .eyebrow { justify-content: center; margin-bottom: 0; }
.process-header .eyebrow::after { display: none; }
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 14px;
}
.process-step { text-align: center; padding: 0 10px; }
.process-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  position: relative;
  background: #f6f0e3;
}
.process-num {
  position: absolute; top: -6px; left: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.process-icon-wrap img { width: 34px; height: 34px; object-fit: contain; }
.process-step h3 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 6px; color: var(--text-ink); }
.process-step p { font-size: 0.82rem; line-height: 1.5; color: var(--text-ink-muted); max-width: 260px; margin: 0 auto; }
.process-arrow { display: flex; align-items: center; justify-content: center; padding-top: 24px; color: var(--gold-deep); }
.process-arrow svg { width: 36px; height: 12px; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { position: relative; background: var(--ink); overflow: hidden; }
.final-cta-bg-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.final-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: rgba(15, 13, 9, 0.72);
}
.final-cta-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 100px 0;
}
.final-cta-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--text-cream); margin-bottom: 14px; }
.final-cta-copy p.final-cta-sub { font-size: 1.05rem; color: var(--text-cream-muted); margin: 0 0 30px; }
.final-cta-info { display: flex; flex-direction: column; gap: 14px; }
.final-cta-info-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-cream-muted); }
.final-cta-info-row svg { width: 16px; height: 16px; color: var(--gold-soft); flex-shrink: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--charcoal); border-top: 1px solid var(--stone-line); padding: 56px 0 30px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(198,162,96,0.16);
  margin-bottom: 26px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; max-width: 320px; }
.footer-logo-img { height: 56px; width: auto; display: block; flex-shrink: 0; }
.footer-brand-copy p { margin: 6px 0 0; font-size: 0.8rem; color: var(--text-cream-muted); line-height: 1.5; }
.footer-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-nav a, .footer-nav button { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-cream-muted); transition: color 0.2s; background: none; border: none; padding: 0; margin: 0; font-family: inherit; line-height: 1; appearance: none; -webkit-appearance: none; cursor: pointer; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; color: var(--text-cream-muted); }
.footer-contact a { color: var(--text-cream-muted); transition: color 0.2s; }
.footer-contact a:hover { color: var(--gold-soft); }
.social-links { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 90px; border: 2px solid var(--gold-soft); border-radius: 8px;
  background: rgba(198,162,96,0.04); transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.social-links a:hover { border-color: #efd28f; background: rgba(198,162,96,0.12); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.social-links img { display: block; width: 77px; height: 77px; object-fit: contain; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.74rem; color: rgba(246,241,230,0.45);
}

/* ==========================================================================
   IMAGE PLACEHOLDER COMPONENT
   ========================================================================== */
.ph {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(198,162,96,0.05) 0px, rgba(198,162,96,0.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(150deg, #2c271d, #171410 70%);
  color: rgba(246, 241, 230, 0.4);
  overflow: hidden;
}
.ph.ph-light {
  background:
    repeating-linear-gradient(135deg, rgba(33,29,22,0.06) 0px, rgba(33,29,22,0.06) 1px, transparent 1px, transparent 14px),
    linear-gradient(150deg, #d8cdb6, #c7b998 70%);
  color: rgba(33,29,22,0.45);
}
.ph svg { width: 26px; height: 26px; opacity: 0.7; }
.ph .ph-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ph .ph-file { font-family: "Courier New", monospace; font-size: 0.62rem; opacity: 0.75; }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }

/* ==========================================================================
   COMING SOON POPOVER
   ========================================================================== */
.cs-popover {
  position: fixed;
  z-index: 900;
  min-width: 210px;
  max-width: 250px;
  padding: 16px 20px;
  background: var(--charcoal-3);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0,0,0,0.5);
  text-align: center;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.cs-popover.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cs-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--cs-arrow-left, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px;
  background: var(--charcoal-3);
  border-left: 1px solid var(--gold-deep);
  border-top: 1px solid var(--gold-deep);
}
.cs-popover.cs-flip::before { top: auto; bottom: -7px; transform: translateX(-50%) rotate(225deg); }
.cs-popover .cs-eyebrow {
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.cs-popover .cs-title { font-family: var(--serif); font-size: 1.05rem; color: var(--text-cream); }

/* ==========================================================================
   OUR WORK / GALLERY PAGE
   ========================================================================== */
.gallery-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--stone-line);
}
.gallery-hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.gallery-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,9,0.94) 0%, rgba(15,13,9,0.78) 40%, rgba(15,13,9,0.35) 75%, rgba(15,13,9,0.15) 100%);
}
.gallery-hero-inner { position: relative; z-index: 2; max-width: 720px; }
.gallery-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--text-cream);
  margin-bottom: 18px;
}
.gallery-hero-inner p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-cream-muted);
  margin: 0;
}

/* ---------- filters ---------- */
.gallery-filter-section { background: var(--charcoal); padding: 24px 0 20px; }
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(198, 162, 96, 0.4);
  color: var(--text-cream-muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-soft); color: var(--text-cream); background: rgba(198,162,96,0.08); }
.filter-btn.active {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- grid ---------- */
.gallery-section { padding-top: 20px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.gallery-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text-cream-muted);
}
.gallery-empty.show { display: block; }

/* ---------- card ---------- */
.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.gallery-card.in { opacity: 1; transform: translateY(0) scale(1); }
.gallery-card.card-hide { opacity: 0 !important; transform: scale(0.94) !important; }
.gallery-card:hover { border-color: var(--gold-soft); }

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(198,162,96,0.05) 0px, rgba(198,162,96,0.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(150deg, #2c271d, #171410 70%);
}
.gallery-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-card:hover .gallery-card-media img { transform: scale(1.03); filter: brightness(1.05); }

.gallery-card-media.img-missing::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(246,241,230,0.35)' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 15l5-5 4 4 5-6 4 5'/%3E%3Ccircle cx='8' cy='9' r='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 32%;
  background-size: 30px 30px;
}
.gallery-card-media.img-missing::after {
  content: "Photo coming soon";
  position: absolute; left: 0; right: 0; top: calc(32% + 22px);
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,241,230,0.35);
}

.gallery-card-gradient {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(180deg, transparent, rgba(10,9,6,0.92) 80%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-gradient { opacity: 1.15; }

.gallery-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 18px;
  z-index: 2;
  transition: transform 0.3s ease;
}
.gallery-card:hover .gallery-card-info { transform: translateY(-4px); }
.gallery-cat {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.gallery-card-info h3 {
  font-size: 1.08rem;
  color: var(--text-cream);
  margin-bottom: 6px;
  line-height: 1.25;
}
/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 9, 7, 0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-media {
  position: relative;
  border: 1px solid var(--gold-deep);
  background: var(--charcoal-3);
}
.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  width: auto;
  display: block;
  object-fit: contain;
}
.lightbox-media.img-missing {
  width: min(640px, 80vw);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background:
    repeating-linear-gradient(135deg, rgba(198,162,96,0.05) 0px, rgba(198,162,96,0.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(150deg, #2c271d, #171410 70%);
}
.lightbox-media.img-missing::before {
  content: "";
  width: 44px; height: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(246,241,230,0.35)' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 15l5-5 4 4 5-6 4 5'/%3E%3Ccircle cx='8' cy='9' r='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.lightbox-media.img-missing::after {
  content: "Photo coming soon";
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(246,241,230,0.35);
}
.lightbox-caption { text-align: center; margin-top: 20px; }
.lightbox-cat {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.lightbox-title { font-size: 1.4rem; color: var(--text-cream); margin: 0; }

.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: var(--text-cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(198,162,96,0.4);
  background: rgba(20,17,13,0.6);
  color: var(--text-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.lightbox-arrow:hover { border-color: var(--gold-soft); background: rgba(198,162,96,0.15); }
.lightbox-arrow svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- simple centered CTA (gallery bottom) ---------- */
.final-cta-simple { position: relative; z-index: 2; padding: 100px 0; text-align: center; }
.final-cta-simple h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--text-cream); margin-bottom: 14px; }
.final-cta-simple p.final-cta-sub { font-size: 1.05rem; color: var(--text-cream-muted); margin: 0 0 34px; }
.final-cta-simple .cta-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

/* ==========================================================================
   MATERIALS PAGE
   ========================================================================== */
.materials-hero {
  position: relative;
  padding: 170px 0 70px;
  overflow: hidden;
  background: var(--charcoal);
  border-bottom: 1px solid var(--stone-line);
}
.materials-hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.materials-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(15,13,9,0.94) 0%, rgba(15,13,9,0.78) 40%, rgba(15,13,9,0.35) 75%, rgba(15,13,9,0.15) 100%);
}
.materials-hero-copy { position: relative; z-index: 2; max-width: 620px; }
.materials-hero-copy h1 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  color: var(--text-cream);
  line-height: 1.15;
  margin-bottom: 20px;
}
.materials-hero-copy > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-cream-muted);
  max-width: 480px;
  margin: 0 0 28px;
}
.inventory-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 460px;
  padding: 16px 18px;
  border: 1px solid rgba(198,162,96,0.35);
  border-radius: var(--radius);
  background: rgba(198,162,96,0.05);
}
.inventory-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--gold-soft); }
.inventory-note p { margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--text-cream-muted); }

.visit-panel .final-cta-info-row { color: var(--text-cream-muted); }
.map-embed {
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  filter: grayscale(15%) brightness(0.92) contrast(1.05);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- material section blocks ---------- */
.material-block { background: var(--charcoal); padding: 80px 0; scroll-margin-top: 100px; }
.material-divider { height: 1px; background: var(--stone-line); max-width: min(94vw, 1760px); margin: 0 auto; }

.material-block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.material-block-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-cream);
  margin-bottom: 12px;
}
.material-block-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-cream-muted);
  max-width: 560px;
  margin: 0;
}
.material-view-all {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0 0 4px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}
.material-view-all:hover { color: var(--gold); }

/* ---------- carousel ---------- */
.stone-carousel-wrap { position: relative; }
.stone-carousel {
  overflow: hidden;
  position: relative;
  padding-bottom: 4px;
  cursor: grab;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.carousel-track.dragging { transition: none; cursor: grabbing; }

.stone-card {
  flex: 0 0 210px;
  background: none;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.28s ease;
}
.stone-card:hover { border-color: var(--gold-soft); }

.stone-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(198,162,96,0.05) 0px, rgba(198,162,96,0.05) 1px, transparent 1px, transparent 14px),
    linear-gradient(150deg, #2c271d, #171410 70%);
}
.stone-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.stone-card:hover .stone-card-media img { transform: scale(1.035); }

.stone-card-media.img-missing::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(246,241,230,0.35)' stroke-width='1.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='M3 15l5-5 4 4 5-6 4 5'/%3E%3Ccircle cx='8' cy='9' r='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: 26px 26px;
}
.stone-card-media.img-missing::after {
  content: "Photo coming soon";
  position: absolute; left: 0; right: 0; top: calc(42% + 20px);
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,241,230,0.35);
}

.stone-card-label {
  padding: 12px 14px;
  background: var(--charcoal-3);
  font-size: 0.82rem;
  color: var(--text-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-arrow {
  position: absolute; top: calc(50% - 16px); transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(198,162,96,0.4);
  background: rgba(20,17,13,0.85);
  color: var(--text-cream);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  z-index: 3;
}
.carousel-arrow:hover { border-color: var(--gold-soft); background: rgba(198,162,96,0.15); }
.carousel-arrow svg { width: 18px; height: 18px; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(198,162,96,0.5);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--gold-soft); transform: scale(1.2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .wrap { padding: 0 28px; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-row { grid-template-columns: 1fr; }
  .materials-row .materials-copy { order: 1; }
  .materials-row .materials-grid { order: 2; }
  .materials-grid { grid-template-columns: repeat(4, 1fr); }
  .final-cta-grid { grid-template-columns: 1fr; gap: 50px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .value-item:nth-child(2) { border-right: none; }
  .value-item { border-bottom: 1px solid rgba(33,29,22,0.12); }
  .value-item:nth-child(3), .value-item:nth-child(4) { border-bottom: none; }
  .stone-card { flex: 0 0 240px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta-wrap .btn-gold.nav-cta-desktop { display: none; }
  .hero { min-height: 86vh; }
  .hero-overlay { background: linear-gradient(180deg, rgba(15,13,9,0.55) 0%, rgba(15,13,9,0.92) 62%, rgba(15,13,9,0.98) 100%); }
  .hero-content { max-width: 100%; padding: 40px 0 50px; }
  .hero p.lead { max-width: 100%; }
  .section { padding: 70px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 44px; }
  .process-arrow { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .final-cta-grid { padding: 70px 0; }
  .footer-top { flex-direction: column; }
  .gallery-hero { padding: 120px 0 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .final-cta-simple { padding: 70px 0; }
  .lightbox { padding: 20px; }
  .lightbox-arrow { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 14px; right: 16px; }
  .materials-hero { padding: 120px 0 60px; }
  .material-block { padding: 56px 0; }
  .material-block-header { margin-bottom: 26px; }
  .stone-card { flex: 0 0 200px; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none !important; }
  .value-item:nth-child(3) { border-bottom: 1px solid rgba(33,29,22,0.12); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
  .quote-panel { padding: 30px 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters { gap: 10px; }
  .filter-btn { padding: 11px 18px; font-size: 0.68rem; }
  .final-cta-simple .cta-actions { flex-direction: column; align-items: stretch; }
  .final-cta-simple .cta-actions .btn { width: 100%; }
  .stone-card { flex: 0 0 62vw; }
  .material-block-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .carousel-arrow { width: 36px; height: 36px; top: calc(50% - 14px); }
  .carousel-arrow svg { width: 15px; height: 15px; }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
}
