/* ==========================================================================
   Home page only. Enqueued by inc/enqueue.php on front-page.php and the
   "Home (marketing)" page template.
   ========================================================================== */

/* --- full-bleed photographic hero ---------------------------------------- */
.hero--photo { padding: clamp(64px, 7.5vw, 104px) 0 clamp(52px, 6vw, 80px); }
.hero--photo::after { display: none; }          /* the photo is the texture */

.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(1,44,23,.95) 0%, rgba(1,44,23,.82) 38%, rgba(1,44,23,.46) 70%, rgba(1,44,23,.22) 100%),
    linear-gradient(0deg, rgba(1,44,23,.70), rgba(1,44,23,0) 45%);
}
.hero--photo .wrap { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-content h1 { max-width: none; font-size: clamp(2rem, 1.35rem + 2.1vw, 3.05rem); }

@media (max-width: 700px) {
  .hero-media img { object-position: 64% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(1,44,23,.66), rgba(1,44,23,.92)); }
}

/* --- capability cards ---------------------------------------------------- */
.pillar { display: flex; flex-direction: column; height: 100%; }
.pillar .card-body { flex: 1; }
.pillar .more {
  margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.pillar .more svg { width: 15px; height: 15px; transition: transform .18s ease; }
.pillar:hover .more svg { transform: translateX(4px); }

.chips--tags { justify-content: center; margin-top: 48px; }

/* --- real-time quality panel --------------------------------------------- */
/* A dark analyser panel sitting on a light section, so it needs a solid fill. */
.qpanel {
  background:
    radial-gradient(620px 420px at 18% -10%, rgba(10,102,64,.55), transparent 60%),
    radial-gradient(520px 360px at 100% 110%, rgba(4,107,210,.28), transparent 62%),
    var(--forest);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-xl);
}
.qpanel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.qpanel-head .t { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .95rem; }
.qpanel-head .live {
  margin-left: auto; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  color: #6fd3a4; display: flex; align-items: center; gap: 7px;
}
.qpanel-head .live i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 2.2s infinite; font-style: normal; }

.qmetric + .qmetric { margin-top: 20px; }
.qmetric-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.qmetric-top .lbl { font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.qmetric-top .val { margin-left: auto; font-family: var(--font-mono); font-size: 1.05rem; color: #fff; }

.qbar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.qbar i {
  display: block; height: 100%; width: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #4e9af1, #6fd3a4);
  transform-origin: left;
  animation: qfill 3.4s ease-in-out infinite alternate;
}
.qbar i.delay { animation-delay: .5s; }

/* particle-size distribution mini histogram */
.qhist { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 4px; }
.qhist span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #6fd3a4, #0a6640); animation: qbar 3.6s ease-in-out infinite alternate; }
.qhist span:nth-child(1) { animation-delay: 0s; }
.qhist span:nth-child(2) { animation-delay: .3s; }
.qhist span:nth-child(3) { animation-delay: .6s; }
.qhist span:nth-child(4) { animation-delay: .9s; }
.qhist span:nth-child(5) { animation-delay: 1.2s; }
.qhist span:nth-child(6) { animation-delay: 1.5s; }
.qhist-axis { display: flex; gap: 6px; margin-top: 8px; }
.qhist-axis span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: .6rem; color: rgba(255,255,255,.4); }

.qflow {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.6);
}
.qflow svg { width: 16px; height: 16px; color: #6fd3a4; }

@keyframes qfill { from { transform: scaleX(.72); } to { transform: scaleX(1); } }
@keyframes qbar  { from { height: 38%; } to { height: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .qbar i, .qhist span { animation: none; }
  .qbar i { transform: scaleX(.92); }
  .qpanel-head .live i { animation: none; }
}

/* quality feature cards */
.qcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 900px) { .qcards { grid-template-columns: 1fr; } }
.qcard .card-icon { background: rgba(4,107,210,.1); }
