/* Portfolio arrangement / Livstead addition. Existing brief builder untouched. */
/* Optical tightening: tracking (letter-spacing) and leading (line-height) are reduced. */
.work-heading .section-title,
.work-heading .section-title em{
  letter-spacing: -.062em !important;
  word-spacing: -.095em !important;
  line-height: .805 !important;
}
.work-heading .section-title{font-size:clamp(64px,9.05vw,164px);}
.work-heading{margin-bottom:clamp(45px,5vw,70px);}

/* Two hero projects share the opening desktop row. */
.project-feature-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;margin-bottom:24px;align-items:stretch;}
.project-feature-grid > *{min-width:0;}
.project-feature-grid .featured-project{display:flex;flex-direction:column;min-width:0;}
.project-feature-grid .project-top{min-height:45px;padding:0 1px 14px;gap:16px;}
.project-feature-grid .project-open{gap:11px;}
.project-feature-grid .project-visual{height:clamp(490px,41vw,585px);min-height:0;flex:none;}
.project-feature-grid .ecs-stage-copy{left:7%;width:87%;top:17%;}
.project-feature-grid .ecs-stage-copy p{font-size:clamp(30px,3.1vw,45px)!important;max-width:520px;line-height:.93;}
.project-feature-grid .ecs-mini-identity{font-size:10px;}
.project-feature-grid .ecs-copy-rule{margin:18px 0 14px;}
.project-feature-grid .ecs-local-signature{margin-top:15px;font-size:9px;}
.project-feature-grid .ecs-device{top:52%;right:4%;width:78%;height:36%;transform:perspective(1100px) rotateY(-7deg) rotateX(2deg) rotateZ(1deg);}
.project-feature-grid .ecs-screen-message{top:25%;}
.project-feature-grid .ecs-screen-message strong{font-size:clamp(18px,1.8vw,25px);margin-top:9px;}
.project-feature-grid .ecs-screen-message>span{font-size:8px;margin-top:7px;}
.project-feature-grid .ecs-screen-cta{margin-top:9px;padding:5px 9px;font-size:7px;}
.project-feature-grid .ecs-device-address{font-size:8px;}
.project-feature-grid .ecs-stage-bottom{bottom:3.2%;}
.project-feature-grid .ecs-stage-bottom > span:first-child{display:none;}
.project-feature-grid .ecs-stage-bottom .ecs-visit-circle{margin-left:auto;}
.project-feature-grid .ecs-preview-label{display:none;}
.project-feature-grid .project-caption{padding:24px 1px 22px;display:block;flex:1;}
.project-feature-grid .project-caption h3{font-size:clamp(27px,3.1vw,43px);margin-top:8px;}
.project-feature-grid .project-caption p{font-size:13px;line-height:1.55;max-width:100%;margin-top:13px;}
.project-feature-grid .alla-card{align-self:stretch;border-radius:28px;}
.project-feature-grid .alla-media{height:clamp(440px,35vw,540px);min-height:0;}
.project-feature-grid .alla-monogram{font-size:clamp(56px,5vw,85px);}
.project-feature-grid .alla-caption-stage{min-height:88px;padding:14px 24px 17px;}
.project-feature-grid .alla-motion-subtitles{min-height:49px;}
.project-feature-grid .alla-motion-subtitles span{font-size:clamp(15px,1.35vw,19px);}
.project-feature-grid .alla-bottom{padding:22px 26px 24px;gap:14px;flex:1;}
.project-feature-grid .alla-bottom h3{font-size:clamp(26px,2.5vw,36px);margin:9px 0 8px;}
.project-feature-grid .alla-bottom p{font-size:13px;line-height:1.5;margin:0;}
.project-feature-grid .alla-pizza-stage.premium-pizza-stage{width:80%!important;right:-13%!important;bottom:-3%!important;}

/* Livstead: source-faithful editorial preview, rather than a fabricated website screenshot. */
.livstead-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#12362f;color:#f6f7e9;border:1px solid rgba(28,65,56,.21);border-radius:28px;transition:transform .5s cubic-bezier(.17,.77,.22,1),box-shadow .5s ease;}
.livstead-card:hover{transform:translateY(-6px);box-shadow:0 28px 65px rgba(14,45,39,.22);}
.livstead-showcase{position:relative;min-height:450px;overflow:hidden;background:linear-gradient(128deg,#244c41,#143b35);isolation:isolate;}
.livstead-mapsurface{position:absolute;inset:-17% -21% -21% 28%;z-index:0;transform:rotate(-11deg) scale(1.14);transform-origin:center;opacity:.95;filter:drop-shadow(-27px 16px 25px rgba(0,25,19,.36));transition:transform 1.2s cubic-bezier(.16,1,.3,1);}
.livstead-mapsurface img{width:100%;height:100%;object-fit:cover;}
.livstead-card:hover .livstead-mapsurface{transform:rotate(-8deg) scale(1.22) translate(-2%,1%);}
.livstead-showcase::before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(10,41,34,.97) 0%,rgba(15,51,42,.83) 41%,rgba(16,53,45,.08) 86%),linear-gradient(0deg,rgba(13,46,37,.66),transparent 35%);pointer-events:none;}
.livstead-kicker{position:absolute;z-index:4;top:26px;left:28px;right:28px;display:flex;align-items:center;gap:10px;font-size:10px;font-weight:830;letter-spacing:.14em;}
.livstead-star{font-size:20px;line-height:.5;color:#d3f59a;}
.livstead-open{margin-left:auto;border-bottom:1px solid rgba(242,255,220,.6);padding-bottom:5px;font-size:9px;}
.livstead-content{position:absolute;z-index:3;left:8%;top:25%;max-width:78%;pointer-events:none;}
.livstead-wordmark{font-size:clamp(32px,3vw,46px);font-weight:780;letter-spacing:-.085em;line-height:1;color:#f7f4df;margin-bottom:32px;}
.livstead-wordmark span{color:#c2e891;}
.livstead-content p{font-size:clamp(31px,3.15vw,48px);font-weight:730;line-height:1.04;letter-spacing:-.075em;color:#f6f5e8;margin:0;}
.livstead-content p em{font-weight:400;font-style:normal;font-family:Georgia,serif;letter-spacing:-.065em;color:#d0f69f;}
.livstead-caption{display:block;margin-top:22px;max-width:260px;font-size:13px;line-height:1.45;color:#e0e9d8;}
.livstead-insight{position:absolute;z-index:3;right:23px;bottom:23px;max-width:265px;width:46%;padding:16px 17px 17px;background:rgba(245,248,233,.95);border-radius:14px;box-shadow:0 12px 30px rgba(5,38,27,.26);transform:rotate(3deg);color:#183a31;transition:transform .65s cubic-bezier(.18,.8,.25,1);}
.livstead-card:hover .livstead-insight{transform:rotate(0deg) translateY(-5px);}
.livstead-insight-label{font-size:8px;font-weight:850;letter-spacing:.07em;display:flex;gap:7px;align-items:center;border-bottom:1px solid rgba(24,58,49,.2);padding-bottom:9px;}
.livstead-spark{color:#477456;font-size:18px;}
.livstead-insight-list{display:flex;flex-direction:column;gap:9px;padding-top:11px;font-size:13px;color:#58796b;}
.livstead-insight-list span b{font-size:12px;font-weight:710;color:#213b32;margin-left:6px;}
.livstead-bottom{padding:29px 31px 30px;display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:22px;}
.livstead-bottom>div>span{font-size:9px;letter-spacing:.13em;font-weight:840;color:#b4d0bd;}
.livstead-bottom h3{font-size:clamp(27px,2.6vw,39px);letter-spacing:-.065em;line-height:1.07;margin:14px 0;}
.livstead-bottom p{font-size:13px;line-height:1.6;color:#d0ded3;max-width:440px;margin:0;}
.livstead-cta{display:flex;gap:16px;align-items:center;font-weight:850;color:#d9ff89;font-size:10px;letter-spacing:.11em;}
.livstead-cta b{font-size:20px;transition:transform .3s;}
.livstead-card:hover .livstead-cta b{transform:translateX(5px);}

@media(min-width:900px) and (max-width:1170px){
  .project-feature-grid{gap:18px;}
  .project-feature-grid .ecs-stage-copy p{font-size:clamp(28px,3vw,36px)!important;}
  .project-feature-grid .ecs-device{top:53%;height:33%;}
  .project-feature-grid .ecs-device-top{height:25px;}
  .project-feature-grid .ecs-device-screen{height:calc(100% - 25px);}
  .project-feature-grid .alla-media{height:490px;}
  .project-feature-grid .alla-pizza-stage.premium-pizza-stage{width:92%!important;right:-24%!important;bottom:-5%!important;}
  .project-feature-grid .alla-monogram{font-size:clamp(51px,5vw,67px);}
  .project-feature-grid .alla-caption-stage{padding:15px;}
  .project-feature-grid .alla-motion-subtitles span{font-size:14px;}
  .livstead-content p{font-size:clamp(29px,3.2vw,40px);}
}
@media(max-width:899px){
  .project-feature-grid{grid-template-columns:1fr;gap:26px;}
  .project-feature-grid .project-visual{height:clamp(540px,65vw,680px);}
  .project-feature-grid .ecs-stage-copy{top:24%;width:58%;}
  .project-feature-grid .ecs-stage-copy p{font-size:clamp(36px,5.3vw,55px)!important;}
  .project-feature-grid .ecs-device{top:28%;width:46%;height:60%;right:3%;}
  .project-feature-grid .alla-media{height:450px;}
  .project-feature-grid .alla-monogram{font-size:clamp(59px,8vw,90px);}
  .project-feature-grid .alla-pizza-stage.premium-pizza-stage{width:72%!important;right:-9%!important;bottom:-3%!important;}
  .livstead-showcase{min-height:440px;}
}
@media(max-width:610px){
  .work-heading .section-title,.work-heading .section-title em{letter-spacing:-.068em!important;word-spacing:-.08em!important;line-height:.85!important;}
  .project-feature-grid{gap:24px;}
  .project-feature-grid .project-visual{height:575px;}
  .project-feature-grid .ecs-stage-copy{width:89%;top:17%;left:7%;}
  .project-feature-grid .ecs-stage-copy p{font-size:clamp(32px,9.6vw,47px)!important;}
  .project-feature-grid .ecs-device{left:9%;right:auto;top:52%;width:87%;height:34%;}
  .project-feature-grid .project-caption{padding-bottom:20px;}
  .project-feature-grid .alla-media{height:380px;}
  .project-feature-grid .alla-monogram{font-size:clamp(58px,15vw,76px);}
  .project-feature-grid .alla-pizza-stage.premium-pizza-stage{width:92%!important;right:-20%!important;bottom:-8%!important;}
  .project-feature-grid .alla-caption-stage{min-height:108px;padding:18px 22px 22px;}
  .project-feature-grid .alla-motion-subtitles span{font-size:17px;}
  .project-feature-grid .alla-bottom{padding:25px 24px;}
  .livstead-showcase{min-height:490px;}
  .livstead-mapsurface{inset:-2% -75% -17% 2%;}
  .livstead-content{left:7%;top:26%;}
  .livstead-content p{font-size:clamp(35px,10vw,47px);}
  .livstead-kicker{left:23px;right:23px;}
  .livstead-insight{right:17px;bottom:17px;width:59%;max-width:245px;}
  .livstead-bottom{padding:26px 24px;}
}
@media(prefers-reduced-motion:reduce){.livstead-card,.livstead-mapsurface,.livstead-insight,.livstead-cta b{transition:none!important;}}
