/* ═══════════════════════════════════════════════════════════
   LIFANDI · 02 · Story — page styles (on top of styles.css)
   ═══════════════════════════════════════════════════════════ */

/* ─── shared story type ─── */
.eyebrow span{opacity:.45;margin:0 .15em}
.h-big{margin-top:12px;font-family:Inter,sans-serif;font-weight:800;font-size:clamp(40px,4.6vw,68px);line-height:1;letter-spacing:-2px;color:#000}
.h-big--light{color:#fff}
.tagline{margin-top:22px;font-family:Outfit,sans-serif;font-weight:800;font-size:clamp(15px,1.3vw,18px);letter-spacing:2.4px;text-transform:uppercase;color:#000}
.aside{margin-top:6px;display:inline-block;font-family:"Architects Daughter",cursive;font-size:clamp(18px,1.5vw,22px);color:#3a3834}
.prose{margin-top:26px;max-width:600px;font-size:clamp(16px,1.25vw,18px);line-height:1.62;color:#2a2830}
.prose p{min-height:30px;padding-bottom:.6px}
.prose p+p,.prose p+ul,.prose ul+p{margin-top:.85em}
.prose--light{color:rgba(255,255,255,.86)}
.beat{font-weight:700;color:#000}
.prose--light .beat{color:#fff}
.beat--big{font-size:1.4em;line-height:1.22;font-weight:800;letter-spacing:-.4px}
.prose p.beat--big{margin-top:21.42px;min-height:31px}
.beat--red{color:var(--red)!important}
.prose--light .beat--red{color:var(--red-hot)!important}

/* ═══════════════ HERO ═════════════════════════════════════ */
.p-hero{position:relative;overflow:hidden;background:#000;color:#fff;min-height:max(609px,52vw);display:flex;align-items:flex-end}
.p-hero-photo{position:absolute;inset:0;overflow:hidden}
.p-hero-photo img{position:absolute;inset:-1%;width:102%;height:102%;max-width:none;object-fit:cover;object-position:50% 12%}
.p-hero-shade{position:absolute;inset:0;background:
  linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
  linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, rgba(0,0,0,.85) 100%)}
.p-hero-in{position:relative;z-index:5;padding-top:130px;padding-bottom:56.5px}
.p-hero-title{margin-top:14px;font-family:Inter,sans-serif;font-weight:800;font-size:clamp(44px,6.4vw,96px);line-height:.96;letter-spacing:-2.92px}
.p-hero-title .hl{color:var(--yellow)}
.p-hero-copy{margin-top:26px;max-width:560px;font-family:var(--sf);font-weight:500;font-size:18px;line-height:1.5;letter-spacing:.17px;color:rgba(255,255,255,.86)}
.p-hero-turn{margin-top:10px;font-family:"Architects Daughter",cursive;font-size:22px;color:#fff;transform:rotate(-2deg);transform-origin:0 50%}

/* ═══════════════ CHAPTER RAIL ═════════════════════════════ */
.chapters{box-sizing:border-box;height:50.5px;position:sticky;top:0;z-index:25;background:rgba(7,9,12,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.06)}
.chapters-in{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-top:10px;padding-bottom:10px}
.chapters-in::-webkit-scrollbar{display:none}
.chapters a{flex:0 0 auto;padding:7px 14px;border-radius:999px;font-family:Outfit,sans-serif;font-weight:700;font-size:12.5px;letter-spacing:1.2px;text-transform:uppercase;color:rgba(255,255,255,.62);transition:background .25s,color .25s}
.chapters a:hover{color:#fff}
.chapters a.is-on{background:var(--yellow);color:#120a03}
section[id]{scroll-margin-top:64px}

/* ═══════════════ THE SETUP ════════════════════════════════ */
.setup{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,80px);align-items:center;padding-top:clamp(72px,8vw,120px);padding-bottom:clamp(72px,8vw,110px)}
.brand-word{color:var(--red)}
.setup-art{position:relative;height:clamp(380px,38vw,560px)}

/* polaroids on this page are larger, and not draggable */
.story-page .pol{margin:0;cursor:default;touch-action:auto}
.pol--lg{position:absolute;width:clamp(210px,21vw,310px)}
.pol--sm{position:absolute;width:clamp(150px,14vw,210px)}
.setup-art .pol:nth-child(1){left:0;top:0}
.setup-art .pol:nth-child(2){right:0;bottom:0}

/* ═══════════════ ACTS ═════════════════════════════════════ */
.act{position:relative;padding:clamp(80px,9vw,140px) 0;overflow:hidden}
.act--1{background:#faf8f3}
.act-in{position:relative;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,5vw,80px);align-items:center}
.act--2 .act-in{grid-template-columns:minmax(0,536px) minmax(0,1fr);column-gap:96px;margin-left:calc(var(--gutter) * -.1)}
.act-copy{position:relative;z-index:2}
.act-num{
  position:absolute;z-index:0;top:-.34em;right:-.02em;pointer-events:none;user-select:none;
  font-family:"Times New Roman",Times,Georgia,serif;font-weight:700;font-size:clamp(200px,24vw,360px);line-height:1;letter-spacing:-.02em;
  color:rgba(0,0,0,.05);
}
.act--2 .act-num{right:auto;left:-.02em;color:rgba(255,255,255,.045)}
.act-art{position:relative;height:clamp(400px,40vw,580px)}
.act--1 .act-art .pol--lg{right:6%;top:4%}
.act--1 .act-art .pol--sm{left:0;bottom:2%}

.checklist{margin-top:1em;display:flex;flex-direction:column;gap:10px}
.checklist li{position:relative;min-height:30px;padding-left:36px;font-weight:600;color:#000}
.checklist li::before{content:"";position:absolute;left:0;top:.18em;width:22px;height:22px;border:2px solid #000;border-radius:4px;background:#fff}
.checklist li::after{content:"";position:absolute;left:6px;top:.28em;width:9px;height:15px;border:solid var(--red);border-width:0 3.5px 3.5px 0;transform:rotate(40deg) scale(var(--tick,1));transform-origin:50% 60%}

/* Act II — the turn */
.act--2 .dark-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(70% 60% at 30% 40%, rgba(160,10,10,.22), transparent 70%)}
.drip{font-family:"Caveat Brush",cursive;font-weight:400;font-size:1.18em;letter-spacing:0;color:var(--red-hot);text-shadow:0 3px 0 rgba(0,0,0,.35);position:relative;top:3px}
.act--2 .act-art{display:flex;align-items:center;justify-content:center}
.act--2 .act-art{height:auto}
.act--2 .act-art .pol--lg{--w:clamp(250px,37.2vw,536px);position:relative;width:var(--w);padding:calc(var(--w)*.0361) calc(var(--w)*.0361) calc(var(--w)*.111);border-width:.745px;filter:drop-shadow(2.4px 14.4px 11.9px rgba(0,0,0,.11))}
.act--2 .act-art .tape{width:calc(var(--w)*.225);height:calc(var(--w)*.0639);margin-left:calc(var(--w)*-.1125);top:calc(var(--w)*-.0336)}
.pol--grim img{filter:grayscale(.35) contrast(1.12) brightness(.9)}
.pol--grim .tape{background:#c9261f;opacity:.88}
.act--2 .prose{max-width:640px}
.act--2 .h-big{min-height:149px}
.act--2{padding-bottom:clamp(80px,9vw,129.6px)}

/* Act III — the payoff */
.stamps{margin:1.1em 0 1.2em;display:flex;flex-wrap:wrap;gap:12px}
.stamps li{
  padding:8px 14px;border:2.5px solid var(--red);border-radius:6px;background:#fff;
  font-family:Outfit,sans-serif;font-weight:800;font-size:clamp(13px,1.1vw,15px);letter-spacing:1.4px;text-transform:uppercase;color:var(--red);
}
.stamps li:nth-child(1){transform:rotate(-4deg)}
.stamps li:nth-child(2){transform:rotate(2.5deg)}
.stamps li:nth-child(3){transform:rotate(-1.5deg);background:var(--red);color:#fff}
.act--3 .exp{transform:rotate(-5deg) translateY(-2px)}
.exp-line{position:absolute;left:-1.9%;top:88%;width:104%;height:auto;max-width:none;pointer-events:none}
.act-art--cow{height:clamp(380px,40vw,576px)}
.cow-tag{position:absolute;left:-1.7%;top:-8.4%;height:116.8%;width:auto;max-width:none;clip-path:inset(0 0 0 2.9%)}

/* ═══════════════ WHAT IT'S REALLY ABOUT ═══════════════════ */
.about{background:var(--yellow);color:#120a03;padding:clamp(80px,9vw,130px) 0;overflow:hidden}
.about-in{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);column-gap:clamp(32px,5vw,80px);align-items:end}
.about-in .eyebrow{grid-column:1 / -1;margin-bottom:18px}
.about-words{display:flex;flex-direction:column;font-family:"Inter Tight",sans-serif;font-weight:900;font-size:clamp(58px,10.4vw,160px);line-height:.86;letter-spacing:-.0225em;color:#120a03}
.about-words span{display:block}
.about-last{position:relative;color:var(--red)}
.about-copy{padding-bottom:.6em;font-size:clamp(16px,1.25vw,18px);line-height:1.6;color:#221a06}
.about-copy p+p{margin-top:.9em}
.about-almost{font-family:"Architects Daughter",cursive;font-size:clamp(26px,2.3vw,34px);line-height:1;color:#000;transform:rotate(-6deg);transform-origin:0 50%;margin-top:.6em!important}

/* ═══════════════ THE FORMAT ═══════════════════════════════ */
.format{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(32px,5vw,80px);align-items:center;padding-top:clamp(80px,9vw,130px);padding-bottom:clamp(80px,9vw,130px)}
.viewfinder{position:relative;aspect-ratio:16 / 10;border-radius:10px;overflow:hidden;background:#000;box-shadow:0 30px 60px rgba(0,0,0,.22)}
.viewfinder img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.viewfinder::after{content:"";position:absolute;inset:0;background:
  repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
  radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55))}
.vf-corner{position:absolute;z-index:2;width:34px;height:34px;border:solid #fff;opacity:.9}
.vf-tl{left:18px;top:18px;border-width:3px 0 0 3px}
.vf-tr{right:18px;top:18px;border-width:3px 3px 0 0}
.vf-bl{left:18px;bottom:18px;border-width:0 0 3px 3px}
.vf-br{right:18px;bottom:18px;border-width:0 3px 3px 0}
.vf-rec{position:absolute;z-index:2;left:30px;top:28px;display:flex;align-items:center;gap:8px;font:700 13px/1 ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:2px;color:#fff}
.vf-rec i{width:11px;height:11px;border-radius:50%;background:var(--red-hot);animation:vf-blink 1.1s steps(1) infinite}
.vf-time{position:absolute;z-index:2;right:64px;bottom:26px;font:600 13px/1 ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:1.5px;color:#fff;font-variant-numeric:tabular-nums}
@keyframes vf-blink{50%{opacity:0}}

/* ═══════════════ END CTA ══════════════════════════════════ */
.end-cta{padding:clamp(80px,10vw,144px) 0;overflow:hidden}
.end-cta .end-girl,.end-boy{position:absolute;top:68.3px;bottom:auto;z-index:4;width:clamp(150px,17.2vw,248px);aspect-ratio:248 / 408;pointer-events:none}
.end-cta .end-girl{right:0}
.end-boy{left:0}
.end-cta .end-girl img,.end-boy img{width:100%;height:100%;object-fit:cover}
.ftr-social img{width:18px;height:18px}
.end-in{position:relative;z-index:5;display:flex;flex-direction:column;align-items:center;text-align:center}
.end-title{font-family:Inter,sans-serif;font-weight:800;font-size:clamp(44px,6vw,90px);line-height:.98;letter-spacing:-2.4px;color:#fff}
.end-actions .btn{letter-spacing:0}
.end-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:34px}

@media (prefers-reduced-motion:reduce){ .vf-rec i{animation:none} }

/* ═══════════════ RESPONSIVE ═══════════════════════════════ */
@media (max-width:980px){
  .setup,.act-in,.act--2 .act-in,.format,.about-in{grid-template-columns:1fr}
  .setup-art,.act-art{height:clamp(340px,70vw,500px);max-width:560px;width:100%;margin:0 auto}
  .act--2 .act-art{order:2}
  .act-art--cow{height:clamp(340px,80vw,520px)}
  .cow-tag{left:50%;transform:translateX(-50%)}
  .act--2 .act-in{margin-left:0}
  .act--2 .act-art .pol--lg{--w:min(80vw,460px)}
  .about-copy{margin-top:34px;max-width:560px}
  .act--2 .h-big{min-height:0}
  .act--2 .act-art{padding:8px 0}
  .act--2 .act-art .pol--lg{margin:0 auto}
  .act-art--cow{margin-top:36px}
  .cow-tag{left:0;right:0;margin:0 auto;transform:none}
  .about-words{font-size:14vw}
  .p-hero-title .hl{display:block;text-wrap:balance}
  .chapters{height:60px}
  .chapters-in{padding-top:8px;padding-bottom:8px}
  .chapters a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;font-size:13px}
  section[id]{scroll-margin-top:70px}
  .end-cta{padding-bottom:calc(clamp(150px,34vw,230px) * 1.645 + 24px)}
  .end-cta .end-girl,.end-cta .end-boy{display:block;top:auto;bottom:0;width:clamp(150px,34vw,230px)}
  .end-cta .end-boy{left:2%}
  .end-cta .end-girl{right:2%}
}
@media (max-width:560px){
  .p-hero-title{letter-spacing:-1.6px}
  .p-hero-copy{font-size:16.5px}
  .h-big{letter-spacing:-1.2px}
  .pol--lg{width:58vw}
  .pol--sm{width:42vw}
  .act-num{font-size:170px}
  .vf-time{font-size:11px;right:58px;bottom:24px}
  .vf-rec{font-size:11px;left:26px;top:25px}
  .end-actions .btn{flex:1 1 100%}
  .about-words{font-size:19vw}
  .p-hero-title{font-size:clamp(38px,11.6vw,52px)}
}

/* ═══ desktop: fixed Figma row heights + numeral anchors (1440 canvas, centred beyond) ═══ */
@media (min-width:981px){
  .setup{grid-template-rows:646.73px}
  .format{grid-template-rows:minmax(469.67px,auto)}
  .format-copy{align-self:start}
  .act-in{position:static;align-items:center}
  .act--1 .act-in{grid-template-rows:minmax(689px,auto)}
  .act--2 .act-in{grid-template-rows:minmax(838.87px,auto)}
  .act--3 .act-in{grid-template-rows:minmax(676.71px,auto)}
  .act-copy{align-self:start}
  .act--2 .act-copy{align-self:start}
  .act-num{top:12.1px;line-height:345.6px}
  .act--1 .act-num{left:calc(50% - 720px + 1299.74px);right:auto}
  .act--2 .act-num{left:calc(50% - 720px - 6.9px)}
  .act--3 .act-num{left:calc(50% - 720px + 1005.43px);right:auto}
}

/* Act III — exact Figma geometry (152:262: section 1440x806; cow frame 549x665 at 870,141; numeral at 1005,-43) */
@media (min-width:1101px){
  .act--3{padding:74px 0 55.29px}
  .act--3 .act-num{top:-43px}
  .act--3 .act-art--cow{position:absolute;left:calc(50% - 720px + 870px);top:141px;width:549px;height:665px;overflow:hidden}
  .act--3 .cow-tag{position:static;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%;clip-path:none;max-width:none}
}
.la{font-weight:900;color:var(--red)}

/* LIFANDI brand animation polaroid (Setup) */
.pol video{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:1.6px;pointer-events:none}
.setup-art .pol--brand{right:0;bottom:0;left:auto;top:auto;width:clamp(240px,25vw,360px)}

/* ═══ Mobile hero: full group photo on top, headline on black below ═══ */
@media (max-width:720px){
  .p-hero{display:block;min-height:0;background:#000;padding-top:58vw}
  .p-hero-photo{inset:0 0 auto 0;height:58vw}
  .p-hero-photo img{inset:0;width:100%;height:100%;object-position:50% 20%}
  .p-hero-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;background:linear-gradient(to bottom,rgba(0,0,0,0),#000)}
  .p-hero-shade{inset:0 0 auto 0;height:58vw;background:linear-gradient(180deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 32%)}
  .p-hero-in{padding-top:8px;padding-bottom:36px}
}

/* Tablet hero (721–980px) */
@media (min-width:721px) and (max-width:980px){
  .p-hero{display:block;min-height:0;background:#000;padding-top:50vw}
  .p-hero-photo{inset:0 0 auto 0;height:50vw}
  .p-hero-photo img{inset:0;width:100%;height:100%;object-position:50% 20%}
  .p-hero-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:30%;background:linear-gradient(to bottom,rgba(0,0,0,0),#000)}
  .p-hero-shade{inset:0 0 auto 0;height:50vw;background:linear-gradient(180deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 32%)}
  .p-hero-in{padding-top:8px;padding-bottom:44px}
}

/* End CTA: Cyn (demo reel, ~01:49) replaces the cut-out; framed as a photo */
.end-cta .end-girl{right:max(var(--gutter),2%)}
.end-cta .end-girl img{border-radius:0;box-shadow:none;transform:none;object-fit:contain;object-position:50% 100%;filter:drop-shadow(0 12px 24px rgba(0,0,0,.45))}
.end-cta .end-girl{right:0;width:auto;height:calc(clamp(150px,17.2vw,248px) * 1.645);aspect-ratio:auto}
.end-cta .end-girl img{width:auto;height:100%;object-fit:contain;object-position:100% 100%;display:block;margin-left:auto}
@media (max-width:980px){.end-cta .end-girl{right:2%;height:calc(clamp(150px,34vw,230px) * 1.645)}}

/* End CTA v2 — Figma 152:396 (1440×543, teal texture, peeking characters left + right) */
.end-cta--v2{position:relative;color:#fff;background:linear-gradient(180deg,var(--teal-1),var(--teal-2));padding:144px 0 144px}
.end-cta--v2 .end-bg{position:absolute;inset:0;overflow:hidden}
.end-cta--v2 .end-bg img{width:100%;height:100%;max-width:none;object-fit:cover}
.end-cta--v2 .end-title{font-size:clamp(44px,6vw,86.4px);line-height:.98}
.end-cta--v2 .end-girl,.end-cta--v2 .end-boy{top:68.34px;bottom:auto;width:clamp(150px,17.2vw,248px);height:auto;aspect-ratio:248 / 408}
.end-cta--v2 .end-boy{left:0}
.end-cta--v2 .end-girl{right:0}
.end-cta--v2 .end-girl img,.end-cta--v2 .end-boy img{width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:none;margin:0}
@media (max-width:980px){
  .end-cta--v2{padding:clamp(72px,12vw,120px) 0 calc(clamp(150px,34vw,230px) * 1.645 + 24px)}
  .end-cta--v2 .end-girl,.end-cta--v2 .end-boy{top:auto;bottom:0;width:clamp(150px,34vw,230px)}
  .end-cta--v2 .end-boy{left:0}
  .end-cta--v2 .end-girl{right:0}
}


/* ═══ Mobile responsive pass (Oct 2026) ═══ */
@media (max-width:560px){
  /* Setup polaroids: overlap at a corner, not on top of each other */
  .setup-art{height:clamp(400px,112vw,460px)}
  .setup-art .pol:nth-child(1){width:58vw;left:0;top:0}
  .setup-art .pol--brand{width:56vw;right:0;bottom:0}
  /* viewfinder: timecode moves up so it never hits the show title */
  .vf-time{top:29px;bottom:auto;right:62px}
  .vf-title{left:26px;bottom:22px;font-size:20px}
}

/* Format: light studio still (10 Items or Less) — soft top/bottom fade so the white REC, timecode and title stay readable */
.vf-link--light::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.42) 0%,rgba(0,0,0,0) 26%,rgba(0,0,0,0) 60%,rgba(0,0,0,.55) 100%)}

/* Act III cow — flat left edge sits flush with the screen edge on phones and tablets */
@media (max-width:980px){
  .act--3 .act-art--cow{max-width:none;width:calc(100% + var(--gutter));margin-left:calc(var(--gutter) * -1);margin-right:0}
  .act--3 .cow-tag{left:0;right:auto;margin:0;transform:translateX(-2.9%);top:auto;bottom:-4px;height:100%}
  .act--3{padding-bottom:0}
  .act--3 .act-art--cow{overflow:hidden;margin-bottom:-6px}
}
