/* ==========================================================================
   RUGGED LAYER — built for the mines.
   Grit, hazard tape, riveted steel, stencil stamps, dust and dirt.
   Everything is CSS/SVG (no images), scoped to the public site, and the
   motion respects prefers-reduced-motion.
   ========================================================================== */

.site-light {
  --dirt: #7a5c3a;
  --dirt-dark: #3b2f24;
  --dirt-rgb: 122, 92, 58;
  --rock: #1c1814;
  --font-stencil: 'Big Shoulders Stencil Display', 'Space Grotesk', Impact, sans-serif;

  /* hazard tape: safety orange / near-black diagonals (tape only, not a theme colour) */
  --tape-orange: #F26A1B;
  --tape-ink: #161326;
  --hazard: repeating-linear-gradient(-45deg,
      var(--tape-orange) 0 12px, var(--tape-ink) 12px 24px);
}

/* --- Grit: a fixed film of fine noise over everything ------------------- */
.site-light::after {
  content: "";
  position: absolute; /* scrolls with the page (body is the positioning context) */
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.26  0 0 0 0 0.16  0 0 0 1.1 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.site-light.extra-dirty::after { opacity: 0.32; }

/* --- Hazard tape under the navbar and above the footer ------------------ */
.site-light .navbar { border-bottom: 0; position: sticky; }
.site-light .navbar::after,
.site-light .footer::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--hazard);
  opacity: 0.95;
}
.site-light .navbar::after { position: absolute; left: 0; right: 0; bottom: -6px; }

/* --- Stencil stamps ----------------------------------------------------- */
.site-light .hero-overline,
.site-light .section-meta,
.site-light .product-category-tag,
.site-light .badge {
  font-family: var(--font-stencil);
  letter-spacing: 0.14em;
  font-weight: 800;
}
.site-light .badge { font-size: 12px; }

/* Rubber stamp on the hero card */
.site-light .hero-showcase::after {
  content: "FIELD TESTED";
  position: absolute;
  right: -14px;
  bottom: 64px;
  transform: rotate(-9deg);
  padding: 4px 12px;
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: #b3261e;
  border: 3px solid #b3261e;
  border-radius: 4px;
  opacity: 0.78;
  background: rgba(254, 254, 254, 0.55);
  /* worn ink */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='60'><filter id='w'><feTurbulence baseFrequency='0.55' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='60'><filter id='w'><feTurbulence baseFrequency='0.55' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -2.2 1.7'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>");
  pointer-events: none;
  z-index: 3;
}

/* --- Riveted steel plates ---------------------------------------------- */
.site-light .product-card,
.site-light .pillar-card,
.site-light .hero-showcase {
  border: 2px solid rgba(var(--color-tertiary-rgb), 0.78);
  border-radius: 4px;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(var(--color-tertiary-rgb), 0.08);
  background-image:
    radial-gradient(circle at 10px 10px, rgba(var(--color-tertiary-rgb), 0.55) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) 10px, rgba(var(--color-tertiary-rgb), 0.55) 0 2.5px, transparent 3px),
    radial-gradient(circle at 10px calc(100% - 10px), rgba(var(--color-tertiary-rgb), 0.55) 0 2.5px, transparent 3px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), rgba(var(--color-tertiary-rgb), 0.55) 0 2.5px, transparent 3px);
}

/* Mud splashed up the bottom edge of each plate */
.site-light .product-card::after,
.site-light .pillar-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38px 14px at 12% 100%, rgba(var(--dirt-rgb), 0.30), transparent 70%),
    radial-gradient(ellipse 70px 20px at 38% 100%, rgba(var(--dirt-rgb), 0.20), transparent 70%),
    radial-gradient(ellipse 26px 10px at 61% 100%, rgba(var(--dirt-rgb), 0.28), transparent 70%),
    radial-gradient(ellipse 90px 24px at 88% 100%, rgba(var(--dirt-rgb), 0.22), transparent 70%);
}
.site-light.extra-dirty .product-card::after,
.site-light.extra-dirty .pillar-card::after { height: 90px; filter: saturate(1.4) brightness(.75); }

/* --- Scuffed buttons ---------------------------------------------------- */
.site-light .btn-primary {
  border: 2px solid var(--color-tertiary);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--color-tertiary);
  background-image:
    radial-gradient(circle at 18% 30%, rgba(var(--dirt-rgb), 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 64%, rgba(var(--dirt-rgb), 0.22) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 20%, rgba(var(--dirt-rgb), 0.18) 0 1px, transparent 2px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.site-light .btn-primary:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--color-tertiary); }
.site-light .btn-primary:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--color-tertiary); }

/* --- Dust drifting through the hero ------------------------------------ */
.site-light .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(var(--dirt-rgb), 0.5) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(var(--dirt-rgb), 0.4) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(var(--dirt-rgb), 0.35) 0 2px, transparent 2.6px);
  background-size: 190px 170px, 130px 150px, 270px 230px;
  background-position: 0 0, 40px 60px, 90px 20px;
  animation: dustDrift 38s linear infinite;
  opacity: 0.7;
}
@keyframes dustDrift {
  to { background-position: 190px -170px, -90px -90px, -180px -210px; }
}

/* --- Bedrock footer: strata, dirt and a pile to dig in ------------------ */
.site-light .footer {
  --color-secondary: var(--rock);
  --color-secondary-border: rgba(254, 254, 254, 0.14);
  --color-tertiary: #fefefe;
  --color-tertiary-muted: rgba(254, 254, 254, 0.78);
  --color-tertiary-dim: rgba(254, 254, 254, 0.55);
  --color-primary-ink: var(--color-primary);
  position: relative;
  margin-top: var(--space-16);
  border-top: 0;
  color: var(--color-tertiary);
  background:
    repeating-linear-gradient(177deg, transparent 0 46px, rgba(var(--dirt-rgb), 0.16) 46px 52px, transparent 52px 110px),
    radial-gradient(circle at 20% 40%, rgba(var(--dirt-rgb), 0.25) 0 2px, transparent 3px) 0 0 / 44px 38px,
    radial-gradient(circle at 70% 70%, rgba(254, 254, 254, 0.08) 0 1.5px, transparent 2.5px) 0 0 / 31px 27px,
    linear-gradient(180deg, #2a2118, var(--rock) 55%);
}
.site-light .footer::before { margin-top: -6px; }
/* ragged cut where the rock meets the page */
.site-light .footer-edge {
  position: absolute;
  left: 0; right: 0; top: -22px;
  height: 22px;
  background: var(--color-secondary-surface, #f5f5ef);
  background: #2a2118;
  clip-path: polygon(0 100%, 0 55%, 4% 30%, 9% 62%, 15% 20%, 22% 58%, 29% 28%, 36% 66%, 43% 24%, 51% 60%, 58% 18%, 66% 56%, 73% 26%, 81% 64%, 88% 22%, 95% 54%, 100% 30%, 100% 100%);
}
.site-light .footer .btn,
.site-light .footer a { text-decoration: none; }

.dirt-mound {
  position: absolute;
  right: 6%;
  top: -38px;
  width: 92px;
  height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: radial-gradient(ellipse 50% 100% at 50% 100%, #5c4429 0 60%, transparent 62%);
  filter: drop-shadow(0 -2px 0 rgba(0,0,0,.25));
  z-index: 2;
}
.dirt-mound:active { transform: scale(0.96, 0.9); transform-origin: bottom; }
.dirt-mound::after { /* pebbles */
  content: "";
  position: absolute;
  inset: 8px 14px 0;
  background:
    radial-gradient(circle at 20% 70%, #8c6a43 0 2.5px, transparent 3px),
    radial-gradient(circle at 55% 45%, #2a2118 0 2px, transparent 2.5px),
    radial-gradient(circle at 78% 75%, #8c6a43 0 2px, transparent 2.5px);
}

.nugget {
  position: fixed;
  z-index: 9500;
  width: 26px; height: 20px;
  background: radial-gradient(circle at 35% 30%, #fff3a8, #e2b007 55%, #8a6500);
  clip-path: polygon(10% 40%, 30% 5%, 70% 0, 95% 35%, 85% 85%, 45% 100%, 8% 80%);
  pointer-events: none;
  animation: nuggetFall 1.1s cubic-bezier(.3,.7,.4,1) forwards;
}
@keyframes nuggetFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(var(--fall, 60vh)) rotate(540deg); opacity: 1; }
}

/* --- Easter-egg UI ------------------------------------------------------ */
.sign-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9600;
  transform: translate(-50%, 24px);
  opacity: 0;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #12102B;
  background: var(--color-primary);
  border: 3px solid #12102B;
  box-shadow: 4px 4px 0 #12102B;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.sign-toast::before, .sign-toast::after {
  content: "";
  position: absolute; top: -3px; bottom: -3px; width: 14px;
  background: repeating-linear-gradient(-45deg, var(--tape-ink) 0 5px, var(--tape-orange) 5px 10px);
}
.sign-toast::before { left: -17px; } .sign-toast::after { right: -17px; }
.sign-toast.show { transform: translate(-50%, 0); opacity: 1; }

.shake { animation: shake .6s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 2px, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, -2px, 0); }
  40%, 60% { transform: translate3d(7px, 2px, 0); }
}
.dust-burst {
  position: fixed; inset: 0; z-index: 9400; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(var(--dirt-rgb), .55), transparent 65%);
  animation: dustBurst 2.2s ease-out forwards;
}
@keyframes dustBurst { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.hard-hat {
  position: fixed; top: -80px; left: 50%; z-index: 9500; font-size: 64px;
  pointer-events: none; animation: hatDrop 1.6s cubic-bezier(.5,0,.8,.4) forwards;
}
@keyframes hatDrop { 0% { transform: translate(-50%, 0) rotate(-20deg); } 60% { transform: translate(-50%, 60vh) rotate(10deg); } 75% { transform: translate(-50%, 52vh) rotate(-6deg); } 100% { transform: translate(-50%, 60vh) rotate(0); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .site-light .hero::before, .shake, .dust-burst, .hard-hat, .nugget { animation: none !important; }
  .sign-toast { transition: none; }
}

/* ==========================================================================
   QUOTE LIST + MODAL
   ========================================================================== */
.qm[hidden], .quote-dock[hidden], .qm [hidden] { display: none !important; }

.quote-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-family: var(--font-stencil);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-contrast);
  background: var(--color-primary);
  border: 2px solid var(--color-tertiary);
  box-shadow: 4px 4px 0 var(--color-tertiary);
  cursor: pointer;
}
.quote-dock:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--color-tertiary); }
.quote-dock-count {
  min-width: 24px; height: 24px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--color-tertiary); color: var(--color-secondary);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0;
}
.quote-dock.bump { animation: dockBump .45s ease; }
@keyframes dockBump { 40% { transform: scale(1.12) rotate(-2deg); } }

.add-btn.is-added { background: var(--color-primary); border-color: var(--color-tertiary); color: var(--color-primary-contrast); }
.add-btn.is-added .vai-icon { color: var(--color-primary-contrast) !important; }

body.qm-open { overflow: hidden; }
.qm { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: flex-end; justify-content: center; }
.qm-backdrop { position: absolute; inset: 0; background: rgba(28, 24, 20, 0.62); opacity: 0; transition: opacity .2s; }
.qm.is-open .qm-backdrop { opacity: 1; }
.qm-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--color-secondary);
  color: var(--color-tertiary);
  border: 3px solid var(--color-tertiary);
  border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
  outline: none;
}
.qm.is-open .qm-panel { transform: none; opacity: 1; }
@media (min-width: 700px) {
  .qm { align-items: center; }
  .qm-panel { border-bottom: 3px solid var(--color-tertiary); max-height: 90vh; box-shadow: 8px 8px 0 rgba(var(--color-tertiary-rgb), .85); }
}
.qm-panel::before { content: ""; display: block; height: 10px; background: var(--hazard); flex-shrink: 0; }
.qm-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 10px; }
.qm-kicker { font-family: var(--font-stencil); font-weight: 800; letter-spacing: .16em; font-size: 13px; color: var(--color-primary-ink); }
.qm-title { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: -0.02em; }
.qm-x { background: none; border: 2px solid var(--color-secondary-border); width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: inherit; }
.qm-x:hover { border-color: var(--color-tertiary); }
.qm-body { padding: 6px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.qm-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--color-tertiary-dim); margin-bottom: 8px; }
.qm-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.qm-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 8px; background: var(--color-secondary-surface); border: 1px solid var(--color-secondary-border); border-left: 3px solid var(--color-primary); }
.qm-thumb { width: 56px; height: 42px; object-fit: cover; background: #0e0d22; }
.qm-item-title { font-weight: 700; font-size: 14px; line-height: 1.25; }
.qm-item-code { font-family: var(--font-mono); font-size: 11px; color: var(--color-tertiary-dim); }
.qm-qty { display: inline-flex; border: 2px solid var(--color-tertiary); }
.qm-qty button { width: 30px; background: var(--color-secondary-elevated); border: 0; cursor: pointer; font-size: 16px; color: inherit; }
.qm-qty button:hover { background: var(--color-primary); color: var(--color-primary-contrast); }
.qm-qty input { width: 52px; text-align: center; border: 0; background: var(--color-secondary); color: inherit; font-family: var(--font-mono); font-weight: 700; -moz-appearance: textfield; }
.qm-qty input::-webkit-outer-spin-button, .qm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qm-remove { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--color-tertiary-dim); padding: 4px 8px; }
.qm-remove:hover { color: #b3261e; }
.qm-empty { padding: 14px; border: 2px dashed var(--color-secondary-border); font-size: 14px; color: var(--color-tertiary-muted); }
.qm-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.qm-chip, .chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 7px 12px; cursor: pointer; color: var(--color-tertiary);
  background: var(--color-secondary); border: 2px solid var(--color-secondary-border);
}
.qm-chip:hover, .chip:hover { border-color: var(--color-tertiary); }
.qm-chip span { color: var(--color-primary-ink); font-weight: 800; }
.qm-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .qm-grid { grid-template-columns: 1fr 1fr; } }
.qm-error { padding: 10px 12px; border: 2px solid #b3261e; color: #b3261e; font-size: 14px; font-weight: 600; }
.qm-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 2px solid var(--color-secondary-border); background: var(--color-secondary-surface); }
.qm-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.qm-done { padding: 34px 26px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qm-done-icon { color: var(--color-primary-ink); }
.qm-done h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; }

/* filter chips above the range */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-6) 0 var(--space-6); }
.chip.is-active { background: var(--color-tertiary); color: var(--color-secondary); border-color: var(--color-tertiary); }
.nav-links a.is-current { color: var(--color-tertiary); box-shadow: inset 0 -3px 0 var(--color-primary); }

/* ==========================================================================
   CARD IMAGES + TEXTURE
   ========================================================================== */
/* the artwork is 4:3, so the frame is 4:3 and fills edge to edge */
.site-light .product-image-box { height: auto; aspect-ratio: 4 / 3; border-radius: 2px; position: relative; }
.site-light .product-image-box img { object-fit: cover; }
.site-light .product-image-box::after { /* film grain + scratches over the photo */
  content: "";
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .35;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.10) 46.2%, transparent 46.6%) ,
    linear-gradient(72deg, transparent 0 71%, rgba(255,255,255,.07) 71.2%, transparent 71.5%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 -.4'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

/* a second, coarser layer of grime on the page itself: blotches, not grain */
.site-light::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.009 0.013' numOctaves='3' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.48  0 0 0 0 0.36  0 0 0 0 0.23  0 0 0 1.6 -0.78'/></filter><rect width='100%' height='100%' filter='url(%23b)'/></svg>");
}
.site-light main, .site-light .navbar, .site-light .footer { position: relative; z-index: 1; }
.site-light .navbar { z-index: 50; }

/* steel plates get a brushed finish */
.site-light .product-card, .site-light .pillar-card {
  background-color: var(--color-secondary-card);
  background-blend-mode: normal;
}
.site-light .product-card > .card-top::before { display: none; }

/* ==========================================================================
   MORE TAPE + BEDROCK
   ========================================================================== */
/* section headings sit on a strip of tape */
.site-light .section-meta { display: flex; align-items: center; gap: 12px; }
.site-light .section-meta::after {
  content: ""; width: 96px; height: 10px; background: var(--hazard); flex-shrink: 0; opacity: .95;
}
.site-light .section-meta > *::after { display: none; }
/* tape across the top edge of every plate */
.site-light .product-card::before,
.site-light .pillar-card::before { height: 6px; background: var(--hazard); opacity: .9; }
.site-light .product-card:hover::before { background: var(--hazard); }
.site-light .hero-showcase { border-top-width: 2px; }

/* full-width tape + ragged-rock dividers between big blocks */
.tape-rule { height: 12px; background: var(--hazard); margin: 0; }
.bedrock {
  --color-secondary: var(--rock);
  --color-secondary-surface: #2a2118;
  --color-secondary-elevated: #352a1f;
  --color-secondary-card: #231c15;
  --color-secondary-border: rgba(254, 254, 254, .16);
  --color-secondary-border-hover: rgba(192, 213, 50, .6);
  --color-tertiary: #fefefe;
  --color-tertiary-muted: rgba(254, 254, 254, .8);
  --color-tertiary-dim: rgba(254, 254, 254, .55);
  --color-tertiary-rgb: 254, 254, 254;
  --color-primary-ink: var(--color-primary);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 10px 28px rgba(0, 0, 0, .45);
  position: relative;
  color: var(--color-tertiary);
  background:
    repeating-linear-gradient(177deg, transparent 0 56px, rgba(var(--dirt-rgb), .18) 56px 62px, transparent 62px 130px),
    radial-gradient(circle at 20% 40%, rgba(var(--dirt-rgb), .28) 0 2px, transparent 3px) 0 0 / 44px 38px,
    radial-gradient(circle at 70% 70%, rgba(254, 254, 254, .08) 0 1.5px, transparent 2.5px) 0 0 / 31px 27px,
    linear-gradient(180deg, #2a2118, var(--rock) 60%, #14110d);
}
.bedrock::before, .bedrock::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; background: #2a2118; pointer-events: none;
}
.bedrock::before { top: -21px; clip-path: polygon(0 100%, 0 55%, 4% 30%, 9% 62%, 15% 20%, 22% 58%, 29% 28%, 36% 66%, 43% 24%, 51% 60%, 58% 18%, 66% 56%, 73% 26%, 81% 64%, 88% 22%, 95% 54%, 100% 30%, 100% 100%); }
.bedrock::after { bottom: -21px; background: #14110d; clip-path: polygon(0 0, 100% 0, 100% 40%, 94% 70%, 87% 36%, 80% 66%, 72% 30%, 64% 72%, 55% 38%, 47% 68%, 38% 28%, 30% 64%, 21% 34%, 12% 70%, 6% 40%, 0 62%); }
.bedrock .section-title, .bedrock h2, .bedrock h3 { color: var(--color-tertiary); }
.bedrock .section-desc { color: var(--color-tertiary-muted); }
.bedrock .product-card, .bedrock .pillar-card, .bedrock .sector-card { background-color: var(--color-secondary-card); border-color: rgba(254, 254, 254, .7); }

/* ==========================================================================
   SECTORS: anywhere that can be surveyed
   ========================================================================== */
.sector-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 640px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sector-grid { grid-template-columns: repeat(4, 1fr); } }
.sector-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--color-secondary-card);
  border: 2px solid rgba(var(--color-tertiary-rgb), .75);
  border-radius: 4px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.sector-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--hazard); }
.sector-card:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.sector-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-primary); color: var(--color-primary-contrast); border-radius: 3px; margin-top: 4px; }
.sector-name { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em; }
.sector-desc { font-size: 14px; color: var(--color-tertiary-muted); line-height: 1.55; }
.sector-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.sector-ref {
  font-family: var(--font-stencil); font-weight: 800; font-size: 12px; letter-spacing: .12em;
  padding: 3px 8px; cursor: pointer; color: var(--color-tertiary);
  background: transparent; border: 1.5px solid rgba(var(--color-tertiary-rgb), .5);
}
.sector-ref:hover { background: var(--color-primary); color: var(--color-primary-contrast); border-color: var(--color-primary); }
.sector-foot { margin-top: var(--space-8); text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--color-tertiary-muted); }
.sector-foot a { color: var(--color-primary); font-weight: 700; border-bottom: 2px solid var(--color-primary); }

/* nav: never wrap labels; tighten between laptop and desktop widths */
.site-light .nav-link, .site-light .nav-brand { white-space: nowrap; }
@media (max-width: 1180px) {
  .site-light .nav-links { gap: var(--space-4); }
  .site-light .nav-link { font-size: 11px; letter-spacing: .04em; }
}
.site-light::before { opacity: .3; }
section.bedrock { margin: 28px 0; }

/* ==========================================================================
   STRAY REFLECTIVE TAPE (peeling off the wall behind "Why Vision AI")
   ========================================================================== */
#why-us { position: relative; overflow: hidden; }
#why-us > .container { position: relative; z-index: 1; }

.stray-tape {
  --glint: 28%;
  position: absolute;
  left: -5%;
  top: 8px;
  width: min(820px, 94%);
  height: 46px;
  z-index: 0;
  transform: rotate(2.2deg);
  transform-origin: left center;
  pointer-events: none;
  /* silver microprismatic sheeting: sheen + diamond lattice + brushed base */
  background:
    linear-gradient(105deg, transparent calc(var(--glint) - 14%), rgba(255, 255, 255, .95) var(--glint), transparent calc(var(--glint) + 14%)),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .09) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #eef0f2 0%, #bcc2c9 46%, #e4e7ea 54%, #a9afb7 100%);
  border-top: 1px solid rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(60, 66, 74, .45);
  box-shadow: 0 3px 5px rgba(28, 24, 20, .2), inset 0 0 0 1px rgba(255, 255, 255, .25);
  /* scuffed, dirty ends: the left end is torn off the page edge */
  filter: saturate(.9) contrast(1.02);
}
/* printed legend along the tape */
.stray-tape::before {
  content: "VISION AI  ◆  SURVEY GRADE  ◆  VISION AI  ◆  SURVEY GRADE  ◆  VISION AI  ◆  SURVEY GRADE  ◆  VISION AI";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 18%;
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-stencil);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .26em;
  color: rgba(28, 24, 20, .55);
}
/* dirt and adhesive grime along the edges */
.stray-tape::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60px 10px at 14% 0, rgba(var(--dirt-rgb), .55), transparent 70%),
    radial-gradient(ellipse 90px 12px at 46% 100%, rgba(var(--dirt-rgb), .5), transparent 70%),
    radial-gradient(ellipse 50px 9px at 72% 0, rgba(var(--dirt-rgb), .4), transparent 70%),
    radial-gradient(circle at 30% 60%, rgba(var(--dirt-rgb), .3) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(var(--dirt-rgb), .3) 0 1.5px, transparent 2.5px);
  mix-blend-mode: multiply;
}

/* the lifted end: underside of the tape, curling up and back */
.tape-flap {
  position: absolute;
  top: -1px;
  left: 100%;
  width: 96px;
  height: 46px;
  transform-origin: left center;
  transform: perspective(260px) rotateY(-68deg) rotateZ(4deg);
  transition: transform .5s cubic-bezier(.3, .8, .3, 1);
  background:
    repeating-linear-gradient(0deg, rgba(var(--dirt-rgb), .12) 0 2px, transparent 2px 5px),
    linear-gradient(90deg, #d9d3c8, #f1ede4 55%, #cfc8ba);
  border-top: 1px solid rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(60, 66, 74, .3);
  box-shadow: 8px 10px 14px rgba(28, 24, 20, .28);
  pointer-events: auto;
  cursor: pointer;
}
.stray-tape:hover .tape-flap, .tape-flap:hover { transform: perspective(260px) rotateY(-82deg) rotateZ(7deg); }
/* shadow cast on the wall by the lifted end */
.tape-shadow {
  position: absolute;
  left: calc(100% - 26px);
  top: 30px;
  width: 120px;
  height: 22px;
  background: radial-gradient(ellipse at 30% 40%, rgba(28, 24, 20, .32), transparent 70%);
  transform: rotate(-6deg);
  filter: blur(2px);
}

.stray-tape.is-peeled { animation: tapeFall 1.3s cubic-bezier(.5, 0, .9, .5) forwards; }
@keyframes tapeFall {
  0%   { transform: rotate(2.2deg); opacity: 1; }
  25%  { transform: rotate(-9deg) translateY(-6px); opacity: 1; }
  100% { transform: rotate(-24deg) translate(40px, 520px); opacity: 0; }
}
@media (max-width: 640px) { .stray-tape { top: 22px; height: 38px; } .stray-tape::before { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .tape-flap { transition: none; }
  .stray-tape.is-peeled { animation: none; opacity: 0; }
}
.site-light .pillar-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; }


/* ==========================================================================
   MOTION PASS — subtle, never busy
   ========================================================================== */
/* gentler idle motion */
.vai-icon.anim-spin { animation-duration: 40s; }
.vai-icon.anim-ping { animation-name: iconPingSoft; }
@keyframes iconPingSoft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.site-light .hero::before { opacity: .45; animation-duration: 60s; }

/* hero highlight: the marker swipes across once on load */
.site-light .hero-title span.highlight {
  background-repeat: no-repeat;
  background-size: 100% 100%;
  animation: markerWipe .9s cubic-bezier(.6, 0, .2, 1) .35s backwards;
}
.site-light .hero-title span.highlight + span, .site-light .hero-title span.highlight:last-of-type { animation-delay: .6s; }
@keyframes markerWipe { from { background-size: 0% 100%; } }

/* scroll reveal: only armed when JS is running, uses `translate` so card hover transforms still work */
.js-reveal .rv {
  opacity: 0;
  translate: 0 16px;
  transition: opacity .7s ease-out, translate .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal .rv.in { opacity: 1; translate: 0 0; }
/* the tape on each plate draws on from the left as it appears */
.js-reveal .product-card.rv::before, .js-reveal .pillar-card.rv::before, .js-reveal .sector-card.rv::before {
  transform-origin: left center; transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 70ms + .15s);
}
.js-reveal .product-card.rv.in::before, .js-reveal .pillar-card.rv.in::before, .js-reveal .sector-card.rv.in::before { transform: scaleX(1); }

/* card hover: small lift + the image eases in */
.site-light .product-card, .site-light .pillar-card { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .rv { opacity: 1; translate: none; transition: none; }
  .js-reveal .product-card.rv::before, .js-reveal .pillar-card.rv::before, .js-reveal .sector-card.rv::before { transform: none; transition: none; }
  .site-light .hero-title span.highlight { animation: none; }
}

/* honeypot: off-screen, invisible to people */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


/* ==========================================================================
   TAPE ROLLS INTO VIEW
   Heading tape pays out from a spinning roll; the stray reflective tape
   unrolls from a spool and then its end lifts off the wall.
   ========================================================================== */
.site-light .section-meta::after { display: none; }

.tape-strip { position: relative; width: 110px; height: 12px; flex-shrink: 0; }
.tape-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--hazard);
  box-shadow: 0 1px 0 rgba(28, 24, 20, .25);
}
.tape-roll {
  position: absolute; right: -10px; top: 50%;
  width: 22px; height: 22px; border-radius: 50%;
  translate: 0 -50%;
  background:
    radial-gradient(circle, var(--tape-ink) 0 24%, transparent 26%),
    repeating-conic-gradient(var(--tape-orange) 0 18deg, var(--tape-ink) 18deg 36deg);
  box-shadow: 0 1px 3px rgba(28, 24, 20, .4), inset 0 0 0 2px rgba(28, 24, 20, .35);
}

.js-reveal .section-header-block .tape-fill { width: 0; }
.js-reveal .section-header-block .tape-roll { rotate: 0deg; }
.js-reveal .section-header-block.in .tape-fill { animation: tapePayOut 1.1s cubic-bezier(.3, .7, .2, 1) .3s forwards; }
.js-reveal .section-header-block.in .tape-roll { animation: tapeRollSpin 1.1s cubic-bezier(.3, .7, .2, 1) .3s forwards; }
@keyframes tapePayOut { from { width: 0; } to { width: 100%; } }
@keyframes tapeRollSpin { from { rotate: 0deg; } to { rotate: 900deg; } }

/* the stray reflective tape pays out from a big spool, then the end lifts */
.tape-spool {
  position: absolute; right: -26px; top: 50%; translate: 0 -50%;
  width: 56px; height: 56px; border-radius: 50%; opacity: 0; pointer-events: none;
  background:
    radial-gradient(circle, #2a2118 0 14%, #d9d3c8 15% 22%, transparent 24%),
    repeating-radial-gradient(circle, #bcc2c9 0 3px, #e8ebee 3px 6px);
  box-shadow: 0 3px 8px rgba(28, 24, 20, .35);
}
.js-reveal .stray-tape:not(.in) { width: 0; }
.js-reveal .stray-tape:not(.in) .tape-flap { opacity: 0; }
.js-reveal .stray-tape.in { animation: strayUnroll 1.8s cubic-bezier(.3, .7, .2, 1) both; }
.js-reveal .stray-tape.in .tape-spool { animation: spoolOut 1.8s cubic-bezier(.3, .7, .2, 1) both; }
.js-reveal .stray-tape.in .tape-flap { animation: flapIn .5s ease-out 1.6s both; }
@keyframes strayUnroll { from { width: 0; } }
@keyframes spoolOut { 0% { opacity: 1; rotate: 0deg; } 88% { opacity: 1; } 100% { opacity: 0; rotate: -1080deg; } }
@keyframes flapIn { from { opacity: 0; } }
.stray-tape.is-peeled .tape-spool { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .section-header-block .tape-fill { width: 100%; animation: none; }
  .js-reveal .stray-tape:not(.in) { width: min(820px, 94%); }
  .js-reveal .stray-tape.in, .js-reveal .stray-tape.in .tape-flap, .js-reveal .stray-tape.in .tape-spool { animation: none; }
  .tape-roll, .tape-spool { display: none; }
}


/* ==========================================================================
   STOCKPILES
   ========================================================================== */
.rock-panel {
  --color-secondary: var(--rock);
  --color-secondary-surface: #2a2118;
  --color-secondary-border: rgba(254, 254, 254, .16);
  --color-tertiary: #fefefe;
  --color-tertiary-rgb: 254, 254, 254;
  --color-tertiary-muted: rgba(254, 254, 254, .82);
  --color-tertiary-dim: rgba(254, 254, 254, .55);
  --color-primary-ink: var(--color-primary);
  position: relative;
  color: var(--color-tertiary);
  border: 2px solid rgba(254, 254, 254, .75);
  border-radius: 4px;
  overflow: hidden;
  background:
    repeating-linear-gradient(177deg, transparent 0 56px, rgba(var(--dirt-rgb), .16) 56px 62px, transparent 62px 130px),
    radial-gradient(circle at 20% 40%, rgba(var(--dirt-rgb), .26) 0 2px, transparent 3px) 0 0 / 44px 38px,
    linear-gradient(180deg, #2a2118, var(--rock) 70%);
  box-shadow: var(--shadow-lg);
}
.rock-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--hazard); z-index: 2; }

.stockpile-card { display: grid; grid-template-columns: 1fr; margin-top: var(--space-8); }
@media (min-width: 900px) { .stockpile-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.stockpile-copy { padding: var(--space-8) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); justify-content: center; }
.stockpile-points { list-style: none; display: grid; gap: var(--space-3); }
.stockpile-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-tertiary-muted); font-size: 15px; line-height: 1.5; }
.stockpile-points .vai-icon { color: var(--color-primary); flex-shrink: 0; margin-top: 3px; }
.stockpile-copy .btn { align-self: flex-start; }

.stockpile-scene { position: relative; min-height: 260px; background: #14110d; border-top: 2px solid rgba(254, 254, 254, .2); }
@media (min-width: 900px) { .stockpile-scene { border-top: 0; border-left: 2px solid rgba(254, 254, 254, .2); } }
.stockpile-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-sweep { animation: spSweep 9s ease-in-out infinite alternate; }
@keyframes spSweep { from { transform: translateX(20px); } to { transform: translateX(620px); } }
.sp-beam-line { animation: spBeam 1s linear infinite; }
@keyframes spBeam { to { stroke-dashoffset: -18; } }
.contours { stroke-dasharray: 5 6; animation: spBeam 3s linear infinite; }
.stockpile-scene .rot { transform-box: fill-box; transform-origin: center; animation: rotorBlur .14s linear infinite alternate; }

.sp-readout {
  position: absolute; right: 14px; top: 16px; z-index: 2; min-width: 150px; padding: 10px 14px;
  background: rgba(20, 17, 13, .85); border: 2px solid var(--color-primary);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}
.sp-readout-label { font-family: var(--font-stencil); font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--color-primary); }
.sp-readout-value { font-family: var(--font-mono); font-weight: 800; font-size: 26px; line-height: 1.15; color: #fefefe; }
.sp-readout-value small { font-size: 14px; color: var(--color-tertiary-muted); }
.sp-readout-sub { font-family: var(--font-mono); font-size: 11px; color: var(--color-tertiary-dim); }

#stockpiles .decor-spray--sp { right: -3%; bottom: 0; transform: rotate(-3deg); }
@media (prefers-reduced-motion: reduce) { .sp-sweep, .sp-beam-line, .contours, .stockpile-scene .rot { animation: none; } .sp-sweep { transform: translateX(300px); } }

/* ==========================================================================
   BRAND ON TAPE: the logo printed on a cut-off strip of reflective tape
   ========================================================================== */
.brand-tape {
  --cut: polygon(1.5% 0, 100% 5%, 98.4% 27%, 100% 51%, 98.1% 76%, 99.4% 100%, 0 95%, 1.9% 73%, 0 49%, 1.4% 24%);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 46px;
  padding: 0 26px;
  transform: rotate(-1.6deg);
  transform-origin: left center;
  /* drop-shadow follows the cut edge (box-shadow would show the rectangle) */
  filter: drop-shadow(0 2px 2px rgba(28, 24, 20, .28)) drop-shadow(0 0 .5px rgba(28, 24, 20, .5));
  animation: brandSlap .55s cubic-bezier(.2, .8, .3, 1) both;
}
.brand-tape-body {
  position: absolute; inset: 0;
  clip-path: var(--cut);
  /* default: dark reflective tape, so light logos print cleanly */
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%) -140% 0 / 260% 100% no-repeat,
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #34305c 0%, #19163a 46%, #26234b 54%, #100e25 100%);
  transition: background-position .9s ease;
}
/* grime and adhesive residue along the edges */
.brand-tape-body::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: .5;
  background:
    radial-gradient(ellipse 34px 6px at 18% 0, rgba(var(--dirt-rgb, 122, 92, 58), .7), transparent 70%),
    radial-gradient(ellipse 44px 7px at 66% 100%, rgba(var(--dirt-rgb, 122, 92, 58), .6), transparent 70%),
    radial-gradient(circle at 84% 62%, rgba(255, 255, 255, .22) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 9% 40%, rgba(255, 255, 255, .2) 0 1.2px, transparent 2px);
}
.brand-tape:hover .brand-tape-body, .nav-brand:focus-visible .brand-tape-body { background-position: 140% 0, 0 0, 0 0, 0 0; }

/* the printing */
.brand-tape-img {
  position: relative;
  display: block;
  height: 30px; width: auto; max-width: 168px;
  object-fit: contain;
  opacity: .96;
  filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .35));
}
.brand-tape-word {
  position: relative;
  font-family: var(--font-stencil, 'Big Shoulders Stencil Display', Impact, sans-serif);
  font-weight: 900; font-size: 21px; letter-spacing: .16em; white-space: nowrap;
  color: #f4f4ee;
}

/* silver variant, for dark logos: ink sits on the tape, so the logo multiplies into it */
.brand-tape--silver .brand-tape-body {
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%) -140% 0 / 260% 100% no-repeat,
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #f1f3f5 0%, #c3c9d0 46%, #e6e9ec 54%, #aeb4bc 100%);
}
.brand-tape--silver .brand-tape-body::after { mix-blend-mode: multiply; opacity: 1; background:
    radial-gradient(ellipse 34px 6px at 18% 0, rgba(var(--dirt-rgb, 122, 92, 58), .5), transparent 70%),
    radial-gradient(ellipse 44px 7px at 66% 100%, rgba(var(--dirt-rgb, 122, 92, 58), .45), transparent 70%),
    radial-gradient(circle at 84% 62%, rgba(var(--dirt-rgb, 122, 92, 58), .28) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 9% 40%, rgba(var(--dirt-rgb, 122, 92, 58), .26) 0 1.2px, transparent 2px); }
.brand-tape--silver .brand-tape-img { mix-blend-mode: multiply; filter: contrast(1.08) saturate(.92); }
.brand-tape--silver .brand-tape-word { color: rgba(28, 24, 20, .86); }

.brand-tape--sm { min-width: 100px; height: 38px; padding: 0 20px; }
.brand-tape--sm .brand-tape-img { height: 24px; max-width: 136px; }
.brand-tape--sm .brand-tape-word { font-size: 17px; }
.footer-brand { display: inline-block; margin-bottom: var(--space-3); }

@keyframes brandSlap { from { opacity: 0; transform: rotate(-6deg) translateY(-6px) scale(1.08); } }
@media (max-width: 640px) { .brand-tape { min-width: 96px; height: 40px; padding: 0 18px; } .brand-tape-img { height: 26px; max-width: 128px; } }
@media (prefers-reduced-motion: reduce) { .brand-tape { animation: none; } .brand-tape-body { transition: none; } }


/* ==========================================================================
   3D REFLECTIVE TARGET: the hero card's visual is a square stage the target can play in
   ========================================================================== */
.showcase-visual {
  position: relative;
  aspect-ratio: 1 / 1;            /* fixed from the start, so nothing shifts when the 3D scene arrives */
  display: block;
}
/* the flat artwork is the no-WebGL fallback, centred in the stage */
.showcase-flat { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); width: 100%; height: auto; }
.showcase-visual[data-three="on"] .showcase-flat { display: none; }

.showcase-3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 2;
  cursor: crosshair;
  touch-action: manipulation;     /* taps respond instantly; scrolling still works */
  opacity: 0;
  transition: opacity .5s ease;
}
.showcase-3d[hidden] { display: none; }
.showcase-visual[data-three="on"] .showcase-3d { opacity: 1; }

.showcase-stage { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; font-family: var(--font-mono); color: #fefefe;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(192, 213, 50, .10), transparent 62%),
    linear-gradient(rgba(254, 254, 254, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(254, 254, 254, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    #0d0c1e; }
.showcase-visual[data-three="on"] .showcase-stage, .showcase-visual[data-three="on"] .showcase-hud { display: block; }
.showcase-hud { display: none; position: absolute; inset: 0; z-index: 1; pointer-events: none; font-family: var(--font-mono); color: #fefefe; }
.stage-corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--color-primary, #C0D532); }
.stage-corner--tl { left: 16px; top: 16px; border-width: 2px 0 0 2px; }
.stage-corner--tr { right: 16px; top: 16px; border-width: 2px 2px 0 0; }
.stage-corner--bl { left: 16px; bottom: 16px; border-width: 0 0 2px 2px; }
.stage-corner--br { right: 16px; bottom: 16px; border-width: 0 2px 2px 0; }
.stage-top { position: absolute; left: 24px; right: 24px; top: 24px; display: flex; justify-content: space-between; gap: 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--color-primary, #C0D532); }
.stage-top span:last-child { color: rgba(254, 254, 254, .45); font-weight: 400; white-space: nowrap; }
.stage-callout { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; padding: 8px 10px; width: 106px; font-size: 8px; line-height: 1.35; letter-spacing: .04em; color: rgba(254, 254, 254, .78);
  background: rgba(26, 23, 61, .92); border: 1px solid rgba(254, 254, 254, .2); border-radius: 3px; }
.stage-callout b { color: #fefefe; font-size: 9px; letter-spacing: .06em; }
.stage-callout--left { left: 14px; } .stage-callout--right { right: 14px; }
.stage-callout::after { content: ""; position: absolute; top: 50%; width: 38px; border-top: 1px dashed rgba(192, 213, 50, .7); }
.stage-callout--left::after { left: 100%; } .stage-callout--right::after { right: 100%; }
.stage-station, .stage-readout { opacity: 0; transition: opacity .3s ease; }
.stage-station { position: absolute; left: 18px; bottom: 52px; display: grid; gap: 1px; padding: 5px 8px; font-size: 8px; letter-spacing: .08em;
  color: rgba(254, 254, 254, .8); background: rgba(26, 23, 61, .92); border: 1px solid rgba(255, 58, 31, .7); border-radius: 3px; }
.stage-station b { color: #ff6a4d; font-size: 9px; }
.stage-readout { position: absolute; right: 18px; top: 42px; display: flex; align-items: center; gap: 8px; padding: 5px 12px;
  font-size: 10px; letter-spacing: .08em; white-space: nowrap; background: rgba(26, 23, 61, .94); border: 1.5px solid var(--color-primary, #C0D532); border-radius: 3px; }
.stage-readout i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary, #C0D532); box-shadow: 0 0 8px var(--color-primary, #C0D532); }
.stage-readout b { color: var(--color-primary, #C0D532); } .stage-readout em { font-style: normal; color: rgba(254, 254, 254, .55); }
.showcase-visual[data-laser="hunt"] .stage-station, .showcase-visual[data-laser="lock"] .stage-station { opacity: 1; }
.showcase-visual[data-laser="lock"] .stage-readout { opacity: 1; }
.stage-badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 5px 14px; text-align: center; white-space: nowrap;
  background: rgba(26, 23, 61, .94); border: 1.5px solid var(--color-primary, #C0D532); border-radius: 3px; }
.stage-badge b { font-size: 9px; letter-spacing: .06em; }
.stage-badge span { font-size: 8px; color: var(--color-primary, #C0D532); letter-spacing: .08em; }
@media (max-width: 520px) {
    .stage-callout { display: none; }
  .stage-top span:last-child { display: none; }
  .stage-badge { padding: 5px 10px; gap: 6px; } .stage-badge b { font-size: 8px; } .stage-badge span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .showcase-3d { transition: none; } }

/* small phones: logo tape + quote button + menu button must fit one row */
@media (max-width: 480px) {
  .nav-container { gap: 8px; }
  .brand-tape { min-width: 0; height: 36px; padding: 0 14px; }
  .brand-tape-img { height: 22px; max-width: 108px; }
  .brand-tape-word { font-size: 16px; letter-spacing: .12em; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 0 12px; font-size: 11px; letter-spacing: .04em; min-height: 38px; }
  .nav-actions .btn .vai-icon { display: none; }
}
@media (max-width: 360px) { .nav-actions .btn span { font-size: 10px; } .brand-tape-img { max-width: 92px; } }

.qm-secure { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--color-tertiary-dim); }
.qm-secure .vai-icon { color: var(--color-primary-ink); flex-shrink: 0; }
.qm-secure strong { color: var(--color-tertiary-muted); }


/* ==========================================================================
   AFRICA MAP: where we supply (supplied countries in the accent colour)
   ========================================================================== */
.operations-strip { padding: var(--space-5) 0; }
.africa-map { position: relative; flex: none; width: 190px; filter: drop-shadow(0 8px 12px rgba(28, 24, 20, .28)); }
.africa-map-base, .africa-map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-country path { fill: var(--color-primary); stroke: #fefefe; stroke-width: .9; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(192, 213, 50, .85)); transition: fill .2s ease; animation: countryGlow 4.5s ease-in-out infinite; }
.map-country.is-hot path { fill: #e6f76f; stroke: #12102B; stroke-width: 1.3; }
@keyframes countryGlow { 50% { filter: drop-shadow(0 0 7px rgba(192, 213, 50, 1)); } }

.country-pill { display: inline-flex; align-items: center; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.country-pill[data-country] { background: rgba(var(--color-primary-rgb, 192, 213, 50), .3); border-color: var(--color-primary-ink); font-weight: 700; color: var(--color-tertiary); }
.country-pill.is-hot { background: var(--color-primary); transform: translateY(-2px); }

@media (max-width: 720px) {
  .operations-wrap { flex-direction: column; text-align: center; gap: var(--space-4); }
  .africa-map { order: -1; }  /* map on top when the strip stacks */
  .operations-copy { align-items: center; }
  .operations-countries { justify-content: center; }
  .africa-map { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .map-country path { animation: none; } }
