/* ============================================================
   HOME — hero shrink, polaroid stack, about, CTA
   ============================================================ */

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 220vh; /* tall to give scroll room for the shrink animation */
  margin-top: 0;
}

@media (max-width: 760px) {
  /* Less scroll room on mobile so the hero exits faster and feels responsive. */
  .hero { height: 150vh; }
}
.hero-photo {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  transform-origin: center 42%;
  /* No transition — we drive transform directly from scroll via rAF. A 50ms transition
     fights against the per-frame updates and feels laggy on mobile. */
  will-change: transform, border-radius;
}
.hero-photo-inner {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 35%, #FFD9E8 0%, #FFA8C7 40%, #E97FA9 75%, #B0466F 100%);
}
.hero-photo-inner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 30% 65%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(30% 25% at 75% 30%, rgba(255,200,220,.6), transparent 70%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 50%, transparent 50%, rgba(74,31,46,.35) 100%);
  pointer-events: none;
}

.hero-text {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  color: #fff;
  width: min(900px, 92vw);
  pointer-events: none;
}
.hero-text .eyebrow {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-text h1 {
  color: #fff;
  text-shadow: 0 4px 30px rgba(74,31,46,.35);
  font-weight: 300;
}
.hero-text h1 em {
  font-style: normal;
  font-size: 1.1em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(255,180,210,.6);
}
.hero-sub {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  margin: 18px 0 28px;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; pointer-events: auto;
}
.hero-scrollhint {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- ABOUT ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-lead { font-size: 1.2rem; line-height: 1.55; margin-bottom: 14px; }
.about-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  margin-bottom: 18px;
  overflow: hidden;
  background: #FBE9F0;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px;
}
.about-meta > div {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 20px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.5);
  gap: 4px;
}
.about-meta b {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 500;
  color: var(--rose-600);
  line-height: 1;
}
.about-meta span {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.25;
  letter-spacing: .01em;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- POLAROID STACK ---- */
.polaroid-section { padding: 60px 0 0; }
.polaroid-track {
  position: relative;
  width: 100%;
  padding-top: 30vh;       /* let the title scroll out before stack begins */
  padding-bottom: 90vh;
}
.polaroid-slot {
  position: sticky;
  top: 50vh;
  height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z, 1);
  margin-top: 78vh;
  pointer-events: none;
}
.polaroid-slot:first-child { margin-top: 0; padding-top: 0; }

.polaroid {
  width: min(320px, 72vw);
  background: #FBF7F2;
  padding: 14px 14px 14px;
  border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 0 0 .5px rgba(74,31,46,.06),
    0 18px 36px -12px rgba(74,31,46,.35),
    0 30px 60px -20px rgba(74,31,46,.25);
  /* Slot uses align-items:center on a 0-height sticky line, so polaroid renders at natural height centered on viewport mid. */
  transform: translateX(var(--offx, 0)) rotate(var(--tilt, 0));
  transform-origin: center center;
  transition: transform .6s var(--ease);
  position: relative;
  text-align: center;
  pointer-events: auto;
}
.polaroid::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 8%; right: 8%;
  height: 14px;
  background: rgba(74,31,46,.2);
  filter: blur(10px);
  z-index: -1;
  border-radius: 50%;
}
.polaroid-photo {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: #FBE9F0;
}
.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.polaroid-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%);
  pointer-events: none;
}
.polaroid-caption {
  padding: 14px 8px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  min-height: 56px;
}
.polaroid-caption .script {
  font-size: 1.4rem; line-height: 1; color: var(--rose-600);
}
.polaroid-caption small {
  color: var(--muted); font-size: .72rem; letter-spacing: .04em;
  margin-top: 2px;
}

@media (max-width: 760px) {
  /* Smaller polaroid + reduced offset/tilt magnitude so no part is cut off by viewport.
     Body has overflow-x: hidden, which was clipping the corners of rotated/offset polaroids. */
  .polaroid {
    width: 62vw;
    padding: 10px;
    /* Override transform: keep tilt direction but reduce offset to 40% of original magnitude. */
    transform: translateX(calc(var(--offx, 0%) * 0.4)) rotate(calc(var(--tilt, 0deg) * 0.85));
  }
  .polaroid-caption { padding: 9px 6px 12px; min-height: 42px; }
  .polaroid-caption .script { font-size: 1.1rem; }
  .polaroid-caption small { font-size: .68rem; }
  .polaroid-slot { margin-top: 62vh; }
  .polaroid-slot:first-child { padding-top: 0; }
  /* Top spacing of the stack: less so the title still scrolls out cleanly on shorter mobile viewports. */
  .polaroid-track { padding-top: 20vh; padding-bottom: 70vh; }
}

/* ---- CTA BLOCK ---- */
.cta-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 56px;
  border-radius: var(--radius-xl);
  align-items: center;
}
.cta-actions {
  display: flex; flex-direction: column; gap: 12px;
}
.cta-actions .btn { justify-content: space-between; padding: 18px 24px; font-size: 1rem; }
@media (max-width: 760px) {
  .cta-block { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
}

/* ---- TESTIMONIALS ---- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi {
  padding: 28px;
  border-radius: var(--radius);
}
.testi .stars { color: var(--rose-500); letter-spacing: 3px; margin-bottom: 10px; font-size: .9rem; }
.testi p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); margin-bottom: 16px; }
.testi small { color: var(--muted); }
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; }
}
