/* ============================================================
   CIBORO FOODS — MAIN STYLESHEET
   Component & page styles
   ============================================================ */

/* ==================== HEADER / NAV ==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 88px;
  display: flex;
  align-items: center;
  /* Solid by default — transparent only on homepage via [data-hero="dark"] */
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  transition:
    height 300ms var(--ease-out-quint),
    background 300ms var(--ease-out-quint),
    box-shadow 300ms var(--ease-out-quint),
    backdrop-filter 300ms var(--ease-out-quint),
    color 300ms var(--ease-out-quint);
}
/* Homepage only — start transparent over dark hero */
[data-hero="dark"] .site-header:not(.scrolled) {
  background: transparent;
  /* Strong top-to-transparent gradient so text is always legible */
  box-shadow: none;
}
[data-hero="dark"] .site-header:not(.scrolled)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5, 18, 12, 0.72) 0%,
    rgba(5, 18, 12, 0.38) 65%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
[data-hero="dark"] .site-header:not(.scrolled) .header-inner {
  position: relative;
  z-index: 1;
}
/* Nav text light — ONLY on homepage (dark hero). Scoped to [data-hero="dark"]. */
[data-hero="dark"] .site-header:not(.scrolled) .nav-desktop a,
[data-hero="dark"] .site-header:not(.scrolled) .logo-wordmark,
[data-hero="dark"] .site-header:not(.scrolled) .logo-mark,
[data-hero="dark"] .site-header:not(.scrolled) .menu-btn {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
[data-hero="dark"] .site-header:not(.scrolled) .nav-desktop a::after {
  background: rgba(255, 255, 255, 0.7);
}
[data-hero="dark"] .site-header:not(.scrolled) .nav-desktop a.active {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-hero="dark"] .site-header:not(.scrolled) .nav-desktop a.active::after {
  background: #fff;
}
.site-header.scrolled {
  height: 64px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 1px 0 var(--border);
}
.site-header.hidden {
  transform: translateY(-100%);
}
.site-header.visible {
  transform: translateY(0);
  transition:
    height 300ms var(--ease-out-quint),
    background 300ms var(--ease-out-quint),
    transform 250ms var(--ease-out-quint);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { flex-shrink: 0; }
.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  color: var(--primary);
  font-variation-settings: "opsz" 144;
  line-height: 1;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 4px;
  transition: color var(--t-fast);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-hair);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after { transform: scaleX(1); }
.nav-desktop a.active { color: var(--primary); }
.nav-desktop a.active::after { transform: scaleX(1); background: var(--primary); }

/* Header controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.header-lang {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  cursor: pointer;
  transition: color var(--t-fast);
}
.header-lang:hover { color: var(--text); }

/* Language toggle button */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 0.35em 0.7em;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: var(--text-faint);
  background: transparent;
  cursor: pointer;
  transition: color 150ms, border-color 150ms, background 150ms;
  user-select: none;
}
.lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: color-mix(in oklab, var(--primary) 5%, transparent);
}
/* On dark hero (homepage) — make it crisp white when header is transparent */
[data-hero="dark"] .site-header:not(.scrolled) .lang-toggle {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.65);
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
[data-hero="dark"] .site-header:not(.scrolled) .lang-toggle:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* Mobile nav lang toggle — slightly larger for touch */
.nav-mobile .lang-toggle {
  font-size: 0.7rem;
  padding: 0.5em 1em;
  color: var(--text-muted);
  border-color: var(--border);
  margin-top: 0.5rem;
}
.nav-mobile .lang-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.theme-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  transition: color var(--t-fast);
  border-radius: 50%;
}
.theme-toggle:hover { color: var(--text); }

/* Mobile menu button */
.menu-btn {
  display: none;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text);
}

/* Mobile Nav Panel */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 600;
  display: flex;
  flex-direction: column;
  padding: var(--sp-8) var(--gutter) var(--sp-6);
  transform: translateX(100%);
  transition: transform 500ms var(--ease-out-quint);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-10);
}
.nav-mobile-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.nav-mobile-links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
  padding-block: var(--sp-1);
  transition: color var(--t-fast);
}
.nav-mobile-links a:hover { color: var(--primary-mid); }
.nav-mobile-footer {
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.nav-mobile-phone {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
  background: #0a1a12;
}

/* Photo layer — Ken Burns slow zoom */
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
  animation: hero-kenburns 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-kenburns {
  from { transform: scale(1);    transform-origin: 55% 45%; }
  to   { transform: scale(1.07); transform-origin: 45% 55%; }
}

/* Dark overlay — heavy at bottom for text, lighter at top for photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(5,14,9,0.96) 0%, rgba(5,14,9,0.75) 35%, rgba(5,14,9,0.42) 60%, rgba(5,14,9,0.18) 100%),
    linear-gradient(to right, rgba(5,14,9,0.55) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Film grain texture */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* Thin horizontal accent line — top right */
.hero-rule {
  position: absolute;
  top: 50%;
  right: 0;
  width: clamp(60px, 12vw, 160px);
  height: 1px;
  background: rgba(245,241,234,0.18);
  z-index: 3;
  transform-origin: right;
  animation: hero-rule-draw 1.8s 0.8s cubic-bezier(0.76,0,0.24,1) both;
}
@keyframes hero-rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Year mark — top right corner */
.hero-year-mark {
  position: absolute;
  top: 108px;
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  letter-spacing: 0.25em;
  color: rgba(245,241,234,0.3);
  z-index: 3;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 4;
  padding-inline: var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
  padding-bottom: var(--sp-16);
}

/* Each line wraps in a mask-clip container */
.hero-line-wrap {
  overflow: hidden;
  display: block;
  line-height: 1.05;
}

.hero-display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #F5F1EA;
  font-variation-settings: "opsz" 144;
  margin-bottom: var(--sp-8);
  max-width: 820px;
}
.hero-display em {
  font-style: italic;
  color: #7FA487;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(245,241,234,0.65);
  max-width: 48ch;
  line-height: 1.65;
  margin-bottom: var(--sp-10);
}

/* Badge row — Est. + certification chips */
.hero-badges {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(245,241,234,0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  background: rgba(245,241,234,0.05);
  backdrop-filter: blur(6px);
}
.hero-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7FA487;
  flex-shrink: 0;
}

/* Scroll cue — vertical animated line + dot */
.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.35);
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(245,241,234,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: rgba(245,241,234,0.7);
  animation: scroll-tick 2s 1.5s ease-in-out infinite;
}
@keyframes scroll-tick {
  0%   { top: -100%; }
  100% { top: 200%; }
}

.hero-bottom-rule {
  position: absolute;
  bottom: 0; left: var(--gutter); right: var(--gutter);
  z-index: 4;
}

/* ==================== STATS / OPERATOR ==================== */
.stats-section {
  background: var(--surface-alt);
  padding-block: clamp(var(--sp-10), 10vw, var(--sp-20));
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  align-items: end;
}
.stat-item {
  position: relative;
  /* contain layout so count-up text changes never cause page reflow */
  contain: layout;
}
.stat-item:nth-child(even) { padding-top: var(--sp-8); }
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--text);
  /* Tabular nums: each digit same width — no jitter as digits change */
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 144;
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}
/* Lock the count span to a fixed character width so 0→200 never reflows */
.count-num {
  display: inline-block;
  min-width: 3ch;
}
.stat-suffix {
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 300;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-1);
}
.stat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--sp-1);
  max-width: 22ch;
}

/* ==================== WHAT WE DO — SPLIT ==================== */
.what-section {
  background: var(--bg);
}
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  min-height: 70vh;
}
.what-divider {
  background: var(--border);
  align-self: stretch;
}
.what-col {
  padding: clamp(var(--sp-8), 8vw, var(--sp-16));
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: opacity 300ms var(--ease-hover);
  cursor: default;
}
.what-col:hover { opacity: 1 !important; }
.what-grid:has(.what-col:hover) .what-col:not(:hover) { opacity: 0.45; }
.what-col-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out-quint);
  margin-bottom: var(--sp-3);
}
.what-col-img.revealed { clip-path: inset(0 0 0% 0); }
.what-col h2 {
  font-size: var(--text-2xl);
  color: var(--primary);
  letter-spacing: -0.01em;
}
.what-col h2 em { font-style: italic; color: var(--primary-mid); }
.what-col p { color: var(--text-muted); line-height: 1.65; }
.what-col-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-mid);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  width: 100%;
  transition: gap var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.what-col-link:hover { color: var(--primary); gap: var(--sp-2); }
.what-col-link .arrow { font-size: 1.1em; }

/* ==================== PROVENANCE MAP ==================== */
.provenance {
  background: var(--primary);
  color: var(--bg);
  overflow: hidden;
  position: relative;
}
.provenance .container { position: relative; z-index: 2; }
.provenance .eyebrow { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.provenance-header { margin-bottom: var(--sp-10); }
.provenance h2 {
  font-size: var(--text-3xl);
  color: var(--bg);
  letter-spacing: -0.015em;
  max-width: 700px;
}
.provenance h2 em { font-style: italic; color: var(--accent); }
.provenance-sub {
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  max-width: 50ch;
  margin-top: var(--sp-3);
  font-size: var(--text-lg);
}
.map-container {
  width: 100%;
  aspect-ratio: 2/1;
  position: relative;
  margin-bottom: var(--sp-8);
  background: color-mix(in oklab, var(--primary) 85%, black);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(127,164,135,0.12);
}
#world-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
/* Map legend */
.map-legend {
  position: absolute;
  bottom: var(--sp-4);
  left: var(--sp-5);
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.map-legend-item {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(245,241,234,0.35);
  text-transform: uppercase;
}
.map-legend-home { color: rgba(127,164,135,0.7); }
.map-legend-source { color: rgba(184,149,106,0.7); }
.provenance-origins {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  border-top: 1px solid color-mix(in oklab, var(--bg) 15%, transparent);
  padding-top: var(--sp-5);
}
.origin-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 55%, transparent);
}
.origin-tag strong {
  color: var(--accent-warm);
  font-weight: 500;
  margin-right: 0.4em;
}

/* ==================== PRODUCTS SHELF ==================== */
.products-section {
  background: var(--bg);
}
.products-header {
  margin-bottom: var(--sp-10);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-4);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
}
.products-header h2 {
  font-size: var(--text-2xl);
  color: var(--primary);
  letter-spacing: -0.01em;
}
.products-header h2 em { font-style: italic; color: var(--primary-mid); }
.products-header-right {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.6;
}
.shelf-rule { height: 1px; background: var(--border); margin-bottom: var(--sp-8); }
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.shelf-card {
  background: var(--bg);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-height: 320px;
  transition: background var(--t-mid);
  text-decoration: none;
  color: inherit;
}
.shelf-card:hover { background: var(--surface); }
.shelf-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out-quint);
}
.shelf-card:hover .shelf-card-img { clip-path: inset(0 0 0% 0); }
.shelf-card-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.shelf-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.shelf-card-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.shelf-card-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-mid);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: auto;
  transition: gap var(--t-fast);
}
.shelf-card:hover .shelf-card-link { gap: var(--sp-2); }

/* ==================== CERTIFICATIONS ==================== */
.certs-section {
  background: var(--surface-alt);
}
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--sp-10);
}
.cert-card {
  background: var(--surface-alt);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background var(--t-mid);
}
.cert-card:hover { background: var(--surface); }
.cert-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cert-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.01em;
}
.cert-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}
.cert-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}

/* ==================== CTA FOOTER SECTION ==================== */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.cta-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  color: var(--bg);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-6);
  font-variation-settings: "opsz" 144;
}

.cta-sub {
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  max-width: 48ch;
  line-height: 1.5;
  margin-bottom: var(--sp-8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-warm);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 18px 36px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--t-fast),
    gap var(--t-fast),
    transform var(--t-fast);
  position: relative;
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--accent-warm) 85%, black);
  gap: var(--sp-3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 18px 36px;
  border: 1px solid color-mix(in oklab, var(--bg) 25%, transparent);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--t-fast),
    color var(--t-fast),
    border-color var(--t-fast),
    gap var(--t-fast);
}
.btn-secondary:hover {
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  color: var(--bg);
  gap: var(--sp-3);
}
.cta-btns {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ==================== SITE FOOTER ==================== */
.site-footer {
  background: var(--primary);
  color: var(--bg);
  position: relative;
}

.footer-wordmark-row {
  padding: clamp(var(--sp-8), 6vw, var(--sp-16)) var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--bg);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-variation-settings: "opsz" 144;
}

.footer-wordmark .wordmark-leaf { flex-shrink: 0; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  padding: var(--sp-10) var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  line-height: 1.7;
  max-width: 38ch;
  margin-bottom: var(--sp-5);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  margin-bottom: var(--sp-2);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-contact-item:hover { color: var(--bg); }


.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 40%, transparent);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--bg); }


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--gutter);
  max-width: var(--content-max);
  margin-inline: auto;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.footer-copy {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--bg) 30%, transparent);
}

.footer-top-link {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 40%, transparent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}
.footer-top-link:hover { color: var(--bg); }



/* ==================== INNER PAGE HERO ==================== */
.page-hero {
  padding-top: calc(88px + clamp(var(--sp-10), 8vw, var(--sp-20)));
  padding-bottom: clamp(var(--sp-10), 8vw, var(--sp-16));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: var(--text-3xl);
  color: var(--primary);
  letter-spacing: -0.015em;
  max-width: 800px;
  margin-bottom: var(--sp-4);
}
.page-hero h1 em { font-style: italic; color: var(--primary-mid); }
.page-hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.55;
}

/* ==================== ABOUT PAGE ==================== */
.about-story {
  background: var(--bg);
}
.about-spine-layout {
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: 0 clamp(var(--sp-6), 6vw, var(--sp-12));
  position: relative;
}
.about-spine {
  background: var(--border);
  position: relative;
}
.about-spine-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
  position: sticky;
  top: 50vh;
  left: -4.5px;
  transition: top 100ms linear;
}
.about-content-col { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-block h2 {
  font-size: var(--text-2xl);
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}
.about-block h2 em { font-style: italic; color: var(--primary-mid); }
.about-block p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: var(--text-base);
  max-width: 58ch;
}
.about-block p + p { margin-top: var(--sp-4); }
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--sp-8);
}
.value-card {
  background: var(--bg);
  padding: var(--sp-6);
  transition: background var(--t-mid);
}
.value-card:hover { background: var(--surface); }
.value-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--sp-3);
}
.value-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}
.about-img-pair {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
}
.about-img-pair img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ==================== TIMELINE ==================== */
.timeline-section { background: var(--surface-alt); }
.timeline-ruler {
  position: relative;
  padding-left: clamp(var(--sp-8), 12vw, var(--sp-20));
}
.timeline-ruler::before {
  content: '';
  position: absolute;
  left: clamp(60px, 8vw, 100px);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-playhead {
  position: sticky;
  top: 50vh;
  left: 0;
  width: clamp(60px, 8vw, 100px);
  height: 1px;
  background: var(--accent);
  margin-top: calc(-0.5px);
  pointer-events: none;
  z-index: 5;
}
.timeline-item {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-8) var(--sp-8);
  border-top: 1px solid var(--border-subtle);
}
.timeline-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.timeline-year {
  position: absolute;
  left: calc(clamp(60px, 8vw, 100px) * -1 - var(--sp-8));
  top: var(--sp-8);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-faint);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}
.timeline-item.milestone-major .timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--accent-warm);
  font-variation-settings: "opsz" 144;
}
.timeline-connector {
  position: absolute;
  left: calc(clamp(60px, 8vw, 100px) * -1);
  top: calc(var(--sp-8) + 10px);
  width: clamp(60px, 8vw, 100px);
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease-hair);
}
.timeline-item.revealed .timeline-connector { transform: scaleX(1); }
.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}
.timeline-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.65;
}

/* ==================== PRODUCTS PAGE ==================== */
.products-index {
  background: var(--bg);
}
.product-category {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-10);
  padding-inline: var(--sp-8);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-10);
  align-items: start;
  transition: background var(--t-mid);
  border-radius: 4px;
  overflow: hidden; /* prevent tag pills from escaping the section frame */
}
.product-category:hover { background: var(--surface); }
.product-cat-label { position: sticky; top: calc(64px + var(--sp-4)); }
.product-cat-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
}
.product-cat-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.product-cat-title em { font-style: italic; color: var(--primary-mid); }
.product-cat-sku {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  letter-spacing: 0.08em;
}
.product-cat-content { display: flex; flex-direction: column; gap: var(--sp-5); }
.product-cat-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 900ms var(--ease-out-quint);
}
.product-cat-img.revealed { clip-path: inset(0 0 0% 0); }
.product-cat-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 58ch;
}
.product-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.product-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.product-tag:hover { border-color: var(--accent); color: var(--primary); }

.product-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--primary);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}
.product-cat-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 10px;
}

/* ==================== PACKING PAGE ==================== */
.process-strip {
  background: var(--primary);
  overflow-x: hidden;
  position: relative;
}
.process-strip .eyebrow { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.process-strip-header {
  margin-bottom: var(--sp-10);
}
.process-strip-header h2 {
  font-size: var(--text-3xl);
  color: var(--bg);
  letter-spacing: -0.015em;
  max-width: 600px;
}

.process-strip-header h2 em { font-style: italic; color: var(--accent); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: color-mix(in oklab, var(--bg) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 10%, transparent);
}
.process-step {
  background: var(--primary);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  color: color-mix(in oklab, var(--bg) 12%, transparent);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.process-step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--bg);
  letter-spacing: -0.01em;
}

.process-step-body {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--bg) 55%, transparent);
  line-height: 1.65;
}

.packing-services {
  background: var(--bg);
}
.packing-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--sp-10);
}
.packing-service-card {
  background: var(--bg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: background var(--t-mid);
}
.packing-service-card:hover { background: var(--surface); }
.packing-service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.01em;
}
.packing-service-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==================== ESG PAGE ==================== */
.esg-bilingual {
  background: var(--bg);
}
.esg-section-header {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-4);
  margin-bottom: 0;
}
.esg-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.01em;
}
.esg-bilingual-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.esg-lang-col { padding: var(--sp-8) var(--sp-6); }
.esg-lang-divider { background: var(--border); }
.esg-lang-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-4);
  display: block;
}
.esg-lang-col p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 46ch;
}
.esg-lang-col p + p { margin-top: var(--sp-4); }
.esg-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: var(--sp-12);
}
.esg-stat-card {
  background: var(--surface-alt);
  padding: var(--sp-8) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  transition: background var(--t-mid);
}
.esg-stat-card:hover { background: var(--surface); }
/* Animated progress bar at the top of each card */
.esg-stat-bar {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: var(--bar, 50%);
  background: linear-gradient(to right, var(--accent), var(--accent-warm));
  border-radius: 0 2px 2px 0;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.esg-stat-card.bar-drawn .esg-stat-bar { transform: scaleX(1); }
.esg-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 300;
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 1;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 144;
  display: flex;
  align-items: baseline;
  gap: 0.2em;
}
.esg-stat-suffix {
  font-size: 0.35em;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 400;
}
.esg-stat-label-en {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin-top: var(--sp-1);
}
.esg-stat-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 28ch;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.esg-stat-label-fr {
  font-size: var(--text-xs);
  font-style: italic;
  color: color-mix(in oklab, var(--text-faint) 70%, transparent);
}

/* ==================== CONTACT PAGE ==================== */
.contact-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(var(--sp-8), 8vw, var(--sp-16));
  align-items: start;
}
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--primary);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-8);
}
.contact-form-wrap h2 em { font-style: italic; color: var(--primary-mid); }
.form-field { margin-bottom: var(--sp-6); position: relative; }
.form-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
  transition: color 250ms var(--ease-hover), transform 250ms var(--ease-hover);
}
.form-field:focus-within label { color: var(--primary-mid); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  font-size: 1.125rem;
  color: var(--text);
  outline: none;
  transition: border-color 250ms var(--ease-hover);
  -webkit-appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom: 2px solid var(--primary-mid);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field select { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-submit { margin-top: var(--sp-4); }
.btn-form {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 18px 40px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    background var(--t-fast),
    gap var(--t-fast);
}
.btn-form:hover { background: var(--primary-mid); gap: var(--sp-3); }
.form-success {
  display: none;
  padding-block: var(--sp-10);
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}
.form-success p { color: var(--text-muted); line-height: 1.7; }
.contact-info-panel { padding-top: var(--sp-3); }
.contact-detail {
  border-top: 1px solid var(--border);
  padding: var(--sp-5) 0;
}
.contact-detail:last-child { border-bottom: 1px solid var(--border); }
.contact-detail-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
}
.contact-detail-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: block;
  transition: color var(--t-fast);
}
a.contact-detail-value:hover { color: var(--primary-mid); }
.contact-detail-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}
.contact-map {
  width: 100%;
  height: 320px;
  background: var(--surface-alt);
  overflow: hidden;
  position: relative;
  margin-top: var(--sp-8);
  border: 1px solid var(--border);
}
.contact-map iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(100%) contrast(0.9);
  transition: filter var(--t-mid);
}
.contact-map:hover iframe { filter: grayscale(40%) contrast(1); }
.map-pulse {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-warm);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.map-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent-warm);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ==================== PRODUCT SUBPAGES ==================== */
.product-hero-img {
  width: 100%;
  height: clamp(300px, 40vw, 560px);
  object-fit: cover;
  display: block;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.product-detail-col h2 {
  font-size: var(--text-2xl);
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}
.product-detail-col h2 em { font-style: italic; color: var(--primary-mid); }
.product-detail-col p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}
.product-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}
.product-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border-subtle);
}
.product-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==================== MILESTONES PAGE ==================== */
.milestone-intro {
  background: var(--bg);
  padding-bottom: 0;
}
/* Chapter intro replaces stats strip on milestones page */
.milestone-chapter-intro {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-6);
}
.milestone-chapter-pull {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.35;
  margin-top: var(--sp-4);
  letter-spacing: -0.01em;
}

/* Legacy — kept for safety, no longer rendered */
.milestone-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--sp-10);
}
.milestone-stat-card {
  background: var(--surface-alt);
  padding: var(--sp-6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr 1fr; }
  .shelf-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .esg-stats { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .packing-services-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .milestone-stat-row { grid-template-columns: repeat(2, 1fr); }
  .milestone-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
  .header-lang { display: none; }
  /* Keep lang toggle compact but visible in mobile header */
  .site-header .lang-toggle {
    font-size: 0.6rem;
    padding: 0.3em 0.6em;
  }
  /* Hide the mobile nav footer lang toggle inline style override */
  .nav-mobile .lang-toggle {
    display: inline-flex;
  }
  .what-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .what-divider { height: 1px; }
  .what-col { padding: var(--sp-8) 0; }
  /* Stats — 2-col on tablet, bigger numbers */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(even) { padding-top: 0; }
  .stat-number { font-size: clamp(4rem, 18vw, 7rem) !important; }
  .products-header { flex-direction: column; align-items: flex-start; }
  .shelf-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .esg-bilingual-row { grid-template-columns: 1fr; }
  .esg-lang-divider { height: 1px; }
  .esg-stats { grid-template-columns: 1fr 1fr; }
  /* Timeline: on mobile show year above title, not in left gutter */
  .timeline-ruler {
    padding-left: 0 !important;
  }
  .timeline-ruler::before {
    display: none;
  }
  .timeline-playhead { display: none; }
  .timeline-item {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .timeline-year {
    position: static !important;
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--text-xs) !important;
  }
  .timeline-item.milestone-major .timeline-year {
    font-size: var(--text-lg) !important;
  }
  .timeline-connector { display: none; }
  .packing-services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .about-img-pair { grid-template-columns: 1fr; }
  .about-img-pair img { height: 240px; }
  .product-category { grid-template-columns: 1fr; }
  .product-cat-label { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .provenance-origins { gap: var(--sp-2); }
  /* Map: cleaner on mobile — labels drawn in canvas JS, not HTML */
  .map-legend { bottom: var(--sp-2); left: var(--sp-2); right: var(--sp-2); gap: var(--sp-2); flex-direction: column; }
  .map-legend-item { font-size: 0.55rem; letter-spacing: 0.08em; }
  /* Hide supply routes legend item — too wordy on mobile */
  .map-legend-item:last-child { display: none; }
  .map-container { aspect-ratio: 16/9; }
  /* Provenance bottom two-col row */
  .provenance-bottom-row { grid-template-columns: 1fr !important; gap: var(--sp-6) !important; }
  /* Inline responsive helpers — sourcing grid outer stacks, inner keeps 2x2 */
  .sourcing-grid > div:last-child.mob-stack { grid-template-columns: 1fr 1fr !important; gap: 1px !important; }
  .milestone-stat-row { grid-template-columns: 1fr 1fr; }
  .milestone-stat-grid { grid-template-columns: 1fr 1fr; }
  .cta-btns { flex-direction: column; align-items: flex-start; }
  /* Hero: tighten on mobile — content bottom-anchored, less tall */
  .hero { min-height: 72dvh; justify-content: flex-end; }
  .hero-content { padding-bottom: var(--sp-10) !important; }
  /* Ambient leaf: smaller, tucked top-right */
  .hero-ambient-leaf { width: 52px; height: 72px; top: 6%; right: 4%; opacity: 0.35; }
  /* Stats section: tighter on mobile */
  .stats-section { padding-block: var(--sp-12) !important; }
  /* Hero sub text slightly smaller on mobile */
  .hero-sub { font-size: 1rem; margin-bottom: var(--sp-8); }
  /* Page hero h1 tighter on mobile */
  .page-hero h1 { font-size: clamp(2.5rem, 9vw, 4rem) !important; }
  /* Milestone stat grid stacks earlier */
  .milestone-stat-grid { grid-template-columns: 1fr 1fr; }
  /* Frozen sourcing grid */
  .sourcing-grid { grid-template-columns: 1fr !important; gap: var(--sp-8) !important; }
  /* Business hours / milestones looking ahead two-col */
  .two-col-grid { grid-template-columns: 1fr !important; gap: var(--sp-6) !important; }
  /* Contact info panel map */
  .contact-map iframe { height: 220px; }
  /* Product hero image shorter */
  .product-hero-img { max-height: 280px !important; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: clamp(5rem, 22vw, 8rem) !important; }
  .esg-stats { grid-template-columns: 1fr; }
  .milestone-stat-row { grid-template-columns: 1fr; }
  .milestone-stat-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero { min-height: 68dvh; }
  .hero-content { padding-bottom: var(--sp-8) !important; }
  /* Milestone stat numbers on small phones */
  .milestone-stat-number { font-size: clamp(2.25rem, 12vw, 3.5rem) !important; }
}

/* ==================== MILESTONE STAT GRID ==================== */
.milestone-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: var(--sp-10);
}
.milestone-stat-card {
  background: var(--surface-alt);
  padding: var(--sp-8) var(--sp-6);
}
.milestone-stat-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.milestone-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary);
  letter-spacing: -0.025em;
  line-height: 0.9;
  margin-bottom: var(--sp-4);
}
.milestone-stat-body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 22ch;
}

/* ==================== FORM CLASS ALIASES (contact.html uses these) ==================== */
/* These alias the .form-field pattern for the contact page */
.form-group { margin-bottom: var(--sp-6); position: relative; }
.form-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
  transition: color 250ms var(--ease-hover);
}
.form-group:focus-within .form-label { color: var(--primary-mid); }
.form-required { color: var(--accent-warm); }
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 0;
  font-size: 1.125rem;
  font-family: var(--font-body);
  color: var(--text);
  outline: none;
  transition: border-color 250ms var(--ease-hover);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-bottom: 2px solid var(--primary-mid);
}
.form-input--error { border-bottom: 2px solid #c0392b !important; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }
.form-select-wrap { position: relative; }
.form-select-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-faint);
}

/* ==================== VIEW TRANSITIONS ==================== */
@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: page-exit 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
::view-transition-new(root) {
  animation: page-enter 400ms var(--ease-out-quint) forwards;
}
@keyframes page-exit {
  to { opacity: 0; transform: translateY(-8px); }
}
@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================== ESG ENGLISH-ONLY MODE ==================== */
.esg-bilingual-row.esg-en-only {
  grid-template-columns: 1fr;
}
.esg-bilingual-row.esg-en-only .esg-lang-col {
  max-width: 72ch;
}

/* ==================== CARD PADDING SAFETY ==================== */
.shelf-card,
.cert-card,
.value-card,
.packing-service-card,
.esg-stat-card,
.milestone-stat-card {
  padding: var(--sp-6) !important;
}

/* ==================== THEME TOGGLE HIDDEN ==================== */
.theme-toggle { display: none !important; }
.header-lang  { display: none !important; }

/* ==================== HERO ORBS & YEAR MARK ==================== */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--1 {
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: orb-drift-1 14s ease-in-out infinite;
}
.hero-orb--2 {
  width: clamp(180px, 22vw, 360px);
  height: clamp(180px, 22vw, 360px);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-warm) 12%, transparent) 0%, transparent 70%);
  top: 30%;
  right: 20%;
  animation: orb-drift-2 18s ease-in-out infinite;
}
.hero-orb--3 {
  width: clamp(120px, 14vw, 220px);
  height: clamp(120px, 14vw, 220px);
  background: radial-gradient(circle, color-mix(in oklab, var(--primary) 7%, transparent) 0%, transparent 70%);
  bottom: 20%;
  right: 35%;
  animation: orb-drift-3 22s ease-in-out infinite;
}
@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 30px) scale(1.08); }
  66%       { transform: translate(20px, -20px) scale(0.96); }
}
@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(30px, -50px) scale(1.1); }
  70%       { transform: translate(-20px, 20px) scale(0.92); }
}
@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-25px, -35px) scale(1.12); }
}

.hero-year-mark {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--gutter);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 400;
  color: var(--primary);
  opacity: 0.04;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  font-feature-settings: 'tnum';
}

@media (max-width: 768px) {
  .hero-orb--1 { width: 240px; height: 240px; }
  .hero-orb--2 { width: 140px; height: 140px; }
  .hero-orb--3 { display: none; }
  .hero-year-mark { font-size: 5rem; opacity: 0.03; }
}


/* ── HIRING STRIP ─────────────────────────────────────── */
.hiring-strip {
  background: var(--primary);
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(127,164,135,0.15);
}
.hiring-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.hiring-strip-text {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.hiring-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.hiring-label {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  line-height: 1.4;
}
.hiring-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  border: 1px solid rgba(245,241,234,0.25);
  padding: 0.6em 1.4em;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hiring-link:hover {
  background: rgba(245,241,234,0.1);
  border-color: rgba(245,241,234,0.5);
}
@media (max-width: 600px) {
  .hiring-strip-inner { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .hiring-label { display: none; }
}
