/* =====================================================
   REVORE SOLUTIONS — style.css
   Modern, clean, performance-optimized
   ===================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:     #2D6A4F;
  --green-mid: #40916C;
  --green-lt:  #74C69D;
  --green-pale:#D8F3DC;
  --ink:       #0D1B12;
  --ink-soft:  #2C3E30;
  --gray:      #6B7C6E;
  --gray-lt:   #F0F4F1;
  --white:     #FFFFFF;
  --accent:    #52B788;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);

  --ease: cubic-bezier(.22,1,.36,1);
  --dur: 0.55s;

  --nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === SECTION SPACING === */
.section { padding: 96px 0; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p  { color: var(--gray); font-size: 1rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-title { color: var(--ink); margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--gray); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover { background: var(--green-mid); border-color: var(--green-mid); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--white); }

.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light:hover { background: var(--green-pale); border-color: var(--green-pale); }

/* =====================================================
   SCROLL REVEAL ANIMATION (CSS-only, no library)
   Uses IntersectionObserver in JS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img { height: auto; width: 312px; max-width: 312px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-pale); }

.nav-cta {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--green);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease), transform 0.2s;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }
.nav-cta.active-cta { background: var(--green-mid); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1rem; padding: 12px 16px; }

/* =====================================================
   HERO — HOME
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,27,18,0.78) 0%,
    rgba(13,27,18,0.45) 60%,
    rgba(13,27,18,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-lt);
  background: rgba(116,198,157,0.15);
  border: 1px solid rgba(116,198,157,0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-headline {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.0;
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--green-lt);
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 2px; height: 40px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50%       { transform: scaleY(0.5); opacity: 1; }
}

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--gray-lt);
}
.page-hero-content { max-width: 680px; }
.page-hero h1 { color: var(--ink); margin-bottom: 16px; }
.page-hero-sub { font-size: 1.15rem; color: var(--gray); margin-top: 12px; }

/* =====================================================
   PROBLEM SECTION
   ===================================================== */
.problem-section { background: var(--white); }

.problem-section .section-label {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label-row { margin-bottom: 48px; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.problem-lead {
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}
.problem-body { font-size: 1.05rem; color: var(--gray); }

.problem-stat-card {
  background: var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 40px;
  border-left: 4px solid var(--green);
}
.stat-icon { width: 40px; height: 40px; margin-bottom: 20px; }
.stat-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.stat-text { font-size: 1rem; color: var(--ink-soft); line-height: 1.7; }
.stat-text strong { color: var(--ink); }

/* =====================================================
   VALUE SECTION
   ===================================================== */
.value-section { background: var(--gray-lt); }

.value-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.value-heading { color: var(--ink); margin: 12px 0 20px; }
.value-body { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 36px; }
.value-body strong { color: var(--green); }
.value-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

/* =====================================================
   TECHNOLOGY PILLARS
   ===================================================== */
.tech-section { background: var(--white); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-grid-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: calc(66.666% + 8px);
  margin: 24px auto 0;
}
.tech-card {
  background: var(--gray-lt);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-card img { width: 36px; height: 36px; margin-bottom: 20px; }
.tech-card h3 { font-size: 1rem; color: var(--ink); margin-bottom: 10px; }
.tech-card p  { font-size: 0.92rem; color: var(--gray); line-height: 1.6; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section { background: var(--green); }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-text h2    { color: var(--white); margin-bottom: 10px; }
.cta-text p     { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.section-label.light { color: var(--green-lt); }

.cta-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.cta-email {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta-email img { width: 28px; opacity: 0.85; filter: invert(1); }
.cta-detail-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-lt);
  margin-bottom: 2px;
}
.cta-email a { font-size: 0.95rem; color: var(--white); transition: opacity 0.2s; }
.cta-email a:hover { opacity: 0.75; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: #1A2E22;
  padding: 64px 0 0;
  position: relative;
}
/* Smooth fade-in from the section above */
.footer::before {
  content: '';
  display: block;
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #1A2E22);
  pointer-events: none;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo { height: auto; width: 374px; max-width: 100%; opacity: 1; mix-blend-mode: screen; }
.footer-iso  { height: 52px; width: auto; filter: invert(1); opacity: 0.6; }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social img { width: 16px; opacity: 0.7; filter: invert(1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

/* =====================================================
   SOLUTIONS PAGE
   ===================================================== */
.process-gallery { padding-top: 0; padding-bottom: 48px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.gallery-main, .gallery-main img, .gallery-illustration {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
}
.gallery-main img { height: 100%; object-fit: cover; }
.gallery-main.gallery-illustration svg { width: 100%; height: 100%; display: block; aspect-ratio: 16/10; }
.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.gallery-side .gallery-illustration svg { width: 100%; height: 100%; display: block; aspect-ratio: 5/3; }
.gallery-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.waste-value-section { background: var(--gray-lt); }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  display: block;
  color: var(--green);
}
.pillar img { width: 40px; height: 40px; margin: 0 auto 16px; }
.pillar span { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; line-height: 1.4; }

.impact-gallery { background: var(--white); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.impact-card {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  display: block;
}
.impact-card svg { width: 100%; height: 100%; display: block; }
.impact-card:hover { transform: scale(1.03); }
.impact-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease);
}
.impact-grid img:hover { transform: scale(1.03); }

/* =====================================================
   BOARD PAGE
   ===================================================== */
.board-hero { background: var(--gray-lt); padding-bottom: 0; }

.board-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 0;
}
.board-product-logo { height: auto; width: 320px; max-width: 100%; margin-bottom: 40px; }
.board-specs-inline { display: flex; flex-direction: column; gap: 20px; }
.spec-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.spec-item img { width: 28px; opacity: 0.7; }
.spec-label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 2px;
}
.spec-value {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.board-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  height: auto;
}
.board-description {
  font-size: 1.1rem;
  color: var(--ink-soft);
  text-align: center;
  max-width: 680px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
}
.board-description strong { color: var(--green); }

.properties-section { background: var(--white); }

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.property-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gray-lt);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.property-card img { width: 32px; height: 32px; flex-shrink: 0; }
.property-card span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }

.properties-cta { text-align: center; }

.applications-section { background: var(--gray-lt); }

.applications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.app-image-wrap { aspect-ratio: 16/9; overflow: hidden; }
.app-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.app-card:hover .app-image-wrap img { transform: scale(1.04); }
.app-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16/9;
  background: var(--green-pale);
  color: var(--green);
}
.app-icon-wrap svg { width: 48px; height: 48px; }
.app-body { padding: 24px; }
.app-body h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.app-body p  { font-size: 0.92rem; color: var(--gray); line-height: 1.65; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-hero { background: var(--gray-lt); }
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

/* FORM */
.contact-form-wrap {
  background: var(--gray-lt);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.required { color: var(--green); }
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(0,0,0,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.form-submit { width: 100%; margin-top: 8px; justify-content: center; }

.form-success, .form-error {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-success { background: var(--green-pale); color: var(--green); }
.form-success.show, .form-error.show { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-error { background: #fef2f2; color: #c0392b; }

/* INFO */
.contact-info { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card {
  background: var(--gray-lt);
  border-radius: var(--radius-md);
  padding: 28px;
}
.contact-info-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.contact-info-card address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
.contact-info-card p { color: var(--ink-soft); line-height: 1.7; }

.contact-link {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 6px;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--green); }

.contact-brand-logos {
  display: flex;
  align-items: center;
  padding: 24px 0 8px;
}
.contact-brand-logos img {
  height: 48px;
  width: auto;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 56px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-logo img { width: 180px; }

  /* Hero */
  .hero-content { padding-top: 40px; padding-bottom: 60px; }
  .hero-scroll-hint { display: none; }

  /* Sections */
  .problem-grid     { grid-template-columns: 1fr; gap: 32px; }
  .value-inner      { grid-template-columns: 1fr; gap: 36px; }
  .value-image      { order: -1; }
  .gallery-grid     { grid-template-columns: 1fr; }
  .gallery-side     { grid-template-columns: 1fr 1fr; }
  .pillars-grid     { grid-template-columns: 1fr 1fr; }
  .impact-grid      { grid-template-columns: repeat(2, 1fr); }
  .tech-grid        { grid-template-columns: 1fr 1fr; }
  .tech-grid-bottom { max-width: 100%; grid-template-columns: 1fr 1fr; }
  .properties-grid  { grid-template-columns: 1fr 1fr; }
  .applications-grid{ grid-template-columns: 1fr; }

  /* Board page */
  .board-hero-inner  { grid-template-columns: 1fr; gap: 32px; }
  .board-product-logo{ width: 220px; }
  .board-hero-image img { max-width: 100%; }

  /* CTA */
  .cta-inner   { flex-direction: column; align-items: flex-start; gap: 32px; }
  .cta-actions { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Contact */
  .contact-grid      { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-logo  { width: 200px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  /* Typography */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .hero-headline { font-size: 2.4rem; }
  .hero-sub { font-size: 0.95rem; }
  .problem-lead { font-size: 1.15rem; }

  /* Nav */
  .nav-logo img { width: 150px; }

  /* Layouts */
  .tech-grid        { grid-template-columns: 1fr; }
  .tech-grid-bottom { grid-template-columns: 1fr; }
  .pillars-grid     { grid-template-columns: 1fr; }
  .properties-grid  { grid-template-columns: 1fr; }
  .impact-grid      { grid-template-columns: 1fr 1fr; }
  .footer-inner     { grid-template-columns: 1fr; }

  /* Board */
  .board-product-logo { width: 180px; }
  .spec-item { padding: 14px 16px; }

  /* Contact form */
  .contact-form-wrap { padding: 24px 16px; }

  /* Footer */
  .footer-logo { width: 160px; }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .nav, .hero-scroll-hint, .cta-section { display: none; }
  .section { padding: 32px 0; }
}

/* Screen-reader only — hidden visually, accessible to crawlers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   HIGHLIGHTS SECTION — 2-card sub-segment below gallery
   ===================================================== */
.highlights-section { padding-top: 64px; padding-bottom: 64px; }

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.highlight-card {
  background: var(--white);
  border: 1.5px solid var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
  border-color: var(--green-lt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.highlight-icon svg { width: 30px; height: 30px; }

.highlight-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.highlight-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gray);
  max-width: 360px;
}


/* =====================================================
   PRODUCTION PROCESS — unified flow with animated cards
   ===================================================== */
.process-steps-section { background: var(--gray-lt); padding-bottom: 96px; }

/* Zone labels above the track */
.process-zones {
  display: grid;
  grid-template-columns: 4fr 3fr 2fr;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 16px;
}
.process-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--white);
  border: 1.5px solid var(--green-pale);
}
.process-zone span {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.process-zone.zone-board { border-color: rgba(64, 145, 108, 0.35); }
.process-zone.zone-finish { border-color: rgba(64, 145, 108, 0.5); background: rgba(216, 243, 220, 0.5); }

/* The track: a grid of 9 cards with a line running behind */
.process-flow { position: relative; }

.process-flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  padding: 40px 0 24px;
}

/* Horizontal line behind the cards */
.process-flow-line {
  position: absolute;
  top: 92px; /* aligns with card-icon center */
  left: 5%;
  right: 5%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(64, 145, 108, 0.3) 0px,
    rgba(64, 145, 108, 0.3) 4px,
    transparent 4px,
    transparent 10px
  );
  z-index: 0;
}

/* Animated pulse traveling along the line */
.process-flow-pulse {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.process-flow-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(64, 145, 108, 0.25) 30%,
    rgba(64, 145, 108, 0.75) 50%,
    rgba(64, 145, 108, 0.25) 70%,
    transparent 100%);
  will-change: transform, opacity;
  animation: trackPulse 9s linear infinite;
}

@keyframes trackPulse {
  0%   { transform: translateX(-140px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* Flow card */
.flow-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--green-pale);
  padding: 20px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  z-index: 2;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover {
  border-color: var(--green-mid);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(45, 106, 79, 0.25);
  z-index: 3;
}

/* Card icon: sits on the line, circle background */
.flow-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  will-change: transform;
}
.flow-card-icon svg { width: 26px; height: 26px; }

/* Card number */
.flow-card-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green-mid);
  opacity: 0.7;
}

/* Card title */
.flow-card-title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* Card description */
.flow-card-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--gray);
}

/* Each card's individual pulse — lights up when the flow reaches it */
.flow-card-pulse {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.4) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
}

/* 9 cards × 1s apart in a 9s cycle */
.flow-card-1 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 0s; }
.flow-card-2 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 1s; }
.flow-card-3 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 2s; }
.flow-card-4 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 3s; }
.flow-card-5 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 4s; }
.flow-card-6 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 5s; }
.flow-card-7 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 6s; }
.flow-card-8 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 7s; }
.flow-card-9 .flow-card-pulse { animation: cardGlow 9s ease-in-out infinite; animation-delay: 8s; }

/* Icon activation timed with pulse */
.flow-card-1 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 0s; }
.flow-card-2 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 1s; }
.flow-card-3 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 2s; }
.flow-card-4 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 3s; }
.flow-card-5 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 4s; }
.flow-card-6 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 5s; }
.flow-card-7 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 6s; }
.flow-card-8 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 7s; }
.flow-card-9 .flow-card-icon { animation: iconActivate 9s ease-in-out infinite; animation-delay: 8s; }

@keyframes cardGlow {
  0%, 6%, 100% { opacity: 0; transform: translateX(-50%) scale(0.8); }
  3% { opacity: 1; transform: translateX(-50%) scale(1.3); }
}

@keyframes iconActivate {
  0%, 8%, 100% { transform: scale(1); }
  3%, 5%      { transform: scale(1.1); }
}

/* Throughput callout below the flow */
.process-throughput {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.throughput-card {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 56px;
  text-align: center;
  box-shadow: 0 20px 40px -12px rgba(45, 106, 79, 0.35);
  position: relative;
  overflow: hidden;
}

.throughput-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.throughput-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.throughput-unit {
  font-size: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: -0.01em;
}
.throughput-label {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: -0.005em;
}
.throughput-meta {
  font-size: 0.82rem;
  opacity: 0.72;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

/* =====================================================
   RESPONSIVE — unified process flow
   ===================================================== */

/* Tablet — 3 rows of 3, zones stack above */
@media (max-width: 1024px) {
  .process-zones {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  .process-zone span { font-size: 0.65rem; }

  .process-flow-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 24px 0;
  }
  .process-flow-line, .process-flow-pulse { display: none; }
  .flow-card-desc { font-size: 0.8rem; }
}

/* Mobile — 2 rows toggle, then single column */
@media (max-width: 768px) {
  .highlights-grid { grid-template-columns: 1fr; gap: 16px; }
  .highlight-card { padding: 32px 28px; }

  .process-zones { display: none; }

  .process-flow-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .flow-card { padding: 18px 12px 16px; }
  .flow-card-icon { width: 48px; height: 48px; }
  .flow-card-icon svg { width: 22px; height: 22px; }
  .flow-card-title { font-size: 0.85rem; }
  .flow-card-desc { font-size: 0.75rem; }

  .throughput-card { padding: 28px 32px; }
  .throughput-number { font-size: 2.25rem; }
  .throughput-unit { font-size: 1.15rem; }
  .throughput-label { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .process-flow-track { grid-template-columns: 1fr; }
  .flow-card { flex-direction: row; text-align: left; padding: 16px; gap: 14px; }
  .flow-card-icon { flex-shrink: 0; width: 44px; height: 44px; }
  .flow-card-icon svg { width: 20px; height: 20px; }
  .flow-card-num { order: -1; font-size: 0.65rem; }
  .flow-card-title { flex: 1; font-size: 0.88rem; }
  .flow-card-desc { display: none; }
  .flow-card-pulse { display: none; }

  .throughput-card { padding: 24px 20px; }
  .throughput-number { font-size: 1.9rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .process-flow-pulse,
  .flow-card-pulse,
  .flow-card-icon { animation: none; }
}

/* =====================================================
   PERFORMANCE — pause offscreen animations
   ===================================================== */

/* Only allow paint when close to viewport; saves perf on heavy animated section */
.process-steps-section .process-flow {
  contain: layout style paint;
}

/* Pause all flow animations when section is offscreen (body.flow-paused set by JS) */
body.flow-paused .process-flow-pulse::before,
body.flow-paused .flow-card-pulse,
body.flow-paused .flow-card-icon {
  animation-play-state: paused;
}

@media (max-width: 1024px) {
  /* Kill all flow animations on tablets/phones entirely - they don't show the pulse line anyway */
  .process-flow-pulse,
  .flow-card-pulse,
  .flow-card-icon {
    animation: none !important;
  }
  .flow-card-icon { will-change: auto; }
}

