/* ==========================================================================
   PT Mangghala Inatama Lentera — Design Tokens & Base Styles
   ========================================================================== */

:root {
  /* Color system — matched to the Mangghala Inatama Lentera logo */
  --color-primary: #12A260;        /* logo green */
  --color-primary-light: #17D37D;
  --color-primary-dark: #08492C;
  --color-secondary: #6B4F3B;      /* soil brown — supporting neutral */
  --color-accent: #FCC00C;         /* logo gold */
  --color-accent-light: #FDCD40;
  --color-stone: #78716C;          /* dolomite stone gray */

  --color-background: #F7FAF8;     /* soft green-tinted white */
  --color-surface: #FFFFFF;
  --color-surface-alt: #EEF6F1;
  --color-foreground: #14201A;
  --color-muted-foreground: #53645C;
  --color-border: #DFEAE3;
  --color-destructive: #B91C1C;

  --color-on-primary: #FFFFFF;
  --color-on-accent: #08492C;

  /* Typography — relaxed, humanist sans (not a stiff geometric grotesk) */
  --font-heading: 'Nunito', 'Segoe UI', Calibri, Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Calibri, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 162, 96, 0.10);
  --shadow-lg: 0 20px 50px rgba(18, 162, 96, 0.16);

  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Anchor-scroll offset for the fixed header — a fixed value (matching the
   header's compact/scrolled height) instead of a JS-measured one, since
   the header's height itself changes mid-scroll (tall -> compact) and a
   height read at click time would go stale before the scroll settles. */
#home, #produk, #industri, #tentang, #faq, #kontak { scroll-margin-top: 58px; }

#tentang, #faq { position: relative; overflow: hidden; }
#tentang .container, #faq .container { position: relative; z-index: 1; }

.tentang-deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
}

.section { padding-block: var(--space-24); }
@media (max-width: 768px) {
  .section { padding-block: var(--space-16); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(18, 162, 96, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: var(--space-4);
}

.section-head p {
  margin-top: var(--space-4);
  color: var(--color-muted-foreground);
  font-size: 17px;
}

/* Rotating-word headline (Kontak) — the last line cycles through words,
   sliding/blurring out upward and the next sliding in from below. */
.rotator-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.rotator-word {
  display: inline-block;
  color: var(--color-primary);
  will-change: transform, opacity, filter;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  transition: transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard), background 200ms var(--ease-standard), color 200ms var(--ease-standard);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--color-on-primary);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-dark:hover { background: var(--color-primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
}
.btn-ghost:hover { background: var(--color-border); }

.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: padding 250ms var(--ease-standard), background 250ms var(--ease-standard), box-shadow 250ms var(--ease-standard);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-header.scrolled {
  padding-block: var(--space-2);
  background: rgba(247, 250, 248, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

/* Header sits directly over the dark hero until scrolled, so its text
   defaults to light and switches to dark once the white .scrolled
   background appears — otherwise the un-scrolled state has near-zero
   contrast (dark-on-dark). */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  transition: color 250ms var(--ease-standard);
}

.site-header.scrolled .brand { color: var(--color-primary-dark); }

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { height: 42px; width: auto; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  transition: color 250ms var(--ease-standard);
}

.site-header.scrolled .brand-text small { color: var(--color-muted-foreground); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

/* Primary text nav in the header (About, Products, Gallery pages).
   Light over the dark hero, dark once the header turns white on scroll. */
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  transition: color 200ms var(--ease-standard), background 200ms var(--ease-standard);
}
.header-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.header-nav a.active { color: #fff; }
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}
.site-header.scrolled .header-nav a { color: var(--color-muted-foreground); }
.site-header.scrolled .header-nav a:hover { color: var(--color-primary-dark); background: var(--color-surface-alt); }
.site-header.scrolled .header-nav a.active { color: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle line { transition: transform 220ms var(--ease-standard), opacity 160ms var(--ease-standard); transform-origin: 12px 12px; }
.site-header.scrolled .nav-toggle { color: var(--color-primary-dark); background: var(--color-surface-alt); }
.site-header.nav-open .nt-top { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .nt-mid { opacity: 0; }
.site-header.nav-open .nt-bot { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Collapsed into a dropdown card under the header */
  .header-nav {
    position: absolute;
    top: calc(100% + 6px);
    left: var(--space-4);
    right: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard), visibility 0s linear 200ms;
  }
  .site-header.nav-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 200ms var(--ease-standard), transform 200ms var(--ease-standard);
  }
  .header-nav a,
  .site-header.scrolled .header-nav a { padding: 12px 16px; font-size: 15px; color: var(--color-foreground); border-radius: var(--radius-md); }
  .header-nav a:hover,
  .site-header.scrolled .header-nav a:hover { color: var(--color-primary-dark); background: var(--color-surface-alt); }
  .header-nav a.active,
  .site-header.scrolled .header-nav a.active { color: var(--color-primary-dark); background: rgba(18, 162, 96, 0.1); }
  .header-nav a.active::after { left: 0; right: auto; top: 12px; bottom: 12px; width: 3px; height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .header-nav, .nav-toggle line { transition: none !important; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* ==========================================================================
   Floating dock nav
   ========================================================================== */

.dock-nav {
  position: fixed;
  left: 50%;
  /* Clear the iPhone home indicator by lifting the whole pill, not by
     padding it: iOS Safari changes safe-area-inset-bottom as its toolbar
     collapses on scroll, and padding would make the dock swell mid-scroll. */
  bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 115;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border-radius: var(--radius-full);
  background: rgba(8, 24, 16, 0.68);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-lg);
  transition: opacity 220ms var(--ease-standard), transform 220ms var(--ease-standard);
}
.dock-nav::-webkit-scrollbar { display: none; }

.dock-item {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  transform: scale(1) translateY(0);
  transition: transform 220ms var(--ease-standard), background 220ms var(--ease-standard), color 220ms var(--ease-standard);
}
.dock-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.dock-item:focus-visible {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: scale(1.35) translateY(-10px);
}

.dock-item.active { background: var(--color-primary); color: #fff; }

.dock-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(8, 24, 16, 0.9);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}
.dock-item:focus-visible .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hover-only magnify/gold effect — gated behind a real hover-capable
   pointer so a tap on touch devices doesn't leave the icon "stuck"
   highlighted with no mouse around to un-hover it. */
@media (hover: hover) and (pointer: fine) {
  .dock-item:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    transform: scale(1.35) translateY(-10px);
  }
  .dock-item:hover + .dock-item,
  .dock-item:has(+ .dock-item:hover) {
    transform: scale(1.14) translateY(-5px);
  }
  .dock-item:hover .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dock-sep {
  width: 1px;
  align-self: stretch;
  margin-block: 6px;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
}

/* Hidden while the product modal is open, so it can't be clicked "through"
   the modal (it also sits at a lower z-index, but hiding it outright is
   simpler and avoids any doubt). */
.dock-nav.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.dock-nav.is-scroll-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(calc(100% + 32px));
  pointer-events: none;
}

@media (max-width: 560px) {
  .dock-nav {
    gap: 4px;
    padding: 8px;
    /* Safety net if the icon set ever outgrows a narrow viewport: scroll
       instead of spilling icons outside the pill's rounded background.
       Scoped to narrow widths only -- overflow-x here also forces
       overflow-y to clip (per spec), which would cut off the desktop
       hover scale/lift effect if applied unconditionally. */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .dock-item { width: 36px; height: 36px; }
  .dock-item svg { width: 16px; height: 16px; }
  .dock-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock-item, .dock-label, .dock-nav { transition: none; }
  .dock-item:hover, .dock-item:focus-visible,
  .dock-item:hover + .dock-item, .dock-item:has(+ .dock-item:hover) { transform: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: 112px;
  padding-bottom: var(--space-24);
  overflow: hidden;
  background: var(--color-primary-dark);
  color: #fff;
  isolation: isolate;
}

.hero::before {
  /* Static fallback background — shown until/unless the canvas takes over,
     and permanently for reduced-motion or no-WebGL visitors. Warm green-gold,
     never near-black. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  z-index: -2;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { display: none; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(8, 73, 44, 0.78) 0%, rgba(8, 73, 44, 0.48) 42%, rgba(8, 73, 44, 0.1) 68%, transparent 85%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: 1180px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 7px 16px;
  border-radius: var(--radius-full);
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.12;
  margin-top: var(--space-6);
  max-width: 30ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent-light);
}

.hero-lede {
  margin-top: var(--space-6);
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 72ch;
}

.hero-cta { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.trust-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }

/* ==========================================================================
   Products
   ========================================================================== */

/* Soft brand-colored glow behind the section so it doesn't read as a flat,
   plain block between the hero and Tentang Kami. */
#produk { position: relative; overflow: hidden; isolation: isolate; }
#produk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(750px 520px at 10% -8%, rgba(18, 162, 96, 0.30), transparent 62%),
    radial-gradient(700px 480px at 95% 108%, rgba(252, 192, 12, 0.32), transparent 62%),
    radial-gradient(600px 500px at 50% 45%, rgba(18, 162, 96, 0.08), transparent 70%);
}

/* Product picker — 3D tilt-on-hover cards (vanilla JS sets --tilt-x/--tilt-y/
   --mx/--my via mousemove; CSS just consumes the custom properties). */
.product-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

@media (max-width: 1080px) {
  .product-picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-picker { grid-template-columns: 1fr; }
}

.product-pick-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 340px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard), outline-color 200ms;
  outline: 2px solid transparent;
  outline-offset: 3px;
}
.product-pick-card:hover { box-shadow: var(--shadow-lg); }
@media (max-width: 1080px) { .product-pick-card { aspect-ratio: 4 / 5; } }
@media (max-width: 560px) { .product-pick-card { aspect-ratio: 1 / 1; min-height: 0; } }
.product-pick-card.active { outline-color: var(--color-accent); }

.product-pick-card.dolomite { background: linear-gradient(150deg, #57534E, #1C1917); }
.product-pick-card.phosphate { background: linear-gradient(150deg, #1B6B47, #062A19); }
.product-pick-card.palmash { background: linear-gradient(150deg, #6B4F3B, #241A10); }
.product-pick-card.clay { background: linear-gradient(150deg, #C17A52, #4A2416); }

.ppc-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ppc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-standard);
}
.product-pick-card:hover .ppc-photo img { transform: scale(1.06); }
.ppc-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.82) 100%);
}

.ppc-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 60%, transparent 100%);
}

.ppc-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(140px at var(--mx, 50%) var(--my, 50%), rgba(252, 192, 12, 0.35), transparent 60%);
  transition: opacity 300ms var(--ease-standard);
  pointer-events: none;
}
.product-pick-card:hover .ppc-glow { opacity: 1; }

.ppc-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ppc-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ppc-icon svg { width: 16px; height: 16px; }
.ppc-category { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.45); }

.ppc-body { position: relative; z-index: 1; }
.ppc-body h3 { font-size: 25px; color: #fff; margin-bottom: 6px; }
.ppc-body h3 { text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.ppc-body p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.82); max-width: 92%; }

@media (prefers-reduced-motion: reduce) {
  .product-pick-card { transform: none !important; }
  .ppc-photo img { transition: none; }
  .product-pick-card:hover .ppc-photo img { transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

/* Product showcase — opens as a modal: dark, blurred backdrop with the
   card centered and scaled in. Visual and body are two persistent slots;
   powder always anchors the image left, granule anchors it right, so
   switching products or toggling powder/granule both slide the slots
   in from opposite edges to trade places (data-side on .product-card
   drives the flex order). */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(4, 12, 8, 0.8);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 320ms var(--ease-standard);
}
.product-modal.is-open { opacity: 1; pointer-events: auto; }

.product-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1080px;
  margin-block: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  transition: opacity 320ms var(--ease-standard), transform 320ms var(--ease-standard);
}
.product-modal.is-open .product-card { opacity: 1; transform: scale(1) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .product-modal, .product-card { transition: none; }
}

@media (max-width: 860px) {
  .product-card { flex-direction: column; }
}

.product-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}
.product-modal-close:hover { background: rgba(0,0,0,0.55); transform: scale(1.06); }
.product-modal-close svg { width: 18px; height: 18px; }

.product-visual {
  position: relative;
  overflow: hidden;
  order: 1;
  flex: 0 0 42%;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  min-height: 460px;
}

.product-body {
  order: 2;
  flex: 1 1 auto;
  padding: var(--space-8);
}

.product-visual.dolomite { background: linear-gradient(150deg, #57534E, #292524); }
.product-visual.phosphate { background: linear-gradient(150deg, #17D37D, #08492C); }
.product-visual.palmash { background: linear-gradient(150deg, #6B4F3B, #2E2116); }
.product-visual.clay { background: linear-gradient(150deg, #E08B5B, #6B3220); }

.product-visual .visual-photo { position: absolute; inset: 0; z-index: 0; }
.product-visual .visual-photo { overflow: hidden; }
.product-visual .visual-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-visual .visual-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.8) 100%);
}

.product-visual .texture {
  position: absolute; inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  mix-blend-mode: overlay;
}

.product-visual .visual-glow {
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
  opacity: 0.4;
}

.product-visual .formula-badge {
  align-self: flex-start;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.product-visual .pv-title { position: relative; z-index: 1; }
.product-visual .pv-title h3 { color: #fff; font-size: 26px; margin-top: var(--space-6); }
.product-visual .pv-title p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: var(--space-2); }

.variant-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-2); }
.variant-pill {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.form-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.22);
  margin-top: var(--space-6);
  width: fit-content;
}
.form-toggle button {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  min-height: 36px;
  transition: all 200ms var(--ease-standard);
}
.form-toggle button.active {
  background: #fff;
  color: var(--color-primary-dark);
}

.product-body .form-note {
  display: none;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: 14px;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-6);
  border-left: 3px solid var(--color-accent);
}
.product-body .form-note.active { display: block; animation: fadeUp 320ms var(--ease-standard); }
.product-body .form-note strong { color: var(--color-primary-dark); }

.benefit-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.benefit-list .tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(18, 162, 96,0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-list .tick svg { width: 14px; height: 14px; }

.benefit-list strong { display: block; font-size: 15px; color: var(--color-foreground); }
.benefit-list p { font-size: 14px; color: var(--color-muted-foreground); margin-top: 2px; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.spec-pills { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.spec-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  color: var(--color-muted-foreground);
}
a.spec-pill {
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
a.spec-pill:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   Tentang Kami (About + Vision/Mission)
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.about-copy p { margin-top: var(--space-4); color: var(--color-muted-foreground); font-size: 16px; }
.about-copy h2 { font-size: clamp(26px, 3.6vw, 36px); margin-top: var(--space-4); }
.about-copy .btn { margin-top: var(--space-8); }

.vm-stack { display: flex; flex-direction: column; gap: var(--space-5); }

.vm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.vm-card.accent {
  background: linear-gradient(150deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-color: transparent;
}
.vm-card.accent h3 { color: #fff; }

.vm-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(18, 162, 96, 0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.vm-card.accent .vm-icon { background: rgba(255,255,255,0.16); color: var(--color-accent-light); }
.vm-icon svg { width: 22px; height: 22px; }

.vm-card h3 { font-size: 19px; margin-bottom: var(--space-2); }
.vm-card p { font-size: 14.5px; color: var(--color-muted-foreground); }
.vm-card.accent p { color: rgba(255,255,255,0.78); }

.vm-card ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.vm-card ul li {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding-left: 20px;
  position: relative;
}
.vm-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ==========================================================================
   INDUSTRIES SERVED
   ========================================================================== */

/* Decorative landscapes frame the heading without competing with the roster. */
#industri { position: relative; isolation: isolate; overflow: clip; }
#industri::before, #industri::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 38px;
  width: min(43vw, 660px);
  height: 340px;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: .26;
  filter: saturate(.55);
}
#industri::before {
  left: -60px;
  background-image: url("../assets/industries/08-agriculture-plantations.png");
  mask-image: linear-gradient(to right, #000 25%, transparent 100%);
}
#industri::after {
  right: -60px;
  background-image: url("../assets/industries/06-animal-feed-chemicals.png");
  mask-image: linear-gradient(to left, #000 25%, transparent 100%);
}
@media (max-width: 768px) {
  #industri::before, #industri::after { top: 30px; width: 58vw; height: 280px; opacity: .16; }
  #industri::before { left: -50px; }
  #industri::after { right: -50px; }
}

/* Keep the complete roster visible; navigation changes only the selection. */
.sector-picker-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sector-picker-controls[hidden] { display: none; }
.sector-picker-hint { font-size: 13px; font-weight: 600; color: var(--color-muted-foreground); }
.sector-picker-navigation { display: flex; align-items: center; gap: 14px; }
.sector-position { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--color-foreground); }
.sector-arrow { width: 40px; height: 40px; border: 1px solid var(--color-border); border-radius: 50%; background: #fff; color: var(--color-foreground); cursor: pointer; font-size: 20px; }
.sector-arrow:hover { border-color: var(--color-primary); }
.sector-arrow:focus-visible, .sector-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.sector-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--space-8); padding-top: 8px; }
.sector-card {
  position: relative; min-width: 0; background: #fff;
  border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; text-align: center; cursor: pointer;
  transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.sector-card:hover { border-color: var(--color-primary); }
.sector-card.active { transform: translateY(-6px); border-color: var(--color-primary); box-shadow: 0 8px 24px rgba(41, 91, 57, .16); }
.sector-card.active::after { content: ""; position: absolute; bottom: 0; left: 25%; right: 25%; height: 4px; border-radius: 4px 4px 0 0; background: var(--color-primary); }
.sector-image { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; padding: 5px; }
.sector-image img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.85); opacity: .55; transition: filter 240ms ease, opacity 240ms ease, transform 240ms ease; }
.sector-card.active .sector-image img { filter: none; opacity: 1; transform: scale(1.05); }
.sector-card h3 { font-size: 12px; line-height: 1.4; margin: 0; padding: 8px 6px 16px; }
@media (max-width: 1000px) {
  .sector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .sector-image { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .sector-grid { gap: 8px; }
  .sector-card { border-radius: 12px; }
  .sector-card h3 { font-size: 10px; padding: 4px 3px 12px; }
  .sector-image { aspect-ratio: 1; padding: 2px; }
  .sector-picker-hint { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sector-card.active, .sector-card.active .sector-image img { transform: none; }
}

.sector-result {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

@media (prefers-reduced-motion: reduce) {
  .sector-card, .sector-image img { transition: none; }
  .sector-card:hover { transform: none; }
  .sector-card:hover .sector-image img { transform: none; }
}

/* ==========================================================================
   GALLERY PROMO
   ========================================================================== */

.gallery-promo {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}
.gallery-promo:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.gallery-promo-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: rgba(18, 162, 96, 0.12);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gallery-promo-icon svg { width: 30px; height: 30px; }

.gallery-promo-body { flex: 1 1 320px; }
.gallery-promo-body h2 { font-size: clamp(22px, 3vw, 28px); margin-top: var(--space-2); }
.gallery-promo-body p { margin-top: var(--space-2); color: var(--color-muted-foreground); font-size: 15px; }

.gallery-promo-cta { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 700px) {
  .gallery-promo { flex-direction: column; align-items: flex-start; text-align: left; }
  .gallery-promo-body { flex: none; }
  .gallery-promo-cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-promo { transition: none; }
  .gallery-promo:hover { transform: none; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

#faq {
  background: linear-gradient(140deg, #f4f8f5, var(--color-background) 65%);
  border-top: 1px solid var(--color-border);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
}
.faq-intro h2 {
  margin-top: 20px;
  max-width: 14ch;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.faq-lede { margin-top: 20px; font-size: 15px; line-height: 1.7; color: var(--color-muted-foreground); }
.faq-guide {
  margin-top: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-guide img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.faq-guide-body { padding: 20px 24px 24px; border-top: 1px solid var(--color-border); }
.faq-guide-label {
  color: var(--color-muted-foreground);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.faq-guide h3 { font-size: 18px; margin-top: 12px; line-height: 1.35; }
.faq-guide p { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--color-muted-foreground); }
.faq-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--color-primary-dark);
  min-height: 44px;
}
.faq-contact-link svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 180ms ease; }
.faq-contact-link:hover svg { transform: translateX(3px); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.faq-item:hover { border-color: #a5c6b3; }
.faq-item[open] {
  border-color: #93bda5;
  box-shadow: 0 5px 20px rgba(8,73,44,0.05);
}
.faq-q {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-primary-dark);
  min-height: 78px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -4px; border-radius: var(--radius-md); }
.faq-number { color: var(--color-muted-foreground); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.faq-indicator {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
}
.faq-indicator svg { width: 18px; height: 18px; }
.faq-plus { transition: opacity 160ms ease; }
.faq-item[open] .faq-plus { opacity: 0; }
.faq-item[open] .faq-indicator { background: var(--color-primary-dark); color: #fff; }
.faq-item[open] .faq-number { color: var(--color-primary-dark); }
.faq-a-inner {
  margin: 0 24px 24px 66px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-muted-foreground);
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-intro { display: contents; }
  .faq-intro > .eyebrow { justify-self: start; }
  .faq-intro h2 { max-width: 22ch; }
  .faq-list { grid-row: 4; margin-top: 32px; }
  .faq-guide { grid-row: 5; }
  .faq-guide { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; }
  .faq-guide-body { border-top: 0; border-left: 1px solid var(--color-border); }
  .faq-guide img { height: 100%; object-fit: contain; }
}
@media (max-width: 560px) {
  .faq-guide { display: block; }
  .faq-guide img { max-height: 150px; object-fit: contain; }
  .faq-guide-body { border-left: 0; border-top: 1px solid var(--color-border); padding: 16px 20px 20px; }
  .faq-q { grid-template-columns: 20px minmax(0, 1fr) 28px; padding: 18px 16px; gap: 10px; font-size: 14px; }
  .faq-a-inner { margin: 0 16px 20px 46px; font-size: 13.5px; }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

/* Full-bleed, same as FAQ — the gradient lives on the section itself so it
   runs edge to edge instead of reading as a contained rounded card. */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 340px at 12% 8%, rgba(252, 192, 12, 0.3), transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }

.cta-band {
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: var(--space-4); font-size: 16px; }
.cta-band .hero-cta { justify-content: center; margin-top: var(--space-8); }

/* ==========================================================================
   Contact
   ========================================================================== */

/* One split card: green details panel + white enquiry form */
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 30px 70px rgba(8, 73, 44, 0.16), 0 0 0 1px var(--color-border);
}
@media (max-width: 900px) { .contact-shell { grid-template-columns: 1fr; } }

.contact-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  padding: 44px 40px;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(520px 320px at 110% 110%, rgba(252, 192, 12, 0.22), transparent 62%),
    radial-gradient(420px 280px at -10% -10%, rgba(34, 199, 127, 0.28), transparent 60%),
    linear-gradient(150deg, #0E7A49, var(--color-primary-dark));
}
.contact-panel::after { /* soft ring for depth */
  content: "";
  position: absolute;
  right: -90px; bottom: -90px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.contact-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.contact-panel h3 { margin-top: 10px; font-size: 26px; line-height: 1.2; color: #fff; }
.contact-panel-top p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

.contact-quick { position: relative; z-index: 1; display: grid; gap: 10px; }
.cq {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--radius-md);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 200ms var(--ease-standard), transform 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.cq:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); transform: translateX(3px); }
.cq-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--color-primary-dark);
  background: #fff;
}
.cq-icon svg { width: 22px; height: 22px; }
.cq-wa { background: #25D366; border-color: #25D366; }
.cq-wa:hover { background: #1fbd5a; border-color: #1fbd5a; }
.cq-wa .cq-icon { color: #128C4A; }
.cq-text { min-width: 0; }
.cq-text b { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cq-text small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.cq-wa .cq-text small { color: rgba(255, 255, 255, 0.9); }
.cq-go svg { width: 18px; height: 18px; opacity: 0.75; }

.contact-details { position: relative; z-index: 1; display: grid; gap: var(--space-5); margin: 0; padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.contact-details dt {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-accent-light);
}
.contact-details dt svg { width: 16px; height: 16px; }
.contact-details dd { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.88); }
.contact-maps { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact-maps:hover { text-decoration-color: var(--color-accent); }
.contact-maps svg { width: 14px; height: 14px; }
.open-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 10.5px; letter-spacing: 0.06em;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f87171; }
.open-badge.is-open::before { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25); }

.contact-form {
  padding: 44px 44px 36px;
  display: grid;
  gap: var(--space-5);
  align-content: start;
}
.contact-form-head h3 { font-size: 22px; }
.contact-form-head p { margin-top: 6px; font-size: 14px; color: var(--color-muted-foreground); }
@media (max-width: 560px) {
  .contact-panel { padding: 32px 22px; gap: var(--space-6); }
  .contact-panel h3 { font-size: 22px; }
  .contact-form { padding: 28px 20px 24px; }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field label,
.chip-field legend {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-foreground);
}
.field label .opt { font-weight: 500; color: var(--color-muted-foreground); }
.chip-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chip-field legend { padding: 0; margin-bottom: 8px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-foreground);
  background: var(--color-background);
  border: 1.5px solid var(--color-border);
  transition: background 180ms var(--ease-standard), border-color 180ms var(--ease-standard), color 180ms var(--ease-standard);
}
.chip-opt:hover span { border-color: rgba(18, 162, 96, 0.45); }
.chip-opt input:checked + span { color: #fff; background: var(--color-primary); border-color: var(--color-primary); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--color-background);
  color: var(--color-foreground);
  min-height: 48px;
  transition: border-color 180ms var(--ease-standard);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: 0 0 0 4px rgba(18, 162, 96, 0.12);
  outline: none;
}
.field input, .field select, .field textarea { transition: border-color 180ms var(--ease-standard), box-shadow 180ms var(--ease-standard), background 180ms var(--ease-standard); }

.contact-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.contact-submit .btn { min-width: 220px; justify-content: center; }
.contact-submit-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-muted-foreground); }
.contact-submit-note svg { width: 15px; height: 15px; color: var(--color-accent); }
@media (max-width: 560px) { .contact-submit .btn { width: 100%; } }

.field-error { display: none; font-size: 12.5px; color: var(--color-destructive); margin-top: 5px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--color-destructive); }
.field.invalid .field-error { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: rgba(18, 162, 96,0.08);
  color: var(--color-primary-dark);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-size: 14px;
  font-weight: 600;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.form-success a { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cq, .chip-opt span { transition: none; }
  .cq:hover { transform: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: var(--space-4); font-size: 14px; max-width: 32ch; color: rgba(255,255,255,0.55); }

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: 14px; transition: color 180ms; }
.footer-col a:hover { color: var(--color-accent-light); }

.social-row { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--color-accent); color: var(--color-primary-dark); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}

/* Reveal utility (JS toggles .in-view) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Tilt-reveal — for card/visual blocks rather than plain text: settles
   into place with a 3D rotate + scale rather than a straight fade-up, for
   a bit more presence at each section's entrance while scrolling. */
.tilt-reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(10deg) scale(0.94) translateY(36px);
  transition: opacity 800ms var(--ease-standard), transform 800ms var(--ease-standard);
  will-change: transform, opacity;
}
.tilt-reveal.in-view {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) scale(1) translateY(0);
}

/* Stagger utility — direct children cascade in one after another instead
   of the whole group fading as a single block (JS toggles .in-view on
   the parent; same IntersectionObserver as .reveal). */
.stagger-group > * {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  transition: opacity 550ms var(--ease-standard), transform 550ms var(--ease-standard), filter 550ms var(--ease-standard);
}
.stagger-group.in-view > * { opacity: 1; transform: translateY(0); filter: blur(0px); }
.stagger-group.in-view > *:nth-child(1) { transition-delay: 0ms; }
.stagger-group.in-view > *:nth-child(2) { transition-delay: 70ms; }
.stagger-group.in-view > *:nth-child(3) { transition-delay: 140ms; }
.stagger-group.in-view > *:nth-child(4) { transition-delay: 210ms; }
.stagger-group.in-view > *:nth-child(5) { transition-delay: 280ms; }
.stagger-group.in-view > *:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .tilt-reveal { opacity: 1; transform: none; transition: none; }
  .stagger-group > * { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 110;
  transition: width 120ms linear;
}

/* Tactile press feedback */
.btn:active { transform: scale(0.96); }

/* ==========================================================================
   Gallery page
   ========================================================================== */

.gallery-hero {
  padding-top: 148px;
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
  background: var(--color-primary-dark);
  color: #fff;
}
.gallery-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(650px 420px at 88% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(600px 400px at 8% 105%, rgba(252, 192, 12, 0.16), transparent 60%);
}
.gallery-hero .eyebrow {
  color: var(--color-accent-light);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.gallery-hero .section-head h1 { color: #fff; }
.gallery-hero .section-head p { color: rgba(255, 255, 255, 0.78); }

/* ---------- Page hero (products.html, gallery.html) ----------
   Same animated brand gradient as the homepage hero (#heroCanvas via
   hero-bg.js), with copy on the left and a visual collage on the right. */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 132px;
  padding-bottom: var(--space-16);
  background: var(--color-primary-dark);
  color: #fff;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(155deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.page-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(8, 73, 44, 0.82) 0%, rgba(8, 73, 44, 0.55) 45%, rgba(8, 73, 44, 0.2) 75%, rgba(8, 73, 44, 0.1) 100%);
}
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.page-hero h1 {
  margin-top: var(--space-5);
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
.page-hero h1 em { font-style: normal; color: var(--color-accent-light); }
.page-hero .hero-lede { max-width: 520px; }
.page-hero .pdetail-jump { justify-content: flex-start; margin-top: var(--space-6); }

.page-hero-labs { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); }
.page-hero-labs small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.labs-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.labs-pill img { display: block; width: auto; }
.labs-pill .lab-idsurvey { height: 20px; }
.labs-pill .lab-sucofindo { height: 26px; }

.page-hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }

/* Products: 2x2 product photo tiles, right column offset for rhythm */
.phv-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard);
}
.phv-tile:nth-child(even) { transform: translateY(28px); }
.phv-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-standard); }
.phv-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.72) 100%);
}
.phv-label {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
}
.phv-label small { font-size: 11px; font-weight: 700; color: var(--color-accent-light); margin-bottom: 2px; }

/* Gallery: four supply-flow stage cards */
.phv-step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  transition: transform 260ms var(--ease-standard), box-shadow 260ms var(--ease-standard);
}
.phv-step:nth-child(even) { transform: translateY(24px); }
.phv-step-img { display: block; aspect-ratio: 2 / 1; background: #f6f3ec; }
.phv-step-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phv-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary-dark);
}
.phv-step-label b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 12px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* Hero with copy only (About) */
.page-hero-grid.page-hero-solo { grid-template-columns: minmax(0, 760px); }
.page-hero-solo .hero-lede { max-width: 640px; }

/* About: "Words from Our CEO" */
.ceo-section .section-head { margin-bottom: var(--space-8); }
.ceo-card {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 64px 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(520px 300px at 100% 100%, rgba(252, 192, 12, 0.22), transparent 65%),
    radial-gradient(480px 300px at 0% 0%, rgba(34, 199, 127, 0.25), transparent 60%),
    linear-gradient(140deg, #0E6B40, var(--color-primary-dark));
  box-shadow: 0 30px 60px rgba(8, 73, 44, 0.22);
}
.ceo-quote-mark {
  position: absolute;
  top: 26px;
  left: 30px;
  width: 64px;
  height: 64px;
  color: var(--color-accent);
  opacity: 0.9;
}
.ceo-quote { margin: 0; padding-left: 56px; }
.ceo-quote p { font-size: 15.5px; line-height: 1.75; margin-top: var(--space-4); }
.ceo-quote p:first-child { margin-top: 0; }
.ceo-quote .ceo-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; font-weight: 600; color: #fff; }
.ceo-quote .ceo-close { color: #fff; font-weight: 600; }
.ceo-sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: var(--space-8) 0 0 56px;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.ceo-sign-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.ceo-sign-mark img { height: 32px; width: auto; }
.ceo-sign strong { display: block; font-size: 16px; color: #fff; }
.ceo-sign small { display: block; font-size: 13px; color: var(--color-accent-light); }
@media (max-width: 700px) {
  .ceo-card { padding: 72px 22px 28px; }
  .ceo-quote-mark { top: 20px; left: 20px; width: 44px; height: 44px; }
  .ceo-quote, .ceo-sign { padding-left: 0; margin-left: 0; }
  .ceo-quote p { font-size: 14.5px; }
}

/* Lift-on-hover only for real pointers, and only in the two-column layout
   where the even tiles are offset. */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .phv-tile:hover { box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36); }
  .phv-tile:hover img { transform: scale(1.06); }
  .phv-tile:nth-child(odd):hover { transform: translateY(-4px); }
  .phv-tile:nth-child(even):hover { transform: translateY(24px); }
  .phv-step:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32); }
  .phv-step:nth-child(odd):hover { transform: translateY(-4px); }
  .phv-step:nth-child(even):hover { transform: translateY(20px); }
}
@media (max-width: 900px) {
  .page-hero { padding-top: 112px; padding-bottom: var(--space-12); }
  .page-hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .page-hero-visual { gap: var(--space-3); }
  .phv-tile:nth-child(even), .phv-step:nth-child(even) { transform: none; }
}
@media (max-width: 560px) {
  .page-hero-labs { flex-wrap: wrap; }
  .phv-label { font-size: 14px; left: 10px; right: 10px; bottom: 8px; }
  .phv-step-label { padding: 8px 10px; font-size: 12.5px; gap: 8px; }
  .phv-step-label b { width: 24px; height: 24px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .phv-tile, .phv-tile img, .phv-step { transition: none; }
  .phv-tile:hover img { transform: none; }
}

/* ---------- Gallery story: a step index driving one photo carousel ----------
   A left-hand list of stages (01-04) swaps which carousel shows on the
   right, so the carousel can use the page's full width instead of
   sitting centered in a narrow column, and a carousel's modest display
   size keeps photos close to their native resolution instead of the
   blur a full-bleed, near-viewport-height panel caused when it
   stretched a photo far past its source size. */

.story-explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-12);
  align-items: start;
}

.story-explorer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  position: sticky;
  top: 96px;
}
.story-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  transition: background 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.story-step:hover { background: var(--color-surface-alt); }
.story-step.active { background: var(--color-surface-alt); border-color: var(--color-border); }
.story-step-num {
  flex: none;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
  color: var(--color-border);
  transition: color 200ms var(--ease-standard);
}
.story-step.active .story-step-num { color: var(--color-primary); }
.story-step-body { display: flex; flex-direction: column; min-width: 0; }
.story-step-body strong { font-size: 16px; }
.story-step-intro {
  display: block;
  font-size: 13.5px;
  color: var(--color-muted-foreground);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 300ms var(--ease-standard), opacity 300ms var(--ease-standard), margin-top 300ms var(--ease-standard);
}
.story-step.active .story-step-intro { max-height: 140px; opacity: 1; margin-top: var(--space-2); }

.story-explorer-stage { min-width: 0; }
.story-carousel-group[hidden] { display: none; }

.story-carousel { position: relative; max-width: 780px; margin-left: auto; }

.story-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scrollbar-width: none;
}
.story-carousel-track::-webkit-scrollbar { display: none; }

.story-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.story-slide-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-surface-alt); }
.story-slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-slide-index {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(5, 23, 14, 0.6);
  color: #fff;
  padding: 4px 11px;
  border-radius: var(--radius-full);
}

.story-slide-body { padding: var(--space-6); }
.story-slide-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(18, 162, 96, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.story-slide-body h3 { font-size: 20px; margin-bottom: var(--space-2); }
.story-slide-body p { color: var(--color-muted-foreground); font-size: 14.5px; line-height: 1.55; }

/* Positioned via an aria-hidden zone matching the media's aspect ratio,
   so the buttons sit centered on the photo regardless of how tall the
   caption below it grows. */
.story-carousel-nav-zone {
  position: absolute;
  top: 0; left: 0; right: 0;
  aspect-ratio: 3 / 2;
  pointer-events: none;
}
.story-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 200ms var(--ease-standard), background 200ms var(--ease-standard);
}
.story-carousel-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.story-carousel-nav:disabled { opacity: 0.35; pointer-events: none; }
.story-carousel-nav.prev { left: var(--space-3); }
.story-carousel-nav.next { right: var(--space-3); }
.story-carousel-nav svg { width: 18px; height: 18px; }

.story-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-5); }
.story-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); transition: background 200ms var(--ease-standard), width 200ms var(--ease-standard); }
.story-dot.active { background: var(--color-primary); width: 22px; border-radius: 4px; }

/* Single-photo chapters (Shipping) skip the nav/dots entirely in markup. */

@media (max-width: 860px) {
  .story-explorer { grid-template-columns: 1fr; gap: var(--space-6); }
  .story-explorer-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .story-step {
    flex: 1 1 calc(50% - var(--space-2));
    align-items: center;
    gap: var(--space-3);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: var(--color-surface-alt);
    border-color: var(--color-border);
  }
  .story-step.active { background: var(--color-primary); border-color: var(--color-primary); }
  .story-step.active .story-step-num,
  .story-step.active .story-step-body strong { color: #fff; }
  .story-step-num { font-size: 14px; color: var(--color-muted-foreground); }
  .story-step-body strong { font-size: 13.5px; }
  .story-step-intro { display: none; }
}
@media (max-width: 680px) {
  .story-carousel-nav { display: none; }
}

/* ---------- Facilities gallery: a bento grid recap of the whole story ----------
   A quick-glance overview using the same photos as the chapters above,
   for anyone who wants every shot at once rather than paging through
   each chapter's carousel. */

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}
.facility-card {
  position: relative;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-alt);
}
.facility-card.featured { grid-column: span 3; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms var(--ease-standard); }
.facility-card:hover img { transform: scale(1.05); }
.facility-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 23, 14, 0.78) 0%, transparent 48%);
}
.facility-card span {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .facilities-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .facility-card, .facility-card.featured { grid-column: span 1; }
  /* 7 cards in 2 columns: a full-width lead card keeps the rest in even pairs. */
  .facility-card:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) {
  .facility-card { aspect-ratio: 1 / 1; }
  .facility-card span { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .facility-card img { transition: none; }
  .facility-card:hover img { transform: none; }
}

/* ==========================================================================
   About Us page
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: transform 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background: linear-gradient(150deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.team-avatar svg { width: 36px; height: 36px; }

.team-card h3 { font-size: 16.5px; margin-bottom: 2px; }
.team-card .team-role { font-size: 13px; color: var(--color-muted-foreground); margin-bottom: var(--space-3); }

.team-photo-note {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(18, 162, 96, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Shared card grid — used by "Why Choose Mahitala" (.mengapa-grid / .advantage-card) */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .legal-grid { grid-template-columns: 1fr; } }

.legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 300ms var(--ease-standard), box-shadow 300ms var(--ease-standard);
}
.legal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.legal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.legal-icon svg { width: 26px; height: 26px; }

.legal-card h3 { font-size: 16px; margin-bottom: var(--space-2); }
.legal-card p { font-size: 13.5px; color: var(--color-muted-foreground); line-height: 1.5; }

/* About: company registration "certificate" card */
.lgA {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 30px 60px rgba(8, 73, 44, 0.14), 0 0 0 1px var(--color-border);
}
.lgA-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 36px;
  color: #fff;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(252, 192, 12, 0.22), transparent 70%),
    linear-gradient(120deg, var(--color-primary-dark), #0E6B40);
}
.lgA-head::after { /* thin gold rule between header and "paper" */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(252, 192, 12, 0.2));
}
.lgA-head img { height: 44px; width: auto; }
.lgA-head small,
.lgA-ref small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}
.lgA-title strong { display: block; margin-top: 2px; font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.lgA-ref { margin-left: auto; text-align: right; }
.lgA-ref b { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }

.lgA-paper {
  position: relative;
  overflow: hidden;
  /* security-paper hairlines */
  background:
    repeating-radial-gradient(circle at 105% 115%, transparent 0 16px, rgba(18, 162, 96, 0.045) 16px 17px),
    repeating-radial-gradient(circle at -5% -15%, transparent 0 20px, rgba(252, 192, 12, 0.06) 20px 21px),
    var(--color-surface);
}
.lgA-watermark {
  position: absolute;
  right: 18%;
  top: 50%;
  height: 300px;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.045;
  filter: grayscale(1);
  pointer-events: none;
}
.lgA-body {
  position: relative;
  margin: 0;
  padding: 18px 36px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}
.lgA-field { padding: 18px 0 16px; border-bottom: 1px dashed rgba(8, 73, 44, 0.16); }
.lgA-field.wide { grid-column: 1 / -1; border-bottom: none; padding-right: 150px; }
.lgA-field dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.lgA-field dd {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-foreground);
}
.lgA-nib {
  padding: 4px 12px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-primary-dark);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.legal-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: transparent;
  border: 1px solid var(--color-border);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.legal-copy:hover { background: rgba(18, 162, 96, 0.08); border-color: rgba(18, 162, 96, 0.35); }
.legal-copy svg { width: 14px; height: 14px; }
.legal-copy.copied { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.lgA-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: #7a5a00;
  background: rgba(252, 192, 12, 0.16);
}
.lgA-lock svg { width: 12px; height: 12px; }
.lgA-note { font-size: 14.5px; font-weight: 500; color: var(--color-muted-foreground); }
.lgA-addr { align-items: flex-start !important; flex-wrap: nowrap !important; font-weight: 500 !important; }
.lgA-addr svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--color-primary); }

.lgA-seal {
  position: absolute;
  right: 36px;
  bottom: 22px;
  width: 116px;
  height: 116px;
  color: var(--color-primary);
  opacity: 0.85;
  transform: rotate(-12deg);
}

.lgA-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 18px 36px;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}
.lgA-foot-copy { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--color-muted-foreground); }
.lgA-foot-copy svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--color-primary); }

@media (max-width: 760px) {
  .lgA-head { padding: 18px 20px; flex-wrap: wrap; }
  .lgA-ref { margin-left: 0; text-align: left; width: 100%; }
  .lgA-body { grid-template-columns: 1fr; padding: 6px 20px 20px; }
  .lgA-field.wide { padding-right: 88px; }
  .lgA-watermark { height: 220px; right: -30px; }
  .lgA-seal { width: 80px; height: 80px; right: 14px; bottom: 18px; }
  .lgA-foot { padding: 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-copy { transition: none; }
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .milestone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .milestone-grid { grid-template-columns: 1fr; } }

.milestone-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.milestone-year { font-size: 24px; font-weight: 800; color: var(--color-primary); margin-bottom: var(--space-2); }
.milestone-card p { font-size: 13.5px; color: var(--color-muted-foreground); line-height: 1.5; }

.mengapa-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .mengapa-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mengapa-grid { grid-template-columns: 1fr; } }

.mengapa-band {
  margin-top: var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
}
.mengapa-band p { font-size: 15.5px; font-weight: 600; max-width: 62ch; margin-inline: auto; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 760px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.process-step-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}
.process-step h3 { font-size: 16px; margin-bottom: 2px; }
.process-step p { font-size: 13.5px; color: var(--color-muted-foreground); line-height: 1.5; }

/* ==========================================================================
   Products detail page
   ========================================================================== */

.product-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-12);
  align-items: start;
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}
.product-detail:last-child { border-bottom: none; }
/* Let the TDS table scroll inside its wrapper instead of widening the grid column on phones */
.product-detail > * { min-width: 0; }
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--space-8); }
}

.pdetail-visual {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 96px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
}
/* Single-column (tablet/phone): the photo must scroll with the page —
   sticky here lets the benefit tiles slide over it. Declared after the
   base rule so it actually wins. */
@media (max-width: 900px) {
  .pdetail-visual { position: relative; top: auto; aspect-ratio: 1 / 1; }
}
.pdetail-visual.dolomite { background: linear-gradient(150deg, #57534E, #1C1917); }
.pdetail-visual.phosphate { background: linear-gradient(150deg, #1B6B47, #062A19); }
.pdetail-visual.palmash { background: linear-gradient(150deg, #6B4F3B, #241A10); }
.pdetail-visual.clay { background: linear-gradient(150deg, #C17A52, #4A2416); }

.pdetail-visual-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.pdetail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.68) 100%);
}

.pdetail-content h3 { font-size: 24px; margin-bottom: var(--space-3); }
.pdetail-content > p { color: var(--color-muted-foreground); margin-bottom: var(--space-6); line-height: 1.65; }

.coa-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.coa-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coa-icon svg { width: 24px; height: 24px; }
.coa-card p { font-size: 13.5px; color: var(--color-muted-foreground); line-height: 1.5; margin: 0; }
.coa-card strong { color: var(--color-foreground); }

/* Third-party verified COA (Dolomite, Clay): key results, lab logos and
   a link to the scanned report. */
.coa-card.coa-verified {
  display: block;
  background: var(--color-surface);
  border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
}
.coa-verified .coa-head { display: flex; align-items: center; gap: var(--space-4); }
.coa-verified .coa-icon { background: rgba(18, 162, 96, 0.1); }
.coa-verified .coa-head span { font-size: 12.5px; }

.coa-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}
.coa-results div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
}
.coa-results dt { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--color-muted-foreground); }
.coa-results dd { margin: auto 0 0; padding-top: 6px; font-size: 18px; font-weight: 900; line-height: 1.2; color: var(--color-primary-dark); }
@media (max-width: 1100px) { .coa-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coa-results.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.coa-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.coa-labs { display: flex; align-items: center; gap: var(--space-3); }
.coa-labs small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.coa-labs img { display: block; width: auto; }
.coa-labs .lab-idsurvey { height: 26px; }
.coa-labs .lab-sucofindo { height: 36px; }
.coa-download svg { width: 16px; height: 16px; }
.coa-card .coa-note { margin-top: var(--space-3); font-size: 12px; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .team-card, .legal-card { transition: none; }
  .team-card:hover, .legal-card:hover { transform: none; }
}


/* ==========================================================================
   Product benefits (icon tiles) — products.html grid + homepage modal list
   ========================================================================== */

.benefit-grid,
.chain-product,
.sector-product-pill { --tint: var(--color-primary); }
.dolomite { --tint: #57534E; }
.phosphate { --tint: #12A260; }
.palmash { --tint: #8A6446; }
.clay { --tint: #C0693F; }

.benefit-grid-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.pdetail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin: var(--space-6) 0;
}
@media (max-width: 560px) {
  .pdetail-meta { grid-template-columns: 1fr; }
}
.pdetail-meta .benefit-grid-title { margin-bottom: var(--space-2); }

.benefit-grid {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (max-width: 560px) { .benefit-grid { grid-template-columns: 1fr; } }

.benefit-tile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), border-color 220ms var(--ease-standard);
}
.benefit-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--tint) 35%, var(--color-border));
}
.benefit-tile strong { display: block; font-size: 14.5px; line-height: 1.3; color: var(--color-foreground); }
.benefit-tile p { font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); margin-top: 4px; }

.benefit-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tint, var(--color-primary));
  background: color-mix(in srgb, var(--tint, var(--color-primary)) 13%, #fff);
}
.benefit-icon svg { width: 22px; height: 22px; }

/* Homepage modal: the tick bubble becomes the benefit's own icon */
.benefit-list .tick.benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-top: 0;
  color: var(--color-primary);
  background: rgba(18, 162, 96, 0.1);
}
.benefit-list .tick.benefit-icon svg { width: 20px; height: 20px; }

/* Homepage product modal: jump to this product's full specs on products.html */
.spec-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--color-border));
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}
.spec-cta-copy { min-width: 0; }
.spec-cta-copy p { font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); }
.spec-cta-labs { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.spec-cta-labs small {
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}
.spec-cta-labs img { display: block; width: auto; }
.spec-cta-labs .lab-idsurvey { height: 18px; }
.spec-cta-labs .lab-sucofindo { height: 24px; }
.spec-cta .btn { flex-shrink: 0; }
.btn-outline-dark {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}
.btn-outline-dark:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.btn-outline-dark svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-standard); }
.btn-outline-dark:hover svg { transform: translateX(3px); }
@media (max-width: 560px) {
  .spec-cta { flex-direction: column; align-items: stretch; }
  .spec-cta .btn { justify-content: center; }
}

/* Products hero quick-jump pills */
.pdetail-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}
.pdetail-jump a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.pdetail-jump a:hover { background: rgba(255, 255, 255, 0.18); }
.pdetail-jump a.is-accent { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
.pdetail-jump a.is-accent:hover { background: var(--color-accent-light); }

.product-detail { scroll-margin-top: 72px; }

/* Powder vs granule guide (products.html): explorer, head-to-head meters
   and the Form Finder quiz. */
.pvg { background: var(--color-surface-alt); scroll-margin-top: 72px; }

.pvg-explorer {
  margin-top: var(--space-12);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 90px;
}
.pvg-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.pvg-prods { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pvg-prod {
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard), border-color 200ms var(--ease-standard), transform 200ms var(--ease-standard);
}
.pvg-prod:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.pvg-prod[aria-pressed="true"] { color: #fff; background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.pvg-prod:focus-visible, .pvg-switch button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Segmented Powder / Granule switch with a sliding thumb */
.pvg-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: var(--radius-full);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.pvg-switch-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-full);
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 6px 16px -6px rgba(8, 73, 44, 0.6);
  transition: transform 350ms var(--ease-standard);
}
.pvg-explorer[data-form="granule"] .pvg-switch-thumb { transform: translateX(100%); }
.pvg-switch button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary-dark);
  cursor: pointer;
  transition: color 300ms var(--ease-standard);
}
.pvg-switch button svg { width: 18px; height: 18px; }
.pvg-switch button[aria-pressed="true"] { color: #fff; }
.pvg-switch button:disabled { cursor: not-allowed; opacity: 0.4; }

.pvg-stage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--space-8); margin-top: var(--space-6); align-items: stretch; }
/* Photo stretches to the height of the text panel so both columns end level. */
.pvg-media { position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden; min-height: 420px; background: #0b0f0d; }
.pvg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; transition: opacity 250ms var(--ease-standard), transform 600ms var(--ease-standard); }
.pvg-explorer.is-swapping .pvg-img { opacity: 0.25; transform: scale(1.04); }
.pvg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 73, 44, 0.85)); pointer-events: none; }
.pvg-size {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: var(--color-accent);
}
.pvg-tip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-5); color: #fff; }
.pvg-tip strong { display: block; font-size: 18px; text-transform: capitalize; }
.pvg-tip span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }

.pvg-panel.is-entering { animation: pvgIn 450ms var(--ease-standard); }
@keyframes pvgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pvg-panel h3 { font-size: 28px; color: var(--color-primary-dark); }
.pvg-lede { margin-top: var(--space-2); font-size: 15px; line-height: 1.6; color: var(--color-muted-foreground); }
.pvg-benefits { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pvg-benefits li {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: border-color 200ms var(--ease-standard), transform 200ms var(--ease-standard), box-shadow 200ms var(--ease-standard);
}
.pvg-benefits li:hover { border-color: rgba(18, 162, 96, 0.45); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pvg-benefits li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pvg-ben-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--color-primary); background: rgba(18, 162, 96, 0.1); }
.pvg-ben-icon svg { width: 18px; height: 18px; }
.pvg-benefits strong { display: block; font-size: 14.5px; color: var(--color-foreground); }
.pvg-benefits p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); }
.pvg-when {
  margin-top: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.pvg-when h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); }
.pvg-when ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.pvg-when li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; }
.pvg-when li::before { content: "→"; position: absolute; left: 0; font-weight: 800; color: var(--color-accent); }

.pvg-lower { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-6); margin-top: var(--space-6); align-items: start; }
.pvg-meters, .pvg-finder {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.pvg-meters h3, .pvg-finder h3 { font-size: 20px; color: var(--color-primary-dark); }
.pvg-sub { margin-top: 4px; font-size: 13px; color: var(--color-muted-foreground); }
.pvg-legend { display: flex; justify-content: space-between; margin-top: var(--space-5); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pvg-legend .is-powder { color: var(--color-primary); }
.pvg-legend .is-granule { color: #B98900; }
.pvg-meter-list { list-style: none; margin: var(--space-2) 0 0; padding: 0; }
.pvg-meter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  cursor: default;
  outline: none;
  transition: background 200ms var(--ease-standard);
}
.pvg-meter:hover, .pvg-meter:focus-visible { background: var(--color-surface-alt); }
.pvg-meter-label { width: 128px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--color-foreground); }
.pvg-bar { position: relative; display: flex; height: 12px; border-radius: var(--radius-full); background: var(--color-surface-alt); overflow: visible; }
.pvg-bar.is-powder { justify-content: flex-end; }
.pvg-bar i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width 900ms var(--ease-standard); }
.pvg-bar.is-powder i { background: linear-gradient(270deg, var(--color-primary), var(--color-primary-dark)); }
.pvg-bar.is-granule i { background: linear-gradient(90deg, var(--color-accent), #E39E00); transition-delay: 150ms; }
.pvg-meters.in-view .pvg-bar.is-powder i { width: calc(var(--p) * 20%); }
.pvg-meters.in-view .pvg-bar.is-granule i { width: calc(var(--g) * 20%); }
.pvg-meter:hover .pvg-bar, .pvg-meter:focus-visible .pvg-bar { height: 22px; }
.pvg-meter { counter-reset: p var(--p) g var(--g); }
.pvg-meter-label::after {
  content: counter(p) "/5  vs  " counter(g) "/5";
  display: block;
  max-height: 0;
  overflow: hidden;
  white-space: pre;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0;
  transition: max-height 200ms var(--ease-standard), opacity 200ms var(--ease-standard);
}
.pvg-meter:hover .pvg-meter-label::after, .pvg-meter:focus-visible .pvg-meter-label::after { max-height: 20px; opacity: 1; margin-top: 2px; }
.pvg-meter .pvg-bar { transition: height 200ms var(--ease-standard); }
.pvg-note { margin-top: var(--space-4); font-size: 13px; font-style: italic; color: var(--color-muted-foreground); }
.pvg-facts { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.pvg-facts h4 { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-dark); }
.pvg-facts dl { margin: var(--space-3) 0 0; display: grid; gap: var(--space-2); }
.pvg-facts dl > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.pvg-facts dt { font-size: 11.5px; font-weight: 700; color: var(--color-muted-foreground); }
.pvg-facts dd { margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); font-size: 13.5px; font-weight: 700; }
.pvg-facts .is-powder { color: var(--color-primary-dark); }
.pvg-facts .is-granule { color: #8A6600; text-align: right; }

.pvg-finder { position: relative; border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border)); box-shadow: var(--shadow-md); }
.pvg-finder-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-accent);
}
.pvg-finder h3 { margin-top: var(--space-3); }
.pvg-finder .chip-field { margin-top: var(--space-5); }
.pvg-finder .chip-field legend { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--color-foreground); }
.pvg-finder .chip-field legend b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  color: #fff;
  background: var(--color-primary);
}
.pvg-finder .chip-opt span { font-size: 13px; }

.pvg-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  background: var(--color-surface-alt);
  transition: background 300ms var(--ease-standard), border-color 300ms var(--ease-standard), color 300ms var(--ease-standard);
}
.pvg-result.is-updated { animation: pvgPop 400ms var(--ease-standard); }
@keyframes pvgPop { 0% { transform: scale(0.98); } 60% { transform: scale(1.01); } 100% { transform: none; } }
.pvg-result-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--color-surface) center / 26px no-repeat; border: 1px solid var(--color-border); }
.pvg-result[data-state="empty"] .pvg-result-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312A260' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.pvg-result[data-state="powder"] .pvg-result-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2308492C'%3E%3Ccircle cx='5' cy='7' r='1.3'/%3E%3Ccircle cx='10' cy='5' r='1.1'/%3E%3Ccircle cx='15' cy='8' r='1.3'/%3E%3Ccircle cx='19' cy='5' r='1'/%3E%3Ccircle cx='7' cy='12' r='1.1'/%3E%3Ccircle cx='12' cy='11' r='1.3'/%3E%3Ccircle cx='18' cy='12' r='1.1'/%3E%3Ccircle cx='4' cy='17' r='1.2'/%3E%3Ccircle cx='9' cy='17' r='1.3'/%3E%3Ccircle cx='14' cy='16' r='1'/%3E%3Ccircle cx='19' cy='18' r='1.3'/%3E%3C/svg%3E"); }
.pvg-result[data-state="granule"] .pvg-result-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2308492C'%3E%3Ccircle cx='7' cy='7' r='3.4'/%3E%3Ccircle cx='16.5' cy='8' r='3'/%3E%3Ccircle cx='9' cy='16.5' r='3.2'/%3E%3Ccircle cx='17.5' cy='17' r='3.4'/%3E%3C/svg%3E"); }
.pvg-result[data-state="either"] .pvg-result-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2308492C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 4 4-4 4'/%3E%3Cpath d='M20 7H4'/%3E%3Cpath d='m8 21-4-4 4-4'/%3E%3Cpath d='M4 17h16'/%3E%3C/svg%3E"); }
.pvg-result:not([data-state="empty"]) {
  border-style: solid;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}
.pvg-result:not([data-state="empty"]) .pvg-result-icon { background-color: var(--color-accent); border-color: var(--color-accent); }
.pvg-result-copy small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted-foreground); }
.pvg-result-title { display: block; margin-top: 2px; font-size: 19px; color: var(--color-primary-dark); }
.pvg-result-why { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--color-muted-foreground); }
.pvg-result:not([data-state="empty"]) small { color: var(--color-accent); }
.pvg-result:not([data-state="empty"]) .pvg-result-title { color: #fff; }
.pvg-result:not([data-state="empty"]) .pvg-result-why { color: rgba(255, 255, 255, 0.88); }
.pvg-result-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.pvg-result-view[hidden] { display: none; }
.pvg-result:not([data-state="empty"]) .pvg-result-cta { background: var(--color-accent); color: var(--color-primary-dark); }
.pvg-result:not([data-state="empty"]) .pvg-result-view { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.pvg-result:not([data-state="empty"]) .pvg-result-view:hover { background: rgba(255, 255, 255, 0.12); }

@media (max-width: 960px) {
  .pvg-stage, .pvg-lower { grid-template-columns: 1fr; }
  .pvg-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .pvg-explorer, .pvg-meters, .pvg-finder { padding: var(--space-5) var(--space-4); }
  .pvg-explorer { margin-top: var(--space-8); }
  .pvg-controls { flex-direction: column; align-items: stretch; }
  .pvg-switch button { min-width: 0; }
  .pvg-benefits { grid-template-columns: 1fr; }
  .pvg-meter { gap: var(--space-2); padding: 10px 4px; }
  .pvg-meter-label { width: 92px; font-size: 12px; }
  .pvg-result { grid-template-columns: 1fr; }
  .pvg-result-actions { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pvg-switch-thumb, .pvg-img, .pvg-bar i, .pvg-prod, .pvg-benefits li { transition: none; }
  .pvg-panel.is-entering, .pvg-result.is-updated { animation: none; }
}

/* ==========================================================================
   Sector solutions results (homepage)
   ========================================================================== */

.sector-intro h3 { font-size: 22px; margin-bottom: var(--space-2); }
.sector-intro > p { font-size: 14.5px; line-height: 1.6; color: var(--color-muted-foreground); }
.sector-intro .btn { margin-top: var(--space-5); }

.sector-products { margin-top: var(--space-5); }
.sector-products small {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-2);
}
.sector-products div { display: flex; flex-wrap: wrap; gap: 6px; }
.sector-product-pill {
  font-size: 13px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 12%, #fff);
  transition: background 200ms var(--ease-standard);
}
.sector-product-pill:hover { background: color-mix(in srgb, var(--tint) 22%, #fff); }

/* Illustrated rows: 35% transparent = 65% image opacity. Keep this on
   the decorative image only; copy, photographs and controls stay opaque. */
.chain-list {
  --chain-art-opacity: 0.65;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chain-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  padding: 0 24px 0 0;
  min-height: 196px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.chain-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: var(--chain-art-opacity);
  pointer-events: none;
  z-index: -1;
}
/* Product photo fills the row's full height as a side panel so the
   product is actually visible. */
.chain-product {
  position: relative;
  overflow: hidden;
  min-height: 196px;
  display: flex;
  align-items: flex-end;
  background: var(--tint);
}
.chain-product img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.chain-copy { align-self: center; padding-block: 24px; }
.chain-product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--tint) 70%, #000) 100%);
}
.chain-product span {
  position: relative;
  z-index: 1;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}
.chain-copy { width: 68%; min-width: 0; }
.chain-step small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.chain-step p { font-size: 14px; line-height: 1.55; color: var(--color-foreground); margin-top: 4px; }
.chain-step.result { margin-top: 16px; }
.chain-step.result p { font-weight: 700; color: var(--color-primary-dark); }
@media (max-width: 1000px) {
  .chain-row { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 0 20px 0 0; }
  .chain-copy { width: 75%; }
}
@media (max-width: 700px) {
  .sector-result { padding: 16px; }
  .sector-intro h3 { font-size: 21px; line-height: 1.3; }
  .sector-products { margin-top: 16px; }
  .sector-product-pill { min-height: 36px; padding: 7px 11px; }
  .chain-list { margin-top: 20px; gap: 14px; }
  .chain-row { grid-template-columns: minmax(0, 1fr); padding: 0; gap: 0; }
  /* Balanced image band keeps product and outcome equally legible on phones. */
  .chain-product { min-height: 0; height: 136px; width: 44%; border-radius: 0 0 12px 0; }
  .chain-product span { padding: 12px; font-size: 14px; }
  .chain-copy { padding: 18px 16px 20px; }
  .chain-art {
    top: 0;
    bottom: auto;
    width: 56%;
    height: 136px;
  }
  .chain-copy { width: 100%; }
  .chain-step p { font-size: 14px; line-height: 1.6; }
  .chain-step.result { margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0ee; }
}

@media (prefers-reduced-motion: reduce) {
  .benefit-tile, .btn-outline-dark svg { transition: none; }
  .benefit-tile:hover { transform: none; }
}

/* About: understated paper textures distinguish the story, strengths and process. */
.about-page main > .section:not(.cta-section) {
  position: relative;
  isolation: isolate;
  background-color: #f8faf6;
}
.about-page main > .section:not(.cta-section)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at 3% 12%, #a3b79626, transparent 50%),
    radial-gradient(ellipse at 98% 85%, #cdb58b22, transparent 48%),
    radial-gradient(#536d5317 .65px, transparent .85px);
  background-size: auto, auto, 9px 9px;
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}
.about-page main > .section.history-section { background-color: #f4f3eb; }
.about-page main > .section.history-section::before {
  background-image: radial-gradient(ellipse at 5% 10%, #cdb58b33, transparent 60%), repeating-linear-gradient(90deg, transparent 0 95px, #81957612 95px 96px);
  background-size: auto;
}
.about-page main > .section.strengths-section { background-color: #eef4ec; }
.about-page main > .section.production-section::before {
  background-image: radial-gradient(ellipse at 90% 50%, #a3b7962e, transparent 60%), linear-gradient(#8b9e7914 1px, transparent 1px), linear-gradient(90deg, #8b9e7914 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.about-page :is(.legal-icon, .team-avatar, .contact-row .icon, .process-step-num) {
  background: linear-gradient(145deg, #f8fbf5, #e6efe5);
  border: 1px solid #d9e6d8;
  color: #287249;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px #2349300c;
}
.about-page :is(.legal-icon, .team-avatar, .contact-row .icon) svg { stroke-width: 1.7; }
#history, #ceo, #why-choose, #production-process, #legal { scroll-margin-top: 80px; }
.strengths-section .mengapa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.strengths-section .advantage-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 3px 12px #25452a06;
}
.advantage-content { position: relative; width: 64%; z-index: 1; }
.advantage-content .legal-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px; }
.advantage-content .legal-icon svg { width: 22px; height: 22px; }
.advantage-content h3 { font-size: 19px; margin: 0 0 9px; }
.advantage-content p { font-size: 14px; line-height: 1.65; }
.advantage-art {
  position: absolute;
  width: 36%;
  aspect-ratio: 3 / 4;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: url('../assets/advantages/advantages-simple.png') no-repeat;
  background-size: 400% 200%;
  pointer-events: none;
  opacity: .88;
}
.advantage-art-1 { background-position: 0% 0%; }
.advantage-art-2 { background-position: 33.333333% 0%; }
.advantage-art-3 { background-position: 66.666667% 0%; }
.advantage-art-4 { background-position: 100% 0%; }
.advantage-art-5 { background-position: 0% 100%; }
.advantage-art-6 { background-position: 33.333333% 100%; }
.advantage-art-7 { background-position: 66.666667% 100%; }
.advantage-art-8 { background-position: 100% 100%; }
@media (max-width: 760px) {
  .strengths-section .mengapa-grid { grid-template-columns: 1fr; gap: 14px; }
  .strengths-section .advantage-card { min-height: 218px; padding: 22px; }
  .advantage-content h3 { font-size: 18px; }
  .advantage-content { width: 65%; }
  .advantage-art { width: 33%; right: 4px; }
}
@media (prefers-contrast: more) {
  .strengths-section .advantage-card { border-color: #607865; }
  .about-page main > .section:not(.cta-section)::before { opacity: .3; }
}
/* Keep tall illustrations inside the card and soften sprite boundaries. */
.advantage-art {
  width: min(36%, 180px);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 96%, transparent);
}
@media (max-width: 760px) {
  .advantage-art { width: 33%; }
}

/* ==========================================================================
   Per-product landing pages (dolomite-powder-supplier-indonesia.html, …)
   ========================================================================== */

.pp-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.pp-crumbs a { color: rgba(255, 255, 255, 0.85); }
.pp-crumbs a:hover { color: #fff; text-decoration: underline; }
.pp-crumbs [aria-current] { color: var(--color-accent-light); font-weight: 700; }
.pp-hero h1 { font-size: clamp(32px, 4.2vw, 50px); }
.pp-hero .hero-cta .btn svg { width: 18px; height: 18px; }

.pp-forms { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pp-forms li {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.pp-forms b { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-light); }
.pp-forms span { font-size: 15px; font-weight: 700; color: #fff; }

.pp-visual { display: grid; gap: 12px; }
.pp-photo {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumbs { display: flex; gap: 10px; }
.pp-thumb {
  width: 76px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  opacity: 0.75;
  transition: opacity 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover, .pp-thumb.active { opacity: 1; border-color: var(--color-accent); }
.pp-origin { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, 0.8); }
.pp-origin svg { width: 16px; height: 16px; color: var(--color-accent-light); }
.pp-origin b { color: #fff; }

.pp-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 900px) { .pp-overview-grid { grid-template-columns: 1fr; gap: var(--space-8); } }
.pp-copy h2 { margin-top: var(--space-3); font-size: clamp(26px, 3vw, 34px); }
.pp-copy p { margin-top: var(--space-4); font-size: 16px; line-height: 1.75; color: var(--color-muted-foreground); }
.pp-copy .pp-keywords { font-size: 13px; color: var(--color-primary); font-weight: 700; }

.pp-spec-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: 0 20px 50px rgba(8, 73, 44, 0.1), 0 0 0 1px var(--color-border);
}
.pp-spec-card h3 { font-size: 20px; margin-bottom: var(--space-3); }
.pp-spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pp-spec th, .pp-spec td { padding: 11px 0; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--color-border); }
.pp-spec tbody tr:last-child th, .pp-spec tbody tr:last-child td { border-bottom: 1px solid var(--color-border); }
.pp-spec th[scope="row"] { width: 42%; padding-right: 16px; font-weight: 600; color: var(--color-muted-foreground); }
.pp-spec td { font-weight: 600; color: var(--color-foreground); }
.pp-spec td a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.pp-spec small { font-weight: 500; color: var(--color-muted-foreground); }
.pp-spec .pp-hs-note { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; }
.pp-spec-head th {
  padding-top: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  border-bottom: 1px solid var(--color-border) !important;
}
.pp-spec-group:first-child .pp-spec-head th { padding-top: 4px; }
.pp-spec-head small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pp-spec-note { margin-top: var(--space-4); font-size: 12px; font-style: italic; color: var(--color-muted-foreground); }

/* COA sits in the overview column, under the copy, next to the tall
   spec card. */
.pp-copy .pp-coa { margin-top: var(--space-8); padding: var(--space-6); box-shadow: var(--shadow-md); }
.pp-copy .coa-card p { margin-top: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-muted-foreground); }
.pp-copy .coa-card .coa-note { margin-top: var(--space-3); font-size: 12px; }
.pp-copy .coa-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-coa .coa-foot { flex-direction: column; align-items: stretch; border-top: 0; padding-top: 0; }
.pp-coa .coa-labs {
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
}
.pp-coa .coa-labs small { flex-basis: 100%; text-align: center; }
.pp-coa .coa-labs .lab-idsurvey { height: 38px; }
.pp-coa .coa-labs .lab-sucofindo { height: 56px; }
.pp-coa .coa-download { align-self: flex-start; }
@media (max-width: 480px) {
  .pp-copy .pp-coa { padding: var(--space-5) var(--space-4); }
  .pp-coa .coa-labs { gap: var(--space-3) var(--space-5); }
  .pp-coa .coa-labs .lab-idsurvey { height: 30px; }
  .pp-coa .coa-labs .lab-sucofindo { height: 44px; }
}

.pp-benefits { background: var(--color-surface-alt); }
.pp-benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.pp-benefit-grid h3 { font-size: 15px; line-height: 1.3; color: var(--color-foreground); }
@media (max-width: 900px) { .pp-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pp-benefit-grid { grid-template-columns: 1fr; } }

.pp-app-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 1000px) { .pp-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pp-app-grid { grid-template-columns: 1fr; } }
.pp-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.pp-app-art { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: var(--radius-md); background: #fff; }
.pp-app-sector {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary-dark);
  background: rgba(18, 162, 96, 0.1);
}
.pp-app p { display: flex; gap: 10px; font-size: 14px; line-height: 1.55; }
.pp-app-how { color: var(--color-muted-foreground); }
.pp-app-result { font-weight: 700; color: var(--color-primary-dark); }
.pp-app-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--color-primary);
  background: var(--color-surface-alt);
}
.pp-app-icon.is-result { color: var(--color-primary-dark); background: var(--color-accent); }
.pp-app-icon svg { width: 16px; height: 16px; }

/* Phones: a full-width illustration per card made the Dolomite page's 12
   sector cards ~4 screens tall — switch to a compact row (thumbnail left,
   text right). */
@media (max-width: 600px) {
  .pp-app-grid { gap: var(--space-3); }
  .pp-app {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: var(--space-4);
    row-gap: 8px;
    align-items: start;
    padding: var(--space-4);
  }
  .pp-app-art { grid-row: 1 / span 3; aspect-ratio: 1 / 1; }
  .pp-app-sector { justify-self: start; }
  .pp-app p { font-size: 13px; gap: 8px; }
  .pp-app-icon { width: 24px; height: 24px; }
  .pp-app-icon svg { width: 14px; height: 14px; }
}

.pp-faq { background: var(--color-surface-alt); }
.pp-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-12); align-items: start; }
.pp-faq-grid .section-head { text-align: left; margin: 0; }
.pp-faq-grid .section-head p { margin-left: 0; }
.pp-faq-grid .hero-cta { margin-top: var(--space-6); }
.pp-faq-grid .btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .pp-faq-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.pp-others { background: var(--color-surface-alt); }
.pp-other-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
@media (max-width: 900px) { .pp-other-grid { grid-template-columns: 1fr; } }
.pp-other {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: transform 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard);
}
.pp-other:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pp-other img { width: 96px; height: 76px; object-fit: cover; border-radius: 12px; }
.pp-other small { display: block; font-size: 11.5px; font-weight: 700; color: var(--color-primary); }
.pp-other b { display: block; font-size: 15px; line-height: 1.3; color: var(--color-primary-dark); }
.pp-other-go svg { width: 18px; height: 18px; color: var(--color-primary); }

/* products.html: link from each product block to its own page */
/* "Full specs" link to the product's landing page: gradient CTA with
   breathing room before the Key Benefits grid. */
.pdetail-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-8);
  padding: 12px 22px;
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 10px 24px -10px rgba(8, 73, 44, 0.65);
}
.pdetail-more:hover {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 14px 28px -10px rgba(8, 73, 44, 0.75);
}
.pdetail-more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease-standard); }
.pdetail-more:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .pp-thumb, .pp-other { transition: none; }
  .pp-other:hover { transform: none; }
}
/* Chemical formulas in the eyebrow must keep their case (CaMg, not CAMG). */
.pp-hero .hero-eyebrow { text-transform: none; letter-spacing: 0.04em; }