/* ==========================================================================
   Homepage journey — layout for the cinematic scenes.
   Without JS (or with reduced motion) every scene shows its final state,
   stacked, with complete copy. cinema.js only adds pinning and scrubbing.
   ========================================================================== */

.cine { position: relative; }

/* ---------- Scene shell -------------------------------------------------- */
.cine-scene { position: relative; background: var(--kg-cream-50); }
.cine-pin { position: relative; overflow: hidden; }
.cine-stage { position: relative; overflow: hidden; background: var(--kg-cream-200); }
.cine-svg, .cine-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.cine-webgl { position: absolute; inset: 0; z-index: 1; display: none; }
.cine-webgl canvas { display: block; width: 100% !important; height: 100% !important; }
.cine-scene.has-webgl .cine-webgl { display: block; }
.cine-scene.has-webgl .s-roots, .cine-scene.has-webgl .s-shoot, .cine-scene.has-webgl .s-clove-wrap { visibility: hidden; }

.cine-copy { position: relative; z-index: 2; }
.cine-copy__inner { max-width: 560px; }

.cine-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kg-gold-700);
}
.cine-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.kgc .cine-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-4);
  color: var(--kg-olive-900);
  text-wrap: balance;
}
.cine-subtitle { font-size: 1.2rem; font-weight: 600; }
.cine-body { font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem); line-height: 1.6; color: var(--kg-ink-soft); max-width: 46ch; }
.cine-fact { font-size: 0.95rem; color: var(--kg-ink-soft); max-width: 48ch; margin-bottom: var(--sp-3); }
.cine-fact strong { color: var(--kg-olive-800); }
.cine-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); }
.cine-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--kg-olive-700); cursor: pointer; text-align: left; }
.cine-status { margin-bottom: var(--sp-3); }
.kgc .cine-subhead { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-2); color: inherit; }
.cine-split { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .cine-split { grid-template-columns: 1fr 1fr; } }

/* Process steps inside scenes */
.cine-steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: var(--sp-4) 0; padding: 0; }
.cine-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--kg-line-strong);
  background: rgba(255, 253, 248, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--kg-olive-800);
  transition: background var(--motion-standard) var(--ease-out), color var(--motion-standard) var(--ease-out), border-color var(--motion-standard);
}
.cine-steps li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kg-gold-500);
}
.cine-steps li.is-active { background: var(--kg-olive-800); border-color: var(--kg-olive-800); color: #fff; }
.cine-steps li.is-done { border-color: var(--kg-olive-300); }

/* Dark tone */
.cine-tone--dark { background: #15110c; }
.cine-tone--dark .cine-title { color: var(--kg-cream-50); }
.cine-tone--dark .cine-body,
.cine-tone--dark .cine-fact { color: rgba(245, 238, 221, 0.82); }
.cine-tone--dark .cine-fact strong { color: #fff; }
.cine-tone--dark .cine-eyebrow { color: var(--kg-gold-300); }
.cine-tone--dark .cine-steps li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: var(--kg-cream-100); }
.cine-tone--dark .cine-steps li.is-active { background: var(--kg-gold-500); border-color: var(--kg-gold-500); color: var(--kg-olive-900); }
.cine-tone--dark .k-link, .cine-tone--dark .cine-linkbtn { color: var(--kg-gold-300); }

/* ---------- Mobile / default: stage on top, copy below ------------------ */
@media (max-width: 1023.98px) {
  .cine-stage { aspect-ratio: 4 / 3; max-height: 72svh; width: 100%; }
  .cine-scene--hills .cine-stage { aspect-ratio: auto; max-height: none; height: 100svh; min-height: 620px; }
  .cine-copy { padding: var(--sp-6) 0 var(--sp-8); }
  .cine-tone--light .cine-copy { background: var(--kg-cream-50); }
  .cine-tone--dark .cine-copy { background: #15110c; }
}

/* ---------- Desktop: full-viewport stage with copy over a scrim -------- */
@media (min-width: 1024px) {
  .cine-pin { height: 100vh; height: 100svh; min-height: 640px; }
  .cine-stage { position: absolute; inset: 0; }
  .cine-copy { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
  .cine-copy > .k-container { width: 100%; }
  .cine-copy__inner { pointer-events: auto; padding-top: calc(var(--header-h) * 0.6); }
  .cine-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
  }
  /* Editorial split: the copy owns a calm column, the stage starts beside it
     and is feathered into the column so the frame still reads as one image. */
  .cine-scene {
    --cine-copy-w: min(480px, 30vw);
    --cine-col: calc(max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2) + var(--gutter) + var(--cine-copy-w) + 2vw);
    --cine-feather: 10vw;
  }
  .cine-scene:not(.cine-scene--hills).cine-align--start .cine-stage { left: var(--cine-col); }
  .cine-scene:not(.cine-scene--hills).cine-align--end .cine-stage { right: var(--cine-col); }
  .cine-tone--light { background: var(--kg-cream-50); }
  .cine-tone--light.cine-align--start .cine-copy::before { background: linear-gradient(90deg, var(--kg-cream-50) var(--cine-col), rgba(251, 247, 238, 0) calc(var(--cine-col) + var(--cine-feather))); }
  .cine-tone--dark.cine-align--start .cine-copy::before { background: linear-gradient(90deg, #15110c var(--cine-col), rgba(21, 17, 12, 0) calc(var(--cine-col) + var(--cine-feather))); }
  .cine-tone--light.cine-align--end .cine-copy::before { background: linear-gradient(270deg, var(--kg-cream-50) var(--cine-col), rgba(251, 247, 238, 0) calc(var(--cine-col) + var(--cine-feather))); }
  .cine-tone--dark.cine-align--end .cine-copy::before { background: linear-gradient(270deg, #15110c var(--cine-col), rgba(21, 17, 12, 0) calc(var(--cine-col) + var(--cine-feather))); }
  .cine-copy__inner { max-width: var(--cine-copy-w); }
  .kgc .cine-title { font-size: clamp(2.2rem, 1.1rem + 2.6vw, 4.2rem); }
  .cine-align--end .cine-copy__inner { margin-left: auto; }
  .cine-scene--bulb .cine-copy { align-items: flex-start; padding-top: 12vh; }
}

/* ---------- Hero --------------------------------------------------------- */
.cine-scene--hills { background: #1d2a33; color: #fff; }
.cine-scene--hills .cine-copy { display: flex; align-items: flex-end; }
@media (max-width: 1023.98px) {
  .cine-scene--hills .cine-pin { min-height: 100svh; }
  .cine-scene--hills .cine-stage { position: absolute; inset: 0; height: auto; }
  .cine-scene--hills .cine-copy { position: relative; min-height: 100svh; padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-9); background: linear-gradient(180deg, rgba(14, 22, 18, 0.15) 0%, rgba(14, 22, 18, 0.55) 55%, rgba(14, 22, 18, 0.88) 100%); }
}
@media (min-width: 1024px) {
  .cine-scene--hills .cine-copy { align-items: center; }
  .cine-scene--hills .cine-copy::before { background: linear-gradient(90deg, rgba(12, 20, 16, 0.72) 0%, rgba(12, 20, 16, 0.35) 45%, rgba(12, 20, 16, 0) 70%); }
}
.cine-hero { max-width: 720px; }
.kgc .cine-hero__h1 {
  font-family: var(--font-ui);
  font-size: clamp(0.8rem, 0.74rem + 0.25vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--kg-gold-300);
  margin-bottom: var(--sp-5);
  max-width: 44ch;
}
.cine-hero__display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.cine-scene--hills .cine-body { color: rgba(255, 255, 255, 0.86); max-width: 50ch; }
.cine-scene--hills .k-actions { margin-top: var(--sp-6); }
.cine-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: var(--sp-5) 0 0; font-size: 0.86rem; color: rgba(255, 255, 255, 0.78); }
.cine-hero__meta .kgc-icon { color: var(--kg-gold-300); }
.cine-hero__meta a { color: #fff !important; font-weight: 700; }
@media (max-width: 639.98px) {
  .cine-scene--hills .k-actions .k-btn { width: 100%; }
}

.cine-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
}
.cine-scrollcue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cine-cue 1.8s var(--ease-in-out) infinite;
}
@keyframes cine-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1023.98px) { .cine-scrollcue { display: none; } }

/* Gentle idle motion for mist and plants (CSS only, cheap) */
@keyframes cine-drift { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
@keyframes cine-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.s-mist--back { animation: cine-drift 14s var(--ease-in-out) infinite alternate; }
.s-mist--front { animation: cine-drift 10s var(--ease-in-out) infinite alternate-reverse; }
.s-hero-plant, .s-plant, .s-canopy { transform-box: fill-box; transform-origin: 50% 100%; animation: cine-sway 5s var(--ease-in-out) infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .s-mist--back, .s-mist--front, .s-hero-plant, .s-plant, .s-canopy, .cine-scrollcue span { animation: none; }
}

/* ---------- Chapter rail + progress ------------------------------------- */
.cine-rail {
  position: fixed;
  right: clamp(12px, 1.6vw, 28px);
  top: 50%;
  z-index: 50;
  transform: translateY(-50%);
  display: none;
  opacity: 0;
  transition: opacity var(--motion-standard) var(--ease-out);
  pointer-events: none;
}
.cine-rail.is-visible { opacity: 1; pointer-events: auto; }
@media (min-width: 1100px) { .cine-rail { display: block; } }
.cine-rail ol { list-style: none; margin: 0; padding: 10px 8px; display: grid; gap: 4px; border-radius: var(--r-pill); background: rgba(16, 38, 26, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cine-rail a { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; text-decoration: none !important; }
.cine-rail__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: transform var(--motion-fast) var(--ease-out), background var(--motion-fast); }
.cine-rail a:hover .cine-rail__dot, .cine-rail a:focus-visible .cine-rail__dot { background: #fff; transform: scale(1.3); }
.cine-rail a.is-active .cine-rail__dot { background: var(--kg-gold-300); transform: scale(1.5); }
.cine-rail__label {
  position: absolute;
  right: 42px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--kg-olive-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity var(--motion-fast), transform var(--motion-fast) var(--ease-out);
  pointer-events: none;
}
.cine-rail a:hover .cine-rail__label, .cine-rail a:focus-visible .cine-rail__label, .cine-rail a.is-active .cine-rail__label { opacity: 1; transform: none; }

.cine-progress { position: fixed; left: 0; right: 0; top: 0; z-index: calc(var(--z-header) + 1); height: 3px; pointer-events: none; opacity: 0; transition: opacity var(--motion-standard); }
.cine-progress.is-visible { opacity: 1; }
.cine-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--kg-gold-500), var(--kg-gold-300)); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Family + brand lockup --------------------------------------- */
.cine-family { position: relative; }
.kgc .cine-family__title { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.cine-family .cine-eyebrow { justify-content: center; }
.cine-family__grid { margin-top: var(--sp-6); }
.cine-family__shop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3) var(--sp-4); margin-top: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem); text-align: center; }
.cine-family__shop p { margin: 0; font-weight: 600; color: var(--kg-olive-800); }
.cine-brands { display: grid; gap: var(--sp-4); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
@media (min-width: 900px) { .cine-brands { grid-template-columns: 1fr 1fr; } }
.cine-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  text-decoration: none !important;
  transition: transform var(--motion-standard) var(--ease-out), box-shadow var(--motion-standard);
}
.cine-brand:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.cine-brand img { width: 96px; height: 96px; border-radius: 50%; background: #fff; }
.cine-brand strong { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 600; line-height: 1.05; margin-bottom: 6px; }
.cine-brand span:not(.k-eyebrow):not(.cine-brand__mark) { display: block; font-size: 0.95rem; }
.cine-brand .k-eyebrow { margin-bottom: 6px; }
.cine-brand > .kgc-icon { width: 28px; height: 28px; }
.cine-brand--kgc { background: var(--kg-cream-100); color: var(--kg-ink) !important; border: 1px solid var(--kg-line); }
.cine-brand--kgc strong { color: var(--kg-olive-800); }
.cine-brand--kaliss { background: var(--kn-green-deep); color: var(--kn-cream) !important; }
.cine-brand--kaliss strong { color: var(--kn-cream); }
.cine-brand--kaliss .k-eyebrow { color: var(--kn-gold); }
.cine-brand__mark { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: rgba(246, 240, 226, 0.08); }
@media (max-width: 519.98px) {
  .cine-brand { grid-template-columns: 1fr; text-align: left; }
  .cine-brand > .kgc-icon { display: none; }
}

/* ---------- Conversion --------------------------------------------------- */
.cine-convert { position: relative; overflow: hidden; }
.cine-convert::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(184, 137, 58, 0.25), transparent); pointer-events: none; }
.kgc .cine-convert__title { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: #fff; }
.cine-convert .k-eyebrow { color: var(--kg-gold-300); }
.cine-convert__list { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); color: rgba(245, 238, 221, 0.9); }
.cine-convert__list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.cine-convert__list .kgc-icon { color: var(--kg-gold-300); margin-top: 3px; }
.cine-convert__call { margin-top: var(--sp-5); color: rgba(245, 238, 221, 0.8); }
.cine-convert__call a { color: #fff !important; font-weight: 700; }
.cine-convert__form { color: var(--kg-ink); }
.kgc .cine-convert__form h3 { color: var(--kg-olive-800); margin-bottom: var(--sp-1); }

.cine-guide { display: flex; flex-direction: column; color: var(--kg-ink) !important; text-decoration: none !important; }
.cine-guide h3 { font-size: var(--fs-h4); }
.cine-guide p { color: var(--kg-ink-soft); font-size: 0.95rem; }
.cine-guide .k-link { margin-top: auto; }

/* ---------- SVG element defaults (final state) -------------------------- */
.cine-svg * { transform-box: fill-box; }
.cine-svg .s-sun, .cine-svg .s-layer, .cine-svg .s-world, .cine-svg .s-strata,
.cine-svg .s-rows, .cine-svg .s-ground, .cine-svg .s-truck, .cine-svg .s-traveler,
.cine-svg .s-pclove, .cine-svg .s-agebulb, .cine-svg .s-half { transform-box: view-box; }

/* Header overlay helps over the dark hero only */
.is-home .k-header--overlay:not(.is-scrolled) .k-brand__logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }

/* Product family: swipeable row on phones instead of a very long stack */
@media (max-width: 767.98px) {
  .cine-family__grid {
    display: flex;
    gap: var(--sp-3);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--sp-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .cine-family__grid > .k-product { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Real photo scenes: warm grade + gentle vignette so photos sit with the art */
.cine-scene.has-media .cine-media { filter: saturate(1.06) contrast(1.03); }
.cine-scene.has-media .cine-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(12, 10, 7, 0.28)); }

.cine-stage > picture { display: block; width: 100%; height: 100%; }
.kgc .cine-stage .cine-media { width: 100%; height: 100%; object-fit: cover; }
