/* 2026 case pages refresh — shared visual language with the BLACKBOX ecosystem page */
:root{
  --case-ink:#151517;
  --case-muted:#6b707b;
  --case-line:#e3e5e9;
  --case-coral:#ef7468;
  --case-orange:#f4ad52;
  --case-grad:linear-gradient(135deg,#ef6f69 0%,#f2a24f 100%);
  --case-soft:linear-gradient(145deg,#fff4f0 0%,#fff 58%,#fff8ea 100%);
}

body.case-index-page,
body.case-blackmedia-page,
body.case-dentistry-page,
body.case-furniture-page{background:#f7f8fa;color:var(--case-ink)}

/* The cases use the same site chrome as the renewed main page. */
body[class*="case-"] .case-site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.9);border-bottom:1px solid rgba(18,18,20,.07);backdrop-filter:blur(18px)}
body[class*="case-"] .case-site-header__inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}
body[class*="case-"] .case-site-brand{display:flex;align-items:center;gap:11px;flex:0 0 auto;color:#121214;font-size:18px;font-weight:900;letter-spacing:.04em;text-decoration:none}
body[class*="case-"] .case-site-brand img{display:block;width:52px;height:52px}
body[class*="case-"] .case-site-nav{display:flex;align-items:center;gap:34px;color:#4f535d;font-size:14px;font-weight:500}
body[class*="case-"] .case-site-nav a{position:relative;color:inherit;text-decoration:none;transition:color .2s ease}
body[class*="case-"] .case-site-nav a:hover,body[class*="case-"] .case-site-nav a[aria-current="page"]{color:#ef7468}
body[class*="case-"] .case-site-cta{min-height:46px;border-radius:15px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:18px;flex:0 0 auto;background:#151517;color:#fff;font-size:14px;font-weight:760;text-decoration:none;box-shadow:0 12px 26px rgba(0,0,0,.14);transition:transform .25s ease}
body[class*="case-"] .case-site-cta:hover{transform:translateY(-2px)}
body[class*="case-"] .case-site-footer{margin-top:0;padding:54px 0;background:#111113;color:#fff}
body[class*="case-"] .case-site-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1.3fr 1fr;gap:45px}
body[class*="case-"] .case-site-footer__grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
body[class*="case-"] .case-site-footer img{display:block;max-width:180px}
body[class*="case-"] .case-site-footer p,body[class*="case-"] .case-site-footer a{margin:0;color:#aeb0b7;font-size:12px;line-height:1.5;text-decoration:none;transition:color .2s ease}
body[class*="case-"] .case-site-footer a:hover{color:#ef7468}
body[class*="case-"] .case-site-footer b{margin-bottom:5px;color:#fff;font-size:12px}

/* Shared navigation */
body[class*="case-"] .header{background:rgba(21,21,23,.95);border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(20px)}
body[class*="case-"] .header__inner{height:78px}
body[class*="case-"] .nav{gap:25px;color:rgba(255,255,255,.76)}
body[class*="case-"] .nav a{position:relative}
body[class*="case-"] .nav a:after{content:"";position:absolute;left:0;right:100%;bottom:-8px;height:2px;border-radius:2px;background:var(--case-grad);transition:right .25s ease}
body[class*="case-"] .nav a:hover:after{right:0}
body[class*="case-"] .header .btn--small,
body.case-index-page .header-cta{border:0;border-radius:14px;background:#fff;color:#161618;box-shadow:none}

/* Catalog */
body.case-index-page{background:linear-gradient(180deg,#f7f8fa 0,#fff 45%,#f7f8fa 100%)}
body.case-index-page .hero{padding:72px 0 34px}
.cases-hero{position:relative;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:42px;min-height:480px;padding:58px;border-radius:38px;background:#171719;color:#fff;overflow:hidden;box-shadow:0 30px 90px rgba(20,18,17,.16)}
.cases-hero:before{content:"";position:absolute;width:520px;height:520px;right:-140px;top:-210px;border-radius:50%;background:radial-gradient(circle,rgba(245,172,81,.42),rgba(238,108,105,.12) 48%,transparent 70%)}
.cases-hero:after{content:"";position:absolute;width:460px;height:180px;left:35%;bottom:-110px;border-radius:50%;background:rgba(239,111,105,.22);filter:blur(55px)}
.cases-hero__copy,.cases-hero__visual{position:relative;z-index:1}
body.case-index-page .eyebrow{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#ffb09d;backdrop-filter:blur(12px)}
body.case-index-page .hero h1{max-width:680px;margin:22px 0 18px;color:#fff;font-size:clamp(48px,6.2vw,82px);line-height:.91}
body.case-index-page .hero p{color:rgba(255,255,255,.67);font-size:17px;line-height:1.6}
.cases-hero__chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.cases-hero__chips span{padding:10px 13px;border:1px solid rgba(255,255,255,.15);border-radius:99px;background:rgba(255,255,255,.06);color:#fff;font-size:11px;font-weight:800}
.cases-hero__visual{min-height:340px}
.case-orbit{position:absolute;inset:0;display:grid;place-items:center}
.case-orbit:before,.case-orbit:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.13);border-radius:50%}
.case-orbit:before{width:310px;height:310px}.case-orbit:after{width:220px;height:220px}
.case-orbit__core{width:145px;height:145px;display:grid;place-items:center;border-radius:44px;background:var(--case-grad);box-shadow:0 0 0 18px rgba(239,116,104,.1),0 30px 70px rgba(239,116,104,.3);font-size:54px;font-weight:900}
.case-orbit__card{position:absolute;width:180px;padding:17px;border:1px solid rgba(255,255,255,.15);border-radius:18px;background:rgba(255,255,255,.09);backdrop-filter:blur(18px);box-shadow:0 18px 45px rgba(0,0,0,.15)}
.case-orbit__card b,.case-orbit__card span{display:block}.case-orbit__card b{font-size:21px}.case-orbit__card span{margin-top:6px;color:rgba(255,255,255,.63);font-size:10px;line-height:1.4}
.case-orbit__card--a{left:0;top:30px}.case-orbit__card--b{right:0;top:120px}.case-orbit__card--c{left:52px;bottom:0}
body.case-index-page .cases-grid{grid-template-columns:1.22fr .78fr;gap:18px;padding-top:20px}
body.case-index-page .case-tile{border:1px solid rgba(19,19,21,.08);border-radius:32px;box-shadow:0 24px 70px rgba(28,23,21,.10)}
body.case-index-page .case-tile--blackmedia{grid-row:span 2;min-height:820px}
body.case-index-page .case-tile--dentistry,body.case-index-page .case-tile--furniture{min-height:400px;grid-column:auto}
body.case-index-page .case-tile:after{background:linear-gradient(180deg,rgba(8,8,10,.01) 22%,rgba(8,8,10,.25) 54%,rgba(8,8,10,.94) 100%)}
body.case-index-page .case-content{padding:32px}
body.case-index-page .case-tag{color:#fff}
body.case-index-page .case-content h2{font-size:clamp(31px,3vw,52px)}
body.case-index-page .case-tile--dentistry h2,body.case-index-page .case-tile--furniture h2{font-size:31px}
body.case-index-page .case-link{align-items:center;gap:12px}.case-link:after{content:"↗";display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#fff;color:#171719}
body.case-index-page .bottom-cta{position:relative;overflow:hidden;border:0;background:#18181a;color:#fff;box-shadow:0 24px 70px rgba(20,18,17,.14)}
body.case-index-page .bottom-cta:after{content:"";position:absolute;width:300px;height:300px;right:-100px;bottom:-190px;border-radius:50%;background:var(--case-grad);filter:blur(20px);opacity:.55}
body.case-index-page .bottom-cta>*,body.case-index-page .bottom-cta .btn{position:relative;z-index:1}
body.case-index-page .bottom-cta p{color:rgba(255,255,255,.62)}
body.case-index-page .bottom-cta .btn{background:var(--case-grad);border:0}

/* Detailed case pages */
body:not(.case-index-page)[class*="case-"] .case-page{background:linear-gradient(180deg,#f7f8fa 0,#fff 32%,#f7f8fa 100%)}
body:not(.case-index-page)[class*="case-"] .breadcrumbs{padding-top:30px;color:#989ca5;font-size:12px;font-weight:800}
body:not(.case-index-page)[class*="case-"] .breadcrumbs a{color:#df665e}
body:not(.case-index-page)[class*="case-"] .case-hero{padding:26px 0 55px}
body:not(.case-index-page)[class*="case-"] .case-hero__grid{position:relative;grid-template-columns:1.05fr .75fr;gap:26px;min-height:700px;padding:30px;border:1px solid var(--case-line);border-radius:38px;background:#fff;box-shadow:0 30px 90px rgba(26,22,20,.08);overflow:hidden}
body:not(.case-index-page)[class*="case-"] .case-hero__grid>div:first-child{display:flex;flex-direction:column;padding:34px 18px 4px 12px}
body:not(.case-index-page)[class*="case-"] .case-kicker{align-self:flex-start;padding:8px 12px;border-radius:99px;background:#fff1ed;color:#dd625c;font-size:11px}
body:not(.case-index-page)[class*="case-"] .case-hero h1{max-width:760px;margin:25px 0 18px;font-size:clamp(48px,5.4vw,77px);line-height:.91;letter-spacing:-.055em}
body:not(.case-index-page)[class*="case-"] .case-hero__lead{max-width:700px;color:#6b707b;font-size:17px;line-height:1.6}
body:not(.case-index-page)[class*="case-"] .case-hero__actions{margin-top:26px}
body:not(.case-index-page)[class*="case-"] .case-hero__actions .btn--dark{border:0;background:var(--case-grad);box-shadow:0 14px 30px rgba(239,116,104,.22)}
body:not(.case-index-page)[class*="case-"] .case-hero__metrics{margin-top:auto;padding-top:28px;gap:8px}
body:not(.case-index-page)[class*="case-"] .case-hero__metrics .case-metric{min-height:112px;padding:17px;border:1px solid var(--case-line);border-radius:18px;background:#f8f9fa}
body:not(.case-index-page)[class*="case-"] .case-hero__metrics .case-metric b{font-size:clamp(20px,2vw,30px);letter-spacing:-.035em}
body:not(.case-index-page)[class*="case-"] .case-hero__image{height:auto;min-height:640px;border:0;border-radius:29px;box-shadow:none;overflow:hidden}
body:not(.case-index-page)[class*="case-"] .case-hero__image img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
body:not(.case-index-page)[class*="case-"] .case-hero__grid:hover .case-hero__image img{transform:scale(1.025)}

body:not(.case-index-page)[class*="case-"] .case-section{padding:86px 0}
body:not(.case-index-page)[class*="case-"] .case-section--soft{margin:18px 0;background:transparent}
body:not(.case-index-page)[class*="case-"] .case-section--soft>.container{padding:58px;border:1px solid var(--case-line);border-radius:34px;background:var(--case-soft);box-shadow:0 24px 70px rgba(30,25,23,.05)}
body:not(.case-index-page)[class*="case-"] .case-copy{max-width:840px}
body:not(.case-index-page)[class*="case-"] .case-copy h2,
body:not(.case-index-page)[class*="case-"] .case-section h2{font-size:clamp(37px,4vw,60px);line-height:.98;letter-spacing:-.045em}
body:not(.case-index-page)[class*="case-"] .case-copy p{font-size:17px;line-height:1.7;color:#676c77}
body:not(.case-index-page)[class*="case-"] .case-quote{border:1px solid rgba(239,116,104,.2);border-radius:22px;background:#fff;box-shadow:0 15px 45px rgba(28,23,21,.06)}
body:not(.case-index-page)[class*="case-"] .editorial-grid{gap:26px;align-items:stretch}
body:not(.case-index-page)[class*="case-"] .editorial-grid>.case-copy{padding:48px;border:1px solid var(--case-line);border-radius:32px;background:#fff}
body:not(.case-index-page)[class*="case-"] .editorial-media{border:0;border-radius:32px;overflow:hidden;box-shadow:0 25px 60px rgba(30,25,23,.09)}
body:not(.case-index-page)[class*="case-"] .editorial-media img{width:100%;height:100%;object-fit:cover}
body:not(.case-index-page)[class*="case-"] .thesis-list{gap:8px}
body:not(.case-index-page)[class*="case-"] .thesis{border:1px solid var(--case-line);border-radius:16px;background:#f8f9fa;transition:transform .25s ease,border-color .25s ease}
body:not(.case-index-page)[class*="case-"] .thesis:hover{transform:translateX(5px);border-color:rgba(239,116,104,.38)}
body:not(.case-index-page)[class*="case-"] .step-number{background:var(--case-grad);color:#fff;box-shadow:0 12px 25px rgba(239,116,104,.2)}
body:not(.case-index-page)[class*="case-"] .screenshot-card,
body:not(.case-index-page)[class*="case-"] .visual-card,
body:not(.case-index-page)[class*="case-"] .dialogue-card{border:1px solid var(--case-line);border-radius:24px;background:#fff;box-shadow:0 24px 65px rgba(28,23,21,.08);overflow:hidden}
body:not(.case-index-page)[class*="case-"] .screenshot-card img{border-radius:0}
body:not(.case-index-page)[class*="case-"] .result-card,
body:not(.case-index-page)[class*="case-"] .benefit-card{position:relative;overflow:hidden;border:1px solid var(--case-line);border-radius:24px;background:#fff;box-shadow:0 18px 48px rgba(28,23,21,.055);transition:transform .25s ease,box-shadow .25s ease}
body:not(.case-index-page)[class*="case-"] .result-card:before,
body:not(.case-index-page)[class*="case-"] .benefit-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--case-grad)}
body:not(.case-index-page)[class*="case-"] .result-card:hover,
body:not(.case-index-page)[class*="case-"] .benefit-card:hover{transform:translateY(-5px);box-shadow:0 26px 60px rgba(28,23,21,.09)}
body:not(.case-index-page)[class*="case-"] .result-card b{background:var(--case-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
body:not(.case-index-page)[class*="case-"] .wide-photo{border-radius:32px;overflow:hidden;box-shadow:0 28px 70px rgba(28,23,21,.1)}
body:not(.case-index-page)[class*="case-"] .case-cta{position:relative;overflow:hidden;padding:48px;border:0;border-radius:32px;background:#19191b;color:#fff;box-shadow:0 25px 70px rgba(20,18,17,.15)}
body:not(.case-index-page)[class*="case-"] .case-cta:after{content:"";position:absolute;width:400px;height:260px;right:-120px;bottom:-170px;border-radius:50%;background:var(--case-grad);filter:blur(24px);opacity:.65}
body:not(.case-index-page)[class*="case-"] .case-cta>*{position:relative;z-index:1}
body:not(.case-index-page)[class*="case-"] .case-cta p{color:rgba(255,255,255,.65)}
body:not(.case-index-page)[class*="case-"] .case-cta .btn--dark{border:0;background:var(--case-grad)}
body:not(.case-index-page)[class*="case-"] .case-cta .btn:not(.btn--dark){border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.09);color:#fff}
body:not(.case-index-page)[class*="case-"] .other-cases{gap:18px}
body:not(.case-index-page)[class*="case-"] .other-case{min-height:420px;border-radius:30px;box-shadow:0 25px 65px rgba(28,23,21,.11)}
body:not(.case-index-page)[class*="case-"] .other-case img{transition:transform .7s cubic-bezier(.2,.8,.2,1)}
body:not(.case-index-page)[class*="case-"] .other-case:hover img{transform:scale(1.035)}
body:not(.case-index-page)[class*="case-"] .big-quote{border:0;border-radius:32px;background:#19191b;color:#fff;box-shadow:0 25px 70px rgba(20,18,17,.14)}

/* Shared footer */
body[class*="case-"] .footer{margin-top:0;background:#111113}
body[class*="case-"] .footer__grid{padding-top:12px}

@media(max-width:980px){
  body[class*="case-"] .case-site-nav{display:none}
  body[class*="case-"] .case-site-footer__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cases-hero{grid-template-columns:1fr;padding:42px;min-height:auto}.cases-hero__visual{min-height:330px}
  body.case-index-page .cases-grid{grid-template-columns:1fr}.case-tile--blackmedia{grid-row:auto!important;min-height:620px!important}
  body:not(.case-index-page)[class*="case-"] .case-hero__grid{grid-template-columns:1fr;padding:22px}
  body:not(.case-index-page)[class*="case-"] .case-hero__image{min-height:520px}
}

@media(max-width:720px){
  body[class*="case-"] .case-site-header__inner{height:70px}
  body[class*="case-"] .case-site-brand img{width:42px;height:42px}
  body[class*="case-"] .case-site-brand span{font-size:14px}
  body[class*="case-"] .case-site-cta{width:46px;min-height:46px;padding:0;font-size:0}
  body[class*="case-"] .case-site-cta span{font-size:18px}
  body[class*="case-"] .case-site-footer__grid{grid-template-columns:1fr;gap:30px}
  body[class*="case-"] .header__inner{height:66px}
  .cases-hero{padding:30px 24px;border-radius:28px}.cases-hero__visual{min-height:300px}.case-orbit__card{width:145px;padding:13px}.case-orbit__card--c{left:10px}.case-orbit__core{width:110px;height:110px;border-radius:34px;font-size:42px}
  body.case-index-page .hero{padding-top:32px}body.case-index-page .hero h1{font-size:48px}
  body.case-index-page .case-tile--blackmedia,body.case-index-page .case-tile--dentistry,body.case-index-page .case-tile--furniture{min-height:520px!important}
  body:not(.case-index-page)[class*="case-"] .case-hero{padding-bottom:20px}
  body:not(.case-index-page)[class*="case-"] .case-hero__grid{border-radius:28px;padding:15px}
  body:not(.case-index-page)[class*="case-"] .case-hero__grid>div:first-child{padding:25px 10px}
  body:not(.case-index-page)[class*="case-"] .case-hero h1{font-size:45px}
  body:not(.case-index-page)[class*="case-"] .case-hero__image{min-height:430px;border-radius:22px}
  body:not(.case-index-page)[class*="case-"] .case-section{padding:52px 0}
  body:not(.case-index-page)[class*="case-"] .case-section--soft>.container{padding:28px 20px;border-radius:26px}
  body:not(.case-index-page)[class*="case-"] .editorial-grid>.case-copy{padding:28px 22px;border-radius:26px}
  body:not(.case-index-page)[class*="case-"] .case-copy h2,body:not(.case-index-page)[class*="case-"] .case-section h2{font-size:37px}
  body:not(.case-index-page)[class*="case-"] .case-copy p{font-size:15px}
  body:not(.case-index-page)[class*="case-"] .case-cta{padding:30px 24px}
}

@media(prefers-reduced-motion:reduce){body[class*="case-"] *{scroll-behavior:auto!important;transition:none!important}}


/* Layout repairs shared by every detailed case */
body:not(.case-index-page)[class*="case-"] .numbered-block{grid-template-columns:88px minmax(0,1fr);gap:30px}
body:not(.case-index-page)[class*="case-"] .numbered-block>div:last-child{min-width:0}
body:not(.case-index-page)[class*="case-"] .step-number{position:sticky;top:112px;width:auto;max-width:100%;padding:0;background:var(--case-grad);-webkit-background-clip:text;background-clip:text;color:transparent;box-shadow:none;font-size:64px;line-height:.9;letter-spacing:-.06em;white-space:nowrap;overflow:visible}
body.case-dentistry-page .dentistry-time-block{grid-template-columns:132px minmax(0,1fr)}
body.case-dentistry-page .dentistry-time-block .step-number{font-size:43px;letter-spacing:-.04em}

body:not(.case-index-page)[class*="case-"] .big-quote{max-width:920px;min-height:0;margin:0 auto;padding:46px 54px;border:0;border-radius:32px;background:#19191b;color:#fff;font-size:clamp(27px,3.35vw,43px);line-height:1.13;letter-spacing:-.035em;text-align:center;overflow-wrap:anywhere;box-shadow:0 25px 70px rgba(20,18,17,.14)}
body.case-blackmedia-page .big-quote br:first-of-type{display:block}
body.case-blackmedia-page .quote-section{padding:56px 0}

body:not(.case-index-page)[class*="case-"] .case-cta{grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:center;min-height:250px}
body:not(.case-index-page)[class*="case-"] .case-cta h2{max-width:650px;margin:0;color:#fff!important;font-size:clamp(34px,3.8vw,51px);line-height:1;letter-spacing:-.045em}
body:not(.case-index-page)[class*="case-"] .case-cta p{max-width:650px;color:rgba(255,255,255,.67)!important}
body:not(.case-index-page)[class*="case-"] .case-cta__actions{position:relative;z-index:2;display:flex;justify-content:flex-end;max-width:560px}
body:not(.case-index-page)[class*="case-"] .case-cta__actions .btn{white-space:normal;text-align:center}

@media(max-width:1024px){
  body:not(.case-index-page)[class*="case-"] .numbered-block,
  body.case-dentistry-page .dentistry-time-block{grid-template-columns:1fr;gap:18px}
  body:not(.case-index-page)[class*="case-"] .step-number,
  body.case-dentistry-page .dentistry-time-block .step-number{position:static;font-size:48px}
  body:not(.case-index-page)[class*="case-"] .case-cta{grid-template-columns:1fr;min-height:0}
  body:not(.case-index-page)[class*="case-"] .case-cta__actions{justify-content:flex-start;max-width:none}
}

@media(max-width:720px){
  body:not(.case-index-page)[class*="case-"] .step-number,
  body.case-dentistry-page .dentistry-time-block .step-number{font-size:40px;line-height:1}
  body:not(.case-index-page)[class*="case-"] .big-quote{padding:30px 20px;border-radius:25px;font-size:clamp(23px,7vw,31px);line-height:1.18}
  body.case-blackmedia-page .quote-section{padding:40px 0}
  body:not(.case-index-page)[class*="case-"] .case-cta{padding:30px 22px;gap:24px;border-radius:25px}
  body:not(.case-index-page)[class*="case-"] .case-cta h2{font-size:34px;line-height:1.03}
  body:not(.case-index-page)[class*="case-"] .case-cta__actions{display:grid;grid-template-columns:1fr;width:100%}
}
