/* ==========================================================================
   layout.css — cinematic-scrolltelling-skill
   Sections, containers and composition primitives.
   ========================================================================== */

.csk-section {
  position: relative;
  padding-block: var(--space-section);
}

.csk-section--full {
  min-height: 100vh;
  min-height: 100svh; /* small viewport units: correct height under mobile URL bars */
  padding-block: 0;
  display: grid;
  align-items: center;
}

.csk-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-inline);
}

.csk-container--narrow {
  max-width: 860px;
}

/* Two-column editorial split (media + copy) */
.csk-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

/* Full-bleed media that escapes the container */
.csk-full-bleed {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Vertical rhythm inside a text block */
.csk-stack > * + * {
  margin-top: 1.4rem;
}
.csk-stack--lg > * + * {
  margin-top: 2.4rem;
}

/* Media cover helper (video/img filling its positioned parent) */
.csk-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay for legibility over video/photo */
.csk-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 4, 5, 0.72) 0%, rgba(4, 4, 5, 0.18) 45%, rgba(4, 4, 5, 0.38) 100%);
}

/* Scroll hint (hero bottom) */
.csk-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.csk-scroll-hint::after {
  content: '';
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: csk-hint 2.2s var(--ease-in-out) infinite;
}
@keyframes csk-hint {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
