/* Homepage proof: one featured story and a horizontal project rail. */
#case-study.home-proof { padding: clamp(3.4rem, 6vw, 5.3rem) 0 3.1rem; background: #fff; }
.home-proof-heading { max-width: 1176px; margin: 0 auto 1.4rem; }
.home-proof-heading h2 { margin-top: .5rem; font-size: clamp(1.9rem, 3.3vw, 2.75rem); }
.home-feature { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); max-width: 1176px; margin: 0 auto; overflow: hidden; border: 1px solid #dedbe2; border-radius: 13px; background: #fbfaf7; }
.home-feature-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1.7rem, 4vw, 3.5rem); }
.home-feature-eyebrow { display: flex; justify-content: space-between; width: 100%; gap: 1rem; margin-bottom: clamp(1.6rem, 3vw, 2.8rem); color: #6d6875; font: 700 .67rem/1.35 'Sora', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.home-scale-brand { display: inline-flex; align-items: center; padding: .35rem .7rem; margin-bottom: 1rem; border-radius: 5px; background: #13151d; }
.home-scale-logo { display: block; width: 142px; height: 48px; object-fit: contain; object-position: left center; }
.home-feature h3 { max-width: 12ch; margin: 0; color: #171222; font-size: clamp(2.35rem, 4.2vw, 4.3rem); line-height: 1.06; letter-spacing: -.065em; }
.home-feature h3 em { color: #5232d2; font-style: normal; }
.home-feature-client { white-space: nowrap; }
.home-feature-intro { max-width: 32rem; margin: 1.45rem 0 .8rem; color: #3d3847; font-size: .96rem; line-height: 1.65; }
.home-feature-evidence { max-width: 32rem; margin: 0 0 1.3rem; padding-left: .85rem; border-left: 2px solid #b9addd; color: #6e6874; font-size: .74rem; line-height: 1.55; }
.home-feature-link, .home-work-all { display: inline-flex; align-items: center; gap: .55rem; color: #39239f; font: 700 .82rem/1.4 'Sora', sans-serif; text-decoration: none; }
.home-feature-link { margin-top: auto; }
.home-feature-link:hover, .home-work-all:hover, .home-work-card a:hover { color: #6946e3; }
.home-feature-link i { font-size: .72rem; }
.home-feature-visual { position: relative; display: grid; place-items: center; min-width: 0; min-height: 505px; padding: 2.2rem 1.2rem 2.7rem; background: #e9e8e5; }
.home-phone { position: relative; width: min(58%, 230px); aspect-ratio: 9 / 17.2; padding: 7px; border: 2px solid #25242c; border-radius: 33px; background: #17171d; box-shadow: 0 26px 45px rgba(28,27,38,.2); }
.home-phone-screen { display: grid; place-items: center; height: 100%; padding: 1.35rem; overflow: hidden; border-radius: 24px; background: #15151b; text-align: center; }
.home-phone-screen strong { max-width: 13ch; color: #fff; font: 600 clamp(1rem, 1.5vw, 1.25rem)/1.35 'Sora', sans-serif; letter-spacing: -.035em; }
.home-phone-speaker { position: absolute; z-index: 2; top: 13px; left: 50%; width: 26%; height: 12px; border-radius: 0 0 9px 9px; background: #17171d; transform: translateX(-50%); }
.home-feature-visual-note { position: absolute; right: 1rem; bottom: .85rem; color: #66636b; font: 600 .64rem/1.35 'Sora', sans-serif; }
.home-work-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; max-width: 1176px; margin: 2.5rem auto 1rem; }
.home-work-heading h3 { margin-top: .3rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.home-work-controls { display: flex; flex: 0 0 auto; gap: .45rem; }
.home-work-arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d8d4e1; border-radius: 50%; background: #fff; color: #2b1b83; cursor: pointer; }
.home-work-arrow:hover { background: #f3efff; }
.home-work-arrow:disabled { opacity: .36; cursor: default; background: #fff; }
.home-work-arrow:focus-visible, .home-work-track:focus-visible, .home-work-card a:focus-visible { outline: 3px solid #9f7aea; outline-offset: 3px; }
.home-work-track { display: flex; gap: .85rem; max-width: 1176px; margin: 0 auto; padding: 0 0 .8rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-work-track::-webkit-scrollbar { display: none; }
.home-work-card { display: flex; flex: 0 0 282px; flex-direction: column; min-width: 0; min-height: 280px; overflow: hidden; border: 1px solid #e2dfe8; border-radius: 9px; background: #fff; scroll-snap-align: start; }
.home-work-image { height: 108px; overflow: hidden; background: #e9e6ed; }
.home-work-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-work-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.1rem; }
.home-work-card-copy > span { color: #746b87; font: 700 .6rem/1.35 'Sora', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.home-work-card h4 { margin: .45rem 0 .35rem; font-size: 1.05rem; letter-spacing: -.035em; }
.home-work-card p { margin: 0 0 .9rem; color: #625d6a; font-size: .78rem; line-height: 1.5; }
.home-work-card a { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; color: #39239f; font: 700 .72rem/1.4 'Sora', sans-serif; text-decoration: none; }
.home-work-card a i { font-size: .65rem; }
.home-work-card--pending { background: #f8f7fa; }
.home-work-card--pending .home-work-card-copy { justify-content: center; }
.home-work-card small { margin-top: .8rem; color: #817b89; font-size: .7rem; }
.home-work-all { margin-top: .8rem; }
@media (max-width: 760px) {
    .home-feature { grid-template-columns: 1fr; }
    .home-feature-copy { padding: 1.6rem 1.35rem; }
    .home-feature-eyebrow { margin-bottom: 1.2rem; }
    .home-feature h3 { max-width: 14ch; font-size: clamp(2.25rem, 6vw, 3.25rem); }
    .home-feature-visual { min-height: 405px; }
    .home-phone { width: min(43%, 215px); }
}
@media (max-width: 640px) {
    #case-study.home-proof { padding: 2.8rem 0 2.3rem; }
    .home-proof-heading { margin-bottom: 1rem; }
    .home-feature-copy { padding: 1.45rem 1.2rem; }
    .home-scale-brand { margin-bottom: .8rem; }
    .home-scale-logo { width: 122px; height: 41px; }
    .home-feature h3 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
    .home-feature-intro { margin: .95rem 0 .7rem; font-size: .85rem; line-height: 1.55; }
    .home-feature-evidence { margin-bottom: 1rem; font-size: .7rem; }
    .home-feature-visual { min-height: 355px; padding: 1.2rem 1rem 2rem; }
    .home-phone { width: min(47%, 170px); }
    .home-phone-screen strong { font-size: 1rem; }
    .home-feature-visual-note { font-size: .58rem; }
    .home-work-heading { align-items: end; margin-top: 1.8rem; }
    .home-work-heading h3 { max-width: 14ch; font-size: 1.32rem; }
    .home-work-arrow { width: 34px; height: 34px; }
    .home-work-track { gap: .7rem; margin-right: 0; padding-right: 0; }
    .home-work-card { flex-basis: min(82vw, 310px); min-height: 268px; }
    .home-work-image { height: 110px; }
}
@media (prefers-reduced-motion: reduce) { .home-work-track { scroll-behavior: auto; } }
.home-phone-screen strong span { display:block; margin-top:.65rem; color:#c9c4d4; font:500 .68rem/1.45 'Sora',sans-serif; letter-spacing:0; }

/* Scale IB feature and an empty phone frame for the forthcoming testimonial. */
.home-feature { border:1px solid #d9d3e3; border-radius:22px; background:#fbf9ff; box-shadow:0 24px 60px -44px rgba(34,19,90,.35); }
.home-feature-copy { padding:clamp(1.5rem,3.5vw,3.1rem); }
.home-feature-eyebrow { margin-bottom:1.4rem; color:#665985; }
.home-feature h3 { max-width:16ch; font-size:clamp(2rem,3.35vw,3.35rem); line-height:1.08; }
.home-feature-intro { margin:1.1rem 0 1.25rem; }
.home-feature h3 .figure { color:#6940ce; }
.home-feature-visual { min-height:500px; padding:1.5rem; background:radial-gradient(circle at 70% 18%,#3b2d5d,transparent 45%),#14111e; }
.scaleib-site-phone { position:relative; width:min(74%,258px); aspect-ratio:9/18; padding:7px; border:2px solid #51525a; border-radius:37px; background:#080a0c; box-shadow:0 30px 60px rgba(0,0,0,.5),inset 0 0 0 1px #86878b; transform:rotate(-3deg); }
.scaleib-site-phone::after { content:''; position:absolute; z-index:2; top:14px; left:50%; width:32%; height:13px; border-radius:12px; background:#050607; transform:translateX(-50%); }
.scaleib-site-screen { height:100%; overflow:hidden; border-radius:29px; background:#0a0b10; }
.home-work-card { border-radius:14px; box-shadow:0 14px 32px -28px rgba(26,15,67,.4); }
.home-work-image { height:130px; }
.home-work-card-copy { padding:1.1rem 1.15rem; }
.home-work-card--preview .home-work-image { display:grid; place-items:center; }
.home-work-image--dream { background:radial-gradient(circle at 75% 25%,#6777be,#1f295b 65%); }
.home-work-image--tp { background:radial-gradient(circle at 75% 25%,#a1e8c8,#245b4d 70%); }
.home-work-card--preview .home-work-image span { color:#fff; font:700 1.3rem 'Sora',sans-serif; letter-spacing:-.05em; }
@media(max-width:760px){
  .home-feature { grid-template-columns:1fr; }
  .home-feature h3 { max-width:18ch; }
  .home-feature-visual { min-height:395px; }
  .scaleib-site-phone { width:min(57%,220px); }
}
@media(max-width:640px){
  .home-feature { border-radius:16px; }
  .home-feature-copy { padding:1.25rem 1.1rem; }
  .home-feature-eyebrow { margin-bottom:1rem; font-size:.58rem; }
  .home-feature h3 { max-width:none; font-size:clamp(1.9rem,8vw,2.4rem); }
  .home-feature-visual { min-height:365px; padding:.9rem .7rem 1.7rem; }
  .scaleib-site-phone { width:min(55%,192px); }
  .home-work-image { height:125px; }
}
