/* ═══════════════════════════════════════════════════
   CINEMATIC — full-bleed, Ken Burns, clip-path wipe
   ═══════════════════════════════════════════════════ */

.variant-cinematic { background: #050505; }

.nav--cinematic {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent 80%);
  z-index: 30;
}

.cine {
  position: relative;
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-sans);
}

/* ─── Stage / image stack ─── */
.cine-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.cine-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: opacity 0.5s var(--ease);
}
.cine-frame.is-active { opacity: 1; pointer-events: auto; }

.cine-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.05) contrast(1.05);
  transform: scale(1.04);
  animation: kenburns 22s ease-in-out infinite alternate;
}

.cine-frame.is-wiping {
  animation: wipeIn 0.9s cubic-bezier(0.7, 0, 0.2, 1) both;
}
@keyframes wipeIn {
  0%   { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes kenburns {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.4%, -1.6%); }
}

/* Vignette breathes */
.cine-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 22%, transparent 60%, rgba(0,0,0,0.85) 100%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 1; }
}

/* Film grain (CSS only) */
.cine-grain {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  animation: grainShift 0.8s steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1%); }
  66%  { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* Cursor highlight */
.cine-cursor {
  --mx: 50%;
  --my: 50%;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,0.10), transparent 65%);
  mix-blend-mode: screen;
  transition: background 0.18s var(--ease);
}

/* ─── HUD ─── */
.cine-index {
  position: absolute;
  top: 130px;
  right: 56px;
  z-index: 10;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}
.cine-index-num { color: #fff; font-weight: 500; }
.cine-index-rule {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.4);
}

.cine-meta {
  position: absolute;
  top: 130px;
  left: 56px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.7);
}
.cine-meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 12px var(--accent-light);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* ─── Content ─── */
.cine-content {
  position: absolute;
  left: 56px;
  bottom: 120px;
  z-index: 10;
  max-width: 720px;
  color: #fff;
}
.cine-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cine-eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: rgba(255,255,255,0.55);
}

.cine-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 32px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
}
.cine-line {
  display: block;
  overflow: hidden;
  padding: 0 0 0.04em 0;
}
.cine-word {
  display: inline-block;
  padding-right: 0.18em;
  transform: translateY(110%);
  opacity: 0;
}
.cine-word--it { font-style: italic; font-weight: 300; }

/* Entrance & re-trigger on toggle */
.cine.is-ready .cine-word,
.cine.is-typing .cine-word {
  animation: wordRise 0.95s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.cine.is-ready .cine-line:nth-child(1) .cine-word:nth-child(1),
.cine.is-typing .cine-line:nth-child(1) .cine-word:nth-child(1) { animation-delay: 0.15s; }
.cine.is-ready .cine-line:nth-child(1) .cine-word:nth-child(2),
.cine.is-typing .cine-line:nth-child(1) .cine-word:nth-child(2) { animation-delay: 0.28s; }
.cine.is-ready .cine-line:nth-child(2) .cine-word:nth-child(1),
.cine.is-typing .cine-line:nth-child(2) .cine-word:nth-child(1) { animation-delay: 0.42s; }
.cine.is-ready .cine-line:nth-child(2) .cine-word:nth-child(2),
.cine.is-typing .cine-line:nth-child(2) .cine-word:nth-child(2) { animation-delay: 0.55s; }

@keyframes wordRise {
  0%   { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

.cine-copy {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 36px;
}

.cine-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cine-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.cine-cta--primary {
  background: #fff;
  color: #0b0b0b;
}
.cine-cta--primary:hover {
  background: var(--accent-light);
  color: #0b0b0b;
}
.cine-cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.cine-cta--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

/* ─── Toggle pill, centred bottom ─── */
.cine-toggle-wrap {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cine-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 5px;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}
.cine-toggle-btn {
  position: relative;
  z-index: 2;
  padding: 11px 30px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border-radius: 100px;
  transition: color 0.35s var(--ease);
}
.cine-toggle-btn.is-active { color: #0b0b0b; }
.cine-toggle-thumb {
  position: absolute;
  top: 5px; left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #fff;
  border-radius: 100px;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  z-index: 1;
}
.cine[data-variant="commercial"] .cine-toggle-thumb { transform: translateX(100%); }

.cine-caption {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ─── Floating logo bottom right ─── */
.cine-mark {
  position: absolute;
  bottom: 56px;
  right: 56px;
  z-index: 10;
  opacity: 0.78;
  transition: opacity 0.3s var(--ease);
}
.cine-mark:hover { opacity: 1; }
.cine-mark img {
  height: 36px;
  width: auto;
  filter: brightness(1.1);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .cine-frame img,
  .cine-vignette,
  .cine-grain,
  .cine-meta-dot { animation: none !important; }
  .cine-frame.is-wiping { animation: none !important; }
  .cine-word { transform: none; opacity: 1; animation: none !important; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .cine-meta, .cine-index { top: 100px; }
  .cine-meta { left: 24px; font-size: 10px; letter-spacing: 0.24em; }
  .cine-index { right: 24px; }
  .cine-content { left: 24px; right: 24px; bottom: 150px; }
  .cine-title { font-size: clamp(2.4rem, 9vw, 4rem); }
  .cine-toggle-wrap { bottom: 32px; }
  .cine-mark { display: none; }
}
@media (max-width: 480px) {
  .cine-index { display: none; }
  .cine-content { bottom: 130px; }
  .cine-ctas .cine-cta { flex: 1; padding: 14px 16px; min-width: 0; font-size: 10px; }
}
