/* ===== EXPERIENCE — cinematic page styles ===== */

html { scroll-behavior: auto; }
body.experience-body {
  background: #0a0a0a;
  color: #faf7f1;
  overflow-x: hidden;
}
body.experience-body::before { display: none; } /* hide page grain */

.cine-nav {
  position: fixed;
  top: 1rem; left: 1rem; right: 1rem;
  z-index: 80;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 0.85rem;
}
.cine-nav a { color: var(--color-paper); transition: color 0.3s; }
.cine-nav a:hover { color: var(--color-gold); }
.cine-nav .crumbs { display: flex; gap: 0.7rem; align-items: center; opacity: 0.8; font-size: 0.78rem; }
.cine-nav .crumbs > span:last-child { color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; }

.cine-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  font-size: 0.85rem;
  transition: all 0.35s var(--ease-out);
}
.cine-back svg { transition: transform 0.35s var(--ease-out); }
.cine-back:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(200,155,92,0.08);
}
.cine-back:hover svg { transform: translateX(-3px); }

/* progress bar */
.cine-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 90;
}

/* ====== shared cinematic typography ====== */
.cine-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.32em;
  font-size: 0.72rem; color: var(--color-gold); font-weight: 600;
}
.cine-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--color-gold); }
.cine-h {
  font-family: "Fraunces", serif;
  font-weight: 400; letter-spacing: -0.025em; line-height: 1.02;
  text-wrap: balance;
}
.cine-h-xl { font-size: clamp(3rem, 9vw, 9rem); line-height: 0.95; }
.cine-h-lg { font-size: clamp(2.2rem, 5.5vw, 5.2rem); }
.cine-h-md { font-size: clamp(1.6rem, 3vw, 2.6rem); }

.cine-italic { font-style: italic; font-weight: 300; color: var(--color-gold); }

/* ====== Cover ====== */
.cover {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.cover-bg {
  position: absolute; inset: 0;
  background: #000;
}
.cover-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 2.4s var(--ease-out), transform 12s linear;
  filter: brightness(0.55) saturate(0.85);
}
.cover-bg.in img { opacity: 1; transform: scale(1); }
.cover-content { position: relative; text-align: center; padding: 0 1.5rem; max-width: 1200px; }
.cover-content .cine-eyebrow { justify-content: center; opacity: 0; transform: translateY(8px); transition: all 1.2s var(--ease-out) 0.4s; }
.cover-content h1 { opacity: 0; transform: translateY(20px); transition: all 1.6s var(--ease-out) 0.7s; }
.cover-content p { opacity: 0; transform: translateY(20px); transition: all 1.6s var(--ease-out) 1.1s; }
.cover.ready .cover-content > * { opacity: 1; transform: translateY(0); }
.cover-content p { font-size: 1.1rem; max-width: 540px; margin: 1.6rem auto 0; line-height: 1.6; opacity: 0.85; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 3rem;
  transform: translateX(-50%);
  color: var(--color-paper);
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  opacity: 0.7;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 60px; background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: cueDrop 2.4s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ====== Pinned Manifesto ====== */
.pin-section {
  position: relative;
  height: 320vh; /* 3 verses × 100vh + buffer */
}
.pin-stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pin-stage .bg-img {
  position: absolute; inset: 0; z-index: 0;
}
.pin-stage .bg-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.85); }
.pin-stage .bg-img::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 60%, transparent, rgba(0,0,0,0.5));
}
.pin-stage .verses {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 1100px;
}
.verse {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  pointer-events: none;
}
.verse.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.verse-counter {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--color-gold);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ====== Horizontal Scroll Reel ====== */
.h-scroll-section {
  position: relative;
  overflow: hidden;
}
.h-scroll-track {
  position: relative;
  height: 100vh;
  display: flex;
  width: max-content;
  will-change: transform;
}
.h-slide {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.h-slide .bg {
  position: absolute; inset: 0;
}
.h-slide .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.h-slide .caption {
  position: relative;
  z-index: 1;
  padding: 0 6vw;
  max-width: 800px;
  text-align: left;
  align-self: end;
  margin-bottom: 12vh;
}
.h-slide.darken .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
}
.h-slide-num {
  font-family: "Fraunces", serif; font-style: italic;
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

/* ====== Portrait Strip — horizontal pinned (GSAP manages spacing) ====== */
.portrait-strip {
  position: relative;
  /* height intentionally not set — GSAP pin: true creates the spacer */
}
.portrait-track {
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 3vw;
  padding-inline: 8vw;
  will-change: transform;
}
.portrait-card {
  flex: 0 0 38vw;
  max-width: 520px;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #1a1a1a;
}
.portrait-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.portrait-card:hover img { transform: scale(1.05); }
.portrait-card .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: "Fraunces", serif;
}
.portrait-card .meta .role {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.portrait-card .meta .name {
  font-size: 1.3rem;
}
.strip-intro {
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 2rem;
}

/* ====== Parallax Section ====== */
.parallax-section {
  position: relative;
  min-height: 120vh;
  overflow: hidden;
  display: grid;
  align-content: center;
  padding-block: 18vh;
}
.parallax-bg {
  position: absolute; inset: -10% 0;
  z-index: 0;
}
.parallax-bg img {
  width: 100%; height: 110%; object-fit: cover;
  filter: brightness(0.5) saturate(0.85);
  will-change: transform;
}
.parallax-content {
  position: relative; z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 6vw;
}
.parallax-content p {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.55;
  margin-top: 2rem;
  max-width: 660px;
}

/* ====== Grid Build (Hands) ====== */
.grid-build {
  position: relative;
  height: 220vh;
}
.grid-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.grid-stage .grid-wrap {
  position: relative;
  width: min(82vw, 1280px);
  height: 78vh;
}
.grid-tile {
  position: absolute;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  will-change: transform, opacity;
  background: #1a1a1a;
}
.grid-tile img { width: 100%; height: 100%; object-fit: cover; }
.grid-stage .grid-text {
  position: absolute;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  color: var(--color-paper);
}
.grid-stage .grid-text.intro { opacity: 1; }
.grid-stage .grid-text.outro { opacity: 0; }

/* ====== Full-bleed Quote Pin ====== */
.bleed-section {
  position: relative;
  height: 200vh;
}
.bleed-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bleed-bg { position: absolute; inset: 0; z-index: 0; }
.bleed-bg img { width: 100%; height: 100%; object-fit: cover; }
.bleed-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, transparent, rgba(0,0,0,0.85));
}
.bleed-text {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 1200px;
}
.bleed-text .ribbon {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ====== Final Pledge ====== */
.finale {
  position: relative;
  min-height: 100vh;
  padding: 18vh 6vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
@media (max-width: 900px) { .finale { grid-template-columns: 1fr; } }
.finale-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 18px;
}
.finale-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 12s linear; }
.finale-image.in img { transform: scale(1.06); }
.finale-text .signature svg path { stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s var(--ease-out); }
.finale-text.in .signature svg path { stroke-dashoffset: 0; }
.finale-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; }
.finale .btn { padding: 0.95rem 1.6rem; border-radius: 999px; font-size: 0.92rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.7rem;
  transition: all 0.4s var(--ease-out); }
.finale .btn-gold { background: var(--color-gold); color: var(--color-ink); }
.finale .btn-gold:hover { background: var(--color-paper); }
.finale .btn-ghost { border: 1px solid rgba(255,255,255,0.2); color: var(--color-paper); }
.finale .btn-ghost:hover { border-color: var(--color-paper); background: rgba(255,255,255,0.05); }

/* ====== Numbers & details ====== */
.numbers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
@media (max-width: 768px) { .numbers-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.num-block { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.2rem; }
.num-block .v {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.num-block .v .accent { color: var(--color-gold); }
.num-block .l {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* Reduce-motion respect */
@media (prefers-reduced-motion: reduce) {
  .cover-bg img, .h-slide .bg img, .parallax-bg img,
  .finale-image img, .grid-tile, .verse {
    transition: none !important; animation: none !important;
  }
  .verse { opacity: 1 !important; transform: none !important; position: relative !important; }
  .verse + .verse { margin-top: 4rem; }
  .pin-section, .h-scroll-section, .portrait-strip,
  .grid-build, .bleed-section { height: auto; }
  .pin-stage, .h-scroll-track, .portrait-track,
  .grid-stage, .bleed-stage { position: relative; height: auto; }
  .h-scroll-track { flex-wrap: wrap; }
  .h-slide { flex: 1 1 100%; }
  .portrait-track { flex-wrap: wrap; padding: 4rem 6vw; }
  .portrait-card { flex: 1 1 320px; }
  .grid-tile { position: relative !important; transform: none !important; opacity: 1 !important; width: 30%; margin: 1%; }
  .grid-stage .grid-text { position: relative; }
}
