/* «عشق و نفرت» collection story — scene styles (hero · idea · tale · sword · next). Hand-written, tokens only.
   Default = still state (no JS / reduced motion); .lh-live is added by love-and-hate.js. Tones (.ksh-tone--*) and the
   simple chapters live in ksh-ds.css. Prefix lh-. Plan: docs/plans/2026-11-10-love-and-hate-story.md */
html.ksh-lock,html.ksh-lock body{overflow:hidden}
.ksh-story{font-family:var(--font-fa-body);-webkit-font-smoothing:antialiased;position:relative}
.ksh-story *{box-sizing:border-box}
.ksh-story :is(img,video,canvas,svg){display:block;max-width:none}
.ksh-story :is(h1,h2,h3){font-family:var(--font-fa-display);color:inherit;margin:0;letter-spacing:0}
.ksh-story :is(p,figure){margin:0}
.ksh-story a{color:inherit;text-decoration:none}
.ksh-story :is(h1,h2,h3,p,b,a,figcaption){color:inherit}

.ksh-story .lh-head{max-width:1320px;margin:0 auto;padding:clamp(80px,14vh,160px) clamp(20px,6vw,96px) clamp(28px,5vh,56px);display:flex;flex-direction:column;gap:var(--space-5)}
.ksh-story .lh-eyebrow{display:flex;flex-wrap:wrap;gap:12px;align-items:baseline;font-size:13px;color:var(--text-on-dark-muted)}
.ksh-story .lh-eyebrow b{font-weight:400;color:var(--gold)}
.ksh-story .lh-lead{font-weight:300;font-size:clamp(18px,1.7vw,24px);line-height:1.95;max-width:34em;text-wrap:pretty;color:var(--text-on-dark-muted)}
.ksh-story .lh-btn{font:inherit;font-size:14px;font-weight:400;line-height:1.4;color:var(--lavender-paper);background:transparent;border:1px solid var(--line-inverse);border-radius:0;padding:14px 28px;cursor:pointer;min-width:12em;transition:var(--transition-color)}
.ksh-story .lh-btn:hover,.ksh-story .lh-btn:focus-visible{background:var(--lavender-paper);color:var(--ink);border-color:var(--lavender-paper)}
.ksh-story .lh-btn:focus-visible,.ksh-story .lh-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------- Scene · hero ---------- */
.lh-scene[data-scene="hero"] .lh-pin{position:relative;height:100vh;height:100svh;overflow:hidden;background:var(--ink)}
.lh-scene[data-scene="hero"] .lh-still,
.lh-scene[data-scene="hero"] .lh-canvas,
.lh-scene[data-scene="hero"] .lh-veil{position:absolute;inset:0;width:100%;height:100%}
.lh-scene[data-scene="hero"] .lh-still{object-fit:cover;will-change:transform}
.lh-scene[data-scene="hero"] .lh-canvas{display:none;will-change:transform}
.lh-scene[data-scene="hero"].lh-video .lh-canvas{display:block}
.lh-scene[data-scene="hero"] .lh-veil{background:var(--gradient-veil);top:38%;height:62%}
.lh-scene[data-scene="hero"] .lh-title{position:absolute;inset-inline:0;bottom:clamp(150px,27vh,300px);text-align:center;font-weight:200;font-size:clamp(64px,10.5vw,170px);line-height:1.2;color:var(--lavender-paper)}
.lh-scene[data-scene="hero"] .lh-foot{position:absolute;inset:auto 0 0 0;padding:clamp(24px,6vh,64px) clamp(20px,4vw,56px);display:flex;justify-content:center}
.lh-scene[data-scene="hero"] .lh-key{font-weight:300;font-size:clamp(18px,1.9vw,30px);line-height:1.9;text-align:center;max-width:30ch;text-wrap:balance;color:var(--lavender-paper)}
.lh-scene[data-scene="hero"] .lh-w{display:inline}
.lh-scene[data-scene="hero"] .lh-hint{display:none;position:absolute;bottom:14px;left:50%;width:1px;height:34px;background:var(--lavender-paper);transform-origin:50% 0;animation:lh-hint 2.4s var(--ease-inout) infinite}
.lh-scene[data-scene="hero"].lh-live .lh-hint{display:block}
@keyframes lh-hint{0%{transform:scaleY(0)}50%{transform:scaleY(1)}100%{transform:scaleY(0) translateY(34px)}}
.lh-scene[data-scene="hero"] .lh-toggle{position:absolute;top:84px;inset-inline-start:clamp(20px,4vw,56px);font:inherit;font-size:12px;line-height:1.4;color:var(--lavender-paper);background:color-mix(in srgb,var(--ink) 55%,transparent);border:1px solid var(--line-inverse);border-radius:0;padding:6px 12px;cursor:pointer}
.lh-scene[data-scene="hero"] .lh-toggle:hover{background:var(--lavender-paper);color:var(--ink)}
/* gate + loader: only when the script is live */
.lh-scene[data-scene="hero"] :is(.lh-gate,.lh-loader){display:none}
.lh-scene[data-scene="hero"].lh-asking .lh-gate{display:grid;position:fixed;inset:0;z-index:90;place-items:center;padding:var(--gutter);background:color-mix(in srgb,var(--ink) 38%,transparent);-webkit-backdrop-filter:blur(22px) saturate(1.1);backdrop-filter:blur(22px) saturate(1.1);color:var(--lavender-paper);overflow:auto}
/* the warning is a medal: a round gold-rimmed disc over the blurred page */
.lh-scene[data-scene="hero"] .lh-gate-in{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--space-4);width:min(34rem,92vw);padding:clamp(32px,6vw,60px) clamp(24px,5vw,56px);border-radius:0;text-align:center;background:color-mix(in srgb,var(--ink) 86%,transparent);border:1px solid color-mix(in srgb,var(--gold) 55%,transparent);outline:1px solid color-mix(in srgb,var(--gold) 28%,transparent);outline-offset:8px;box-shadow:0 40px 120px rgba(0,0,0,.55)}
.lh-scene[data-scene="hero"] .lh-gate h2{font-weight:300;font-size:clamp(22px,3.4vw,34px);line-height:1.5}
.lh-scene[data-scene="hero"] .lh-gate p{font-weight:300;font-size:clamp(13px,1.5vw,16px);line-height:1.9;max-width:24em;color:var(--text-on-dark-muted)}
.lh-scene[data-scene="hero"] .lh-gate-act{display:flex;flex-wrap:wrap;gap:var(--space-4);justify-content:center;margin-top:var(--space-3)}
.lh-scene[data-scene="hero"] :is(.lh-mark,.lh-loader svg){width:44px;height:auto;overflow:visible}
.lh-scene[data-scene="hero"] :is(.lh-mark,.lh-loader svg) :is(path,line){fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:square;stroke-linejoin:miter}
.lh-scene[data-scene="hero"] .lh-mark :is(path,line){stroke-dasharray:1;stroke-dashoffset:0}
.lh-scene[data-scene="hero"].lh-loading .lh-loader{display:grid;position:fixed;inset:0;z-index:85;place-items:center;background:var(--ink);color:var(--lavender-paper)}
.lh-scene[data-scene="hero"] .lh-loader-in{display:flex;flex-direction:column;align-items:center;gap:22px}
.lh-scene[data-scene="hero"] .lh-loader :is(path,line){stroke-dasharray:1;stroke-dashoffset:1}
.lh-scene[data-scene="hero"] .lh-loader-name{font-size:40px;font-weight:200;line-height:1.4}
.lh-scene[data-scene="hero"] .lh-loader-pc{font-size:13px;color:var(--text-on-dark-muted);min-width:4ch;text-align:center}

/* ---------- Scene · idea (از ایده تا فرم) ---------- */
.lh-scene[data-scene="idea"] .lh-pin{max-width:1320px;margin:0 auto;padding:0 clamp(20px,6vw,96px) clamp(80px,12vh,140px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(28px,5vw,96px);align-items:center}
.lh-scene[data-scene="idea"] .lh-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:clamp(16px,3vh,28px)}
.lh-scene[data-scene="idea"] .lh-step{display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 14px;border-top:1px solid var(--line-inverse);padding-top:16px}
.lh-scene[data-scene="idea"] .lh-step b{font-weight:300;font-size:14px;color:var(--gold);padding-top:10px}
.lh-scene[data-scene="idea"] .lh-step h3{font-weight:300;font-size:var(--fs-h2);line-height:1.6}
.lh-scene[data-scene="idea"] .lh-step p{grid-column:2;font-size:16px;line-height:1.95;color:var(--text-on-dark-muted);overflow:hidden}
.lh-scene[data-scene="idea"] .lh-stage{position:relative;aspect-ratio:1;width:100%;max-width:min(82svh,760px);justify-self:center;overflow:hidden;background:var(--crimson-deep)}
.lh-scene[data-scene="idea"] .lh-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lh-scene[data-scene="idea"] :is(.lh-n0,.lh-n1,.lh-n2,.lh-glint){display:none}
.lh-scene[data-scene="idea"].lh-live :is(.lh-n0,.lh-n1,.lh-n2){display:block}
.lh-scene[data-scene="idea"].lh-live .lh-glint{display:block;position:absolute;inset:-10% -60%;pointer-events:none;mix-blend-mode:soft-light;background:linear-gradient(105deg,transparent 42%,color-mix(in srgb,var(--lavender-paper) 70%,transparent) 50%,transparent 58%)}
.lh-scene[data-scene="idea"].lh-live .lh-pin{height:100vh;height:100svh;padding-top:72px;padding-bottom:24px}
.lh-scene[data-scene="idea"].lh-live .lh-head{display:none}
@media (max-width:760px){
.lh-scene[data-scene="idea"] .lh-pin{grid-template-columns:1fr}
.lh-scene[data-scene="idea"].lh-live .lh-pin{align-content:center;gap:14px;padding-top:64px}
.lh-scene[data-scene="idea"].lh-live .lh-stage{order:-1;max-width:min(46svh,420px)}
.lh-scene[data-scene="idea"].lh-live .lh-step h3{font-size:18px}
.lh-scene[data-scene="idea"].lh-live .lh-step p{font-size:13px;line-height:1.85}
}

/* ---------- Scene · tale (از قصه تا طرح) ---------- */
.lh-scene[data-scene="tale"] .lh-pin{position:relative;max-width:1320px;margin:0 auto;padding:0 clamp(20px,6vw,96px) clamp(80px,12vh,140px)}
.lh-scene[data-scene="tale"] .lh-tale{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,3vw,48px);align-items:end}
.lh-scene[data-scene="tale"] .lh-pole{display:flex;flex-direction:column;gap:var(--space-3)}
.lh-scene[data-scene="tale"] .lh-pole--mirror{order:0}
.lh-scene[data-scene="tale"] .lh-card{position:relative;aspect-ratio:3/4;overflow:hidden;background:var(--lavender-paper)}
.lh-scene[data-scene="tale"] .lh-card .lh-ill{width:100%;height:100%;object-fit:cover}
.lh-scene[data-scene="tale"] .lh-card .lh-sk{position:absolute;inset-block-end:0;inset-inline-start:0;width:46%;height:auto;aspect-ratio:1000/1339;object-fit:cover;box-shadow:0 0 0 1px var(--line-inverse)}
.lh-scene[data-scene="tale"] figcaption{display:flex;flex-direction:column;gap:2px;color:var(--lavender-paper)}
.lh-scene[data-scene="tale"] figcaption b{font-weight:300;font-size:var(--fs-h2);line-height:1.6}
.lh-scene[data-scene="tale"] figcaption span{font-size:14px;color:var(--text-on-dark-muted)}
.lh-scene[data-scene="tale"] .lh-thorn{display:none}
.lh-scene[data-scene="tale"] .lh-pole--love .lh-card{box-shadow:0 0 0 1px color-mix(in srgb,var(--gold) 55%,transparent)}
.lh-scene[data-scene="tale"] .lh-pole--hate .lh-card{box-shadow:0 0 0 1px var(--line-inverse)}
.lh-scene[data-scene="tale"].lh-live .lh-pin{height:100vh;height:100svh;padding-top:72px;padding-bottom:24px;display:flex;flex-direction:column;justify-content:center;gap:var(--space-4)}
.lh-scene[data-scene="tale"].lh-live .lh-head{position:absolute;z-index:2;top:0;inset-inline:0;padding-top:78px;padding-bottom:0;pointer-events:none}
.lh-scene[data-scene="tale"].lh-live .lh-lead{display:none}
.lh-scene[data-scene="tale"].lh-live .lh-tale{margin-top:clamp(24px,4vh,48px)}
.lh-scene[data-scene="tale"].lh-live .lh-card{aspect-ratio:3/4;max-height:min(58svh,560px);width:auto;margin-inline:auto}
.lh-scene[data-scene="tale"].lh-live .lh-thorn{display:block;width:100%;height:34px;margin-top:var(--space-3)}
.lh-scene[data-scene="tale"] .lh-thorn path,.lh-scene[data-scene="tale"] .lh-thorn line{fill:none;stroke:var(--gold);stroke-width:1.5;stroke-linecap:square;vector-effect:non-scaling-stroke}
@media (max-width:760px){
.lh-scene[data-scene="tale"] .lh-tale{grid-template-columns:1fr;gap:var(--space-7)}
.lh-scene[data-scene="tale"].lh-live .lh-tale{display:block;position:relative;height:min(68svh,560px);margin-top:var(--space-6)}
.lh-scene[data-scene="tale"].lh-live .lh-pole{position:absolute;inset:0;align-items:center}
.lh-scene[data-scene="tale"].lh-live .lh-card{max-height:calc(min(68svh,560px) - 70px)}
.lh-scene[data-scene="tale"].lh-live .lh-thorn{display:none}
}

/* ---------- Scene · sword (شمشیر و قلب) ---------- */
.lh-scene[data-scene="sword"] .lh-pin{max-width:1320px;margin:0 auto;padding:clamp(72px,12vh,140px) clamp(20px,6vw,96px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,96px);align-items:center}
.lh-scene[data-scene="sword"] .lh-sw-text{display:flex;flex-direction:column;gap:var(--space-5)}
.lh-scene[data-scene="sword"] .lh-sw-l{font-weight:300;font-size:clamp(18px,1.8vw,26px);line-height:2;max-width:26em;text-wrap:pretty}
.lh-scene[data-scene="sword"] .lh-sw-stage{position:relative;aspect-ratio:1;width:100%;max-width:min(78svh,640px);justify-self:center}
.lh-scene[data-scene="sword"] .lh-sw-stage>img,.lh-scene[data-scene="sword"] .lh-mist{position:absolute;inset:0;width:100%;height:100%;will-change:transform}
.lh-scene[data-scene="sword"] .lh-mist{display:none;pointer-events:none}
.lh-scene[data-scene="sword"].lh-live .lh-mist{display:block}
.lh-scene[data-scene="sword"].lh-live .lh-pin{height:100vh;height:100svh;padding-top:72px;padding-bottom:24px}
@media (max-width:760px){
.lh-scene[data-scene="sword"] .lh-pin{grid-template-columns:1fr}
.lh-scene[data-scene="sword"].lh-live .lh-pin{align-content:center;gap:10px;padding-top:64px}
.lh-scene[data-scene="sword"].lh-live .lh-sw-stage{order:-1;max-width:min(40svh,360px)}
.lh-scene[data-scene="sword"].lh-live .lh-sw-text{gap:10px;display:grid}
.lh-scene[data-scene="sword"].lh-live .lh-sw-l{grid-area:1/1;font-size:17px;line-height:1.9}
.lh-scene[data-scene="sword"].lh-live .lh-eyebrow{display:none}
}

/* ---------- Next collection ---------- */
.lh-next{padding:0}
.lh-next-link{display:block;position:relative;color:var(--lavender-paper)}
.lh-next-link:hover{color:var(--lavender-paper)}
.ksh-story .lh-next-img{width:100%;height:min(86vh,820px);object-fit:cover;opacity:.72;transition:opacity var(--dur-slow) var(--ease-soft)}
.ksh-story .lh-next-link:hover .lh-next-img{opacity:.86}
.lh-next-cap{position:absolute;inset:auto 0 0 0;padding:var(--space-9) var(--gutter-lg) var(--space-8);display:flex;flex-direction:column;gap:var(--space-3);background:var(--gradient-veil)}
.lh-next:not(:has(.lh-next-img)) .lh-next-cap{position:static;background:none}
.lh-next-name{font-weight:var(--fw-light);font-size:var(--fs-display-1);line-height:1.4}
@media (max-width:1024px){.lh-next-cap{padding-inline:var(--gutter)}}

/* reduced motion / no JS: no gate, no loader, nothing hidden */
html.ksh-still .lh-scene .lh-gate,html.ksh-still .lh-scene .lh-loader{display:none!important}
