{"version":3,"file":"CaseStudyTypography.CIXH60o3.mjs","names":["__esmMin","init_ssg_sandbox_shims","window","keepActiveChapterVisible","active","nav","row","tab","delta","scrollToCaseChapter","behavior","heading","section","previous","caseStudyTypography","init_CaseStudyTypography"],"sources":["https:/framerusercontent.com/modules/wjIYLN38wvJiddADohIn/fodlAa7v8dklGpNIJbea/CaseStudyTypography.js"],"sourcesContent":["export function keepActiveChapterVisible(nav){const active=nav?.querySelector(\"a[aria-current]\");if(!nav||!active||nav.scrollWidth<=nav.clientWidth)return;const row=nav.getBoundingClientRect();const tab=active.getBoundingClientRect();const delta=tab.left<row.left?tab.left-row.left:Math.max(0,tab.right-row.right);if(delta)nav.scrollBy({left:delta,behavior:\"instant\"});}export function scrollToCaseChapter(section){const behavior=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches?\"instant\":\"smooth\";const heading=window.matchMedia(\"(max-width:809.98px)\").matches?section.querySelector(\"h2\"):null;if(!heading){section.scrollIntoView({block:\"start\",behavior});return;}// The Back bar appears while scrolling up and clears the tabs while scrolling down.\nconst previous=heading.style.scrollMarginTop;heading.style.scrollMarginTop=heading.getBoundingClientRect().top<64?\"calc(var(--rb-case-header-height, 72px) + 64px)\":\"64px\";heading.scrollIntoView({block:\"start\",behavior});heading.style.scrollMarginTop=previous;}export const caseStudyTypography=`\nhtml:has(:is(.daraz-page,.bt-root,.rn-hero)){scrollbar-gutter:stable}\n@keyframes rb-case-title-in {\n    from { opacity:.5; filter:blur(4px); }\n    to   { opacity:1; filter:blur(0); }\n}\n@keyframes rb-case-summary-in {\n    from { opacity:.55; }\n    to   { opacity:1; }\n}\n@media(prefers-reduced-motion:no-preference){\n    .case-hero-intro h1{animation:rb-case-title-in .38s cubic-bezier(.24,.65,.36,1)}\n    .case-hero-intro .case-hero-summary{animation:rb-case-summary-in .38s cubic-bezier(.24,.65,.36,1)}\n}\n:is(.daraz-page,.bt-root){font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}\n:is(.dz-hero,.bt-hero,.rn-hero) :is(.dz-deck,.bt-lede,.rn-deck){font-size:clamp(16px,1.65vw,19px);line-height:1.54;max-width:42ch;margin:13px 0 0!important}\n:is(.daraz-page .dz-story,.bt-root .bt-article) h2{font-size:clamp(22px,2.75cqw,29px);line-height:1.2;letter-spacing:-.035em;font-weight:620;max-width:none;text-wrap:wrap}\n.bt-root .bt-article h3{font-size:clamp(19px,1.9vw,24px);line-height:1.25;letter-spacing:-.035em;font-weight:620}\n:is(.dz-chapter p,.bt-article p:not(.bt-kicker)){max-width:65ch;font-size:16px;line-height:1.68}\n:is(.dz-metric>strong,.bt-stats dt){font-size:clamp(25px,3.6vw,40px);line-height:1.05;font-weight:620;letter-spacing:-.065em;font-variant-numeric:tabular-nums}\n:is(.dz-metric>span,.bt-stats dd){font-size:13px;line-height:1.45}\n:is(.dz-figure figcaption,.bt-screen figcaption){font-size:13px;line-height:1.55}\n:is(.dz-rail a,.bt-toc a){font-size:13px;line-height:1.35}\n:is(.dz-rail a,.bt-toc a)[aria-current]{font-weight:620}\n:is(.dz-source,.bt-link,.bt-action){font-size:14px;font-weight:550}\n:is(.daraz-page,.bt-root) .rb-case-presentation{color:var(--case-ink);column-gap:0;text-decoration:none!important}\n:is(.daraz-page,.bt-root)#top{scroll-margin-top:100px}\n.bt-article :is(.bt-methods,.bt-research-grid,.bt-priorities,.bt-evidence,.bt-cards)>div>h3{font-size:14px;line-height:1.45;letter-spacing:0;font-weight:620}\n.bt-article :is(.bt-methods,.bt-research-grid,.bt-priorities,.bt-evidence,.bt-cards)>div>p{font-size:14px;line-height:1.55}\n@media(max-width:809px){\n    :is(.dz-hero,.bt-hero,.rn-hero) :is(.dz-deck,.bt-lede,.rn-deck){font-size:15px;line-height:1.48;margin-top:10px!important}\n    :is(.dz-metric>span,.bt-stats dd){font-size:11.5px;line-height:1.35}\n    :is(.dz-chapter p,.bt-article p:not(.bt-kicker)){font-size:15px;line-height:1.6}\n    :is(.dz-rail a,.bt-toc a){font-size:12px}\n}\n/* Chapter navigation uses the same split as the portfolio's Hello section. */\n:is(.bt-content,.dz-body){container-type:inline-size}\n.bt-root{--case-ink:var(--bt-ink);--case-line:var(--bt-line)}\n.daraz-page{--case-ink:var(--dz-ink);--case-line:var(--dz-line)}\n:is(.bt-toc,.dz-rail) a:is(:hover,[aria-current]){\n    color:var(--case-ink);\n    border-color:var(--case-line);\n}\n@media(min-width:810px){\n    :is(.bt-content,.dz-body){\n        --case-column-gap:clamp(24px,4vw,64px);\n        grid-template-columns:minmax(0,calc(39.285714% - var(--case-column-gap))) minmax(0,1fr);\n        gap:var(--case-column-gap);\n    }\n    :is(.bt-toc,.dz-rail) a{\n        border:0;\n        padding:5px 0;\n        font-size:14px;\n        line-height:1.28;\n        letter-spacing:0;\n        transition:color 220ms cubic-bezier(.4,0,.2,1),font-size 260ms cubic-bezier(.4,0,.2,1),letter-spacing 260ms cubic-bezier(.4,0,.2,1),font-weight 260ms cubic-bezier(.4,0,.2,1),line-height 260ms cubic-bezier(.4,0,.2,1);\n    }\n    :is(.bt-toc,.dz-rail) a[aria-current]{\n        font-size:clamp(24px,2.85cqw,33px);\n        font-weight:600;\n        line-height:1.15;\n        letter-spacing:-.035em;\n    }\n}\n@media(max-width:809.98px){\n    :root:has(:is(#daraz-navigation,#travel-navigation)[data-rb-case-nav-hidden]):not(:has(:is(#daraz-navigation,#travel-navigation)[data-rb-case-nav-hidden] :focus-visible)){\n        --rb-case-tabs-top:0px;\n    }\n    :is(.dz-body,.bt-content){display:block}\n    :is(.dz-rail,.bt-toc){\n        position:sticky;top:var(--rb-case-tabs-top,var(--rb-case-header-height,72px));z-index:6;margin-bottom:24px;\n        background:var(--token-6237b977-8a37-4a3f-ac2f-243397b07773,#fff);\n    }\n    :is(.dz-rail nav,.bt-toc){\n        display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;scrollbar-width:none;\n        overscroll-behavior-inline:contain;box-shadow:inset 0 -1px var(--case-line);\n    }\n    :is(.dz-rail nav,.bt-toc)::-webkit-scrollbar{display:none}\n    :is(.dz-rail a,.bt-toc a){\n        display:flex;align-items:center;flex:none;white-space:nowrap;min-height:48px;\n        padding:0 12px;border:0;border-bottom:2px solid transparent;border-radius:0;\n        font-size:13px;line-height:1.3;\n    }\n    :is(.dz-rail a,.bt-toc a):hover{border-color:transparent}\n    :is(.dz-rail a,.bt-toc a)[aria-current]{color:var(--case-ink);border-bottom-color:currentColor}\n    :is(.dz-rail a,.bt-toc a):focus-visible{outline-offset:-4px}\n    :is(.dz-chapter,.bt-article section){scroll-margin-top:132px}\n    @media(prefers-reduced-motion:no-preference){\n        :is(.dz-rail,.bt-toc){transition:top .23s cubic-bezier(.22,.8,.3,1)}\n    }\n}\n@media(prefers-reduced-motion:reduce){\n    :is(.bt-toc,.dz-rail) a{transition:none}\n}\n:is(.rb-case-presentation,#portfolio-end a[target=\"_blank\"]:not(.rb-contact-social a):is([href^=\"https://www.linkedin.com/in/rupam-barai\"],[href^=\"https://www.behance.net/rupam_barai\"])){column-gap:0!important}\n            :is(.rb-case-presentation,#portfolio-end a[target=\"_blank\"]:not(.rb-contact-social a):is([href^=\"https://www.linkedin.com/in/rupam-barai\"],[href^=\"https://www.behance.net/rupam_barai\"]))::after {\n                content:\"\";display:inline-block;flex:none;align-self:center;width:14px;height:14px;margin-inline-start:7px;vertical-align:-2px;background-color:var(--token-e086c866-253c-4c4b-baaa-b2c8450d8010,#17181b);pointer-events:none;\n                mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 19 5M6 5h13v13' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/contain no-repeat;\n                opacity:0;translate:-2px 2px;transition:opacity 180ms ease,translate 220ms cubic-bezier(.22,1,.36,1);\n            }\n            @media(hover:hover) { :is(.rb-case-presentation,#portfolio-end a[target=\"_blank\"]:not(.rb-contact-social a):is([href^=\"https://www.linkedin.com/in/rupam-barai\"],[href^=\"https://www.behance.net/rupam_barai\"])):hover::after { opacity:1;translate:0 0; } }\n            :is(.rb-case-presentation,#portfolio-end a[target=\"_blank\"]:not(.rb-contact-social a):is([href^=\"https://www.linkedin.com/in/rupam-barai\"],[href^=\"https://www.behance.net/rupam_barai\"])):focus-visible::after { opacity:1;translate:0 0; }\n            @media(prefers-reduced-motion:reduce) { :is(.rb-case-presentation,#portfolio-end a[target=\"_blank\"]:not(.rb-contact-social a):is([href^=\"https://www.linkedin.com/in/rupam-barai\"],[href^=\"https://www.behance.net/rupam_barai\"]))::after { transition:none;translate:none; } }\n\na[data-framer-name=\"Related case study\"]{text-decoration:none!important}\na[data-framer-name=\"Related case study\"]:focus-visible{outline:2px solid currentColor;outline-offset:4px}\na[data-framer-name=\"Related case study\"]::after{content:\"\";display:block;flex:none;width:18px;height:18px;background:var(--token-e086c866-253c-4c4b-baaa-b2c8450d8010,#17181b);mask:url(\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath d=%27M4 12h15m-6-6 6 6-6 6%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E\") center/contain no-repeat;transition:translate 220ms cubic-bezier(.22,1,.36,1)}\na[data-framer-name=\"Related case study\"]:focus-visible::after{translate:3px 0}\n@media(hover:hover){a[data-framer-name=\"Related case study\"]:hover::after{translate:3px 0}}\n@media(prefers-reduced-motion:reduce){a[data-framer-name=\"Related case study\"]::after{transition:none;translate:none}}\n/* Case study covers follow the same title and copy split as the portfolio. */\n:is(.dz-hero,.bt-hero,.rn-hero){\n    container-type:inline-size;\n    --case-hero-gutter:clamp(20px,3vw,42px);\n    display:block;\n    padding:clamp(48px,6vw,76px) 0 0;\n}\n.case-hero-intro{\n    display:flex;\n    align-items:flex-start;\n    gap:var(--case-hero-gutter);\n}\n.case-hero-intro > :first-child{\n    flex:0 0 calc(39.285714% - var(--case-hero-gutter));\n    min-width:0;\n}\n:is(.dz-hero,.bt-hero,.rn-hero) h1:is(#dz-title,#bt-title,#rn-title){\n    font-size:clamp(24px,2.85cqw,33px);\n    font-weight:600;\n    line-height:1.15;\n    letter-spacing:-.035em;\n    margin:0;\n    max-width:none;\n    text-wrap:wrap;\n}\n:is(.dz-hero,.bt-hero,.rn-hero) .case-hero-summary{\n    flex:1;\n    min-width:0;\n    padding-top:3px;\n}\n:is(.dz-hero,.bt-hero,.rn-hero) :is(.dz-deck,.bt-lede,.rn-deck){\n    max-width:49ch;\n    font-size:clamp(17px,1.85vw,23px);\n    line-height:1.5;\n    margin:0!important;\n}\n:is(.dz-hero-art,.bt-art,.rn-art){\n    width:100%;\n    min-width:0;\n    height:auto;\n    aspect-ratio:1.9;\n    margin-top:clamp(28px,4.2vw,53px);\n    border-radius:24px;\n    box-sizing:border-box;\n}\n.dz-hero-art{\n    padding:clamp(20px,3.8vw,48px);\n    grid-template-rows:minmax(0,1fr);\n}\n.dz-hero-art img{max-width:100%;width:auto;height:100%;max-height:100%;object-fit:contain}\n.bt-hero .rbt-cover{width:100%;height:100%;border-radius:inherit}\n.rb-prototype-cover{position:relative;isolation:isolate;display:block;text-decoration:none;cursor:pointer}\n.rb-prototype-cover.dz-hero-art{display:grid}\n.rb-prototype-cover::after{\n    content:\"\";position:absolute;inset:0;z-index:1;border-radius:inherit;\n    background:rgba(13,14,16,.45);opacity:0;pointer-events:none;\n    transition:opacity .25s ease;\n}\n.rb-prototype-pill{\n    position:absolute;z-index:2;inset-inline-start:50%;inset-block-start:50%;\n    transform:translate(-50%,calc(-50% + 8px));opacity:0;pointer-events:none;\n    min-height:44px;display:inline-flex;align-items:center;gap:8px;padding-inline:16px;\n    border-radius:999px;background:var(--case-ink);color:var(--token-6237b977-8a37-4a3f-ac2f-243397b07773,#fff);\n    font:600 14px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;\n    transition:opacity .25s ease,transform .3s cubic-bezier(.22,1,.36,1);\n}\n.rb-prototype-cover:focus-visible{outline:2px solid var(--case-ink);outline-offset:4px}\n.rb-prototype-cover:focus-visible::after{opacity:1}\n.rb-prototype-cover:focus-visible .rb-prototype-pill{opacity:1;transform:translate(-50%,-50%)}\n@media(hover:hover) and (pointer:fine){\n    .rb-prototype-cover:hover::after{opacity:1}\n    .rb-prototype-cover:hover .rb-prototype-pill{opacity:1;transform:translate(-50%,-50%)}\n}\n@media(hover:none), (pointer:coarse){\n    .rb-prototype-pill{inset-inline-start:auto;inset-inline-end:12px;inset-block-start:auto;inset-block-end:12px;opacity:1;transform:none}\n    .rb-prototype-cover:focus-visible .rb-prototype-pill{transform:none}\n}\n@media(prefers-reduced-motion:reduce){\n    .rb-prototype-cover::after,.rb-prototype-pill{transition:none}\n}\n:is(.dz-meta,.bt-meta){\n    grid-template-columns:repeat(4,minmax(0,1fr));\n    gap:20px;\n    margin:clamp(22px,3.6vw,43px) 0 0!important;\n}\n:is(.dz-meta,.bt-meta)>div{border:0;padding:0}\n:is(.dz-meta,.bt-meta) dt{font-size:13px;margin:0 0 6px}\n:is(.dz-meta,.bt-meta) dd{font-size:14px;margin:0;line-height:1.45}\n:is(.dz-snapshot,.bt-stats){\n    column-gap:clamp(14px,3.4vw,36px);\n    margin-top:clamp(25px,4vw,48px);\n    padding:clamp(18px,2.4vw,30px) 0 0;\n}\n:is(.dz-snapshot,.bt-stats)>div{padding:0}\n@media(min-width:810px){\n    .bt-hero .rbt-cover-title{top:7%;left:7%;font-size:clamp(26px,4.2cqi,46px)}\n    .bt-hero .rbt-cover-desktop{left:7%;top:27%;width:70%;height:62%;transform:rotate(-1.6deg)}\n    .bt-hero .rbt-cover-mobile{right:8%;bottom:9%;width:19%;height:65%;padding:.65cqi;transform:rotate(7deg)}\n}\n@media(width < 810px){\n    :is(.dz-hero,.bt-hero,.rn-hero){padding-top:32px}\n    .case-hero-intro{display:block}\n    :is(.dz-hero,.bt-hero,.rn-hero) .case-hero-summary{padding-top:15px}\n    :is(.dz-hero,.bt-hero,.rn-hero) :is(.dz-deck,.bt-lede,.rn-deck){font-size:16px}\n    :is(.dz-hero-art,.bt-art,.rn-art){aspect-ratio:1.35;border-radius:18px;margin-top:28px}\n    .dz-hero-art{padding:16px}\n    :is(.dz-meta,.bt-meta){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px}\n    :is(.dz-meta,.bt-meta) dd{font-size:13px}\n}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"keepActiveChapterVisible\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"scrollToCaseChapter\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"caseStudyTypography\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CaseStudyTypography.map"],"mappings":"A,oGAAA,SAAgBG,EAAyB,EAAI,CAAC,IAAMC,EAAOC,GAAK,cAAc,iBAAiB,EAAE,GAAG,CAACA,GAAK,CAACD,GAAQC,EAAI,aAAaA,EAAI,YAAY,OAAO,IAAMC,EAAID,EAAI,sBAAsB,EAAQE,EAAIH,EAAO,sBAAsB,EAAQI,EAAMD,EAAI,KAAKD,EAAI,KAAKC,EAAI,KAAKD,EAAI,KAAK,KAAK,IAAI,EAAEC,EAAI,MAAMD,EAAI,KAAK,EAAKE,GAAMH,EAAI,SAAS,CAAC,KAAKG,EAAM,SAAS,SAAS,CAAC,CAAE,CAAC,SAAgBC,EAAoB,EAAQ,CAAC,IAAMC,EAASR,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,UAAU,SAAeS,EAAQT,EAAO,WAAW,sBAAsB,CAAC,CAAC,QAAQU,EAAQ,cAAc,IAAI,EAAE,KAAK,GAAG,CAACD,EAAQ,CAACC,EAAQ,eAAe,CAAC,MAAM,QAAQ,UAAQ,CAAC,EAAE,MAAO,CACrqB,IAAMC,EAASF,EAAQ,MAAM,gBAAgB,EAAQ,MAAM,gBAAgBA,EAAQ,sBAAsB,CAAC,CAAC,IAAI,GAAG,kDAAkD,OAAOA,EAAQ,eAAe,CAAC,MAAM,QAAQ,UAAQ,CAAC,EAAE,EAAQ,MAAM,gBAAgBE,CAAS,C,wCAAc,EAAoB"}