/* Reelzo site, v6: your name on the wall, the manifesto, the chapter rail, the living founder photo, optional sound. */

.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* ---------- your name on the wall ---------- */
.yourname{padding:clamp(72px,11vw,150px) var(--gut)}
.yn-head{margin-bottom:clamp(26px,4vw,44px)}
.yn-head p{color:var(--soft)}
.yn-field{display:block; max-width:720px}
.yn-field input{width:100%; background:transparent; border:0; border-bottom:1px solid var(--line-strong); color:var(--ivory); border-radius:0;
  font-family:var(--display); font-size:clamp(1.8rem,4.6vw,3rem); line-height:1.3; padding:6px 0 10px; outline:0; transition:border-color .3s}
.yn-field input:focus{border-bottom-color:var(--ivory)}
.yn-field input::placeholder{color:var(--dim)}
.yn-stage{position:relative; isolation:isolate; overflow:hidden; margin-top:clamp(26px,4vw,44px); min-height:clamp(260px,44vh,460px);
  display:grid; place-items:center; border-radius:clamp(16px,2vw,26px); border:1px solid var(--line); cursor:crosshair;
  background:radial-gradient(120% 100% at 50% 120%, #0F0303 0%, rgba(15,3,3,0) 60%), linear-gradient(180deg,#2c0808,#1c0505)}
.yn-stage::after{content:""; position:absolute; inset:0; z-index:-1; opacity:.45; mix-blend-mode:overlay; pointer-events:none; background:url("wall-grain.jpg") 0 0/300px 300px}
.yn-spot{position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(46% 70% at var(--lx,32%) var(--ly,8%), rgba(205,56,46,.62), rgba(140,26,26,.2) 46%, rgba(0,0,0,0) 72%)}
.yn-sign{text-align:center; padding:28px 24px; max-width:100%}
.yn-over{direction:ltr; font:500 clamp(9px,1.1vw,12px) Montserrat,sans-serif; letter-spacing:.42em; text-indent:.42em; text-transform:uppercase; color:var(--soft); margin-bottom:14px}
.yn-name{color:var(--ivory); line-height:1.15; font-size:clamp(2.6rem,8.4vw,7rem); font-weight:500; white-space:nowrap; padding:.06em 0;
  font-family:"Markazi Text","Cormorant Garamond",serif; transition:opacity .3s}
.yn-name.latin{font-family:"Cormorant Garamond",serif; font-weight:400; letter-spacing:-.01em}
.yn-name.empty{opacity:.32}
.yn-rule{width:min(46%,260px); height:1px; margin:18px auto 0; background:var(--line-strong)}
.yn-go{display:flex; flex-wrap:wrap; gap:12px; margin-top:22px}
.yn-go .pill{padding:13px 26px}
.yn-go .pill[disabled]{opacity:.45; pointer-events:none}

/* ---------- the manifesto ---------- */
.manifesto{padding:clamp(70px,10vw,140px) 0 clamp(30px,5vw,60px); overflow:hidden; direction:ltr} /* rows measure from the left; each word keeps its own direction */
.mf-row{display:flex; direction:ltr; width:max-content; gap:clamp(28px,4vw,64px); white-space:nowrap; will-change:transform; padding:clamp(4px,1vw,10px) 0}
.mf-row span{font-family:var(--display); font-weight:500; font-size:clamp(3.2rem,11vw,10rem); line-height:1.15;
  color:transparent; -webkit-text-stroke:1px rgba(245,242,238,.38); transition:color .5s, -webkit-text-stroke-color .5s}
.mf-row span.lit{color:var(--ivory); -webkit-text-stroke-color:var(--ivory)}
.mf-row i{align-self:center; flex:none; width:clamp(8px,1vw,14px); height:clamp(8px,1vw,14px); border-radius:50%; background:var(--rich)}
html[lang="en"] .mf-row span{font-family:"Cormorant Garamond",serif; font-weight:400; font-style:italic}

/* the method now follows the manifesto on the same wall */
#method{padding-top:clamp(30px,5vw,60px)}

/* ---------- FAQ stands on its own now ---------- */
.faq{padding-top:clamp(72px,11vw,150px)}
.faq .sec-head{padding-top:0; border-top:0}

/* ---------- the chapter rail ---------- */
.rail{position:fixed; z-index:20; top:50%; inset-inline-end:clamp(14px,1.6vw,26px); transform:translateY(-50%); display:none;
  flex-direction:column; gap:14px; mix-blend-mode:difference; opacity:0; transition:opacity .5s}
.rail.on{opacity:1}
.rail a{display:flex; align-items:center; gap:10px; flex-direction:row-reverse; color:#fff; font-size:12px; letter-spacing:.04em}
.rail a i{flex:none; width:7px; height:7px; border-radius:50%; border:1px solid #fff; transition:background .3s, transform .3s}
.rail a span{opacity:0; transform:translateX(6px); transition:opacity .3s, transform .3s; white-space:nowrap}
html[dir="rtl"] .rail a span{transform:translateX(-6px)}
.rail a.on i{background:#fff; transform:scale(1.25)}
.rail:hover a span,.rail a.on span,.rail a:focus-visible span{opacity:1; transform:none}
@media (min-width:1100px) and (min-height:620px){ .rail{display:flex} }

/* ---------- the founder photo ripples under the pointer ---------- */
.founder figure{position:relative}
.ripple-canvas{position:absolute; left:0; top:0; pointer-events:none; mix-blend-mode:multiply; opacity:0; transition:opacity .4s}
.founder figure.rippling .ripple-canvas{opacity:1}

/* ---------- optional sound ---------- */
.snd{width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); display:grid; place-items:center; color:var(--ivory); transition:background .25s, color .25s}
.snd:hover{background:var(--ivory); color:var(--midnight)}
.snd svg{width:18px; height:18px}
.snd .w{display:none}
.snd[aria-pressed="true"] .w{display:block}
.snd[aria-pressed="true"] .x{display:none}
@media (max-width:860px){ .snd{width:40px; height:40px} }
@media (max-width:520px){ .top .snd{display:none} } /* small phones: the header stays uncluttered */
.ripple-canvas{-webkit-mask-image:linear-gradient(180deg,#000 74%,rgba(0,0,0,0)); mask-image:linear-gradient(180deg,#000 74%,rgba(0,0,0,0))}
.founder figure.rippling img{opacity:0; transition:opacity .2s}

@media (prefers-reduced-motion:reduce){
  .mf-row{flex-wrap:wrap; white-space:normal; justify-content:center}
  .mf-row span{font-size:clamp(2rem,6vw,4rem); color:var(--ivory); -webkit-text-stroke:0}
}
