/* Shared typography and spacing for portfolio case-study pages. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ){
  --case-section-gap:96px;
  --case-block-gap:40px;
  --case-copy-gap:24px;
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h1.framer-text{
  font-family:"SFProDisplay-Black","SF Pro Display",system-ui,sans-serif!important;
  font-size:clamp(28px,4.2vw,50px)!important;
  font-weight:900!important;
  line-height:.9107!important;
  letter-spacing:.01em!important;
  text-transform:uppercase!important;
  color:#000!important;
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h2.framer-text{
  font-family:"Figtree",sans-serif!important;
  font-size:clamp(28px,2.6vw,34px)!important;
  font-weight:700!important;
  line-height:1.18!important;
  letter-spacing:-.025em!important;
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h3.framer-text{
  font-family:"Figtree",sans-serif!important;
  font-size:23px!important;
  font-weight:600!important;
  line-height:1.3!important;
  letter-spacing:-.012em!important;
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) p.framer-text + p.framer-text{
  margin-top:var(--case-copy-gap)!important;
}
/* The three Framer exports give the same layout blocks different class names. */
.framer-eDqFZ .framer-1gxvdyp,
.framer-sKdny .framer-1kgyio0,
.framer-4JGOJ .framer-1j2yw2o{
  padding-bottom:var(--case-section-gap);
}
.framer-eDqFZ .framer-1dgwfg,
.framer-sKdny .framer-1xzj7za,
.framer-4JGOJ .framer-6pbw5v,
.framer-eDqFZ .framer-xvevro,
.framer-sKdny .framer-k2e2q5,
.framer-4JGOJ .framer-1guuqhg{
  gap:var(--case-block-gap);
  padding:0 0 var(--case-section-gap);
}
/* The onboarding section supplies the following gap on TikTok One. */
.framer-eDqFZ .framer-1dgwfg{padding-bottom:0}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Config Title"] > [data-framer-name="Title"]{
  margin-bottom:calc(16px - var(--case-block-gap));
}
/* Framer gives later rich-text paragraphs their own top margin. Reset that
   margin, then set one 16px heading-to-copy gap across case studies. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h3.framer-text + p.framer-text{
  margin-top:0!important;
}

:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ)
  div:has(> div[data-framer-component-type="RichTextContainer"] > h3.framer-text){
  row-gap:var(--case-block-gap);
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ)
  div[data-framer-component-type="RichTextContainer"]:has(> h3.framer-text)
  + div:has(p.framer-text){
  margin-top:calc(16px - var(--case-block-gap));
}
@media(max-width:700px){
  :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ){
    --case-section-gap:64px;
    --case-block-gap:28px;
    --case-copy-gap:20px;
  }
  :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h1.framer-text{font-size:clamp(30px,8vw,48px)!important;line-height:1!important}
  :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h2.framer-text{font-size:28px!important}
  :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h3.framer-text{font-size:21px!important}
}

/* Match the homepage name-card size on tablets and small screens. */
@media(min-width:768px) and (max-width:1000px){:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h1.framer-text{font-size:clamp(26px,3.5vw,35px)!important}}
@media(min-width:701px) and (max-width:767px){:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h1.framer-text{font-size:clamp(30px,8vw,48px)!important}}

/* Let long page titles use the available line, and keep cover media inside narrow viewports. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-component-type="RichTextContainer"]:has(> h1.framer-text){width:100%;max-width:100%}
@media(max-width:809px){
 :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Cover img"],.framer-4JGOJ .framer-1gj6m6m-container{width:100%!important;max-width:100%;height:auto!important;aspect-ratio:16/9!important}
}

@media(max-width:809px){
 :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="product designer"]{width:100%!important;max-width:100%;height:auto!important}
}

/* Show case-study content immediately instead of fading/sliding in on scroll. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-component-type="RichTextContainer"]{
  animation:none!important;
  transition:none!important;
}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-appear-id],
.framer-eDqFZ :is(.framer-1s7w9ps,.framer-69hys6),
.framer-sKdny :is(.framer-1r454nh,.framer-1o7sq2r),
.framer-4JGOJ :is(.framer-iq9sv9,.framer-5cebev){
  opacity:1!important;
  transform:none!important;
  animation:none!important;
  transition:none!important;
  will-change:auto!important;
}

/* Keep case-study copy readable and exported media inside phone layouts. */
@media(max-width:809px){
 :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) :is(p,li).framer-text{font-size:16px!important;line-height:1.6!important}
 .framer-eDqFZ .framer-1pn6ui3-container img{max-width:100%;height:auto}
}

/* This exported annotation used a fixed off-canvas offset at every breakpoint. */
.framer-eDqFZ .framer-1nvowfq{position:static!important;inset:auto!important;width:100%;transform:none!important;margin-top:16px;overflow:visible}

/* Keep the process GIF and its annotation in separate, flowing rows. */
.framer-eDqFZ .framer-dm25ia{height:auto!important;aspect-ratio:auto!important}
.framer-eDqFZ .framer-dm25ia > [data-framer-background-image-wrapper]{position:relative!important;inset:auto!important;aspect-ratio:700/1424;width:100%}
@media(max-width:809px){
 .framer-eDqFZ .framer-dm25ia{width:min(100%,210px)!important;flex:none!important}
 .framer-sKdny .framer-1e1zlhd{width:min(100%,210px)!important;flex:none!important}
}

/* Wide multi-screen diagrams remain readable on phones by panning inside the image. */
@media(max-width:600px){
 .facebook-profile-page :is(.framer-6aqvg1,.framer-862fxz,.framer-1of4b7w){display:block!important;height:auto!important;aspect-ratio:auto!important;max-width:100%;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;padding-bottom:8px}
 .facebook-profile-page :is(.framer-6aqvg1,.framer-862fxz,.framer-1of4b7w) > [data-framer-background-image-wrapper]{position:relative!important;inset:auto!important;width:var(--diagram-width)!important;height:auto!important;aspect-ratio:var(--diagram-ratio)}
 .facebook-profile-page .framer-6aqvg1{--diagram-width:640px;--diagram-ratio:2110/1581}
 .facebook-profile-page .framer-862fxz{--diagram-width:840px;--diagram-ratio:2138/1254}
 .facebook-profile-page .framer-1of4b7w{--diagram-width:640px;--diagram-ratio:1946/1006}
 .facebook-profile-page :is(.framer-6aqvg1,.framer-862fxz,.framer-1of4b7w)::after{content:"Swipe to explore";display:block;position:sticky;left:0;width:max-content;padding-top:8px;font:500 12px/1.4 Figtree,sans-serif;color:#596661}
}

/* A small phone-only control lets detailed desktop UI screenshots be enlarged. */
.case-media-expand{display:none}
.case-media-viewer{box-sizing:border-box;width:min(1200px,calc(100vw - 24px));height:calc(100dvh - 48px);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;background:#fff;color:#161512}
.case-media-viewer::backdrop{background:#002d29bf}
.case-media-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #dce3e0;font:500 14px/1.3 Figtree,sans-serif}
.case-media-toolbar button{min-height:44px;padding:8px 12px;border:1px solid #b8c9c3;border-radius:6px;background:#fff;color:#002d29;font:inherit;cursor:pointer}
.case-media-toolbar button:focus-visible,.case-media-expand:focus-visible{outline:2px solid #002d29;outline-offset:3px}
.case-media-canvas{height:calc(100% - 69px);overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.case-media-canvas img{display:block;width:max(100%,900px);height:auto;max-width:none}
.case-media-viewer.is-fit .case-media-canvas img{width:100%}
body:has(.case-media-viewer[open]){overflow:hidden}
@media(max-width:809px){
 .case-media-expand{display:flex;align-items:center;justify-content:center;position:absolute;right:8px;bottom:8px;width:44px;height:44px;padding:10px;border:1px solid #c8d5d0;border-radius:8px;background:#fffffff2;color:#002d29;box-shadow:0 2px 8px #002d2914;cursor:pointer}
 .case-media-expand svg{width:20px;height:20px;pointer-events:none}
}
@media(max-width:809px){.framer-sKdny .framer-1e1zlhd{margin-inline:auto!important}}

/* Approved case-study reading rhythm, shared with TikTok One. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) p.framer-text{width:100%;max-width:none;line-height:1.6!important}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Name"]{gap:28px;padding-right:0}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="product designer"]{width:100%!important;max-width:100%;height:auto!important}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Cover img"]{width:100%!important;max-width:100%;height:auto!important;aspect-ratio:16/9!important}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Cover img"] img{object-fit:contain!important}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Config Title"] > [data-framer-name="Title"]{margin-bottom:0}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) h3.framer-text{line-height:1.4!important;overflow:visible;padding-bottom:4px}
.framer-eDqFZ :is(.framer-ex1ff6,.framer-13pam8e,.framer-14lzmp,.framer-g6pbee),
.framer-sKdny :is(.framer-iwnw7q,.framer-1res2im,.framer-1egzxkw,.framer-1o9ki51),
.framer-4JGOJ :is(.framer-17vdcea,.framer-a1pyuu,.framer-x3xbif){gap:var(--case-block-gap);padding:0}
.framer-eDqFZ :is(.framer-6aqvg1,.framer-862fxz),.framer-sKdny :is(.framer-3g5imv,.framer-14irmgr,.framer-mkcwfm,.framer-k5a55p){padding-top:0;max-width:100%}
.framer-eDqFZ .framer-1vc5f4z{height:auto;gap:40px;align-items:flex-start}
.framer-eDqFZ :is(.framer-1ajwlfq,.framer-1ba06f6),.framer-sKdny :is(.framer-lpxr2t,.framer-6hdbwd,.framer-153ca1u){margin-top:calc(var(--case-section-gap) - var(--case-block-gap))}
.framer-4JGOJ .framer-1wtt3uu{gap:var(--case-block-gap);padding:0}
.facebook-profile-page .framer-1dgwfg{padding-bottom:var(--case-section-gap)}
@media(max-width:809px){
 :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ){--case-section-gap:64px;--case-block-gap:28px;--case-copy-gap:20px}
 :is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Name"]{gap:24px}
 .framer-sKdny .framer-k5a55p{padding-left:0;align-items:center}
 .framer-eDqFZ :is(.framer-f03auy,.framer-1vc5f4z,.framer-1dy6ytw){max-width:100%}
}
@media(max-width:809px){
 .framer-sKdny :is(.framer-1b0ujfy,.framer-1cxr499,.framer-11gfmvx){align-items:center;max-width:100%}
}
.framer-4JGOJ :is(.framer-1nidry3,.framer-r4tmyj){margin-top:calc(var(--case-section-gap) - var(--case-block-gap))}

/* One intro-to-cover gap; preserve the Ad Preferences cover's native ratio
   so contain fitting does not add empty bands above and below the artwork. */
.framer-eDqFZ .framer-1gxvdyp,
.framer-sKdny .framer-1kgyio0,
.framer-4JGOJ .framer-1j2yw2o{gap:40px}
.framer-sKdny [data-framer-name="Cover img"]{aspect-ratio:4888/2090!important}
@media(max-width:809px){
 .framer-eDqFZ .framer-1gxvdyp,
 .framer-sKdny .framer-1kgyio0,
 .framer-4JGOJ .framer-1j2yw2o{gap:28px}
}
/* Keep the YouTube viewport tall enough for its controls on narrow phones. */
.framer-4JGOJ .framer-1gj6m6m-container{min-height:200px}

/* Consistent media corners on desktop and mobile; phone device silhouettes stay intact. */
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Cover img"],
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) div:has(> [data-framer-background-image-wrapper]),
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-background-image-wrapper],
.framer-4JGOJ .framer-1gj6m6m-container,
.framer-4JGOJ .framer-1gj6m6m-container > article,
.framer-eDqFZ .framer-1pn6ui3-container img,
.tiktok-spacing-page .tto-cover-frame{border-radius:var(--portfolio-media-radius,14px)!important}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-background-image-wrapper],
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-name="Cover img"],
.framer-4JGOJ .framer-1gj6m6m-container{overflow:hidden}
:is(.framer-eDqFZ,.framer-sKdny,.framer-4JGOJ) [data-framer-background-image-wrapper] > img{border-radius:inherit!important}
.case-media-viewer,.case-media-canvas img{border-radius:var(--portfolio-media-radius,14px)}

/* Clip the full media panel, including SVG/backdrop layers around the GIF. */
.facebook-profile-page .framer-1nhehcv,
.framer-sKdny .framer-16ui3lx{
 border-radius:var(--portfolio-media-radius,14px)!important;
 overflow:hidden!important;
 isolation:isolate;
}

/* A usable video entry when the HTML is opened without a web origin. */
.project-youtube-fallback{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#111;color:#fff;text-decoration:none;border-radius:inherit}
.project-youtube-fallback>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.78}
.project-youtube-action{position:relative;display:flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;background:#111d;color:#fff;font:600 15px/1.3 Figtree,sans-serif;box-shadow:0 2px 12px #0004}
.project-youtube-action svg{width:32px;height:32px;padding:4px;border-radius:8px;background:#ff0033;color:#fff}
.project-youtube-fallback:focus-visible{outline:3px solid #07584a;outline-offset:-3px}
