/* ==========================================================
   TOKENS
   ========================================================== */
:root{
  --bg:#0F1115;
  --text:#F5F5F5;
  --secondary:#B8B8B8;
  --accent:#D4AF37;
  --serif:'Cormorant Garamond', serif;
  --sans:'Inter', sans-serif;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--sans);
  overflow-x:hidden;
  font-weight:300;
}

section{
  position:relative;
  width:100%;
}

img{max-width:100%;display:block;}

::selection{background:var(--accent);color:var(--bg);}

/* thin gold scrollbar, subtle */
::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-thumb{background:rgba(212,175,55,.35);}
::-webkit-scrollbar-track{background:transparent;}

/* ==========================================================
   BLACK VEIL — cinematic transition
   ========================================================== */
.veil{
  position:fixed;
  inset:0;
  background:#000;
  z-index:9999;
  pointer-events:none;
  opacity:0;
  transition:opacity 1.1s var(--ease);
}
.veil.show{opacity:1; pointer-events:all;}

/* ==========================================================
   SOUND TOGGLE
   ========================================================== */
.sound-toggle{
  position:fixed;
  right:28px;
  bottom:28px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:1px solid rgba(212,175,55,.4);
  background:rgba(15,17,21,.6);
  backdrop-filter:blur(6px);
  color:var(--accent);
  font-size:16px;
  z-index:500;
  cursor:pointer;
  opacity:0;
  transform:scale(.8);
  pointer-events:none;
  transition:opacity .8s ease, transform .8s ease, box-shadow .3s ease;
}
.sound-toggle.visible{opacity:1; transform:scale(1); pointer-events:all;}
.sound-toggle:hover{box-shadow:0 0 18px rgba(212,175,55,.45);}
.sound-toggle.playing{animation:pulse 2.4s ease-in-out infinite;}
@keyframes pulse{
  0%,100%{box-shadow:0 0 0 rgba(212,175,55,.0);}
  50%{box-shadow:0 0 14px rgba(212,175,55,.5);}
}

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  height:100vh;
  width:100%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-bg{
  position:absolute;
  inset:-1%;
  background-size:cover;
  background-position:center;
  filter:brightness(.75);
}
.kenburns{
  animation:kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns{
  0%{transform:scale(1) translate(0,0);}
  100%{transform:scale(1.01) translate(-0.5%,-0.5%);}
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,17,21,.35) 0%, rgba(15,17,21,.55) 55%, rgba(15,17,21,.85) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
  padding:0 24px;
  max-width:800px;
}
.hero-line{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(1.7rem, 4.2vw, 3rem);
  line-height:1.35;
  letter-spacing:.01em;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:100%;
  opacity:0;
  filter:blur(6px);
  transition:opacity 1.6s var(--ease), filter 1.6s var(--ease);
}
.hero-line--one.is-active,
.hero-line--two.is-active{
  opacity:1;
  filter:blur(0);
}
.hero-content{position:relative; min-height:220px;}
.btn-start{
  position:relative;
  z-index:3;
  margin-top:420px;
  background:transparent;
  border:1px solid rgba(212,175,55,.5);
  color:var(--text);
  font-family:var(--sans);
  font-size:.8rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:16px 38px;
  cursor:pointer;
  opacity:0;
  transition:opacity 1.4s ease 2.4s, transform .4s var(--ease), box-shadow .4s ease, background .4s ease;
  box-shadow:0 0 0 rgba(212,175,55,0);
}
.btn-start.is-visible{opacity:1;}
.btn-start:hover{
  transform:scale(1.05);
  background:rgba(212,175,55,.08);
  box-shadow:0 0 26px rgba(212,175,55,.35);
}

/* ==========================================================
   SHARED CHAPTER / EYEBROW
   ========================================================== */
.eyebrow{
  display:block;
  text-align:center;
  font-family:var(--sans);
  font-size:.72rem;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--accent);
  opacity:.8;
  padding-top:100px;
}
.eyebrow--dark{color:#8a7326;}

/* ==========================================================
   CHAPTER I — white minimal
   ========================================================== */
.chapter--white{
  background:#F7F6F3;
  color:#14161a;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:80px 24px 120px;
}
.single-phrase{
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(1.5rem, 3.4vw, 2.4rem);
  max-width:760px;
  color:#20232a;
  opacity:0;
  transform:translateY(14px);
  transition:opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.single-phrase.is-visible{opacity:1; transform:translateY(0);}

.first-photo-wrap{
  margin-top:64px;
  opacity:0;
  transform:translateY(30px);
  transition:opacity 1.6s var(--ease) .3s, transform 1.6s var(--ease) .3s;
}
.first-photo-wrap.is-visible{opacity:1; transform:translateY(0);}
.first-photo{
  width:min(85vw, 680px);
  height:min(95vw, 550px);
  background-size:cover;
  background-position:center;
  box-shadow:0 40px 80px rgba(0,0,0,.25);
}
.kenburns-slow{animation:kenburns 34s ease-in-out infinite alternate;}
.photo-caption{
  margin-top:20px;
  font-family:var(--serif);
  font-style:italic;
  color:#5b5e66;
  font-size:1rem;
}

/* ==========================================================
   CHAPTER II — floating photos
   ========================================================== */
.chapter--float{
  min-height:120vh;
  padding-bottom:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.float-stage{
  position:relative;
  width:100%;
  max-width:1100px;
  height:70vh;
  margin-top:40px;
}
.float-photo{
  position:absolute;
  background-size:cover;
  background-position:center;
  box-shadow:0 30px 60px rgba(0,0,0,.45);
  opacity:0;
}
.float-photo--left{
  left:4%;
  top:8%;
  width:26vw;
  max-width:280px;
  height:34vw;
  max-height:360px;
  transform:translateX(-80px) rotate(-6deg);
}
.float-photo--right{
  right:4%;
  bottom:6%;
  width:24vw;
  max-width:260px;
  height:30vw;
  max-height:330px;
  transform:translateX(80px) rotate(5deg);
}
.float-photo--top{
  left:50%;
  top:0;
  width:30vw;
  max-width:340px;
  height:22vw;
  max-height:250px;
  transform:translate(-50%,-80px) rotate(-2deg);
}
.float-text{
  margin-top:30px;
  font-family:var(--serif);
  font-style:italic;
  color:var(--secondary);
  font-size:1.2rem;
  opacity:0;
  transform:translateY(14px);
  transition:opacity 1.2s ease, transform 1.2s ease;
}
.float-text.is-visible{opacity:1; transform:translateY(0);}

/* ==========================================================
   GALLERY — photos on a table
   ========================================================== */
.gallery{
  min-height:100vh;
  padding:0 5vw 140px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.gallery-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(1.6rem,3vw,2.3rem);
  text-align:center;
  margin:18px 0 60px;
  color:var(--text);
}
.table-photos{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:6px 10px;
  max-width:1200px;
}
.table-photo{
  background-size:cover;
  background-position:center;
  cursor:pointer;
  box-shadow:0 18px 34px rgba(0,0,0,.4);
  transition:transform .45s var(--ease), filter .45s ease, box-shadow .4s ease;
  will-change:transform;
}
.table-photos.has-active .table-photo:not(.is-active){filter:blur(2px) brightness(.6);}
.table-photo:hover{transform:translateY(-6px) scale(1.03) !important;box-shadow:0 26px 46px rgba(0,0,0,.55);}

/* expanded lightbox photo */
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(6,7,9,.88);
  backdrop-filter:blur(10px);
  opacity:0;
  pointer-events:none;
  transition:opacity .5s var(--ease);
}
.lightbox.show{opacity:1; pointer-events:all;}
.lightbox img{
  max-width:82vw;
  max-height:82vh;
  box-shadow:0 50px 100px rgba(0,0,0,.6);
  transform:scale(.92);
  transition:transform .5s var(--ease);
}
.lightbox.show img{transform:scale(1);}
.lightbox-close{
  position:absolute;
  top:32px;
  right:38px;
  color:var(--text);
  font-size:1.6rem;
  background:none;
  border:none;
  cursor:pointer;
  opacity:.7;
}
.lightbox-close:hover{opacity:1;}

/* ==========================================================
   POLAROIDS
   ========================================================== */
.polaroids{
  min-height:110vh;
  padding:0 5vw 160px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.polaroids-title{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(1.6rem,3vw,2.3rem);
  text-align:center;
  margin:18px 0 70px;
}
.polaroid-stack{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:26px 22px;
  max-width:1100px;
  perspective:1400px;
}
.polaroid{
  width:210px;
  height:250px;
  position:relative;
  transform-style:preserve-3d;
  cursor:pointer;
  transition:transform .8s var(--ease);
  opacity:0;
}
.polaroid.is-flipped{transform:rotateY(180deg);}
.polaroid-face{
  position:absolute;
  inset:0;
  backface-visibility:hidden;
  background:#f4f2ec;
  padding:10px 10px 34px;
  box-shadow:0 22px 40px rgba(0,0,0,.4);
}
.polaroid-face img{width:100%;height:170px;object-fit:cover;}
.polaroid-face .cap{
  position:absolute;
  bottom:8px;
  left:0;right:0;
  text-align:center;
  font-family:var(--serif);
  font-style:italic;
  color:#2b2b2b;
  font-size:.85rem;
}
.polaroid-back{
  transform:rotateY(180deg);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:26px;
}
.polaroid-back p{
  font-family:var(--serif);
  font-style:italic;
  color:#2b2b2b;
  font-size:1rem;
  line-height:1.5;
}

/* ==========================================================
   SINGLE FOCUS
   ========================================================== */
.focus{
  height:100vh;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.focus-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter:blur(9px) brightness(.55) saturate(.9);
  transform:scale(1.1);
}
.focus-overlay{
  position:absolute;
  inset:0;
  background:rgba(15,17,21,.45);
}
.focus-content{position:relative; z-index:2; padding:0 24px;}
.focus-text{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(1.8rem,5vw,3.4rem);
  text-align:center;
  max-width:900px;
}
.focus-text .word{
  display:inline-block;
  opacity:0;
  transform:translateY(18px);
  filter:blur(4px);
  transition:opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.focus-text .word.is-visible{opacity:1; transform:translateY(0); filter:blur(0);}

/* ==========================================================
   FINALE
   ========================================================== */
.finale{
  height:100vh;
  background:#000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.finale-line{
  font-family:var(--serif);
  font-weight:300;
  color:var(--text);
  opacity:0;
  filter:blur(6px);
  transition:opacity 1.8s var(--ease), filter 1.8s var(--ease);
}
.finale-line.is-visible{opacity:1; filter:blur(0);}
.finale-line--1{font-size:clamp(2.2rem,5vw,3.4rem);}
.finale-line--2{font-size:1.4rem; color:var(--secondary);}
.finale-line--3{font-size:clamp(1.6rem,3.6vw,2.2rem); color:var(--accent); font-style:italic;}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:720px){
  .btn-start{margin-top:190px;}
  .float-stage{height:80vh;}
  .float-photo--left,.float-photo--right,.float-photo--top{
    max-width:150px; max-height:190px; width:44vw; height:56vw;
  }
  .polaroid{width:150px;height:190px;}
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}
