/* Scenes, Instagram kit, case hero (build_spec.md 2-4). Load after launch.css. */
@font-face{font-family:'Hind';font-weight:400;font-display:swap;src:url('../fonts/Hind-Regular.woff2')}
@font-face{font-family:'Hind';font-weight:500;font-display:swap;src:url('../fonts/Hind-Medium.woff2')}
@font-face{font-family:'Hind';font-weight:600 700;font-display:swap;src:url('../fonts/Hind-SemiBold.woff2')}
/* 1. Scene states */
.scene{--e:cubic-bezier(.2,.7,.2,1);position:relative;margin:0;min-width:0}
.scene [data-fx=fade]{--d:.3s;--c:ease-out;--from:none}
.scene [data-fx=draw]{--d:.1s;--c:linear;--from:none}
.scene [data-fx=pop]{--d:.32s;--c:cubic-bezier(.3,1.4,.5,1);--from:scale(.9)}
.scene [data-fx=slide]{--d:.38s;--from:translateY(-14px)}
.scene [data-fx=up]{--d:.38s}
.scene [data-out]:not(.is-on){display:none}
.scene [data-out].is-on{animation:sc-rise var(--d,.36s) var(--c,var(--e)) both}
.scene [data-out][data-fx=fade].is-on{animation-name:sc-fade}
.scene [data-out][data-fx=pop].is-on{animation-name:sc-pop}
.scene [data-out][data-fx=slide].is-on{animation-name:sc-slide}
.scene [data-out][data-fx=up].is-on{animation-name:sc-up}
.scene [data-out].is-on.is-out[data-fx=up]{animation:sc-down .26s cubic-bezier(.5,0,.8,.4) both}
.scene [data-out].is-on.is-out[data-fx=fade]{animation:sc-fadeout .26s ease-in both}
.scene-motion .scene:not([data-state=done]) [data-t]:not([data-out],.is-in){opacity:0;transform:var(--from,translateY(10px))}
.scene[data-state=playing] [data-t].is-in{transition:opacity var(--d,.36s) var(--c,var(--e)),transform var(--d,.36s) var(--c,var(--e))}
/* draw: put pathLength="1" on every path */
.scene-motion .scene:not([data-state=done]) [data-fx=draw] :is(path,line,polyline){stroke-dasharray:1;stroke-dashoffset:1}
.scene-motion .scene[data-state=playing] [data-fx=draw].is-in :is(path,line,polyline){stroke-dashoffset:0;transition:stroke-dashoffset .6s ease-in-out}
@keyframes sc-rise{from{opacity:0;transform:translateY(10px)}}
@keyframes sc-fade{from{opacity:0}}
@keyframes sc-pop{from{opacity:0;transform:scale(.9)}}
@keyframes sc-slide{from{opacity:0;transform:translateY(-14px)}}
@keyframes sc-up{from{transform:translateY(100%)}}
@keyframes sc-down{to{transform:translateY(100%)}}
@keyframes sc-fadeout{to{opacity:0}}
@keyframes sc-dot{0%,100%{opacity:.35}50%{opacity:1}}
@keyframes sc-tap{from{opacity:1;transform:scale(.6)}to{opacity:0;transform:none}}
/* Tap ring: left/top = centre of the button */
.scene-tap{position:absolute;z-index:5;left:50%;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border:2px solid rgb(0 0 0/.35);border-radius:50%;background:rgb(0 0 0/.08);pointer-events:none}
.scene .scene-tap.is-on{animation:sc-tap .5s ease-out both}
/* 2. Panels, arrow, tabs, Replay, caption */
.scene-panel{min-width:0}
.scene[data-state=playing] .scene-panel{transition:transform .7s cubic-bezier(.4,0,.2,1)}
.scene-arrow{color:var(--rail,#aab1a5)}
.scene-arrow svg{display:block;width:100%;height:auto;overflow:visible}
/* Put .scene-bar right after the coloured card: Replay sits in its bottom right */
.scene-bar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.scene-tabs,.scene-replay,.scene-replay span{display:none}
.portfolio-page .scene-tabs button{font:500 14px/1 var(--font-text,'BDO Grotesk',Arial,sans-serif);color:var(--muted-ink);cursor:pointer}
.scene-js .scene-replay{position:absolute;z-index:6;right:12px;top:-48px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--muted-ink);cursor:pointer;box-shadow:0 1px 3px rgb(36 40 36/.08);transition:opacity .3s,visibility .3s}
.scene-replay::before{content:"";position:absolute;inset:-5px;border-radius:50%}
.scene-js .scene-replay[hidden]{display:none}
.scene-replay svg{width:18px;height:18px}
.scene-replay:hover,.scene-tabs button:hover{color:var(--ink)}
.scene-replay:hover{border-color:var(--line-tag)}
.scene:not([data-played]) .scene-replay{visibility:hidden;opacity:0}
.portfolio-page .scene[data-state=playing] .scene-replay{opacity:.45;cursor:default;color:var(--muted-ink)}
.portfolio-page .scene[data-state=playing] .scene-replay:not(:focus-visible){opacity:0;pointer-events:none}
.portfolio-page .scene-replay:focus-visible,.portfolio-page .scene-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.scene-motion .scene--band:not([data-replay=false]) .scene-stage{padding-bottom:56px}
.scene-tabs{border:1px solid var(--line);border-radius:23px;background:#fff}
.scene-tabs button{min-height:44px;padding:0 14px;border:0;border-radius:22px;background:none}
.portfolio-page .scene-tabs button[aria-pressed=true]{background:var(--ink);color:#fff}
.portfolio-page.astra-choice .scene-caption{max-width:52ch;margin:8px auto 0;text-align:center;font-size:14px;line-height:1.5;color:var(--muted-ink)}
.scene-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* 3. Band scene (the case-page hero) */
.scene--band .scene-stage{display:flex;align-items:center;justify-content:center;padding:40px 32px;border-radius:16px;background:var(--tint,#f2f4f0)}
.scene--band .scene-arrow{flex:0 0 64px;padding:0 8px}
@media (max-width:1000px){
.scene--band .scene-stage{padding:32px 24px}
.scene--band .scene-arrow{flex-basis:40px;padding:0}
}
@media (max-width:600px){
.scene--band .scene-stage{padding:20px 16px;border-radius:12px}
.scene-stage{flex-direction:column;gap:24px}
.scene-arrow{display:none}
.scene-panel>.ig-phone{margin:0 auto}
.scene-js .scene[data-views] .scene-stage{display:grid;align-items:center;gap:0}
.scene-js .scene[data-views] .scene-panel{grid-area:1/1;transition:opacity .25s,visibility .25s}
.scene-js .scene[data-views] .scene-panel:not(.is-view){visibility:hidden;opacity:0}
.scene-js .scene-tabs{display:flex}
.scene-js .scene[data-views] .scene-bar{padding-top:12px}
}
/* 4. Instagram kit. Class "ig" gives the tokens and Hind */
.ig{--ig-ink:#000;--ig-muted:#737373;--ig-hair:#dbdbdb;--ig-in:#efefef;--ig-out:#5558fa;--ig-font:'Hind',-apple-system,system-ui,sans-serif;
font-family:var(--ig-font);font-weight:400;line-height:1.35;letter-spacing:0;color:var(--ig-ink);text-align:left;-webkit-font-smoothing:antialiased}
.portfolio-page.astra-choice .ig :is(p,h3,h4,ul,ol,li){margin:0;padding:0;font:inherit;color:inherit;list-style:none}
.portfolio-page.astra-choice .ig img{display:block;width:100%;height:100%;border:0;border-radius:0;box-shadow:none}
.ig svg{display:block;flex:none}
.ig-av{display:block;flex:none;overflow:hidden;width:28px;height:28px;border-radius:50%;background:var(--tint-deep,#e7ebe1)}
.ig-av.mono{display:grid;place-items:center;font-size:11px;font-weight:600;color:var(--body-ink,#4d534b)}
.ig-av.brand{background:#1f3a5f;color:#fff}
.ig-phone{--ig-w:300px;--ig-h:600px;position:relative;display:flex;flex-direction:column;flex:none;width:var(--ig-w);height:var(--ig-h);overflow:hidden;
background:#fff;border:9px solid #141414;border-radius:46px;box-shadow:0 2px 4px rgb(0 0 0/.08),0 24px 48px rgb(36 40 36/.16)}
.ig-phone::before{content:"";position:absolute;z-index:3;left:50%;top:8px;width:90px;height:26px;margin-left:-45px;border-radius:14px;background:#000}
.ig-phone::after{content:"";position:absolute;z-index:5;left:50%;bottom:7px;width:100px;height:4px;margin-left:-50px;border-radius:2px;background:#000;pointer-events:none}
.ig-status{position:relative;z-index:2;flex:none;display:flex;align-items:center;justify-content:space-between;height:44px;padding:2px 18px 0 30px;color:#000;font-size:14px;font-weight:600;line-height:1}
.ig-status.on-dark{position:absolute;top:0;left:0;right:0;color:#fff}
.ig-status>span:last-child{display:flex;align-items:center;gap:4px}
.ig-chatbar{flex:none;display:flex;align-items:center;gap:6px;height:50px;padding:0 12px 0 6px;border-bottom:1px solid var(--ig-hair)}
.ig-who{flex:1;min-width:0;line-height:1.2}
.ig-who b{display:block;overflow:hidden;font-size:14px;font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.ig-who small{display:block;font-size:11.5px;color:var(--ig-muted)}
.ig-icons{display:flex;align-items:center;gap:12px}
/* Block layout on purpose: typing dots sit where the next row appears */
.ig-thread{position:relative;flex:1;min-height:0;overflow:hidden;padding:10px}
.ig-ts{margin:2px 0 10px;text-align:center;font-size:11px;font-weight:500;line-height:1.3;color:var(--ig-muted)}
.ig-row{position:relative;display:flex;align-items:flex-end;margin-top:3px}
.ig-row.first{margin-top:10px}
.ig-thread>.ig-row:first-child,.ig-ts+.ig-row,.ig-profile+.ig-row{margin-top:0}
.ig-row.out{justify-content:flex-end}
.ig-row.in{padding-left:30px}
.ig-row.in>.ig-av{position:absolute;left:0;bottom:0;width:22px;height:22px}
.ig-bubble{max-width:76%;padding:7px 11px;border-radius:18px;background:var(--ig-in);color:#000;font-size:13.5px;line-height:1.35;overflow-wrap:break-word}
.ig-row.in>.ig-bubble,.ig-row.in>.ig-msg{max-width:86%}
.ig-row.out .ig-bubble{background:var(--ig-out) linear-gradient(#9a37dc,#7445fb 28%,#5558fa 55%,#3f72f6 80%,#3893f0) 0 var(--gy,0)/100% var(--gh,100%) no-repeat;color:#fff}
.ig-row.out:is(.gtop,.gmid) .ig-bubble{border-bottom-right-radius:5px}
.ig-row.out:is(.gmid,.gend) .ig-bubble{border-top-right-radius:5px}
.ig-row.in:is(.gtop,.gmid) .ig-bubble{border-bottom-left-radius:5px}
.ig-row.in:is(.gmid,.gend) .ig-bubble{border-top-left-radius:5px}
.ig-msg{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:18px;background:var(--ig-in)}
.ig-msg>.ig-bubble{max-width:none;border-radius:0;background:none}
.ig-dmbutton{position:relative;display:flex;align-items:center;justify-content:center;min-height:40px;padding:4px 12px 2px;border-top:1px solid rgb(0 0 0/.1);font-size:13.5px;font-weight:600;color:#00376b;text-align:center}
.ig-typing{position:absolute;display:flex;align-items:center;justify-content:center;gap:4px;width:40px;height:28px;margin:10px 0 0 30px;border-radius:14px;background:var(--ig-in)}
.ig-typing i{width:6px;height:6px;border-radius:50%;background:#8e8e8e;animation:sc-dot .9s ease-in-out 2}
.ig-typing i:nth-child(2){animation-delay:.15s}
.ig-typing i:nth-child(3){animation-delay:.3s}
.ig-composer{flex:none;padding:8px 10px 20px}
.ig-composer>div{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px 0 4px;border-radius:18px;background:#efefef}
.ig-cam{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#3797f0}
.ig-ph{flex:1;min-width:0;font-size:13.5px;color:var(--ig-muted)}
.ig-composer svg{width:18px;height:18px}
.ig-cam svg{width:16px;height:16px}
.ig-profile{display:flex;flex-direction:column;align-items:center;padding:6px 0 12px;text-align:center}
.ig-profile>.ig-av{width:64px;height:64px;font-size:26px}
.ig-profile b{margin-top:8px;font-size:15px;font-weight:600}
.ig-profile small{font-size:12.5px;color:var(--ig-muted)}
.ig-pill{display:inline-flex;align-items:center;height:28px;margin-top:8px;padding:0 12px;border-radius:8px;background:#efefef;font-size:12.5px;font-weight:600}
.ig-post{position:relative;overflow:hidden;background:#fff}
.ig-post-head{display:flex;align-items:center;gap:8px;padding:8px 10px;font-size:13px;font-weight:600}
.ig-post-head>.ig-av{width:24px;height:24px}
.ig-art{position:relative;overflow:hidden;aspect-ratio:1;background:linear-gradient(170deg,var(--accent-tint,#f6eae5),var(--tint,#f2f4f0))}
.ig-post.is-reel .ig-art{aspect-ratio:9/16}
.ig-post.is-reel>.ig-post-head,.ig-story>.ig-post-head{position:absolute;z-index:1;top:0;left:0;right:0;padding-bottom:16px;background:linear-gradient(rgb(0 0 0/.32),transparent);color:#fff;text-shadow:0 1px 2px rgb(0 0 0/.45)}
.ig-veil::after{content:"";position:absolute;inset:0;background:rgb(0 0 0/.25)}
.ig-story{position:relative;overflow:hidden;aspect-ratio:9/16;border-radius:12px}
.ig-story>.ig-art{position:absolute;inset:0;aspect-ratio:auto}
.ig-comments{position:relative;display:flex;flex-direction:column;border-radius:16px 16px 0 0;background:#fff}
.ig-comments-title{padding:6px 0 10px;border-bottom:1px solid var(--ig-hair);text-align:center;font-size:14px;font-weight:600}
.ig-comment{display:grid;grid-template-columns:28px minmax(0,1fr) 14px;gap:10px;align-items:start;padding:8px 12px}
.ig-comment>.ig-av{width:28px;height:28px}
.ig-comment.is-reply{grid-template-columns:22px minmax(0,1fr) 14px;padding-left:50px}
.ig-comment.is-reply>.ig-av{width:22px;height:22px}
.ig-comment>svg{width:14px;height:14px;margin-top:6px}
.ig-c-meta{font-size:12.5px;font-weight:600;line-height:1.3}
.ig-c-meta small{margin-left:6px;font-size:12px;font-weight:400;color:var(--ig-muted)}
.ig-c-text{margin-top:1px;font-size:13px;line-height:1.35}
.ig-c-reply{margin-top:3px;font-size:12px;font-weight:600;color:var(--ig-muted)}
.ig-input{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-top:1px solid var(--ig-hair);font-size:13px;color:var(--ig-muted)}
.ig-input>.ig-av{width:24px;height:24px}
.ig-notif{position:absolute;z-index:4;top:40px;left:7px;right:7px;display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 11px;border:.5px solid rgb(255 255 255/.5);border-radius:18px;background:rgb(242 242 247/.72);-webkit-backdrop-filter:blur(18px) saturate(1.8);backdrop-filter:blur(18px) saturate(1.8);box-shadow:0 6px 20px rgb(0 0 0/.16);font-size:13px;line-height:1.3}
.ig-appicon{display:grid;place-items:center;width:26px;height:26px;border-radius:7px;background:radial-gradient(circle at 30% 107%,#fdf497 0,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285aeb 90%)}
.ig-notif small{align-self:start;font-size:11px;color:#6e6e73}
.ig-notif b{display:block;font-weight:600}
.ig-notif span{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
/* Ice breakers and the persistent menu sheet, copied from real Instagram. Choices are blue text in a light grey pill */
.ig-hint{text-align:center;font-size:11.5px;line-height:1.3;color:var(--ig-muted)}
.ig-choice{position:relative;padding:6px 14px 4px;border-radius:999px;background:var(--ig-in);font-size:13.5px;font-weight:500;line-height:1.3;text-align:center;color:#0095f6}
.ig-icebreakers{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 12px 6px;border-top:1px solid var(--ig-in)}
.ig-icebreakers>.ig-hint{margin-bottom:4px}
.ig-menuicon{position:relative;display:flex}
/* Sheet slides up inside the phone. data-t, data-out and data-fx="up" on .ig-sheet, data-fx="fade" on .ig-scrim */
.ig-scrim{position:absolute;z-index:2;inset:0;background:rgb(0 0 0/.4)}
.ig-sheet{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0 16px 24px;border-radius:18px 18px 0 0;background:#fff}
.ig-comments::before,.ig-sheet::before{content:"";flex:none;width:34px;height:4px;margin:8px auto 0;border-radius:2px;background:#c7c7c7}
.ig-sheet-title{font-size:16px;font-weight:600;line-height:1.2}
.ig-sheet>.ig-hint{margin:0 0 3px}
.ig-storyref{position:relative;overflow:hidden;width:92px;aspect-ratio:9/16;border-radius:10px;background:var(--tint-deep,#e7ebe1)}
.ig-storyref b{position:absolute;left:6px;right:6px;bottom:5px;font-size:11px;font-weight:600;color:#fff;text-shadow:0 1px 2px rgb(0 0 0/.4)}
.ig-note{margin-top:4px;text-align:right;font-size:11px;color:var(--ig-muted)}

/* 5. Phone tile: the full phone, scaled to .85, for the small tiles. Put .ig-tile around one .ig.ig-phone */
.ig-tile{position:relative;flex:none;width:255px;height:510px;margin:0 auto}
.ig-tile>.ig-phone{position:absolute;left:0;top:0;transform:scale(.85);transform-origin:0 0}
/* Grid variant: a heading, then tiles with a label under each phone. Replay lives only on hero and band scenes */
.cs-section>.scene--grid{grid-column:1/-1}
.scene-tiles{display:grid;grid-template-columns:repeat(auto-fit,255px);justify-content:center;gap:24px 48px;margin:0;padding:0;list-style:none}
.scene-head{margin:0 0 16px;font-size:22px}
.scene-label{margin-top:12px;text-align:center;font-size:15px;line-height:1.35;font-weight:500;color:var(--ink)}
/* No JavaScript: a thread longer than the phone can be scrolled by hand */
html:not(.scene-js) .ig-thread{overflow-y:auto}
/* 6. Lead panel, copied from the product's leads modal (_lead-qualifier-leads.scss). Add .lq to .pc-pills and .is-lead to .pc-card.
   Hot, Warm and Cold keep one colour each: --tc text, --ts fill, --tl line */
.pc .hot{--tc:#c2410c;--ts:#fff3ed;--tl:#fed7c3}
.pc .warm{--tc:#8f5d00;--ts:#fff8e5;--tl:#f8e2a8}
.pc .cold{--tc:#2f5f93;--ts:#eff5fc;--tl:#d3e3f5}
.pc-pills.lq{gap:8px}
.pc-pills.lq>*{height:32px;gap:6px;padding:2px 12px 0;border-radius:999px;font-size:13px;line-height:18px}
.pc-pills.lq small{font-size:12px;font-weight:500;color:var(--pc-muted);font-variant-numeric:tabular-nums}
.pc-pills.lq .is-on small,.pc-pills.lq .pc-fill small{color:inherit;opacity:.72}
.pc-pills.lq .pc-fill.plain{background:#fff;border-color:var(--pc-line);color:var(--pc-ink)}
.pc-pills.lq :is(.pc-fill,.pc-pill.is-on):is(.hot,.warm,.cold){background:var(--ts);border-color:var(--tl);color:var(--tc)}
.pc-card.is-lead{padding:14px 16px;border-radius:14px;box-shadow:0 1px 2px rgb(16 24 40/.03)}
.pc-card.is-lead>.pc-who{grid-template-columns:36px minmax(0,1fr) auto;gap:12px}
.pc-card.is-lead .pc-av{width:36px;height:36px;font-size:13px;font-weight:600;letter-spacing:.02em}
.pc-card.is-lead .pc-av:is(.hot,.warm,.cold){background:var(--ts);color:var(--tc)}
.pc-card.is-lead>:not(.pc-who){margin-left:48px}
.pc-card.is-lead .pc-verdict{margin-top:8px;line-height:21px}
.pc-card.is-lead .pc-caps{margin-top:14px;line-height:16px;letter-spacing:.05em}
.pc-temp{position:relative;display:inline-flex;align-items:center;gap:5px;height:26px;padding:2px 10px 0;border:1px solid var(--tl);border-radius:999px;background:var(--ts);color:var(--tc);font-size:12.5px;font-weight:600;line-height:18px;white-space:nowrap}
