/* Direction 2: Field to container. Only this page. */
:root { --ease-io: cubic-bezier(0.77, 0, 0.175, 1); --scrim: 40, 48, 18; }

/* shared media fill */
.fill-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- hero: full-bleed chilli video ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--olive-900); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 22%), linear-gradient(to top, rgba(var(--scrim), 0.85) 0%, rgba(var(--scrim), 0.55) 45%, rgba(var(--scrim), 0.15) 75%), linear-gradient(to right, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0.2) 60%, rgba(var(--scrim), 0) 85%); }
.hero-copy { position: relative; padding-block: calc(var(--header-h) + 40px) clamp(48px, 9vh, 96px); }
.hero h1 { max-width: 21ch; }
.hero-sub { margin-top: 26px; max-width: 40ch; color: var(--white); font-size: clamp(16px, 0.95rem + 0.2vw, 18px); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-cta button.textlink { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hero-note { margin-top: 22px; color: var(--white); font-size: 16px; }
.hero-note b { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .hero-media .fill-media { animation: hero-settle 1.8s var(--ease-out) both; }
  @keyframes hero-settle { from { transform: scale(1.04); } to { transform: none; } }
}

/* ---------- cream statement screens ---------- */
.say { padding-block: clamp(96px, 16vh, 180px); min-height: 88vh; display: grid; align-items: center; }
.say-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gutter); align-items: center; }
.say-art { color: var(--olive-400); }
.say-art svg { width: 100%; height: auto; }
.say-art svg * { stroke-width: 1; }
.say-text .h2 { font-size: clamp(34px, 1.6rem + 2.6vw, 58px); line-height: 1; color: var(--olive-900); }
.say-text p.body { margin-top: 28px; max-width: 44ch; }
.say.one .say-art { grid-column: 1 / span 3; }
.say.one .say-text { grid-column: 5 / span 7; }
.say.two .say-text { grid-column: 2 / span 7; }
.say.two .say-art { grid-column: 10 / span 3; color: var(--olive-600); }

/* ---------- pinned chain: field, unit, lab, port ---------- */
.chain { position: relative; background: var(--olive-900); color: var(--white); }
.ch-item { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.ch-media { position: absolute; inset: 0; background: var(--olive-900); }
.ch-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 22%), linear-gradient(to top, rgba(var(--scrim), 0.85) 0%, rgba(var(--scrim), 0.5) 42%, rgba(var(--scrim), 0.1) 78%); }
.ch-text { position: relative; padding-block: calc(var(--header-h) + 48px) clamp(56px, 10vh, 110px); display: grid; gap: 28px; align-items: end; }
.ch-head { font-size: clamp(36px, 1.7rem + 2.8vw, 68px); line-height: 0.98; letter-spacing: -0.01em; max-width: 20ch; color: var(--white); }
.ch-line { margin-top: 22px; max-width: 42ch; color: var(--white); font-size: clamp(16px, 0.95rem + 0.2vw, 18px); }
.ch-inset { width: min(100%, 420px); }
.ch-inset img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }
.chain .fill .ch { animation: none; color: var(--white); }
.ch-steps, .ch-marks { display: none; }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .chain { height: 400vh; }
  .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  .ch-item { position: absolute; inset: 0; min-height: 0; }
  .ch-media { opacity: 0; transition: opacity 0.7s var(--ease-io); }
  .ch-item[data-active] .ch-media { opacity: 1; }
  .ch-text { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
  .ch-item[data-active] .ch-text { opacity: 1; transform: none; transition-delay: 0.12s; }
  .ch-item:not([data-active]) .ch-text { visibility: hidden; transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s; }
  .ch-inset { justify-self: end; width: min(100%, 380px); }
  .chain .fill .ch { color: rgba(244, 237, 230, 0.32); transition: color 0.3s var(--ease-out); }
  .chain .ch-item[data-active] .fill .ch { color: var(--white); transition-delay: calc(0.15s + var(--p) * 500ms); }
  .ch-marks { display: grid; grid-template-rows: repeat(4, 1fr); position: absolute; inset: 0; pointer-events: none; }
  .ch-steps {
    display: grid; gap: 10px; position: absolute; z-index: 2; inset-inline-end: var(--gutter); top: 50%; transform: translateY(-50%);
    list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--cream-70);
  }
  .ch-steps li { display: flex; align-items: center; gap: 12px; transition: color 0.3s var(--ease-out); }
  .ch-steps li::before { content: ""; width: 28px; height: 1px; background: currentColor; transform-origin: left center; transform: scaleX(0.35); transition: transform 0.3s var(--ease-out); }
  .ch-steps li[aria-current="step"] { color: var(--white); }
  .ch-steps li[aria-current="step"]::before { transform: none; }
}

/* ---------- products: horizontal row of large rounded cards ---------- */
.prods { padding-block: clamp(88px, 12vw, 150px) clamp(72px, 9vw, 120px); }
.prods-head { max-width: 18ch; }
.prod-row {
  margin-top: clamp(40px, 5vw, 64px); display: flex; gap: clamp(14px, 1.6vw, 24px); align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--olive-400) transparent;
}
.prod { flex: 0 0 auto; width: clamp(250px, 26vw, 380px); scroll-snap-align: start; text-decoration: none; color: inherit; }
.prod.wide { width: clamp(290px, 38vw, 560px); }
.prod figure { margin: 0; overflow: hidden; border-radius: var(--radius-card); background: var(--olive-600); }
.prod img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.prod.wide img { aspect-ratio: 5 / 4; }
.prod h3 { margin-top: 18px; font-size: clamp(22px, 1.1rem + 0.6vw, 28px); }
.prod p { margin-top: 6px; max-width: 34ch; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .prod:hover img { transform: scale(1.03); } }
.prods-foot { margin-top: 36px; }

/* ---------- stats: huge numbers, staggered ---------- */
.stats { padding-block: clamp(80px, 10vw, 140px); }
.stats-head { max-width: 18ch; }
.stats-more { margin-top: 16px; }
.stats-grid { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 6vw, 88px) var(--gutter); }
.stat .num { font-size: clamp(88px, 4rem + 9vw, 210px); line-height: 0.82; letter-spacing: -0.03em; color: var(--olive-900); }
.stat .what { margin-top: 16px; font-size: var(--h3); color: var(--olive-800); max-width: 24ch; }
.stat .src { margin-top: 8px; font-size: var(--small); color: var(--olive-600); }
.stat.a { grid-column: 1 / span 6; }
.stat.b { grid-column: 7 / span 6; margin-top: clamp(40px, 8vw, 140px); }
.stat.c { grid-column: 2 / span 6; }
.stat.d { grid-column: 8 / span 5; margin-top: clamp(24px, 5vw, 90px); }

/* ---------- certifications on olive ---------- */
.cert-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px var(--gutter); align-items: start; padding-block: clamp(40px, 5vw, 64px); }
.cert-grid .h2 { color: var(--cream); font-size: clamp(32px, 1.5rem + 2.4vw, 54px); line-height: 1; max-width: 18ch; }
.cert-list { margin: 0; display: grid; gap: 26px; }
.cert-list dt { font-size: 15px; color: var(--cream-70); }
.cert-list dd { margin: 4px 0 0; font-size: clamp(18px, 1rem + 0.4vw, 22px); line-height: 1.35; color: var(--cream); }
.cert-note { margin-top: 36px; max-width: 46ch; color: var(--cream); }
.cert-note + .cert-note { margin-top: 10px; color: var(--cream-70); }

/* ---------- packaging: photo bleeding off the right edge ---------- */
.pack { padding-block: clamp(88px, 11vw, 150px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.pack-text { padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.pack-text .h2 { max-width: 14ch; }
.pack-text p { margin-top: 26px; max-width: 40ch; }
.pack-text .btn { margin-top: 34px; }
.pack-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 40%; border-start-start-radius: var(--radius-card); border-end-start-radius: var(--radius-card); }

/* ---------- testimonial placeholder ---------- */
.voice { padding-block: clamp(96px, 12vw, 170px); }
.voice figure { margin: 0 0 0 clamp(0px, 16vw, 300px); }
.voice blockquote { margin: 0; font-size: clamp(24px, 1.1rem + 1.4vw, 38px); line-height: 1.18; letter-spacing: -0.01em; color: var(--olive-800); max-width: 32ch; }
.voice figcaption { margin-top: 32px; display: grid; gap: 2px; font-size: 15px; color: var(--olive-600); }
.voice .who { font-size: var(--h3); color: var(--olive-900); }
/* buyer logo wall */
.buyers { padding-block: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.buyers-head { max-width: 20ch; }
.logo-wall { list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.logo-wall li { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.logo-wall img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 1000px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- spec checker invitation ---------- */
.spec { padding-block: clamp(40px, 5vw, 80px) clamp(96px, 12vw, 160px); }
.spec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 6vw, 110px); align-items: center; }
.spec-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; border-radius: var(--radius-card); }
.spec-text .h2 { color: var(--olive-900); max-width: 16ch; }
.spec-text p { margin-top: 24px; max-width: 44ch; }
.spec-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- final call ---------- */
.final { position: relative; min-height: 92vh; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--olive-900); }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(var(--scrim), 0.55) 0%, rgba(var(--scrim), 0) 22%), linear-gradient(to top, rgba(var(--scrim), 0.88) 0%, rgba(var(--scrim), 0.55) 45%, rgba(var(--scrim), 0.15) 85%); }
.final-copy { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 48px) clamp(56px, 9vw, 110px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px var(--gutter); align-items: end; }
.final h2 { font-size: clamp(36px, 1.7rem + 3vw, 72px); line-height: 0.98; letter-spacing: -0.01em; max-width: 16ch; }
.final-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.desk strong { display: block; font-weight: 500; font-size: 20px; }
.desk p { margin-top: 8px; color: var(--white); max-width: 32ch; }
.desk a { color: var(--white); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .say-grid, .stats-grid { grid-template-columns: 1fr; }
  .say.one .say-art, .say.two .say-art { grid-column: auto; width: min(52%, 220px); }
  .say.one .say-text, .say.two .say-text { grid-column: auto; }
  .say.two .say-art { order: -1; justify-self: end; }
  .say { min-height: 0; }
  .stat.a, .stat.b, .stat.c, .stat.d { grid-column: auto; margin-top: 0; }
  .cert-grid, .spec-grid, .final-copy { grid-template-columns: 1fr; }
  .pack { grid-template-columns: 1fr; }
  .pack-text { padding-inline: var(--gutter); }
  .pack-photo { padding-inline-start: var(--gutter); }
  .voice figure { margin-inline-start: 0; }
  .spec-photo img { aspect-ratio: 3 / 2; }
}
.mob-media { display: none; }
@media (max-width: 899px), (prefers-reduced-motion: reduce) { .desk-media { display: none; } .mob-media { display: block; } }

/* ---------- kicker labels, why-choose list, home FAQ ---------- */
.kicker { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--olive-600); margin-bottom: 14px; }
[data-tone="dark"] .kicker { color: var(--cream-70); }
.say-text .body + .body { margin-top: 16px; }
.why { padding-block: clamp(40px, 6vw, 96px) clamp(88px, 11vw, 150px); }
.why-head { max-width: 18ch; }
.why-list { list-style: none; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gutter); counter-reset: why; }
.why-list li { padding-top: 22px; border-top: 1px solid var(--olive-900); counter-increment: why; }
.why-list li::before { content: "0" counter(why); display: block; font-size: 15px; color: var(--olive-600); margin-bottom: 18px; }
.why-list h3 { font-size: clamp(22px, 1.1rem + 0.6vw, 28px); line-height: 1.1; color: var(--olive-900); }
.why-list p { margin-top: 12px; max-width: 34ch; }
.prods-foot { display: flex; flex-wrap: wrap; gap: 12px; }
.home-faq { padding-block: clamp(80px, 10vw, 140px); }
.home-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px var(--gutter); align-items: start; }
.home-faq .h2 { max-width: 14ch; }
@media (max-width: 1000px) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .home-faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }
