/* ════════════════════════════════════════════════════════════
   AMBER & BARK — v3 Polish
   Cinematic strip, extended float, image parallax prep
════════════════════════════════════════════════════════════ */

/* ─── CINEMATIC HORIZONTAL STRIP ─── */
.cinematic-strip {
  width: 100%;
  height: clamp(360px, 52vw, 660px);
  overflow: hidden;
  position: relative;
  margin: 4.5rem 0;
  background: var(--bark);
}

.cinematic-inner {
  width: 118%;
  height: 100%;
  position: absolute;
  left: -9%;
  top: 0;
  will-change: transform;
  transition: transform 0.05s linear;
}

.cinematic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) brightness(0.82) contrast(1.05);
}

/* left/right/bottom vignette */
.cinematic-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  rgba(20,8,2,0.78) 0%, transparent 22%, transparent 78%, rgba(20,8,2,0.78) 100%),
    linear-gradient(to bottom, rgba(20,8,2,0.6)  0%, transparent 22%, transparent 72%, rgba(20,8,2,0.85) 100%);
}

/* ── Floating secondary inset image ── */
.cinematic-inset {
  position: absolute;
  bottom: 2.8rem;
  right: 7%;
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1.5px solid rgba(201,168,76,0.45);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  animation: insetFloat 8s ease-in-out infinite;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease 0.4s, transform 0.9s ease 0.4s;
}
.cinematic-strip:hover .cinematic-inset,
.cinematic-inset.visible {
  opacity: 1;
  transform: translateY(0);
}
/* auto-show after strip enters view */
.cinematic-inner .cinematic-inset { opacity: 1; transform: translateY(0); }

.cinematic-inset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.9);
}
.cinematic-inset-line {
  position: absolute;
  top: -1px; left: 0;
  width: 40%;
  height: 1px;
  background: var(--gold);
}
@keyframes insetFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* ── HUD corner labels ── */
.cinematic-hud {
  position: absolute;
  top: 1.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(20,8,2,0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,168,76,0.2);
  z-index: 2;
}
.cin-hud-tl { left: 2rem; }
.cin-hud-tr { right: 2rem; }
.hud-year, .hud-grade {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.8);
  font-weight: 400;
}

/* Caption overlay */
.cinematic-caption {
  position: absolute;
  bottom: 2.8rem;
  left: 7%;
  right: 30%;
  pointer-events: none;
}
.cin-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.cin-title {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-shadow: 0 2px 32px rgba(0,0,0,0.6);
  margin-bottom: 0.8rem;
}
.cin-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(250,247,242,0.6);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* Top/bottom film-grain bars */
.cinematic-strip::before,
.cinematic-strip::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.4), transparent);
  z-index: 3;
}
.cinematic-strip::before { top: 0; }
.cinematic-strip::after  { bottom: 0; }


/* ─── EXTENDED FLOAT on stacked images ─── */
.img-frame-top {
  animation: floatA 7s ease-in-out infinite;
}
.img-frame-bot {
  animation: floatB 9s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

.gift-frame-1 {
  animation: floatA 8s ease-in-out infinite 1s;
}
.gift-frame-2 {
  animation: floatB 10s ease-in-out infinite 2s;
}

/* ─── PARALLAX PREP on image containers ─── */
/* Images need overflow:hidden on their containers to contain translateY */
.img-frame, .gift-img-frame { overflow: hidden; }
.img-frame img, .gift-img-frame img {
  transform: scale(1.10); /* start slightly zoomed so translateY doesn't show black edges */
  transition: transform 0.05s linear;
  will-change: transform;
}

/* ─── QUALITY RING enhanced float ─── */
.quality-ring-container {
  will-change: transform;
  transition: transform 0.35s ease-out;
}

/* ─── STORY SECTION image parallax overlay depth ─── */
.story-images {
  position: relative;
  z-index: 1;
}
/* subtle drop-shadow behind stacked images for depth */
.img-stack::after {
  content: '';
  position: absolute;
  left: 5%;
  bottom: -16px;
  right: 8%;
  height: 32px;
  background: rgba(92,46,14,0.12);
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── HERO corner responsive ─── */
@media (max-width: 768px) {
  .hero-corner { display: none; }
  .cinematic-inner { width: 140%; left: -20%; }
  .cinematic-caption { white-space: normal; width: 90%; left: 5%; transform: none; }
}
