/* ============================================================================
   Western Foods × JFC × Koda Farms — Interactive Presentation
   Palette: navy #1C3E70, green #076746, cream #F7F2E8
   Type:    Poppins (headlines), Montserrat (body/kicker)
   ========================================================================== */

:root {
  --navy: #1C3E70;
  --navy-2: #16345E;
  --navy-3: #0F2848;
  --green: #076746;
  --green-2: #045738;
  --cream: #F7F2E8;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;

  --font-head: 'Poppins', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Montserrat', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-1: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 22px 60px rgba(15, 23, 42, 0.18);

  --ease-slide: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-slide: 550ms;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: var(--navy-3);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------------------------------------------------- a11y helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: 12px;
  background: var(--navy); color: #fff;
  padding: 8px 12px; border-radius: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  text-decoration: none; z-index: 200;
  transform: translateY(-140%);
  transition: transform 180ms var(--ease-slide);
}
.skip-link:focus { transform: translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ---------------------------------------------------- header (hidden per user request) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: none !important;
}
.site-header > * { pointer-events: auto; }

.brand-line {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  display: flex; align-items: center; gap: 10px;
}
.brand-line .dot { opacity: 0.5; }

.slide-nav ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 14px;
}
.slide-nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 6px 2px;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: color 150ms ease;
}
.slide-nav a:hover, .slide-nav a:focus-visible { color: #fff; outline: none; }
.slide-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms var(--ease-slide);
}
.slide-nav a.is-active { color: #fff; }
.slide-nav a.is-active::after { transform: scaleX(1); }

.slide-nav-counter {
  display: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* Hide the header brand line on dark cover slides — logos already handle it */

/* ---------------------------------------------------- deck / strip */
.deck {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100dvh;
  overflow: clip;
  overflow-anchor: none;
  background: var(--cream);
}

.strip {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform var(--dur-slide) var(--ease-slide);
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* ---------------------------------------------------- split layout */
.slide-split {
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--white);
  height: 100%;
}
.split-copy {
  position: relative;
  padding: clamp(20px, 3vh, 56px) 56px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(12px, 2vh, 24px);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.split-copy .kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 24px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.slide-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 4px 0;
  text-wrap: balance;
}

.bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.6vh, 20px); }
.bullets.tight { gap: clamp(8px, 1.2vh, 14px); }
.bullets li {
  position: relative;
  padding-left: 36px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-2);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.4;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  background: var(--navy);
  border-radius: 1px;
}

.tagline {
  margin: auto 0 0 -64px;
  align-self: stretch;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.35;
  padding: clamp(14px, 2vh, 20px) 26px;
  border-radius: 2px;
  max-width: none;
  text-wrap: balance;
  padding-left: 64px;
  padding-right: 32px;
  flex-shrink: 0;
}

/* ---------------------------------------------------- media columns */
.split-media { position: relative; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.stacked-2 {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: var(--white);
}
.stacked-2 .media-tile { overflow: hidden; background: var(--cream); }
.stacked-2 .media-tile img,
.stacked-2 .media-tile .tile-video { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }

/* Slow ping-pong zoom on the top image only. Anchored to left-center so the
   left edge stays flush with the video tile below it and the crop ratio is
   preserved (object-fit: cover + fixed object-position). */
@keyframes slide2-ken-burns {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.stacked-2 .media-tile:first-child img {
  transform-origin: left center;
  will-change: transform;
  animation: slide2-ken-burns 18s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .stacked-2 .media-tile:first-child img { animation: none; }
}

.collage-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  background: var(--white);
}
.collage-3 .media-tile { overflow: hidden; }
.collage-3 .media-tile.wide { grid-column: 1 / -1; }
.collage-3 .media-tile img,
.collage-3 .media-tile .tile-video { width: 100%; height: 100%; object-fit: cover; display: block; }

.quad-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  position: relative;
  background: var(--white);
}
.quad-4 .media-tile img,
.quad-4 .media-tile .tile-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wf-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 3px solid var(--navy);
  padding: 14px 22px;
  z-index: 3;
  box-shadow: var(--shadow-1);
  width: 300px;
  max-width: 48%;
}
.wf-badge img { width: 100%; height: auto; display: block; }

/* ---------------------------------------------------- map media */
.map-media {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px 100px 32px;
  position: relative;
}
.map-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.map-frame {
  position: relative;
  width: 100%; height: 100%;
  aspect-ratio: 1172 / 1076;
  max-width: 100%; max-height: 100%;
  margin: auto;
}
.map-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
/* SVG map overlay */
.map-frame .map-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 1;
}
.map-frame .wf-map-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* Outer .wf-pin group carries the geographic translate — do not put transforms here.
   Yellow pins nest an inner .wf-pin-pulse-inner group whose scale animation stays
   local to the pin and does not disturb the outer translate. */
.wf-pin-pulse-inner {
  transform-box: fill-box;
  transform-origin: center;
  animation: wf-pin-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(244,192,37,0.55));
}
.wf-pin:nth-of-type(1) .wf-pin-pulse-inner { animation-delay: 0s; }
.wf-pin:nth-of-type(2) .wf-pin-pulse-inner { animation-delay: 0.2s; }
.wf-pin:nth-of-type(3) .wf-pin-pulse-inner { animation-delay: 0.4s; }
.wf-pin:nth-of-type(4) .wf-pin-pulse-inner { animation-delay: 0.6s; }
@keyframes wf-pin-pulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .wf-pin-pulse-inner { animation: none; }
}
.map-legend {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-2);
}
.map-legend .pin {
  width: 14px; height: 20px;
  background: #F6B21F;
  clip-path: polygon(50% 0%, 100% 40%, 75% 100%, 25% 100%, 0 40%);
}
.map-legend .legend-pin {
  width: 22px; height: auto;
  transform-origin: 50% 90%;
  animation: legend-pin-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}
@keyframes legend-pin-pulse {
  0%, 100% { transform: scale(1);    }
  50%      { transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .map-legend .legend-pin { animation: none; }
}

/* ---------------------------------------------------- slide 6: 3D globe */
.slide-6 .legend-inline {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--ink-2);
  margin: 32px 0 0 0;
  padding: 0;
  letter-spacing: 0.01em;
}
.slide-6 .legend-pin-svg {
  flex-shrink: 0;
  animation: legend-pin-pulse 1.6s ease-in-out infinite;
  transform-origin: 12px 22px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}
.slide-6 .legend-text { display: inline-block; }

.globe-media {
  background: radial-gradient(circle at 30% 20%, #F3F7FB 0%, #E4EBF3 45%, #C7D3E1 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  padding: 24px 24px 20px;
  overflow: hidden;
}
.globe-media::before {
  /* subtle starfield */
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(15,34,71,0.15), transparent 60%),
    radial-gradient(1px 1px at 82% 78%, rgba(15,34,71,0.10), transparent 60%),
    radial-gradient(1px 1px at 50% 40%, rgba(15,34,71,0.08), transparent 60%),
    radial-gradient(2px 2px at 22% 82%, rgba(15,34,71,0.10), transparent 60%),
    radial-gradient(1px 1px at 70% 12%, rgba(15,34,71,0.12), transparent 60%);
  pointer-events: none;
}
.globe-wrap {
  position: relative;
  width: min(760px, 95%);
  max-width: min(760px, 95%);
  aspect-ratio: 1 / 1;
  cursor: grab;
  flex: 0 1 auto;
}
.globe-wrap:active { cursor: grabbing; }
.globe-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: drop-shadow(0 24px 48px rgba(15,34,71,0.28)) drop-shadow(0 8px 16px rgba(15,34,71,0.18));
  touch-action: none;
}
.globe-overlay {
  /* Allow labels to extend slightly outside the sphere for readability,
     but clip to the media panel (parent globe-media has overflow:hidden). */
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.globe-hint {
  margin: 14px 0 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15,34,71,0.55);
  opacity: 0.9;
}
.globe-fallback .globe-canvas,
.globe-fallback .globe-overlay { display: none; }

/* ---------------------------------------------------- koda scene */
/* Slide 7 media must let the products overlay spill left across the split boundary
   so it lands on the green tagline bar in the copy column. */
.slide-7 .split-media { overflow: visible; }
.koda-scene {
  background: #0F2247;
  position: relative;
  overflow: visible;
  padding: 0;
}
.koda-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  z-index: 1;
}
/* Product lineup: positioned relative to the whole slide so it spans across the
   split boundary. Bottom-aligned; left edge starts inside the copy column so the
   leftmost small bags sit on the copy/green-bar side, matching the PDF layout. */
.slide-7 .koda-products-overlay {
  position: absolute;
  z-index: 4;
  bottom: 0;
  /* Shifted right so the leftmost bags clear the green tagline text. */
  left: 46%;
  width: 58%;
  max-width: 860px;
  height: auto !important;
  object-fit: contain !important;
  pointer-events: none;
  background: transparent;
}

/* ---------------------------------------------------- brands scene (slide 9) */
.brands-scene {
  background: var(--white);
  padding: 40px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.brands-backdrop { position: absolute; inset: 0; overflow: hidden; opacity: 0.14; }
.brands-backdrop img { width: 100%; height: 100%; object-fit: cover; }

.brands-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 22px;
  width: min(96%, 720px);
  border-radius: 4px;
}
.brands-card.single {
  display: block;
  padding: 24px;
  width: min(92%, 780px);
}
.brands-card.single img { width: 100%; height: auto; display: block; }
.brand-cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 96px;
  padding: 8px;
}
.brand-cell img { max-width: 100%; max-height: 92px; object-fit: contain; }
.brand-cell .brand-triple { max-height: 60px; }
.brand-nishiki-wordmark { object-fit: contain !important; }

/* Slide 9 collage: dim sum top with brand-logos overlay + two-image bottom row */
.brands-collage {
  background: #0F2247;
  padding: 0;
  display: grid;
  grid-template-rows: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
}
.brands-collage-top {
  position: relative;
  overflow: hidden;
}
.brands-collage-top-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.brands-collage-logos-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(58%, 460px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.32), 0 2px 8px rgba(0,0,0,0.18);
  padding: 14px 18px;
  box-sizing: border-box;
  pointer-events: none;
}
.brands-collage-logos {
  width: 100%;
  height: auto;
  display: block;
}
.brands-collage-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.brands-collage-bl,
.brands-collage-br {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brands-collage-bl { object-position: center center; }
.brands-collage-br { object-position: center center; }

/* ---------------------------------------------------- cover / thank you slides */
.slide-cover {
  position: relative;
  background: var(--navy);
  color: #fff;
}
.cover-bg { position: absolute; inset: 0; overflow: hidden; }
.cover-bg img,
.cover-bg .cover-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-video {
  pointer-events: none;
  /* nudge so hands stay centered-right when top/bottom crop hits */
  object-position: 60% 50%;
}
.cover-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.05) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}
/* softer scrim for video slides so motion stays visible everywhere */
.cover-scrim-soft {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.20));
}

/* Layout: a blue logo box on the left, and a content group that starts
   inside the box's left edge and overflows past the right edge onto
   the background video (matches client mock). */
.cover-layout {
  position: absolute;
  inset: 0;
  display: block;
}
.cover-logo-box {
  position: absolute;
  left: max(4vw, 40px);
  top: 5vh;
  /* Blue box wraps ONLY the three logos: ~25px navy above the top logo
     and ~25px navy below the bottom logo. Height auto-fits the logo stack. */
  width: min(30%, 380px);
  min-width: 300px;
  background: var(--navy);
  color: #fff;
  padding: 25px 44px 25px 44px;
  box-shadow: var(--shadow-2);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  z-index: 2;
}
.cover-content {
  position: absolute;
  /* Anchor content flush to the box's left edge, then let the headline
     freely overflow past the box's right edge. */
  left: max(4vw, 40px);
  right: auto;
  top: calc(5vh + 320px + 50px + 24px); /* below the ~370px-tall box + a small gap */
  width: min(70%, 900px);
  color: #fff;
  z-index: 3;
  padding: 0 24px 0 44px; /* match the box's horizontal padding so text lines up with the logo edge */
}
.cover-logo-box img {
  display: block;
  /* Logos ship as white-on-black PNGs. `screen` blend against the solid navy
     background makes every black pixel drop away and every white pixel stay
     white — with clean antialiasing and no halo/stroke. */
  mix-blend-mode: screen;
}
.logo-jfc { width: 170px; }
.logo-wf { width: 220px; }
.logo-koda { width: 230px; }

/* .cover-content overflows past the blue box (see block above) */

.cover-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 18px 0;
  color: #fff;
}
.cover-title.thanks {
  font-size: clamp(56px, 6.5vw, 100px);
  line-height: 0.92;
  max-width: 10ch;
  margin: 0 0 22px 0;
}
.cover-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 22px);
  color: rgba(255,255,255,0.95);
  margin: 0 0 20px 0;
  line-height: 1.4;
  max-width: 46ch;
}
.cover-subtitle.close-note {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  max-width: 54ch;
}
.cover-byline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 17px);
  color: rgba(255,255,255,0.95);
  margin: 0;
}
.cover-byline strong { font-weight: 700; }

/* ---------------------------------------------------- deck controls (top center, site-nav style) */
.deck-controls {
  position: fixed;
  left: 50%;
  right: auto;
  top: 16px;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 60;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.deck-controls .ctrl {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  color: var(--ink);
  border-radius: 999px;
  transition: background 150ms ease, color 150ms ease;
}
.deck-controls .ctrl svg { width: 13px; height: 13px; }
.deck-controls .ctrl:hover { background: var(--cream); }
.deck-controls .ctrl:disabled { opacity: 0.35; cursor: not-allowed; }
.deck-controls .ctrl:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.progress { display: flex; align-items: center; gap: 5px; }
.progress .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(28, 62, 112, 0.22);
  transition: background 160ms ease, transform 160ms ease;
  cursor: pointer;
}
.progress .dot.is-active {
  background: var(--navy);
  transform: scale(1.35);
}
.progress .dot:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---------------------------------------------------- entrance animation on active slide */
/* Reveal text/media on the active slide only. Non-active slides keep opacity 0
   so nothing leaks into adjacent viewports; is-active flips it back on. */
.slide:not(.is-active) .kicker,
.slide:not(.is-active) .slide-title,
.slide:not(.is-active) .bullets,
.slide:not(.is-active) .tagline,
.slide:not(.is-active) .cover-logo-box,
.slide:not(.is-active) .cover-title,
.slide:not(.is-active) .cover-subtitle,
.slide:not(.is-active) .cover-byline {
  opacity: 0;
  transform: translateY(10px);
}
.slide .kicker,
.slide .slide-title,
.slide .bullets,
.slide .tagline,
.slide .cover-logo-box,
.slide .cover-title,
.slide .cover-subtitle,
.slide .cover-byline {
  transition: opacity 500ms ease, transform 500ms var(--ease-slide);
}
.slide.is-active .kicker { transition-delay: 60ms; }
.slide.is-active .slide-title { transition-delay: 120ms; }
.slide.is-active .cover-logo-box { transition-delay: 60ms; }
.slide.is-active .cover-title { transition-delay: 140ms; }
.slide.is-active .cover-subtitle { transition-delay: 220ms; }
.slide.is-active .cover-byline { transition-delay: 300ms; }
.slide.is-active .bullets { transition-delay: 220ms; }
.slide.is-active .tagline { transition-delay: 360ms; }

/* ---------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .split-copy { padding: clamp(20px, 3vh, 48px) 44px 0 48px; gap: clamp(12px, 2vh, 22px); }
  .slide-title { font-size: clamp(36px, 4.4vw, 58px); }
  .bullets { gap: clamp(10px, 1.6vh, 18px); }
  .bullets li { font-size: clamp(17px, 1.7vw, 21px); }
  .tagline { font-size: 18px; padding: clamp(12px, 2vh, 18px) 22px; margin-left: -48px; padding-left: 48px; }
}

@media (max-width: 960px) {
  .slide-split { grid-template-columns: 46% 54%; }
  .split-copy { padding: clamp(18px, 3vh, 40px) 32px 0 36px; gap: clamp(10px, 1.8vh, 18px); }
  .split-copy .kicker { font-size: 16px; }
  .slide-title { font-size: clamp(34px, 4.6vw, 48px); }
  .bullets { gap: clamp(10px, 1.6vh, 16px); }
  .bullets li { font-size: 17px; padding-left: 32px; }
  .bullets li::before { width: 14px; height: 14px; top: 9px; }
  .tagline { font-size: 17px; padding: clamp(12px, 2vh, 18px) 22px; margin-left: -36px; padding-left: 36px; }
  .cover-logo-box { width: min(32%, 340px); padding: 20px 32px 20px 32px; min-width: 260px; gap: 14px; }
  .cover-content { top: 44vh; padding-left: 20px; }
  .logo-jfc { width: 130px; }
  .logo-wf { width: 180px; }
  .logo-koda { width: 190px; }
  .brands-card { grid-template-columns: repeat(4, 1fr); padding: 20px 16px; gap: 12px; }
  .brand-cell { min-height: 70px; }
  .brand-cell img { max-height: 62px; }
  .site-header { padding: 12px 18px; }
  .brand-line { font-size: 11px; gap: 6px; }
}

@media (max-width: 720px) {
  .slide-split {
    grid-template-columns: 1fr;
    grid-template-rows: 55dvh 45dvh;
    grid-template-areas: "media" "copy";
  }
  .split-copy {
    grid-area: copy;
    padding: 20px 22px 0 22px;
    gap: clamp(8px, 1.4vh, 12px);
    justify-content: flex-start;
    overflow: hidden;
  }
  .split-media { grid-area: media; }
  .split-copy .kicker { font-size: 13px; letter-spacing: 0.18em; }
  .slide-title { font-size: clamp(28px, 7vw, 40px); }
  .bullets { gap: 12px; margin-top: 6px; }
  .bullets li { font-size: 15px; padding-left: 24px; line-height: 1.4; }
  .bullets li::before { width: 10px; height: 10px; top: 7px; }
  .tagline {
    padding: 14px 18px;
    font-size: 14px;
    max-width: 100%;
    margin: 12px 0 0 -22px;
    padding-left: 22px;
    padding-right: 22px;
    align-self: stretch;
  }
  .site-header { padding: 10px 14px; }
  .slide-nav ol { display: none; }
  .slide-nav-counter { display: block; }
  .brand-line { font-size: 10px; letter-spacing: 0.1em; }

  /* On mobile, stack: logo box at top, content below — both over the video */
  .cover-logo-box {
    position: absolute;
    left: 50%;
    top: 4vh;
    transform: translateX(-50%);
    width: 88%;
    min-width: 0;
    padding: 20px 20px 22px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: center;
  }
  .logo-jfc { width: 78px; }
  .logo-wf { width: 110px; }
  .logo-koda { width: 120px; }
  .cover-content {
    left: 5vw;
    right: 5vw;
    top: auto;
    bottom: 12vh;
    padding-left: 0;
    text-align: left;
  }
  .cover-title { font-size: clamp(30px, 8vw, 46px); }
  .cover-title.thanks { font-size: clamp(56px, 15vw, 84px); }
  .cover-subtitle { font-size: 15px; }
  .cover-byline { font-size: 13px; }

  .brands-card { grid-template-columns: repeat(2, 1fr); }
  .brand-cell { min-height: 70px; }

  .wf-badge { width: 160px; }
  .koda-badge { top: 12px; }
  .koda-badge img { width: 130px; }
  .koda-products { width: 78%; bottom: 12px; }

  .map-media { padding: 22px 14px 60px 14px; }
  .map-legend { bottom: 18px; font-size: 15px; }

  .deck-controls { padding: 5px 8px; top: 10px; bottom: auto; gap: 8px; }
  .deck-controls .ctrl { padding: 5px 9px; font-size: 11px; }
  .deck-controls .ctrl span { display: none; }
}

/* ---------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .strip { transition: none; }
  .slide .kicker,
  .slide .slide-title,
  .slide .bullets,
  .slide .tagline,
  .slide .cover-logo-box,
  .slide .cover-title,
  .slide .cover-subtitle,
  .slide .cover-byline,
  .slide:not(.is-active) .kicker,
  .slide:not(.is-active) .slide-title,
  .slide:not(.is-active) .bullets,
  .slide:not(.is-active) .tagline,
  .slide:not(.is-active) .cover-logo-box,
  .slide:not(.is-active) .cover-title,
  .slide:not(.is-active) .cover-subtitle,
  .slide:not(.is-active) .cover-byline {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .slide-nav a::after { transition: none; }
}

/* ---------------------------------------------------- focus & print polish */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

@media print {
  html, body { overflow: visible; height: auto; background: #fff; }
  .deck { position: static; height: auto; }
  .strip { display: block; transform: none !important; }
  .slide { width: 100%; height: auto; page-break-after: always; min-height: 90vh; }
  .site-header, .deck-controls { display: none !important; }
}

/* ============================================================================
   SLIDE 12: Verified Gluten-Free — Farm to Mill (VGF)
   Mirrors the PDF sales handout layout while keeping the deck's design system.
   ========================================================================== */
.slide-vgf {
  display: flex;
  flex-direction: column;
  background: var(--white);
  overflow: hidden;
}

/* --- Navy header band --- */
.vgf-header {
  background: var(--navy);
  color: #fff;
  padding: clamp(14px, 2.5vh, 40px) 40px clamp(8px, 1.2vh, 16px) 40px;
  flex-shrink: 0;
}
.vgf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.vgf-header-inner > * { min-width: 0; }
.vgf-logo {
  height: clamp(26px, 2.4vw, 36px);
  width: auto;
  display: block;
}
.vgf-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  opacity: 0.95;
}
.vgf-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 4px 0 6px 0;
  text-wrap: balance;
}
.vgf-accent { color: #6BC292; }
.vgf-lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(10px, 0.78vw, 12px);
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  margin: 0;
  max-width: 100%;
}

/* --- Body grid area --- */
.vgf-body {
  flex: 1 1 auto;
  padding: clamp(4px, 0.8vh, 12px) 40px clamp(4px, 1vh, 20px) 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3px, 0.6vh, 8px);
  min-height: 0;
  overflow: hidden;
}

/* --- Row layouts --- */
.vgf-row {
  display: grid;
  gap: clamp(6px, 1vh, 10px);
}
.vgf-row-1 { grid-template-columns: 1.15fr 1fr; }
.vgf-row-2 { grid-template-columns: 1.35fr 1fr; }
.vgf-row-3 { grid-template-columns: 1.35fr 1fr; }

.vgf-section {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vh, 6px);
}

/* --- Cards --- */
.vgf-card {
  background: var(--cream);
  padding: clamp(5px, 0.8vh, 10px) 14px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.4vh, 5px);
}
.vgf-card.vgf-story,
.vgf-card.vgf-onepartner {
  background: var(--navy);
  color: #fff;
}
.vgf-card.vgf-onepartner {
  background: var(--green);
}

/* --- Kicker (matches deck kicker style, condensed) --- */
.vgf-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(10px, 0.85vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
  position: relative;
  padding-left: 22px;
}
.vgf-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--green);
  transform: translateY(-50%);
}
.vgf-kicker-light {
  color: #fff;
}
.vgf-kicker-light::before { background: #6BC292; }

.vgf-subhead {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(12px, 1vw, 15px);
  color: var(--ink);
  margin: 0;
}

.vgf-body-copy {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(10.5px, 0.85vw, 13.5px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
}
.vgf-card.vgf-story .vgf-body-copy,
.vgf-card.vgf-onepartner .vgf-body-copy {
  color: rgba(255,255,255,0.94);
}
.vgf-body-small { font-size: clamp(10px, 0.75vw, 12px); }
.vgf-position {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.85vw, 13.5px);
  color: rgba(255,255,255,0.95);
  margin: 6px 0 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

/* --- Buyer Checklist --- */
.vgf-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vgf-check li {
  display: grid;
  grid-template-columns: 155px 1fr;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(10px, 0.8vw, 12.5px);
  color: var(--ink-2);
  line-height: 1.35;
}
.vgf-pill {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: clamp(9px, 0.72vw, 11px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 2px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

/* --- Ingredient families --- */
.vgf-families {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.vgf-family {
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vgf-num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(10px, 0.8vw, 12px);
  letter-spacing: 0.1em;
  color: var(--green);
}
.vgf-family h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 17px);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.vgf-family p {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.78vw, 12px);
  color: var(--ink-2);
  margin: 2px 0 0 0;
  line-height: 1.4;
}

/* --- Stats --- */
.vgf-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.vgf-stat {
  background: var(--cream);
  padding: 8px 12px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vgf-stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 28px);
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.01em;
}
.vgf-stat-label {
  font-family: var(--font-body);
  font-size: clamp(9px, 0.72vw, 11px);
  color: var(--ink-2);
  line-height: 1.3;
}

/* --- Chips (Use It For) --- */
.vgf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vgf-chip {
  display: inline-block;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(10px, 0.8vw, 12.5px);
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* --- Strategic Geography Hubs --- */
.vgf-hubs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(4px, 0.8vh, 10px);
  margin-top: clamp(2px, 0.4vh, 4px);
}
.vgf-hub {
  background: #fff;
  padding: clamp(5px, 0.8vh, 10px) 12px;
  border-radius: 3px;
  border: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.vgf-hub-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.vgf-hub h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(9px, 0.72vw, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 3px 0;
}
.vgf-hub p {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.78vw, 12px);
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}
.vgf-hub p strong {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(11px, 0.85vw, 13.5px);
}

.vgf-onepartner-copy {
  margin-top: 4px;
}

/* --- Tagline: match global tagline; slide-scoped tweaks --- */
.vgf-tagline {
  position: absolute;
  left: 0;
  bottom: 20px;
  max-width: 55%;
  padding: 10px 22px 10px 40px;
  font-size: clamp(12px, 0.9vw, 15px);
}

/* --- Responsive fallback for narrower windows --- */
/* Short-viewport fits: further trim gaps only, keep type sizes constant */
@media (max-height: 820px) {
  .vgf-body { padding-top: 4px; padding-bottom: 6px; gap: 4px; }
  .vgf-row { gap: 6px; }
  .vgf-card { padding: 5px 12px; gap: 3px; }
  .vgf-hub { padding: 4px 8px; gap: 8px; }
  .vgf-hub-badge { width: 22px; height: 22px; font-size: 10px; }
  .vgf-hub h4 { font-size: 10px; margin-bottom: 1px; }
  .vgf-hub p { font-size: 11px; line-height: 1.3; }
  .vgf-hub p strong { font-size: 12px; }
  .vgf-hubs { margin-top: 2px; gap: 6px; }
  .vgf-header { padding: 12px 40px 6px 40px; }
  .vgf-lede { display: none; }
  .vgf-stats { padding: 8px 0; }
  .vgf-body-copy { font-size: 12px; line-height: 1.35; }
  .vgf-body-small { font-size: 11px; }
  .vgf-subhead { font-size: 13px; }
}

@media (max-width: 1200px) {
  .vgf-row-1, .vgf-row-2, .vgf-row-3 { grid-template-columns: 1fr; }
  .vgf-families { grid-template-columns: repeat(2, 1fr); }
  .vgf-stats { grid-template-columns: repeat(3, 1fr); }
}
