/* ===========================================================
   Nijat & Naziha — Wedding Gallery  v4
   Tema: body.dark / body.light  ($THEME ile index.php'den)
   =========================================================== */

:root{
  --gold-l:#E7D7AE;                 /* fotoğraf üstü açık altın — iki temada da aynı */
  --serif:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --script:'Pinyon Script', 'Cormorant Garamond', cursive;
  --ease:cubic-bezier(.22,.61,.36,1);
  --soft:cubic-bezier(.65,0,.35,1);
  --pad:clamp(20px, 5vw, 78px);
}

body.dark{
  --bg:#0E0D0C; --bg2:#151312; --fg:#EDE6DA; --muted:#978E82;
  --gold:#C9AE78; --rule:rgba(237,230,218,.15); --shade:rgba(0,0,0,.5);
  --grain:.055;
}
body.light{
  --bg:#FCFAF5; --bg2:#F4EDE1; --fg:#2B2420; --muted:#8A8073;
  --gold:#B2975C; --rule:rgba(43,36,32,.16); --shade:rgba(43,36,32,.12);
  --grain:.042;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font-family:var(--sans); font-weight:300; font-size:16px; line-height:1.8;
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
body.loading{overflow:hidden}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; border:0; background:none; cursor:pointer; color:inherit}
::selection{background:var(--gold); color:var(--bg)}
.wrap{width:100%; max-width:1320px; margin:0 auto; padding:0 var(--pad)}
.skip{position:absolute; left:-9999px}
.skip:focus{left:16px; top:16px; z-index:999; background:var(--fg); color:var(--bg); padding:10px 16px}

/* ---------- grain ---------- */
.grain{
  position:fixed; inset:0; z-index:400; pointer-events:none; opacity:var(--grain);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- progress ---------- */
.progress{position:fixed; top:0; left:0; right:0; height:2px; z-index:120; pointer-events:none}
.progress i{display:block; height:100%; width:0; background:linear-gradient(90deg,var(--gold),var(--gold-l))}

/* ---------- intro ---------- */
.intro{
  position:fixed; inset:0; z-index:500; background:var(--bg);
  display:grid; place-content:center; justify-items:center; gap:26px;
  transition:opacity .9s var(--ease), visibility .9s;
}
.intro.gone{opacity:0; visibility:hidden}
.intro-mono{display:flex; align-items:baseline; gap:6px; font-family:var(--serif); font-size:clamp(40px,7vw,66px); font-weight:300}
.intro-mono span{opacity:0; animation:introIn .9s var(--ease) forwards}
.intro-mono span:last-child{animation-delay:.22s}
.intro-mono i{font-family:var(--serif); font-style:italic; color:var(--gold); font-size:.9em; opacity:0; animation:introIn .9s var(--ease) .12s forwards}
@keyframes introIn{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
.intro-line{width:180px; height:1px; background:var(--rule); overflow:hidden}
.intro-line i{display:block; height:100%; width:0; background:var(--gold); animation:introLine 1.25s var(--soft) .25s forwards}
@keyframes introLine{to{width:100%}}

.intro-gate{display:flex; flex-direction:column; align-items:center; gap:14px; opacity:0; animation:introIn .8s var(--ease) .4s forwards}
.intro-gate[hidden]{display:none}
.enter{display:inline-flex; align-items:center; gap:10px; padding:15px 42px;
  border:1px solid var(--rule); border-radius:999px; color:var(--fg);
  font-size:10.5px; letter-spacing:.32em; text-transform:uppercase;
  transition:background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease)}
.enter svg{opacity:.6; transition:opacity .45s}
.enter:hover{background:var(--gold); color:#14110E; border-color:var(--gold)}
.enter:hover svg{opacity:1}
.intro-note{margin:0; font-size:10px; letter-spacing:.24em; text-transform:uppercase; color:var(--muted); opacity:.8}

.yt-hidden{position:fixed; left:0; bottom:0; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; z-index:-1}

/* ---------- shared type ---------- */
.label{
  font-size:10.5px; letter-spacing:.44em; text-transform:uppercase;
  color:var(--gold); margin:0 0 24px; font-weight:400;
  display:inline-flex; align-items:center; gap:14px;
}
.label em{font-family:var(--serif); font-style:italic; font-size:16px; letter-spacing:0; opacity:.9}
.label em::after{content:''; display:inline-block; width:24px; height:1px; background:currentColor; vertical-align:middle; margin-left:14px; opacity:.5}
h1,h2,h3{font-family:var(--serif); font-weight:300; margin:0; letter-spacing:.004em}
h2{font-size:clamp(38px,5.4vw,70px); line-height:1.06}
h2 em{font-style:italic; color:var(--gold)}

.orn{display:flex; align-items:center; gap:14px; color:var(--gold); margin:26px 0 30px; justify-content:flex-start}
.orn i{display:block; width:clamp(34px,6vw,70px); height:1px; background:currentColor; opacity:.5}
.orn svg{opacity:.8; flex:none}
.orn.light{color:var(--gold-l)}
.sec-head .orn{justify-content:center}
.script{font-family:var(--script); color:var(--gold); font-size:clamp(44px,6.4vw,76px); line-height:1.2; margin:0}

/* ---------- header ---------- */
.head{position:fixed; inset:0 0 auto 0; z-index:90; padding:26px 0;
  transition:background .6s var(--ease), box-shadow .6s var(--ease), padding .6s var(--ease), opacity .3s}
.head.stuck{background:color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter:blur(18px) saturate(1.1);
  box-shadow:0 1px 0 var(--rule); padding:13px 0}
.head-in{max-width:1320px; margin:0 auto; padding:0 var(--pad); display:flex; align-items:center; justify-content:space-between; gap:20px}

.mono{display:inline-flex; align-items:baseline; gap:4px; font-family:var(--serif); font-size:22px; letter-spacing:.08em;
  color:#fff; text-shadow:0 1px 18px rgba(0,0,0,.45); transition:color .5s var(--ease), text-shadow .5s}
.mono i{font-family:var(--serif); font-style:italic; color:var(--gold-l); font-size:1.02em}
.head.stuck .mono{color:var(--fg); text-shadow:none}
.head.stuck .mono i{color:var(--gold)}

.nav{display:flex; gap:38px}
.nav a{position:relative; font-size:10.5px; letter-spacing:.26em; text-transform:uppercase; padding:5px 0;
  color:#fff; text-shadow:0 1px 16px rgba(0,0,0,.5); transition:color .5s var(--ease), text-shadow .5s}
.head.stuck .nav a{color:var(--fg); text-shadow:none}
.nav a::after{content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--gold-l); transition:width .45s var(--ease)}
.head.stuck .nav a::after{background:var(--gold)}
.nav a:hover::after{width:100%}

/* ---------- hero ---------- */
.hero{position:relative; min-height:100svh; display:grid; place-items:center; overflow:hidden; background:#0A0908}
.hero-bg{position:absolute; inset:-6% 0; will-change:transform}
.hero-bg img{width:100%; height:100%; object-fit:cover; object-position:center 38%;
  transform:scale(1.12); animation:heroZoom 2.6s var(--ease) forwards; animation-play-state:paused}
body.ready .hero-bg img{animation-play-state:running}
@keyframes heroZoom{to{transform:scale(1)}}

.hero-veil{position:absolute; inset:0;
  background:
    radial-gradient(76% 60% at 50% 46%, rgba(8,7,5,.56) 0%, rgba(8,7,5,.32) 55%, rgba(8,7,5,0) 100%),
    radial-gradient(130% 100% at 50% 50%, rgba(8,7,5,.14) 0%, rgba(8,7,5,.58) 72%, rgba(8,7,5,.84) 100%),
    linear-gradient(180deg, rgba(8,7,5,.55) 0%, rgba(8,7,5,.1) 30%, rgba(8,7,5,.66) 100%);
}
.hero-frame{position:absolute; inset:clamp(16px,2.2vw,32px); border:1px solid rgba(255,255,255,.22);
  opacity:0; transform:scale(1.014); animation:frameIn 1.6s var(--ease) .5s forwards; animation-play-state:paused}
.hero-frame::after{content:''; position:absolute; inset:7px; border:1px solid rgba(255,255,255,.1)}
body.ready .hero-frame{animation-play-state:running}
@keyframes frameIn{to{opacity:1; transform:none}}

.hero-in{position:relative; z-index:3; text-align:center; color:#fff; padding:90px 26px; will-change:transform,opacity}

.crest{width:70px; height:70px; margin:0 auto clamp(22px,3vw,34px); border:1px solid rgba(255,255,255,.34); border-radius:50%;
  display:grid; place-items:center; font-family:var(--serif); font-size:17px; letter-spacing:.06em;
  opacity:0; transform:scale(.92); animation:crestIn 1.2s var(--ease) .25s forwards; animation-play-state:paused}
.crest i{font-style:italic; color:var(--gold-l)}
body.ready .crest{animation-play-state:running}
@keyframes crestIn{to{opacity:1; transform:none}}

.eyebrow{margin:0 0 clamp(18px,2.6vw,28px); overflow:hidden}
.eyebrow span{display:inline-block; font-size:10.5px; letter-spacing:.48em; text-transform:uppercase;
  color:rgba(255,255,255,.8); transform:translateY(110%);
  animation:up .9s var(--ease) .45s forwards; animation-play-state:paused}
body.ready .eyebrow span{animation-play-state:running}
@keyframes up{to{transform:none}}

.names{display:flex; flex-direction:column; align-items:center; line-height:.93}
.name{display:block; overflow:hidden; font-size:clamp(52px,9.4vw,132px); font-weight:300; letter-spacing:.012em;
  text-shadow:0 4px 70px rgba(0,0,0,.5)}
.name .l{display:inline-block; transform:translateY(108%);
  animation:up 1s var(--ease) forwards; animation-delay:calc(.6s + var(--d)); animation-play-state:paused}
body.ready .name .l{animation-play-state:running}
.amp{font-family:var(--serif); font-style:italic; color:var(--gold-l); font-size:clamp(40px,5.2vw,76px); line-height:1;
  margin:clamp(4px,.8vw,12px) 0 clamp(6px,1vw,14px); text-shadow:0 3px 40px rgba(0,0,0,.45);
  opacity:0; animation:ampIn 1.1s var(--ease) 1s forwards; animation-play-state:paused}
body.ready .amp{animation-play-state:running}
@keyframes ampIn{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}

.hero-date{display:flex; align-items:center; justify-content:center; gap:18px; margin:clamp(28px,4vw,48px) 0 0;
  font-size:12px; letter-spacing:.36em; color:rgba(255,255,255,.88);
  opacity:0; animation:introIn 1.1s var(--ease) 1.3s forwards; animation-play-state:paused}
body.ready .hero-date{animation-play-state:running}
.hero-date i{display:block; width:28px; height:1px; background:rgba(255,255,255,.42)}

.hero-rail{position:absolute; right:clamp(20px,2.6vw,42px); top:50%; transform:translateY(-50%); z-index:3;
  writing-mode:vertical-rl; font-size:10px; letter-spacing:.44em; color:rgba(255,255,255,.5);
  opacity:0; animation:introIn 1s var(--ease) 1.6s forwards; animation-play-state:paused}
body.ready .hero-rail{animation-play-state:running}

.scroller{position:absolute; left:50%; bottom:30px; transform:translateX(-50%); z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:12px;
  opacity:0; animation:introIn 1s var(--ease) 1.8s forwards; animation-play-state:paused}
body.ready .scroller{animation-play-state:running}
.scroller em{font-style:normal; font-size:9px; letter-spacing:.34em; text-transform:uppercase; color:rgba(255,255,255,.55)}
.scroller span{display:block; width:1px; height:50px; background:rgba(255,255,255,.2); position:relative; overflow:hidden}
.scroller span::after{content:''; position:absolute; top:-50px; left:0; width:1px; height:50px; background:var(--gold-l);
  animation:scrollLine 2.6s var(--ease) infinite}
@keyframes scrollLine{0%{top:-50px}60%,100%{top:50px}}

/* ---------- marquee ---------- */
.marquee{overflow:hidden; background:var(--bg2); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); padding:16px 0}
.marquee-in{display:flex; align-items:center; gap:28px; width:max-content; white-space:nowrap; animation:slide 48s linear infinite}
.marquee-in span{font-family:var(--serif); font-size:19px; letter-spacing:.24em; text-transform:uppercase; color:var(--fg); opacity:.7}
.marquee-in b{color:var(--gold); font-size:10px; font-weight:400}
@keyframes slide{to{transform:translateX(-50%)}}

/* ---------- story ---------- */
.story{padding:clamp(100px,15vw,200px) 0}
.story-grid{display:grid; grid-template-columns:5fr 6fr; gap:clamp(48px,8vw,130px); align-items:center}

.arch-box{position:relative; max-width:470px}
.arch{position:relative; overflow:hidden; aspect-ratio:3/4.05; background:var(--bg2);
  border-radius:50% 50% 4px 4px / 33% 33% 2% 2%}
.arch .mask{position:absolute; inset:0; overflow:hidden; display:block; clip-path:inset(0 0 100% 0); transition:clip-path 1.5s var(--soft)}
.arch-box.on .arch .mask{clip-path:inset(0 0 0 0)}
.arch img{width:100%; height:100%; object-fit:cover; object-position:center 30%; transform:scale(1.16); transition:transform 1.8s var(--soft)}
.arch-box.on .arch img{transform:scale(1)}
.arch-outline{position:absolute; inset:24px -28px -28px 28px; border:1px solid var(--gold); opacity:.5; z-index:-1;
  border-radius:50% 50% 4px 4px / 33% 33% 2% 2%}
.arch-detail{position:absolute; right:-28px; bottom:-34px; width:40%; max-width:168px; aspect-ratio:1;
  object-fit:cover; border:7px solid var(--bg); box-shadow:0 26px 60px -28px rgba(0,0,0,.7)}

.story-text p{color:var(--muted); font-size:16.5px; margin:0 0 18px}
.story-text h2{margin-bottom:0}
.story-text .sign{font-family:var(--script); font-size:38px; color:var(--gold); margin-top:36px; line-height:1.3}

/* ---------- parallax band ---------- */
.band{position:relative; min-height:clamp(440px,70vh,680px); display:grid; place-items:center; overflow:hidden}
.band-bg{position:absolute; inset:-14% 0; background-size:cover; background-position:center 55%; will-change:transform}
.band::after{content:''; position:absolute; inset:0;
  background:
    linear-gradient(95deg, rgba(8,7,6,.86) 0%, rgba(8,7,6,.64) 34%, rgba(8,7,6,.3) 60%, rgba(8,7,6,.52) 100%),
    linear-gradient(180deg, rgba(8,7,6,.32), rgba(8,7,6,.48))}
.band-in{position:relative; z-index:2; text-align:left; color:#fff; width:100%; max-width:1320px; margin:0 auto; padding:70px var(--pad)}
.band-quote{margin:0; max-width:13ch; font-family:var(--serif); color:#fff; font-size:clamp(32px,5.6vw,70px); line-height:1.24; font-weight:300}
.band-quote em{font-family:var(--script); font-style:normal; color:var(--gold-l); font-size:1.08em}

/* ---------- duo ---------- */
.duo{padding:clamp(86px,12vw,160px) 0}
.duo-grid{display:grid; grid-template-columns:1fr auto 1.3fr; gap:clamp(20px,4vw,60px); align-items:center}
.duo figure{margin:0; position:relative; overflow:hidden; background:var(--bg2)}
.duo .mask{display:block; position:absolute; inset:0; overflow:hidden; clip-path:inset(0 0 100% 0); transition:clip-path 1.4s var(--soft)}
.duo figure.on .mask{clip-path:inset(0 0 0 0)}
.duo .mask img{width:100%; height:100%; object-fit:cover; transform:scale(1.14); transition:transform 1.7s var(--soft)}
.duo figure.on .mask img{transform:scale(1)}
.duo-a{aspect-ratio:3/4; margin-top:clamp(26px,6vw,90px)}
.duo-b{aspect-ratio:3/2; margin-bottom:clamp(26px,6vw,90px)}
.duo-mid{display:flex; justify-content:center}
.vert{writing-mode:vertical-rl; transform:rotate(180deg); margin:0;
  font-size:10px; letter-spacing:.46em; text-transform:uppercase; color:var(--gold); white-space:nowrap}

/* ---------- gallery ---------- */
.gallery{padding:clamp(90px,13vw,160px) 0 clamp(76px,10vw,124px)}
.sec-head{text-align:center; margin-bottom:clamp(52px,6.5vw,86px); display:flex; flex-direction:column; align-items:center}
.sec-sub{margin:4px 0 0; color:var(--muted); font-size:12.5px; letter-spacing:.08em}

.chapter{display:flex; align-items:center; gap:clamp(18px,4vw,50px); margin:clamp(58px,7.5vw,92px) 0 clamp(30px,3.6vw,46px)}
.chapter:first-of-type{margin-top:0}
.chapter > i{flex:1; height:1px; background:var(--rule)}
.chapter-txt{text-align:center; flex:none}
.chapter-no{display:block; font-family:var(--serif); font-style:italic; font-size:15px; color:var(--gold); margin-bottom:4px}
.chapter h3{font-size:clamp(24px,3vw,36px); line-height:1.2}
.chapter p{margin:5px 0 0; font-size:10.5px; letter-spacing:.32em; text-transform:uppercase; color:var(--muted)}

.grid{display:flex; flex-wrap:wrap; gap:18px}
.grid::after{content:''; flex-grow:999999}
.cell{position:relative; overflow:hidden; background:var(--bg2); cursor:none; flex:var(--r) 1 calc(var(--r) * 340px)}
.cell::before{content:''; display:block; padding-top:calc(100% / var(--r))}
.cell-mask{position:absolute; inset:0; overflow:hidden; display:block;
  clip-path:inset(0 0 100% 0); transition:clip-path 1.25s var(--soft); transition-delay:var(--s)}
.cell.on .cell-mask{clip-path:inset(0 0 0 0)}
.cell-mask img{width:100%; height:100%; object-fit:cover; transform:scale(1.16);
  transition:transform 1.5s var(--soft); transition-delay:var(--s)}
.cell.on .cell-mask img{transform:scale(1)}
.cell.on:hover .cell-mask img{transform:scale(1.055); transition:transform 1.2s var(--ease); transition-delay:0s}
.cell-veil{position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,8,6,0) 52%,rgba(10,8,6,.5));
  opacity:0; transition:opacity .6s var(--ease)}
.cell-veil::after{content:''; position:absolute; inset:12px; border:1px solid rgba(231,215,174,.45);
  opacity:0; transform:scale(1.02); transition:opacity .6s var(--ease), transform .6s var(--ease)}
.cell:hover .cell-veil{opacity:1}
.cell:hover .cell-veil::after{opacity:1; transform:none}
.cell-no{position:absolute; left:20px; bottom:15px; font-size:10px; letter-spacing:.32em; color:#fff;
  opacity:0; transform:translateY(8px); transition:opacity .5s var(--ease), transform .5s var(--ease)}
.cell:hover .cell-no{opacity:1; transform:none}
.cell::after{content:''; position:absolute; inset:0; border:1px solid var(--rule); pointer-events:none; z-index:2}
.cell:focus-visible{outline:2px solid var(--gold); outline-offset:3px}
.empty{text-align:center; color:var(--muted)}
.empty code{background:var(--bg2); padding:2px 8px; font-size:13px}

.cursor{position:fixed; top:0; left:0; z-index:95; width:86px; height:86px; border-radius:50%;
  background:rgba(231,215,174,.95); backdrop-filter:blur(3px); color:#14110E; display:grid; place-items:center;
  pointer-events:none; transform:translate(-50%,-50%) scale(.2); opacity:0; transition:opacity .3s var(--ease)}
.cursor span{font-size:9.5px; letter-spacing:.26em; text-transform:uppercase}
.cursor.on{opacity:1}
@media (hover:none){ .cursor{display:none} .cell{cursor:zoom-in} }

/* ---------- film ---------- */
.film{background:var(--bg2); color:var(--fg); padding:clamp(96px,14vw,170px) 0; border-top:1px solid var(--rule); border-bottom:1px solid var(--rule)}
.player{max-width:1100px; margin:0 auto; position:relative; padding:11px; background:rgba(201,174,120,.14)}
.player::after{content:''; position:absolute; inset:0; border:1px solid rgba(201,174,120,.32); pointer-events:none}
.ratio{position:relative; width:100%; aspect-ratio:16/9; background:#000; overflow:hidden}
.ratio iframe,.ratio video{position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:cover}
.film-soon{background-size:cover; background-position:center; display:grid; place-items:center; position:relative}
.film-soon::after{content:''; position:absolute; inset:0; background:rgba(8,7,6,.58)}
.film-soon-in{position:relative; z-index:2; text-align:center; color:#fff; display:flex; flex-direction:column; align-items:center; gap:18px}
.play{width:74px; height:74px; border:1px solid rgba(255,255,255,.4); border-radius:50%; display:grid; place-items:center; padding-left:4px}
.film-soon-in p{margin:0; font-size:10.5px; letter-spacing:.3em; text-transform:uppercase; opacity:.8}

/* ---------- thanks ---------- */
.thanks{padding:clamp(86px,11vw,140px) 0; text-align:center; background:var(--bg)}
.thanks-in{display:flex; flex-direction:column; align-items:center; gap:18px}
.thanks-text{margin:0; color:var(--muted); font-size:16px; line-height:2}

/* ---------- footer ---------- */
.foot{background:var(--bg2); padding:clamp(70px,9vw,112px) 0; text-align:center; border-top:1px solid var(--rule)}
.foot-in{display:flex; flex-direction:column; align-items:center}
.foot-mono{width:96px; height:96px; border:1px solid var(--gold); border-radius:50%;
  display:grid; place-items:center; margin-bottom:28px}
.foot-ini{font-family:var(--serif); font-size:27px; letter-spacing:.06em; color:var(--fg)}
.foot-ini i{font-style:italic; color:var(--gold)}
.foot-names{margin:0; font-family:var(--serif); font-size:clamp(30px,3.8vw,46px); font-weight:300}
.foot-date{display:flex; align-items:center; justify-content:center; gap:14px; margin-top:16px;
  font-size:11px; letter-spacing:.36em; color:var(--gold)}
.foot-date i{display:block; width:24px; height:1px; background:currentColor; opacity:.5}

/* ---------- floating buttons ---------- */
.to-top,.music{position:fixed; bottom:22px; z-index:88; width:46px; height:46px; border-radius:50%;
  background:color-mix(in srgb, var(--fg) 88%, transparent); color:var(--bg); display:grid; place-items:center;
  opacity:0; visibility:hidden; transform:translateY(10px);
  transition:opacity .45s var(--ease), transform .45s var(--ease), visibility .45s, background .3s}
.to-top{right:22px}
.music{left:22px}
.music[hidden]{display:none}
.to-top.on,.music.on{opacity:1; visibility:visible; transform:none}
.to-top:hover,.music:hover{background:var(--gold); color:#14110E}
.music .ico-off{display:none}
.music.muted{background:color-mix(in srgb, var(--fg) 45%, transparent)}
.music.muted .ico-on{display:none}
.music.muted .ico-off{display:block}
.music::after{content:''; position:absolute; inset:-5px; border-radius:50%; border:1px solid var(--gold);
  opacity:0; animation:pulse 2.8s var(--ease) infinite}
.music.muted::after{animation:none; opacity:0}
@keyframes pulse{0%{opacity:.5; transform:scale(.9)} 70%,100%{opacity:0; transform:scale(1.25)}}

/* ---------- lightbox ---------- */
.lb:focus{outline:none}
.lb{position:fixed; inset:0; z-index:200; background:rgba(8,7,6,.985);
  display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .4s var(--ease)}
.lb[hidden]{display:none}
.lb.open{opacity:1}
.lb-stage{position:relative; width:100%; height:100%; display:flex; align-items:center; justify-content:center; padding:76px 84px 132px}
#lbImg{max-width:min(100%, calc(100vw - 168px)); max-height:min(100%, calc(100svh - 212px));
  width:auto; height:auto; object-fit:contain; opacity:0; transform:scale(.99);
  transition:opacity .45s var(--ease), transform .45s var(--ease); box-shadow:0 30px 90px -30px rgba(0,0,0,.9)}
#lbImg.shown{opacity:1; transform:none}
.lb-spin{position:absolute; width:26px; height:26px; border:1px solid rgba(255,255,255,.18);
  border-top-color:var(--gold-l); border-radius:50%; animation:spin .8s linear infinite; opacity:0; transition:opacity .2s}
.lb-spin.shown{opacity:1}
@keyframes spin{to{transform:rotate(360deg)}}

.lb-top{position:absolute; top:0; left:0; right:0; z-index:6; display:flex; align-items:center; gap:18px; padding:20px clamp(16px,2.4vw,30px)}
.lb-count{font-size:10.5px; letter-spacing:.3em; color:rgba(255,255,255,.52); flex:none}
.lb-cap{flex:1; text-align:center; font-family:var(--serif); font-style:italic; font-size:18px; color:rgba(255,255,255,.72)}
.lb-tools{display:flex; align-items:center; gap:10px; flex:none}
.lb button, .lb a{color:rgba(255,255,255,.7); transition:color .3s, background .3s, border-color .3s}
.lb button:hover, .lb a:hover{color:#fff}
.lb-dl{display:inline-flex; align-items:center; gap:8px; font-size:10px; letter-spacing:.22em; text-transform:uppercase;
  padding:9px 18px; border:1px solid rgba(255,255,255,.2); border-radius:999px}
.lb-dl:hover{border-color:rgba(255,255,255,.5)}
.lb-close{width:42px; height:42px; display:grid; place-items:center; border-radius:50%}
.lb-close:hover{background:rgba(255,255,255,.1)}
.lb-arrow{position:absolute; top:calc(50% - 30px); transform:translateY(-50%); z-index:6; width:58px; height:58px;
  display:grid; place-items:center; border-radius:50%}
.lb-arrow:hover{background:rgba(255,255,255,.1)}
.lb-prev{left:14px}
.lb-next{right:14px}

.lb-strip{position:absolute; left:0; right:0; bottom:0; z-index:6; display:flex; gap:8px; justify-content:center;
  padding:0 16px 20px; overflow-x:auto; scrollbar-width:none}
.lb-strip::-webkit-scrollbar{display:none}
.lb-strip img{width:58px; height:44px; object-fit:cover; flex:none; opacity:.32; cursor:pointer;
  transition:opacity .35s var(--ease), transform .35s var(--ease); border:1px solid transparent}
.lb-strip img:hover{opacity:.7}
.lb-strip img.active{opacity:1; border-color:var(--gold-l); transform:translateY(-4px)}

body.locked{overflow:hidden}
body.locked .head,body.locked .to-top,body.locked .music{opacity:0; visibility:hidden; pointer-events:none}

/* ---------- reveal ---------- */
.reveal{opacity:0; transform:translateY(26px); transition:opacity 1s var(--ease), transform 1s var(--ease)}
.reveal.on{opacity:1; transform:none}
.d1{transition-delay:.1s}.d2{transition-delay:.2s}.d3{transition-delay:.3s}.d4{transition-delay:.4s}.d5{transition-delay:.5s}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .cell{flex-basis:calc(var(--r) * 250px)}
  .story-grid{grid-template-columns:1fr; gap:66px; justify-items:center}
  .story-text{max-width:560px}
  .arch-box{max-width:400px}
  .hero-rail{display:none}
}
@media (max-width:820px){
  .hero-bg{inset:0}
  .hero-bg img{object-position:center 18%}
  .hero{place-items:end center}
  .hero-in{padding:0 22px clamp(130px,22vh,190px)}
  .story{padding-top:clamp(58px,10vw,90px)}
  .hero-veil{background:
    linear-gradient(180deg, rgba(8,7,5,.58) 0%, rgba(8,7,5,.08) 26%, rgba(8,7,5,.5) 62%, rgba(8,7,5,.88) 100%)}
  .duo-grid{grid-template-columns:1fr; gap:26px}
  .duo-a,.duo-b{margin:0; max-width:520px; width:100%}
  .duo-b{justify-self:end}
  .duo-mid{display:none}
}
@media (max-width:640px){
  .nav{gap:16px}
  .nav a{font-size:9.5px; letter-spacing:.11em}
  .grid{gap:10px}
  .cell{flex:1 1 100%}
  .marquee-in span{font-size:15px}
  .arch-detail{right:-14px; bottom:-22px; border-width:5px}
  .chapter{gap:14px}
  .lb-stage{padding:66px 10px 112px}
  #lbImg{max-width:calc(100vw - 20px); max-height:calc(100svh - 178px)}
  .lb-cap{display:none}
  .lb-dl span{display:none}
  .lb-dl{padding:9px 12px}
  .lb-arrow{width:44px; height:44px}
  .lb-prev{left:0}.lb-next{right:0}
  .lb-strip img{width:46px; height:36px}
  .lb-strip{justify-content:flex-start}
  .to-top{right:14px; bottom:14px; width:42px; height:42px}
  .music{left:14px; bottom:14px; width:42px; height:42px}
}
@media (max-width:560px){ .nav a:nth-child(1){display:none} }

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important}
  html{scroll-behavior:auto}
  .reveal{opacity:1; transform:none}
  .cell-mask,.arch .mask,.duo .mask{clip-path:none}
  .cell-mask img,.arch img,.duo .mask img{transform:none}
  .name .l,.eyebrow span{transform:none}
  .amp,.hero-date,.scroller,.hero-frame,.hero-rail,.crest{opacity:1}
}
