/* ============================================================
   HEALTHY ORGANIC SHOW 2027 — Campaign layer
   "ALL NATURAL · HEALTHY · ORGANIC"
   Cinematic hero carousel, everyday-demand rail, motion system.
   Loads AFTER site.css. Additive only — no existing rules changed.
   ============================================================ */

:root {
  --cine-black: #07100b;
  --cine-fade: 1100ms;
  --cine-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   1 · CINEMATIC HERO CAROUSEL
   ============================================================ */

.hero-cine {
  min-height: clamp(620px, 94vh, 940px);
  background: var(--cine-black);
  align-items: stretch;
}

.hero-cine .hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* padding-top only — the shorthand would wipe .container's side gutters */
  padding-top: 100px;
  padding-bottom: 0;
}
.hero-cine .lead { margin-top: 15px; font-size: clamp(1rem, 1.35vw, 1.13rem); max-width: 62ch; }
.hero-cine .hero-actions { margin-top: 26px; }
.hero-cine .hero-stats { margin-top: 28px; }

/* ---- stage ---- */
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--cine-black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--cine-fade) var(--cine-ease);
  will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: 50% 55%;
}

/* Ken Burns — only runs on the visible slide */
.hero-slide.is-active img {
  animation: kenburns 11s linear forwards;
}
.hero-slide:nth-child(even).is-active img { transform-origin: 62% 45%; }
.hero-slide:nth-child(3n).is-active img   { transform-origin: 38% 60%; }

@keyframes kenburns {
  from { transform: scale(1.06); }
  to   { transform: scale(1.17); }
}

/* ---- filmic grade: gradient + vignette + grain ---- */
.hero-cine::after {
  background:
    linear-gradient(180deg, rgba(7, 16, 11, 0.62) 0%, rgba(7, 16, 11, 0.18) 34%, rgba(7, 16, 11, 0.72) 74%, rgba(7, 16, 11, 0.96) 100%),
    linear-gradient(96deg, rgba(7, 16, 11, 0.78) 0%, rgba(7, 16, 11, 0.28) 46%, rgba(7, 16, 11, 0) 72%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 92% at 50% 42%, transparent 40%, rgba(7, 16, 11, 0.62) 100%);
}

.hero-grain {
  position: absolute;
  inset: -120px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainshift 700ms steps(4) infinite;
}
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-14px, 9px); }
  50%  { transform: translate(11px, -12px); }
  75%  { transform: translate(-8px, -6px); }
  100% { transform: translate(0, 0); }
}

/* ---- letterbox open (plays once on load) ---- */
.hero-bars { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 22vh;
  background: var(--cine-black);
  transform: translateY(0);
  transition: transform 1200ms var(--cine-ease);
}
.hero-bars span:first-child { top: 0; }
.hero-bars span:last-child  { bottom: 0; }
.hero-cine.is-open .hero-bars span:first-child { transform: translateY(-100%); }
.hero-cine.is-open .hero-bars span:last-child  { transform: translateY(100%); }

/* ---- kinetic manifesto line ---- */
.manifesto {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.3vw, 0.86rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.mf-word {
  position: relative;
  color: rgba(255, 255, 255, 0.42);
  transition: color 600ms var(--cine-ease);
  padding-bottom: 7px;
}
.mf-word::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--leaf);
  transition: width 600ms var(--cine-ease);
}
.mf-word.is-lit { color: #fff; }
.mf-word.is-lit::after { width: 100%; }
.mf-word:nth-child(2).is-lit::after { background: var(--honey); }
.mf-word:nth-child(3).is-lit::after { background: var(--leaf); }

/* ---- kinetic headline ---- */
.kinetic { display: block; overflow: hidden; }
.kinetic > span {
  display: block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 900ms var(--cine-ease), opacity 900ms var(--cine-ease);
}
.is-open .kinetic > span { transform: none; opacity: 1; }
.is-open .kinetic:nth-of-type(2) > span { transition-delay: 110ms; }

.hero-cine h1 {
  max-width: 22ch;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 1.04;
  margin-top: 4px;
}
.hero-cine h1 em { font-style: normal; color: var(--leaf); }


/* ---- scrubber: caption + ticks ---- */
.hero-hud {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-caption { min-width: 0; }
.hero-caption .hc-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 3px;
}
.hero-caption .hc-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  line-height: 1.2;
}
.hero-caption .hc-cat {
  display: block;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
}
.hero-caption > * { transition: opacity 380ms var(--cine-ease), transform 380ms var(--cine-ease); }
.hero-caption.is-swapping > * { opacity: 0; transform: translateY(8px); }

.hero-nav { display: flex; align-items: center; gap: 14px; }
.hn-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  flex: none;
}
.hn-btn:hover { background: var(--leaf); border-color: var(--leaf); transform: translateY(-2px); }
.hn-btn svg { width: 15px; height: 15px; }

.hero-ticks { display: flex; gap: 8px; }
.hero-tick {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-tick::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--leaf);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-tick.is-on::after { animation: tickfill var(--tick-dur, 6800ms) linear forwards; }
.hero-tick.is-done::after { transform: scaleX(1); background: rgba(255, 255, 255, 0.5); }
.is-paused .hero-tick.is-on::after { animation-play-state: paused; }
@keyframes tickfill { to { transform: scaleX(1); } }

/* ============================================================
   2 · MANIFESTO MARQUEE
   ============================================================ */

.manifesto-band {
  background: var(--pine-deep);
  color: #fff;
  padding: 30px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.manifesto-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  animation: mf-scroll 34s linear infinite;
  will-change: transform;
}
.manifesto-track b {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.manifesto-track b.o-green { color: var(--leaf); }
.manifesto-track b.o-honey { color: var(--honey); }
.manifesto-track b.o-ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.42);
}
.manifesto-track .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--honey);
  flex: none;
}
@keyframes mf-scroll { to { transform: translateX(-50%); } }

/* ============================================================
   3 · EVERYDAY DEMAND RAIL
   ============================================================ */

.demand { background: var(--cine-black); color: #fff; overflow: hidden; }
.demand .lead { color: rgba(255, 255, 255, 0.74); }
.demand h2 { color: #fff; }

.demand-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}
.demand-head > div:first-child { max-width: 660px; }
.demand-head .lead { margin-top: 16px; }

.rail-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }

.rail-wrap { position: relative; }
.rail-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 22px;
  right: -28px;
  width: 90px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cine-black));
}

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 22px;
  scrollbar-width: none;
  cursor: grab;
  /* bleed to the right edge of the viewport */
  margin-right: calc((100vw - min(100vw, var(--container))) / -2 - 28px);
  padding-right: calc((100vw - min(100vw, var(--container))) / 2 + 28px);
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.rail.is-dragging * { pointer-events: none; }

.scene {
  position: relative;
  flex: none;
  height: 460px;
  width: 760px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
  background: #10190f;
  display: flex;
  align-items: flex-end;
}
.scene.is-portrait { width: 300px; }
.scene.is-square { width: 372px; }

.scene img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.1s var(--cine-ease), filter 0.6s var(--cine-ease);
  filter: saturate(0.94);
}
.scene:hover img, .scene:focus-within img { transform: scale(1.09); filter: saturate(1.05); }
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 11, 0.1) 22%, rgba(7, 16, 11, 0.62) 62%, rgba(7, 16, 11, 0.95) 100%);
}

.scene-body { padding: 26px 24px; width: 100%; }
.scene-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 9px;
}
.scene-time::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--honey);
}
.scene h3 { color: #fff; font-size: 1.32rem; margin-bottom: 8px; }
.scene p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 46ch;
  margin-bottom: 14px;
}
.scene-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.scene-tags span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.scene.is-portrait p, .scene.is-square p { display: none; }
.scene.is-portrait h3, .scene.is-square h3 { font-size: 1.12rem; }

.rail-progress {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 26px;
  overflow: hidden;
  max-width: 340px;
}
.rail-progress i {
  display: block;
  height: 100%;
  width: 18%;
  background: var(--leaf);
  border-radius: 2px;
  transform-origin: left;
  transition: width 0.15s linear, transform 0.15s linear;
}

.demand-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.demand-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* dark-section variants for shared components */
.demand .plate.ghost { border-color: rgba(255, 255, 255, 0.2); }
.demand .hn-btn { border-color: rgba(255, 255, 255, 0.3); }

/* ============================================================
   4 · PROOF STRIP (moment → category)
   ============================================================ */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 54px;
}
.proof-strip div { background: #0b140e; padding: 26px 24px; }
.proof-strip b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--leaf);
  line-height: 1.05;
  margin-bottom: 6px;
}
.proof-strip span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.68); }

/* ============================================================
   4a · PROOF BAND — the sell, concentrated under the mood
   The hero and the rail carry no pitch; everything commercial
   lands here in one light band straight after the dark scenes.
   ============================================================ */

/* quiet hero CTA — the hero must not sell */
.btn-ghost-line {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn-ghost-line:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.proof-band { background: var(--mint-soft); }

/* .stats-band is authored for dark sections — re-colour it for the light band */
.proof-stats {
  margin-top: 8px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.proof-stats b { color: var(--pine); }
.proof-stats span { color: var(--muted); }

.proof-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 46px;
}
.proof-split h3 { font-size: 1.12rem; }
.proof-split .chip { background: var(--white); }

.proof-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .proof-split { grid-template-columns: 1fr; }
  .proof-stats { text-align: left; }
}

/* ============================================================
   4b · INTERIOR PAGE HEROES ON IMAGERY
   The campaign shots are dark, so anything inherited from the
   light theme has to be re-contrasted here.
   ============================================================ */

.page-hero.with-image .breadcrumb { color: rgba(255, 255, 255, 0.72); }
.page-hero.with-image .breadcrumb a { color: rgba(255, 255, 255, 0.72); }
.page-hero.with-image .breadcrumb a:hover { color: #fff; }
.page-hero.with-image .breadcrumb span { color: var(--leaf); }
/* inline-styled links in interior leads are authored for the light theme */
.page-hero.with-image .lead a { color: var(--leaf) !important; }
.page-hero.with-image .lead a:hover { color: #fff !important; }
.page-hero.with-image { background: var(--cine-black); }
.page-hero.with-image::after {
  background: linear-gradient(180deg, rgba(7, 16, 11, 0.58) 0%, rgba(7, 16, 11, 0.34) 42%, rgba(7, 16, 11, 0.92) 100%);
}
.page-hero.with-image .hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   4c · LEGAL / LONG-FORM PROSE
   ============================================================ */

/* .legal-copy also carries .container, so leave its width alone and cap the
   measure on the children — otherwise max-width + margin:auto centres the
   prose away from the h1 above it. */
.legal-copy > * { max-width: 78ch; }
.legal-copy h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal-copy h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-copy h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.legal-copy p { margin-bottom: 15px; color: var(--muted); }
.legal-copy ul, .legal-copy ol { margin: 0 0 18px; padding-left: 22px; }
.legal-copy ul { list-style: none; padding-left: 0; }
.legal-copy ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: var(--muted);
}
.legal-copy ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--leaf);
  font-weight: 600;
}
.legal-copy ol li { margin-bottom: 9px; color: var(--muted); }
.legal-copy strong { color: var(--ink); font-weight: 600; }
.legal-copy a { color: var(--leaf-dark); font-weight: 600; text-decoration: underline; }
.legal-copy a:hover { color: var(--pine); }
.legal-copy table { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.legal-copy th, .legal-copy td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.legal-copy th { background: var(--mint-soft); color: var(--pine); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============================================================
   5 · PARALLAX MEDIA (interior sections)
   ============================================================ */

/* Clip on the <picture>, not the wrapper — the wrapper still has to let the
   float-chip hang outside its box. */
.parallax picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.parallax picture img { will-change: transform; box-shadow: none; }

/* ============================================================
   6 · RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .demand-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .scene { height: 420px; width: 620px; }
  .scene.is-portrait { width: 268px; }
  .scene.is-square { width: 336px; }
}

@media (max-width: 860px) {
  .hero-cine { min-height: 86vh; }
  .hero-cine .hero-inner { padding-top: 92px; padding-bottom: 8px; }
  .hero-cine .hero-stats { margin-top: 26px; }
  .hero-hud { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-nav { width: 100%; justify-content: space-between; }
  .hero-ticks { flex: 1; justify-content: center; }
  .hero-tick { width: 100%; max-width: 46px; }
  .rail { margin-right: -20px; padding-right: 20px; }
  .rail-wrap::after { display: none; }
  .scene { height: 380px; width: min(84vw, 520px); }
  .scene.is-portrait { width: min(58vw, 260px); }
  .scene.is-square { width: min(66vw, 300px); }
}

@media (max-width: 560px) {
  .manifesto { gap: 0 12px; letter-spacing: 0.18em; }
  .hero-cine h1 { max-width: 100%; }
  .scene { height: 340px; }
  .scene-body { padding: 20px 18px; }
  .scene p { display: none; }
}

/* ============================================================
   7 · MOTION SAFETY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; transform: scale(1.02); }
  .hero-grain { animation: none; opacity: 0.1; }
  .manifesto-track { animation: none; }
  .hero-bars span { transition: none; }
  .hero-tick.is-on::after { animation: none; transform: scaleX(1); }
  .kinetic > span { transform: none; opacity: 1; transition: none; }
  .scene img, .hero-slide { transition: none; }
  .rail { scroll-behavior: auto; }
}

/* ---- chips inside campaign dark bands ----------------------------------
   site.css scopes its dark-chip override to `.section.dark`, but the
   campaign bands use `.section.demand > .container.on-dark`, so chips were
   rendering white-on-white. Re-colour them for any on-dark container. */
.on-dark .chip { background: rgba(255, 255, 255, 0.07); border-color: var(--line-light); color: var(--white); }
.on-dark .chip:hover { background: rgba(57, 181, 74, 0.2); border-color: var(--leaf); }
