/* ============================================================
   AASHIRWAD — home page chapters
   Cinematic hero · pinned story · olive vows ·
   marquee hero · residence spotlight · feed
   ============================================================ */

/* ---------------- Chapter 01 · Hero ----------------
   Follows the theme: a cream wash with ink type in the light theme, a
   dark ground with ivory type in the dark theme. */
.cine-hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--bg); color: var(--text);
}
.cine-hero__word {
  position: absolute; top: 16vh; left: 50%; transform: translateX(-50%);
  font-family: var(--disp); font-stretch: 118%; font-weight: 300;
  font-size: clamp(64px, 12.5vw, 210px);
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); opacity: 0.07;
  white-space: nowrap; pointer-events: none; z-index: 3;
}
.cine-hero__media {
  position: absolute; inset: 0; overflow: hidden; z-index: 2;
}
.cine-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.cine-hero__shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--bg) 96%, transparent) 0%,
      color-mix(in srgb, var(--bg) 82%, transparent) 42%,
      color-mix(in srgb, var(--bg) 30%, transparent) 70%,
      color-mix(in srgb, var(--bg) 12%, transparent) 100%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      transparent 30%,
      transparent 55%,
      color-mix(in srgb, var(--bg) 88%, transparent) 95%);
}
.cine-hero__content {
  position: relative; z-index: 4;
  width: min(var(--wrap), 100%); margin: 0 auto;
  padding: 0 24px clamp(90px, 13vh, 150px);
}
.cine-hero__kicker {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 18px;
}
.cine-hero h1 {
  font-family: var(--disp); font-stretch: 116%; font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.04;
}
.cine-hero h1 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--rust); }
.cine-hero h1 .line { display: block; overflow: hidden; }
.cine-hero h1 .line > span { display: block; }
.cine-hero__sub { max-width: 54ch; margin-top: 1.4rem; color: var(--text-soft); }
.cine-hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 2.2rem; }
.cine-hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}
.cine-hero__bar .mark { color: var(--rust); font-size: 13px; }
.scroll-cue {
  position: absolute; right: 30px; bottom: 70px; z-index: 5;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-soft);
  writing-mode: vertical-rl;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 50% { transform: translateY(8px); opacity: 0.5; } }

/* ---------------- Chapter 02 · pinned story ---------------- */
.story { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg-alt); }
.story__media {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.story__frame {
  width: 100%; height: 100%;
  overflow: hidden; position: relative;
  will-change: transform;
}
.story__frame img { will-change: transform; }
.story__frame img { width: 100%; height: 100%; object-fit: cover; }
.story__shade {
  position: absolute; inset: 0; opacity: 0;
  background: rgba(44, 30, 24, 0.55); pointer-events: none;
}
.story__pre {
  position: absolute; top: 10vh; left: 0; right: 0;
  text-align: center; z-index: 2;
}
.story__pre .chapter { justify-content: center; }
.story__pre h2 { margin-top: 1.2rem; color: var(--text-soft); }
.story__reveal {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; padding: 24px; text-align: center;
}
.story__reveal > div { max-width: 720px; color: #faf1e2; }
.story__reveal h2 {
  font-family: var(--disp); font-stretch: 116%; font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  text-transform: uppercase; line-height: 1.05;
}
.story__reveal h2 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--rust-2); }
.story__reveal p { margin-top: 1.6rem; color: rgba(250, 241, 226, 0.88); }

/* static fallback (no GSAP / reduced motion) */
body.no-gsap .story { min-height: 0; padding: clamp(80px, 10vw, 130px) 24px; }
body.no-gsap .story__media { position: static; }
body.no-gsap .story__frame { width: 100%; height: auto; aspect-ratio: 16/8; }
body.no-gsap .story__pre { position: static; margin-bottom: 40px; }
body.no-gsap .story__reveal { position: static; opacity: 1; }
body.no-gsap .story__reveal > div { color: var(--text); }
body.no-gsap .story__reveal p { color: var(--text-soft); }
body.no-gsap .story__shade { display: none; }
body.no-gsap .story__reveal { margin-top: 32px; }
body.no-gsap .story__reveal h2 { color: var(--text); }
body.no-gsap .story__frame, body.no-gsap .story__frame img { will-change: auto; }

/* Keep touch scrolling natural: the story never pins on smaller screens. */
@media (max-width: 900px) {
  .story { min-height: 0; padding: clamp(64px, 10vw, 100px) 24px; }
  .story__media { position: static; }
  .story__frame { width: 100%; height: auto; aspect-ratio: 16/10; }
  .story__frame, .story__frame img { will-change: auto; }
  .story__pre { position: static; margin-bottom: 32px; }
  .story__reveal { position: static; opacity: 1; margin-top: 32px; padding: 0; }
  .story__reveal > div, .story__reveal h2 { color: var(--text); }
  .story__reveal p { color: var(--text-soft); }
  .story__shade { display: none; }
}

/* ---------------- Chapter 03 · vows (olive cards) ---------------- */
.vows { background: var(--olive); color: #f0ebd8; }
.vows .vow {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(240, 235, 216, 0.14);
}
.vows .vow:hover { background: rgba(255, 255, 255, 0.12); }
.vows .chapter { color: #f0ebd8; }
.vows .chapter::before { background: #f0ebd8; }
.vows .chapter__num { border-color: #f0ebd8; }
.vows .h-lg em, .vows .gold { color: var(--cream); }

/* ---------------- Chapter 04 · the residence (spotlight) ----------------
   Rendered by js/home.js from the first entry in js/data.js. */
.spotlight { background: var(--bg); }
.spot {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px);
  align-items: start; margin-top: clamp(36px, 5vw, 60px);
}
.spot__media {
  display: block; position: relative; overflow: hidden;
  background: var(--panel); aspect-ratio: 4/3;
}
.spot__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.spot__media:hover img { transform: scale(1.04); }
.spot__loc { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); }
.spot__name {
  font-family: var(--disp); font-stretch: 116%; font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 1.04; margin: 10px 0 14px;
}
.spot__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.spot__facts dt { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.spot__facts dd { font-family: var(--disp); font-stretch: 114%; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 4px; }
.spot .highlights { margin-top: 1.6rem; gap: 10px; }
.spot .highlights li { font-size: 0.92rem; }
.spot__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.spot__strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spot__thumb { display: block; overflow: hidden; background: var(--panel); aspect-ratio: 4/3; }
.spot__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.spot__thumb:hover img { transform: scale(1.05); }

/* ---------------- Insta teaser strip ---------------- */
.insta-strip { padding-bottom: clamp(80px, 10vw, 140px); }
.insta-strip__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: clamp(30px, 4vw, 46px);
}
.insta-strip .ig-post { aspect-ratio: 1/1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .insta-strip__row { grid-template-columns: 1fr 1fr; }
  .spot { grid-template-columns: 1fr; gap: 28px; }
  .spot__strip { grid-template-columns: 1fr 1fr; }

  /* Hero: full-bleed skyline, copy anchored on a theme-coloured gradient at the foot.
     margin-top (not padding) keeps the content box clear of the fixed header
     when the copy is taller than a short viewport and the section grows. */
  .cine-hero__word { display: none; }
  .cine-hero__media img { object-position: 66% 50%; }
  .cine-hero__shade {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 10%, transparent) 22%,
      color-mix(in srgb, var(--bg) 55%, transparent) 42%,
      color-mix(in srgb, var(--bg) 92%, transparent) 62%,
      color-mix(in srgb, var(--bg) 97%, transparent) 100%);
  }
  .cine-hero__content { margin-top: 110px; padding: 0 20px 104px; }
  .cine-hero h1 { font-size: clamp(1.6rem, 7.4vw, 2.6rem); font-stretch: 106%; line-height: 1.06; }
  .cine-hero__sub { font-size: 0.95rem; margin-top: 1.1rem; max-width: 46ch; }
  .cine-hero__cta { margin-top: 1.8rem; }
  .cine-hero__bar { justify-content: center; padding: 14px 20px; }
  .cine-hero__bar .mark, .cine-hero__bar span:last-child { display: none; }
  .scroll-cue { display: none; } /* shares the corner with the contact dock */
}
@media (max-width: 360px) {
  .cine-hero__kicker { font-size: 9px; letter-spacing: 0.14em; }
}
@media (max-width: 560px) {
  .cine-hero__cta { flex-direction: column; gap: 12px; }
  .cine-hero__cta .btn { width: 100%; text-align: center; padding-block: 16px; }
}
