/* ============================================================
   STRATA — Italian Decorative Finishes, Imported
   Design system: warm plaster neutrals + terracotta accent
   ============================================================ */

:root{
  --cream:        #D8CCBC;
  --cream-2:      #E8DFD1;
  --stone:        #C7B89E;
  --charcoal:     #20205A;
  --espresso:     #3A3A78;
  --ink:          #1C1B34;
  --terracotta:   #20205A;
  --terracotta-d: #15153F;
  --gold:         #3D3D7A;
  --white:        #FFFFFF;
  --line:         rgba(32,32,90,0.14);
  --line-soft:    rgba(216,204,188,0.22);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1180px;
  --radius: 2px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--charcoal);
  letter-spacing: .01em;
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 600; }
h2{ font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
p{ margin: 0 0 1em; }
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  color: var(--terracotta-d);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width:26px; height:1px;
  background: var(--terracotta);
  display:inline-block;
}
.lead{
  font-size: 1.15rem;
  color: var(--espresso);
  max-width: 640px;
}
.section{ padding: 96px 0; }
.section--tight{ padding: 64px 0; }
.section--dark{ background: var(--charcoal); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: var(--cream); }
.section--stone{ background: var(--stone); }
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn--primary{ background: var(--terracotta); color: var(--white); }
.btn--primary:hover{ background: var(--terracotta-d); transform: translateY(-1px); }
.btn--outline{ background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover{ background: var(--charcoal); color: var(--cream); }
.btn--light{ background: transparent; color: var(--cream); border-color: var(--line-soft); }
.btn--light:hover{ background: var(--cream); color: var(--charcoal); }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; }

/* ---------- Nav ---------- */
/* Glass nav: stays pinned (sticky) at the top and travels with the page as
   you scroll. Starts near-transparent/frosted over whatever sits behind it
   (hero video, page content); .nav--scrolled nudges opacity up a touch once
   you're a little way down the page, so text stays legible everywhere. */
.nav{
  position: sticky; top:0; z-index: 100;
  background: rgba(216,204,188,0.42);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.22);
  transition: background .35s ease, border-color .35s ease, box-shadow .3s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.nav.nav--scrolled{
  background: rgba(216,204,188,0.78);
  border-bottom-color: var(--line);
}
.nav .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.logo{
  display:flex; align-items:center;
}
.logo img{
  display:block;
  height: 26px;
  width:auto;
}
.footer .logo img{ height: 30px; }
.logo-mark{
  width: 34px; height: 34px;
  border: 1.4px solid var(--terracotta);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--terracotta-d);
  flex-shrink:0;
}
.nav-links{
  display:flex; align-items:center; gap:38px;
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--espresso);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--terracotta-d);
  border-bottom-color: var(--terracotta);
}
.nav-links li.has-dropdown{ position:relative; }
.nav-links .dropdown{
  position:absolute; top:100%; left:50%;
  transform:translateX(-50%) translateY(6px);
  background: var(--cream); border:1px solid var(--line); border-radius:2px;
  box-shadow:0 18px 40px -20px rgba(32,32,90,0.35);
  opacity:0; visibility:hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index:20;
}
.nav-links li.has-dropdown:hover .dropdown,
.nav-links li.has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.nav-links .dropdown ul{ list-style:none; margin:0; padding:10px 0; min-width:190px; }
.nav-links .dropdown a{
  display:block; padding:9px 22px;
  font-size:.78rem; letter-spacing:.1em;
  border-bottom:none; white-space:nowrap;
}
.nav-links .dropdown a:hover{ color:var(--terracotta-d); background:var(--cream-2); }

/* Mega variant: multiple brand columns, each with a bold heading link and
   a list of that brand's product sub-categories underneath. */
.dropdown--mega{ display:flex; padding:22px 6px; gap:8px; }
.dropdown-col{ min-width:200px; padding:0 20px; }
.dropdown-col + .dropdown-col{ border-left:1px solid var(--line); }
.dropdown-heading{
  display:block; margin-bottom:10px; padding:0 0 8px !important;
  font-size:.78rem; font-weight:600; letter-spacing:.1em;
  border-bottom:1px solid var(--line) !important;
}
.dropdown-col ul{ list-style:none; margin:0; padding:0; min-width:0; }
.dropdown-col ul a{ padding:7px 0; }
.nav-cta{ display:flex; align-items:center; gap:22px; }
.nav-toggle{
  display:none;
  flex-direction: column; gap:5px;
  background:none; border:none; cursor:pointer; padding:6px;
}
.nav-toggle span{ width:24px; height:2px; background: var(--charcoal); display:block; }

/* ---------- Hero (full-bleed video / living-texture background) ---------- */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display:flex;
  align-items:center;
  background: linear-gradient(150deg, var(--charcoal) 0%, #2c2c72 55%, var(--charcoal) 100%);
  color: var(--cream);
}
/* Layer order, back to front: canvas (always-on generated motion) ->
   overlay wash -> content. */
.hero-canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:0;
}
.hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:1;
}
.hero-overlay{
  position:absolute; inset:0;
  z-index:2;
  background:
    linear-gradient(180deg, rgba(32,32,90,0.35) 0%, rgba(28,27,52,0.55) 55%, rgba(20,19,38,0.82) 100%);
}
.hero-content{
  position:relative; z-index:3;
  padding: 120px 0 90px;
  max-width: 760px;
}
.hero .eyebrow{ color: var(--stone); }
.hero .eyebrow::before{ background: var(--stone); }
.hero h1{ margin-bottom: 22px; color: var(--white); }
.hero h1 em{ font-style: italic; color: var(--stone); }
.hero .lead{ color: rgba(246,241,232,0.88); max-width: 620px; }
.hero-stats{
  display:flex; gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.hero-stats .stat b{
  display:block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}
.hero-stats .stat span{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--stone);
}
@media (max-width: 640px){
  .hero{ min-height: 78vh; }
  .hero-content{ padding: 100px 0 70px; }
  .hero-stats{ gap: 24px; flex-wrap:wrap; }
}

/* ---------- Texture swatches (stand-in for photography) ---------- */
.swatch{
  position:relative;
  overflow:hidden;
  aspect-ratio: 1/1;
}
.swatch::after{ content:""; position:absolute; inset:0; }
/* Drop a real photo at the path in data-img / img[src] and it will lay over the
   procedural texture automatically. If the file is missing, onerror removes the
   <img>, so the CSS texture underneath keeps showing — nothing ever breaks. */
.swatch img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:1;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.card:hover .swatch img,
.gallery-item:hover img,
.brand-visual.swatch:hover img{ transform: scale(1.07); }
.swatch--marmorino{ background: linear-gradient(140deg,#EDE3CF,#D8C4A0 45%,#C7AE85 100%); }
.swatch--marmorino::after{ background: repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px 40px); }
.swatch--metallic{ background: linear-gradient(150deg,#3B342B,#6B5A44 40%,#B69A6C 70%,#3B342B 100%); }
.swatch--metallic::after{ background: repeating-linear-gradient(100deg, rgba(255,255,255,.14) 0 2px, transparent 2px 22px); }
.swatch--micro{ background: linear-gradient(160deg,#DAD2C4,#B7ACA0 55%,#867C70); }
.swatch--micro::after{ background: repeating-linear-gradient(65deg, rgba(36,31,26,.06) 0 1px, transparent 1px 10px); }
.swatch--stucco{ background: linear-gradient(145deg,#E9DCC6,#C99B72 55%,#9C6B45); }
.swatch--stucco::after{ background: repeating-linear-gradient(160deg, rgba(255,255,255,.22) 0 3px, transparent 3px 30px); }
.swatch--waterproof{ background: linear-gradient(160deg,#33454A,#4E6D71 45%,#8FB0AA); }
.swatch--waterproof::after{ background: repeating-radial-gradient(circle at 60% 40%, rgba(255,255,255,.18) 0 2px, transparent 4px 34px); }
.swatch--terracotta{ background: linear-gradient(150deg,#C97B4C,#9C4E28 60%,#6E3419); }
.swatch--terracotta::after{ background: repeating-linear-gradient(120deg, rgba(255,255,255,.12) 0 2px, transparent 2px 20px); }
.swatch--stone{ background: linear-gradient(150deg,#CFC7B6,#A79C86 60%,#7C7260); }
.swatch--stone::after{ background: repeating-linear-gradient(40deg, rgba(255,255,255,.16) 0 2px, transparent 2px 24px); }

/* ---------- Cards / Grids ---------- */
.grid{ display:grid; gap: 32px; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3,1fr); }
.grid--4{ grid-template-columns: repeat(4,1fr); }

/* Mineral Plasters showcase -- four named sub-families side by side as
   columns, each listing its real products as a small square swatch sitting
   right beside its name. */
.mineral-showcase{
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
}
.mineral-showcase-head{ margin-bottom: 28px; max-width: 640px; }
.mineral-showcase-head h3{ margin-bottom: 10px; }
.mineral-showcase-head p{ margin:0; }

.product-grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.product-grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
}

.mineral-family{ margin-bottom: 8px; }

.mineral-columns{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.mineral-col{ display:flex; flex-direction:column; gap:18px; }
.mineral-col .note{ font-size:.85rem; font-style:italic; opacity:.7; }
.mineral-col-heading{
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.product-tile{
  display:flex; align-items:center; gap:14px;
  text-decoration:none; color:inherit;
}
.product-tile h5{ transition: color .2s ease; }
.product-tile:hover h5{ color: var(--terracotta-d); }
.product-tile img{
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink:0;
  box-shadow: 0 4px 14px -6px rgba(32,32,90,0.3);
}
.product-tile-swatch{
  width: 56px; height: 56px;
  border-radius: 6px;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
  box-shadow: 0 4px 14px -6px rgba(32,32,90,0.3);
  background: linear-gradient(150deg,#CFC7B6,#A79C86 60%,#7C7260);
}
.product-tile-swatch::after{
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(40deg, rgba(255,255,255,.16) 0 2px, transparent 2px 24px);
}
.product-tile.is-placeholder h5{ opacity:.7; }
.product-tile-tag{
  display:inline-block; margin-top:2px; font-size:.66rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--terracotta-d); opacity:.85;
}
.product-tile h4,
.product-tile h5{
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height:1.3;
  margin:0;
  color: var(--charcoal);
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(32,32,90,.30); }
.card .num{
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--terracotta);
  display:block;
  margin-bottom: 12px;
}

.brand-card{
  border: 1px solid var(--line);
  background: var(--white);
  display:grid;
  grid-template-columns: 1fr 1fr;
  overflow:hidden;
}
.brand-card .brand-copy{ padding: 44px; display:flex; flex-direction:column; justify-content:center; }
.brand-card .brand-visual{ position:relative; min-height: 260px; }
.brand-card ul{ margin: 0 0 26px; padding:0; list-style:none; }
.brand-card li{
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: .95rem;
  color: var(--espresso);
}
.brand-card li::before{
  content:"—";
  position:absolute; left:0; color: var(--terracotta);
}
.brand-card li:last-child{ border-bottom:none; }

.section-head{ max-width: 680px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Stat / Value blocks ---------- */
.value{ padding: 8px 0; }
.value h3{ display:flex; align-items:baseline; gap:14px; }
.value h3 .idx{ font-size: 1rem; color: var(--terracotta); font-weight:500; }

/* ---------- Timeline (About) ---------- */
.timeline{ border-left: 1px solid var(--line); margin-left: 6px; }
.timeline .t-item{ position:relative; padding: 4px 0 40px 34px; }
.timeline .t-item::before{
  content:""; position:absolute; left:-6px; top:6px;
  width:11px; height:11px; border-radius:50%;
  background: var(--cream); border: 2px solid var(--terracotta);
}
.timeline .t-item .yr{
  font-family: var(--font-display); color: var(--terracotta-d);
  font-size: 1.1rem; display:block; margin-bottom:4px;
}

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--charcoal);
  color: var(--cream);
  padding: 70px 0;
  text-align:center;
}
.cta-band h2{ color: var(--cream); margin-bottom: 18px; }
.cta-band p{ color: var(--stone); max-width: 560px; margin: 0 auto 30px; }

/* ---------- Gallery ---------- */
.gallery-item{ position:relative; overflow:hidden; }
.gallery-item .cap{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(20,20,50,0.85), transparent);
  color: var(--cream);
}
.gallery-item .cap .loc{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--stone); }
.gallery-item .cap .fin{ font-family: var(--font-display); font-size: 1.15rem; }
.filter-row{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom: 44px; }
.chip{
  padding: 8px 18px;
  border: 1px solid var(--line);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor:pointer;
  background: var(--white);
  transition: all .2s;
}
.chip.active, .chip:hover{ background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* ---------- Forms ---------- */
.form-panel{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px;
}
.field{ margin-bottom: 22px; }
.field label{
  display:block; font-size:.76rem; text-transform:uppercase;
  letter-spacing:.1em; margin-bottom: 8px; color: var(--espresso);
}
.field input, .field select, .field textarea{
  width:100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--terracotta);
  background: var(--white);
}
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.note{ font-size:.82rem; color: var(--espresso); opacity:.8; }

.info-list{ list-style:none; margin:0 0 30px; padding:0; }
.info-list li{ padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .lbl{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--terracotta-d); display:block; margin-bottom:4px; }
.map-block{
  aspect-ratio: 16/9;
  background:
    linear-gradient(rgba(32,32,90,.07) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(32,32,90,.07) 1px, transparent 1px) 0 0/28px 28px,
    var(--stone);
  display:flex; align-items:center; justify-content:center;
  color: var(--espresso);
  font-size:.85rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  border: 1px solid var(--line);
}

/* ---------- Newsletter (footer) ---------- */
.newsletter{ margin-top: 26px; }
.newsletter-form{ display:flex; gap:0; max-width: 300px; border: 1px solid var(--line-soft); }
.newsletter-form input{
  flex:1; min-width:0;
  background: transparent; border:none;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--cream);
}
.newsletter-form input::placeholder{ color: var(--stone); opacity:.7; }
.newsletter-form input:focus{ outline:none; }
.newsletter-form button{
  background: var(--cream); color: var(--charcoal);
  border:none; padding: 0 18px;
  font-size: .78rem; letter-spacing:.08em; text-transform:uppercase;
  cursor:pointer;
}

/* ---------- Footer ---------- */
.footer{
  position:relative; overflow:hidden;
  background: var(--charcoal); color: var(--stone); padding: 70px 0 30px;
}
.footer-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}
.footer-video-overlay{
  position:absolute; inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(32,32,90,0.62) 0%, rgba(28,27,52,0.72) 45%, rgba(20,19,38,0.88) 100%);
}
.footer > .container{ position:relative; z-index:2; }
.footer .logo{ color: var(--cream); }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer h4{ color: var(--cream); font-family: var(--font-body); font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom: 20px; font-weight:500; }
.footer ul{ list-style:none; margin:0; padding:0; }
.footer li{ margin-bottom: 12px; font-size:.92rem; }
.footer a:hover{ color: var(--terracotta); }
.footer-bottom{
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size: .78rem; color: var(--stone); opacity:.7;
}

/* ---------- Marquee strip ---------- */
.marquee{
  overflow:hidden; white-space:nowrap;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.marquee-track{
  display:inline-flex;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track span{
  display:inline-flex; align-items:center; gap:18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--charcoal);
  padding: 0 34px;
  white-space: nowrap;
}
.marquee-track span::after{ content:"—"; color: var(--terracotta); font-style:normal; margin-left:18px; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- Reveal animation ---------- */
.reveal{ opacity:0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }

/* ---------- Custom cursor ----------
   A soft dot that trails the pointer with a slight lag, and swells into a
   text label ("View", "Explore"...) over anything marked .cursor-hover.
   Desktop + fine-pointer only; JS also checks reduced-motion before init. */
.cursor{
  position: fixed; top:0; left:0;
  width: 14px; height:14px;
  margin-left:-7px; margin-top:-7px;
  border-radius: 50%;
  background: var(--charcoal);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1),
              margin .35s cubic-bezier(.2,.8,.2,1), background-color .35s ease;
  display: flex; align-items:center; justify-content:center;
  will-change: transform;
}
.cursor span{
  opacity:0; color: var(--cream);
  font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  white-space:nowrap; transition: opacity .25s ease;
  font-family: var(--font-body); font-weight:500;
}
.cursor.is-active{ width:64px; height:64px; margin-left:-32px; margin-top:-32px; background: var(--charcoal); }
.cursor.is-active span{ opacity:1; }
@media (hover:none), (pointer:coarse){ .cursor{ display:none; } }

/* ---------- Split-text line reveal ---------- */
.split-lines{ overflow: visible; }
.split-lines .split-word-mask{ display:inline-block; overflow:hidden; vertical-align:top; }
.split-lines .split-word{
  display:inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform .85s cubic-bezier(.19,1,.22,1), opacity .6s ease;
}
.split-lines.is-visible .split-word{ transform: translateY(0); opacity:1; }

/* ---------- Image wipe-reveal ----------
   Applied to swatch/image containers: the box clips from a horizontal
   band to full height as it scrolls into view, while the image inside
   drifts up slightly — a soft "curtain lifting" reveal. */
.wipe-reveal{
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s cubic-bezier(.16,1,.3,1);
}
.wipe-reveal.is-visible{ clip-path: inset(0 0 0% 0); }
.wipe-reveal img,
.wipe-reveal.swatch::after{
  transform: translateY(6%) scale(1.08);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.wipe-reveal.is-visible img,
.wipe-reveal.is-visible.swatch::after{ transform: translateY(0) scale(1.0); }

/* ---------- Parallax image layer ---------- */
[data-parallax]{ will-change: transform; }

/* ---------- Nav auto-hide on scroll ---------- */
.nav.nav--hidden{ transform: translateY(-100%); }
.nav.nav--scrolled{ box-shadow: 0 8px 24px -18px rgba(32,32,90,0.35); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 70px 0 60px;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(32,32,90,0.12), transparent 60%),
    var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb{ font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color: var(--espresso); margin-bottom: 18px; opacity:.75; }
.breadcrumb a:hover{ color: var(--terracotta-d); }

/* Page hero with a real video background (e.g. products.html) */
.page-hero--video{
  position:relative; overflow:hidden;
  background: var(--charcoal);
  border-bottom:none;
  color: var(--cream);
}
.page-hero-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}
.page-hero-video-overlay{
  position:absolute; inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(32,32,90,0.58) 0%, rgba(28,27,52,0.68) 55%, rgba(20,19,38,0.82) 100%);
}
.page-hero--video > .container{ position:relative; z-index:2; }
.page-hero--video .breadcrumb{ color: var(--stone); opacity:.9; }
.page-hero--video .breadcrumb a{ color: var(--stone); }
.page-hero--video .breadcrumb a:hover{ color: var(--white); }
.page-hero--video .eyebrow{ color: var(--stone); }
.page-hero--video .eyebrow::before{ background: var(--stone); }
.page-hero--video h1{ color: var(--white); }
.page-hero--video .lead{ color: rgba(246,241,232,0.9); }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .nav-links, .nav-cta .btn{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-grid{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: repeat(2,1fr); }
  .grid--3{ grid-template-columns: repeat(2,1fr); }
  .grid--2{ grid-template-columns: 1fr; }
  .brand-card{ grid-template-columns: 1fr; }
  .brand-card .brand-visual{ order:-1; min-height: 200px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .field-row{ grid-template-columns: 1fr; }
  .product-grid-4{ grid-template-columns: repeat(2, 1fr); }
  .product-grid-3{ grid-template-columns: repeat(2, 1fr); }
  .mineral-columns{ grid-template-columns: repeat(2, 1fr); }
  .mineral-showcase{ padding: 30px 24px; }

  .nav.open .nav-links{
    display:flex; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; background: var(--cream); padding: 24px 32px 30px;
    border-bottom: 1px solid var(--line); gap: 20px;
  }
  .nav.open .nav-cta{ display:none; }
  .nav-links .dropdown{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; background:none;
    padding:10px 0 0 18px; margin-top:8px;
    display:flex; flex-direction:column; gap:12px; min-width:0;
  }
  .nav-links .dropdown a{ padding:0; }
}
@media (max-width: 640px){
  .grid--4, .grid--3{ grid-template-columns: 1fr 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .hero-stats{ gap: 24px; flex-wrap:wrap; }
  .section{ padding: 66px 0; }
}

/* ---------- Product Detail Page ---------- */
.product-hero-grid{
  display:grid; grid-template-columns: 1fr 1.15fr; gap:56px; align-items:center;
}
.product-hero-visual{
  aspect-ratio: 1/1; border-radius:6px; overflow:hidden; position:relative;
  box-shadow: 0 30px 60px -30px rgba(32,32,90,0.35);
}
.product-hero-visual img{ width:100%; height:100%; object-fit:cover; display:block; }
.product-hero-visual.is-placeholder{
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(150deg,#CFC7B6,#A79C86 60%,#7C7260);
}
.product-hero-visual.is-placeholder::after{
  content:""; position:absolute; inset:0;
  background: repeating-linear-gradient(40deg, rgba(255,255,255,.16) 0 2px, transparent 2px 24px);
}
.product-hero-visual.is-placeholder span{
  position:relative; z-index:1; color:#fff; font-size:.78rem; letter-spacing:.1em;
  text-transform:uppercase; background:rgba(32,32,90,0.55); padding:8px 16px; border-radius:20px;
}
.product-chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin: 18px 0 22px; }
.product-chip{
  font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
  padding:6px 14px; border-radius:20px; border:1px solid var(--line);
  color: var(--espresso); background: var(--cream-2);
}
.product-spec-row{ display:flex; flex-wrap:wrap; gap:28px; margin-top:24px; padding-top:22px; border-top:1px solid var(--line); }
.product-spec{ min-width:130px; }
.product-spec .lbl{ display:block; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; opacity:.6; margin-bottom:4px; }
.product-spec .val{ font-family: var(--font-body); font-weight:600; font-size:.95rem; }

.process-steps{ counter-reset: step; list-style:none; margin:0; padding:0; display:grid; gap:18px; }
.process-steps li{
  counter-increment: step; position:relative; padding:20px 24px 20px 62px;
  background: var(--cream-2); border:1px solid var(--line); border-radius:4px;
}
.process-steps li::before{
  content: counter(step); position:absolute; left:20px; top:50%; transform:translateY(-50%);
  width:28px; height:28px; border-radius:50%; background:var(--charcoal); color:var(--cream);
  display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:600;
}
.process-steps .step-title{ font-family:var(--font-body); font-weight:600; margin:0 0 4px; font-size:.95rem; }
.process-steps .step-detail{ margin:0; font-size:.88rem; opacity:.85; }

.tds-table{ width:100%; border-collapse:collapse; }
.tds-table tr{ border-bottom:1px solid var(--line); }
.tds-table tr:last-child{ border-bottom:none; }
.tds-table th, .tds-table td{ text-align:left; padding:13px 6px; font-size:.88rem; vertical-align:top; }
.tds-table th{ width:220px; font-family:var(--font-body); font-weight:600; letter-spacing:.02em; color:var(--espresso); opacity:.8; }

.doc-cards{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.doc-card{ background:var(--cream-2); border:1px solid var(--line); border-radius:4px; padding:26px 28px; }
.doc-card h4{ margin:0 0 8px; }
.doc-card p{ margin:0 0 16px; font-size:.9rem; }
.doc-card .btn{ font-size:.75rem; }
.doc-card-note{ font-size:.76rem; opacity:.65; margin-top:12px; font-style:italic; }

.related-tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.related-tile{ display:block; text-decoration:none; }
.related-tile img, .related-tile .product-tile-swatch{ width:100%; aspect-ratio:1/1; border-radius:6px; object-fit:cover; display:block; margin-bottom:10px; }
.related-tile h5{ font-family:var(--font-body); font-size:.82rem; font-weight:600; margin:0; color:var(--charcoal); }

@media (max-width: 980px){
  .product-hero-grid{ grid-template-columns:1fr; }
  .doc-cards{ grid-template-columns:1fr; }
  .related-tiles{ grid-template-columns:repeat(2,1fr); }
  .tds-table th{ width:150px; }
}

.stat-row{
  display:flex; flex-wrap:wrap; gap:0; border:1px solid var(--line); border-radius:4px; overflow:hidden;
}
.stat-block{
  flex:1 1 200px; padding:28px 26px; border-right:1px solid var(--line); background:var(--white);
}
.stat-block:last-child{ border-right:none; }
.stat-block b{
  display:block; font-family:var(--font-display); font-size:1.9rem; color:var(--charcoal); margin-bottom:6px;
}
.stat-block span{ font-size:.82rem; opacity:.75; }
@media (max-width:640px){
  .stat-block{ border-right:none; border-bottom:1px solid var(--line); }
  .stat-block:last-child{ border-bottom:none; }
}

/* Our Team page */
.team-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:32px;
}
.team-card{
  display:flex; gap:22px; align-items:flex-start;
  background:var(--white); border:1px solid var(--line); border-radius:4px; padding:34px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(32,32,90,.30); }
.team-avatar{
  width:78px; height:78px; border-radius:50%; flex-shrink:0;
  background: linear-gradient(150deg, var(--charcoal), var(--terracotta-d));
  color: var(--cream);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-size:1.6rem; letter-spacing:.02em;
}
.team-role-tag{
  display:inline-block; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--terracotta-d); opacity:.85; margin-bottom:4px;
}
.team-card h3{ margin-bottom:2px; }
.team-cred{ font-size:.82rem; opacity:.65; margin:2px 0 10px; }
.team-card p.role-desc{ margin:0; }
.team-exp-block{ margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.team-exp-block .team-role-tag{ margin-bottom:6px; }
.team-exp-block p.role-desc{ opacity:.9; }
@media (max-width:720px){
  .team-grid{ grid-template-columns:1fr; }
  .team-card{ flex-direction:column; }
}

.cert-badge-row{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:30px;
  padding-top:26px;
  border-top:1px solid var(--line);
}
.cert-badge-row img{
  width:84px;
  height:84px;
  border-radius:50%;
  flex-shrink:0;
  object-fit:cover;
  box-shadow:0 6px 18px rgba(32,32,90,0.18);
}
.cert-badge-row p{
  margin:0;
  font-size:.92rem;
  line-height:1.5;
  opacity:.85;
}
.cert-badge-row p strong{ color:var(--charcoal); opacity:1; }
@media (max-width:480px){
  .cert-badge-row{ flex-direction:column; align-items:flex-start; }
}

.contact-grid-3{ grid-template-columns: 1.15fr 0.85fr 0.7fr; }
@media (max-width:980px){
  .contact-grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:640px){
  .contact-grid-3{ grid-template-columns: 1fr; }
}

/* Side video panels (contact page, hero, etc.) */
.video-frame{
  position:relative; overflow:hidden; border-radius:4px;
  aspect-ratio: 3/4; box-shadow: 0 20px 40px -24px rgba(32,32,90,.30);
}
.video-frame video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
@media (max-width:900px){
  .video-frame{ aspect-ratio:4/3; }
}

@media print{
  .nav, .footer, .btn-row, .product-hero-visual, .related-tiles, .doc-card .btn{ display:none !important; }
  body{ background:#fff; }
  .section{ padding:10px 0; }
}
