:root{--cream:#fbfaf6;--soft:#f2f5ef;--sage:#6f8c73;--green:#2f6546;--dark:#172018;--muted:#667064;--line:#e5e8df;--card:#fff}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--dark);font-family:Inter,Arial,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1180px,calc(100% - 48px));margin:auto}.site-header{padding:34px 0}.nav{display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-family:Georgia,serif;font-size:30px;font-weight:600;letter-spacing:-.04em}.nav-links{display:flex;align-items:center;gap:42px;font-size:14px;font-weight:650}.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:999px;padding:14px 28px;border:1px solid var(--green);font-weight:750;font-size:14px}.btn.primary{background:var(--green);color:white}.btn.light{background:transparent;color:var(--dark)}.hero{display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:56px;padding:54px 0 78px}.eyebrow{font-size:14px;text-transform:uppercase;color:var(--green);font-weight:800;letter-spacing:.08em}.hero h1,.page-title{font-family:Georgia,serif;font-size:68px;line-height:1.08;letter-spacing:-.055em;margin:22px 0;color:#101711}.hero h1 span{color:var(--green)}.lead{max-width:540px;font-size:18px;color:#394238}.hero-actions{display:flex;gap:22px;margin-top:34px;flex-wrap:wrap}.profile-wrap{position:relative;min-height:540px;display:flex;align-items:center;justify-content:center}.blob{position:absolute;width:75%;height:78%;border-radius:46% 54% 52% 48%;background:var(--soft);transform:rotate(-9deg)}.profile-photo{position:relative;width:min(470px,90%);aspect-ratio:1/1.05;object-fit:cover;border-radius:46% 54% 48% 52%;z-index:2}.spark{position:absolute;right:4%;top:12%;font-size:56px;color:var(--green)}.section-soft{background:#f6f8f2;padding:68px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:28px}.section-head h2{font-family:Georgia,serif;font-size:44px;line-height:1.05;letter-spacing:-.04em;margin:8px 0}.work-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}.case-card{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden}.case-card-img{height:300px;background:#e9eee5;object-fit:cover;width:100%}.case-card-body{padding:28px}.case-card h3{font-family:Georgia,serif;font-size:27px;margin:5px 0 8px}.case-card p{color:#4a554b;margin:0 0 20px}.tags{display:flex;gap:10px;flex-wrap:wrap}.tag{background:#eef2ea;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:700;color:#516052}.tools-strip{padding:52px 0;display:grid;grid-template-columns:1fr 2fr;gap:40px;align-items:center}.tools{display:flex;gap:18px;flex-wrap:wrap}.tool{background:white;border:1px solid var(--line);border-radius:14px;padding:16px 20px;font-weight:750}.footer{padding:44px 0;color:var(--muted);border-top:1px solid var(--line)}.case-hero{display:grid;grid-template-columns:1fr 1.2fr;gap:54px;align-items:center;padding:54px 0 70px}.case-hero h1{font-family:Georgia,serif;font-size:70px;line-height:1.02;letter-spacing:-.055em;margin:10px 0;color:var(--green)}.case-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px;font-size:13px}.case-meta b{display:block;color:var(--dark)}.phone-stage{min-height:520px;position:relative;display:flex;justify-content:center;align-items:center}.phone-stage:before{content:"";position:absolute;width:80%;height:80%;background:var(--soft);border-radius:48%;transform:rotate(-12deg)}.phone{position:relative;width:220px;aspect-ratio:9/19;border:10px solid #111;border-radius:38px;background:white;box-shadow:0 25px 50px rgba(0,0,0,.14);overflow:hidden}.phone img{width:100%;height:100%;object-fit:cover}.phone.one{transform:rotate(-8deg);margin-right:-18px;z-index:2}.phone.two{transform:rotate(8deg);margin-left:-18px;z-index:1}.case-section{display:grid;grid-template-columns:180px 1fr;gap:44px;padding:42px 0;border-top:1px solid var(--line)}.section-number{font-weight:850;color:var(--green);font-size:20px}.case-section h2{font-size:24px;margin:0 0 12px}.block{margin:18px 0}.metric-grid,.persona-grid,.outcome-grid,.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.metric,.persona,.outcome,.insight{background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.metric strong{font-size:40px;color:var(--green)}.gallery-grid img,.block-image{border-radius:16px;border:1px solid var(--line);background:white}.contact-form{max-width:700px}.field{display:block;margin-bottom:18px}.field span{display:block;font-weight:750;margin-bottom:7px}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:14px;background:white;padding:14px 16px;font:inherit}textarea{min-height:160px}.notice{background:#eef6ed;border:1px solid #d9ead8;padding:14px 16px;border-radius:14px;margin:16px 0}@media(max-width:850px){.container{width:min(100% - 30px,1180px)}.nav{align-items:flex-start}.nav-links{gap:16px;flex-wrap:wrap;justify-content:flex-end}.hero,.case-hero,.tools-strip{grid-template-columns:1fr}.hero h1,.page-title,.case-hero h1{font-size:46px}.profile-wrap,.phone-stage{min-height:390px}.work-grid,.metric-grid,.persona-grid,.outcome-grid,.gallery-grid{grid-template-columns:1fr}.case-section{grid-template-columns:1fr;gap:10px}.case-meta{grid-template-columns:1fr}.phone{width:165px}.case-card-img{height:230px}}

/* Project refinements */
.menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:999px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}.menu-toggle span{width:18px;height:2px;background:var(--dark);border-radius:99px;transition:.2s}.menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}.menu-toggle.is-open span:nth-child(2){opacity:0}.menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.section-content{min-width:0}.section-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;align-items:stretch}.block{margin:0}.block-card{height:100%;background:white;border:1px solid var(--line);border-radius:16px;padding:24px}.block-card h3{margin:0 0 8px;font-size:20px}.block-card p{margin:0;color:#4a554b}.block-icon{width:44px;height:44px;border-radius:14px;background:#eef2ea;color:var(--green);display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px}.block-text{grid-column:1/-1}.block-text p{font-size:17px;margin:0}.block-image-card,.block-gallery{padding:0;overflow:hidden}.block-image-card img,.gallery-grid img{width:100%;height:100%;object-fit:cover}.block-image-card p,.block-gallery p{padding:14px 18px}.metric strong{display:block;font-size:42px;line-height:1;color:var(--green);margin-bottom:10px}.metric small,.persona small,.outcome small{display:block;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}.persona ul{margin:10px 0 0;padding-left:18px;color:#4a554b}.insight{background:#f5f8f1}.gallery-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.gallery-grid img{border-radius:16px;border:1px solid var(--line);background:white}.section-divider{border-top:1px solid var(--line)}
@media(max-width:850px){.site-header{padding:20px 0}.nav{align-items:center}.menu-toggle{display:inline-flex;position:relative;z-index:10}.nav-links{display:none;position:absolute;top:76px;left:15px;right:15px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 24px 60px rgba(0,0,0,.08);z-index:9;flex-direction:column;align-items:stretch;gap:8px}.nav-links.is-open{display:flex}.nav-links a{padding:12px 14px;border-radius:14px}.nav-links .btn{width:100%;margin-top:6px}.hero{padding-top:18px}.hero .profile-wrap{order:-1;min-height:320px}.hero>div:first-child{order:2}.profile-photo{width:min(330px,88%)}.spark{font-size:38px}.section-blocks{grid-template-columns:1fr}.block-text{grid-column:auto}.case-section{padding:32px 0}.case-hero{padding-top:12px}.phone-stage{order:-1}.phone{width:145px}}

/* Final case-study block refinements */
.section-description{max-width:720px;color:#526052;margin:0 0 20px;font-size:16px}.section-blocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}.section-blocks>.block{min-width:0;margin:0}.section-blocks>.block-full{grid-column:1/-1}.block-card{height:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px}.block-card h3{margin:0 0 8px;font-size:20px}.block-card p{margin:0 0 12px;color:#4a554b}.block-card p:last-child{margin-bottom:0}.block-icon{width:44px;height:44px;border-radius:14px;background:#eef2ea;color:var(--green);display:inline-flex;align-items:center;justify-content:center;margin-bottom:14px}.block-image-card{padding:0;overflow:hidden}.block-image-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.block-image-card p{padding:14px 18px}.metric strong{display:block;font-size:42px;line-height:1;color:var(--green);margin-bottom:10px}.metric small,.persona small,.quote small{display:block;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px}.persona-photo{width:78px;height:78px;border-radius:999px;object-fit:cover;border:1px solid var(--line);margin-bottom:16px}.process ol,.checklist ul{margin:10px 0 0;padding-left:20px;color:#4a554b}.process li,.checklist li{margin:6px 0}.quote blockquote{font-family:Georgia,serif;font-size:22px;line-height:1.35;margin:0 0 12px;color:var(--green)}.insight{background:#f5f8f1}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gallery-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;border:1px solid var(--line);background:white}@media(max-width:950px){.section-blocks{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.section-blocks,.gallery-grid{grid-template-columns:1fr}.section-blocks>.block-full{grid-column:auto}}

/* Sticky case-study section navigation */
.case-subnav{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(251,250,246,.94);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.case-subnav-inner{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  flex-wrap:nowrap;
  padding-top:12px;
  padding-bottom:12px;
  scrollbar-width:thin;
  scrollbar-color:#cbd5c6 transparent;
  -webkit-overflow-scrolling:touch;
}
.case-subnav-inner::-webkit-scrollbar{height:6px}.case-subnav-inner::-webkit-scrollbar-track{background:transparent}.case-subnav-inner::-webkit-scrollbar-thumb{background:#cbd5c6;border-radius:99px}
.case-subnav-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid transparent;
  color:#4f5c51;
  background:transparent;
  font-size:13px;
  font-weight:800;
  letter-spacing:.01em;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.case-subnav-link:hover,
.case-subnav-link.is-active{
  background:#eef2ea;
  border-color:#dfe7dc;
  color:var(--green);
}
#overview,.case-section{scroll-margin-top:82px}
@media(max-width:650px){.case-subnav-inner{width:100%;padding-top:10px;padding-bottom:10px}.case-subnav-link{font-size:12px;padding:8px 13px;min-height:34px}#overview,.case-section{scroll-margin-top:72px}}

/* Case-study layout update: left section header + 4-column responsive blocks */
.case-section{
  grid-template-columns:220px 1fr;
  align-items:start;
}
.case-section-head{
  position:relative;
}
.case-section-head h2{
  font-size:24px;
  line-height:1.25;
  margin:12px 0 10px;
}
.case-section-head .section-description{
  max-width:none;
  margin:0;
  font-size:15px;
  line-height:1.65;
  color:#526052;
}
.section-content > h2,
.section-content > .section-description{
  display:none;
}
.section-blocks{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media(max-width:1180px){
  .section-blocks{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:950px){
  .case-section{grid-template-columns:1fr;gap:22px;}
  .case-section-head{max-width:760px;}
  .section-blocks{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:650px){
  .section-blocks{grid-template-columns:1fr;}
  .case-section-head h2{font-size:22px;}
}


/* Fix: allow regular text blocks to sit in the 4-column case-study grid */
.section-blocks > .block-text{grid-column:auto;}
.section-blocks > .block.block-gallery,
.section-blocks > .block-full{grid-column:1/-1;}
@media(max-width:650px){
  .section-blocks > .block-text,
  .section-blocks > .block-full{grid-column:auto;}
}

/* Final case-study block grid fix: flexible rows, max 4 columns, no forced 3-column layout */
.case-section .section-blocks{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)) !important;
  gap:18px !important;
  align-items:stretch;
}
.case-section .section-blocks > .block{
  min-width:0;
  margin:0;
  grid-column:auto !important;
}
.case-section .section-blocks > .block.block-gallery,
.case-section .section-blocks > .block.block-full{
  grid-column:1 / -1 !important;
}
@media (max-width:1050px){
  .case-section .section-blocks{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)) !important;}
}
@media (max-width:650px){
  .case-section .section-blocks{grid-template-columns:1fr !important;}
}

/* True responsive flex rows for case study blocks:
   max 4 per row; last row stretches to fill available width. */
.case-section .section-blocks{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:18px !important;
  align-items:stretch !important;
}
.case-section .section-blocks > .block{
  flex:1 1 calc((100% - 54px) / 4) !important;
  max-width:none !important;
  min-width:210px !important;
  margin:0 !important;
  grid-column:auto !important;
}
.case-section .section-blocks > .block.block-gallery,
.case-section .section-blocks > .block.block-full{
  flex-basis:100% !important;
  width:100% !important;
  min-width:100% !important;
}
@media(max-width:1180px){
  .case-section .section-blocks > .block{
    flex-basis:calc((100% - 36px) / 3) !important;
  }
}
@media(max-width:850px){
  .case-section .section-blocks > .block{
    flex-basis:calc((100% - 18px) / 2) !important;
  }
}
@media(max-width:650px){
  .case-section .section-blocks > .block{
    flex-basis:100% !important;
    min-width:100% !important;
  }
}

/* Image block title */
.block-image-card .image-block-title{
  margin:0;
  padding:18px 18px 10px;
  font-size:20px;
  line-height:1.25;
  color:var(--dark);
}
.block-image-card .image-block-title + img{
  border-top:1px solid var(--line);
}

/* Image blocks: single image uses natural height; gallery keeps equal frames */
.case-section .block-image-card{
  overflow:hidden;
}
.case-section .block-image-card img{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  background:#fbfaf6 !important;
  display:block;
}
.case-section .gallery-grid img{
  width:100% !important;
  height:260px !important;
  object-fit:contain !important;
  background:#fbfaf6 !important;
}
@media(max-width:850px){
  .case-section .gallery-grid img{height:240px !important;}
}
@media(max-width:650px){
  .case-section .gallery-grid img{height:220px !important;}
}

/* Case study editable font-size controls */
.case-section .font-size-xs{--editable-font-size:13px;--editable-heading-size:16px;--editable-quote-size:18px;}
.case-section .font-size-small{--editable-font-size:15px;--editable-heading-size:18px;--editable-quote-size:20px;}
.case-section .font-size-normal{--editable-font-size:17px;--editable-heading-size:20px;--editable-quote-size:22px;}
.case-section .font-size-large{--editable-font-size:19px;--editable-heading-size:24px;--editable-quote-size:26px;}
.case-section .font-size-xl{--editable-font-size:22px;--editable-heading-size:28px;--editable-quote-size:30px;}
.case-section .font-size-xxl{--editable-font-size:26px;--editable-heading-size:34px;--editable-quote-size:36px;}
.case-section .block-card.font-size-xs,
.case-section .block-card.font-size-small,
.case-section .block-card.font-size-normal,
.case-section .block-card.font-size-large,
.case-section .block-card.font-size-xl,
.case-section .block-card.font-size-xxl{font-size:var(--editable-font-size);}
.case-section .block-card.font-size-xs p,
.case-section .block-card.font-size-small p,
.case-section .block-card.font-size-normal p,
.case-section .block-card.font-size-large p,
.case-section .block-card.font-size-xl p,
.case-section .block-card.font-size-xxl p,
.case-section .block-card.font-size-xs li,
.case-section .block-card.font-size-small li,
.case-section .block-card.font-size-normal li,
.case-section .block-card.font-size-large li,
.case-section .block-card.font-size-xl li,
.case-section .block-card.font-size-xxl li,
.case-section .block-card.font-size-xs small,
.case-section .block-card.font-size-small small,
.case-section .block-card.font-size-normal small,
.case-section .block-card.font-size-large small,
.case-section .block-card.font-size-xl small,
.case-section .block-card.font-size-xxl small{font-size:var(--editable-font-size);}
.case-section .block-card.font-size-xs h3,
.case-section .block-card.font-size-small h3,
.case-section .block-card.font-size-normal h3,
.case-section .block-card.font-size-large h3,
.case-section .block-card.font-size-xl h3,
.case-section .block-card.font-size-xxl h3{font-size:var(--editable-heading-size);}
.case-section .block-card.font-size-xs blockquote,
.case-section .block-card.font-size-small blockquote,
.case-section .block-card.font-size-normal blockquote,
.case-section .block-card.font-size-large blockquote,
.case-section .block-card.font-size-xl blockquote,
.case-section .block-card.font-size-xxl blockquote{font-size:var(--editable-quote-size);}
.case-section-head h2.font-size-xs{font-size:18px;}
.case-section-head h2.font-size-small{font-size:22px;}
.case-section-head h2.font-size-normal{font-size:26px;}
.case-section-head h2.font-size-large{font-size:30px;}
.case-section-head h2.font-size-xl{font-size:36px;}
.case-section-head h2.font-size-xxl{font-size:44px;}
.case-section-head .section-description.font-size-xs{font-size:13px;}
.case-section-head .section-description.font-size-small{font-size:15px;}
.case-section-head .section-description.font-size-normal{font-size:16px;}
.case-section-head .section-description.font-size-large{font-size:18px;}
.case-section-head .section-description.font-size-xl{font-size:21px;}
.case-section-head .section-description.font-size-xxl{font-size:24px;}
@media(max-width:650px){
  .case-section .font-size-xl{--editable-font-size:20px;--editable-heading-size:25px;--editable-quote-size:27px;}
  .case-section .font-size-xxl{--editable-font-size:22px;--editable-heading-size:29px;--editable-quote-size:31px;}
  .case-section-head h2.font-size-xl{font-size:30px;}
  .case-section-head h2.font-size-xxl{font-size:34px;}
}
