/* Services page, first slide — proportions based on the supplied 1649x928 composition. */
:root{color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#fff;color:#080808}
body.services-restart{font-family:"IBM Plex Mono",monospace;font-weight:300;padding:0!important}
.services-slide{position:relative;width:100%;min-height:calc(100svh - 132px);height:calc(100svh - 132px);min-height:max(796px,calc(100svh - 132px));overflow:hidden}
.services-intro{position:absolute;left:6.25%;top:7.1%;width:46%;height:39%}
.services-intro h1{font-family:"Newsreader",serif;font-weight:200;font-size:clamp(28px,2.28vw,39px);letter-spacing:-.042em;line-height:1.15;white-space:nowrap;margin:0}
.services-intro-copy{position:absolute;left:34%;top:18%;width:58%;max-width:455px;font-size:15px;line-height:1.23;letter-spacing:0;margin:0}
.services-start{position:absolute;left:66%;top:57%;font-size:15px;color:#080808;text-decoration:none;line-height:1.2;white-space:nowrap}
.services-start-bar{position:absolute;top:100%;left:18%;height:7px;width:100%;background:#000;animation:services-blink .65s steps(1,end) infinite;transition:left .48s cubic-bezier(.22,1,.36,1),width .48s cubic-bezier(.22,1,.36,1)}
.services-start:hover .services-start-bar,.services-start:focus-visible .services-start-bar{left:0;width:100%;animation:none}
@keyframes services-blink{0%,46%,60%,100%{opacity:1}47%,59%{opacity:0}}
.services-showcase{position:absolute;left:57.25%;top:2.65%;width:39.5%;height:46.1%;background:#fff;border-radius:38px;box-shadow:5px 7px 13px rgba(0,0,0,.17)}
.platforms-intro{position:absolute;left:6.3%;top:54%;width:43%;height:35%}
.platforms-intro h2{font-size:15px;line-height:1.3;font-weight:300;margin:0}
.platforms-intro p{position:absolute;left:17%;top:17%;width:62%;max-width:420px;font-size:15px;line-height:1.23;margin:0}
.platform-cards{position:absolute;left:57.25%;top:51%;width:39.5%;height:42%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:13px 20px}
.platform-card{min-width:0;background:#fff;border-radius:17px;box-shadow:5px 7px 12px rgba(0,0,0,.17);display:flex;align-items:flex-end;padding:26px 26px 18px}
.platform-card p{font-size:13.5px;line-height:1.18;margin:0;overflow-wrap:normal;word-break:normal}
@media(min-width:1650px){.services-slide{max-width:1900px;margin:0 auto}}
@media(max-width:1200px) and (min-width:851px){.services-intro h1{white-space:normal}.services-intro-copy{left:18%;top:27%;width:75%}.services-start{left:60%;top:68%}.platforms-intro p{left:10%;width:85%}.platform-card{padding:18px}.platform-card p{font-size:12px}}
@media(max-width:850px){.services-slide{height:auto;min-height:0;overflow:visible;padding:34px 6% 85px;display:flex;flex-direction:column;gap:24px}.services-intro,.services-showcase,.platforms-intro,.platform-cards{position:relative;left:auto;top:auto;width:100%;height:auto}.services-intro{display:flex;flex-direction:column;gap:25px}.services-intro h1{white-space:normal;font-size:clamp(31px,6vw,48px)}.services-intro-copy{position:static;max-width:560px;width:100%;font-size:14px;align-self:flex-end}.services-start{position:relative;left:auto;top:auto;align-self:flex-end;margin:6px 15% 12px 0}.services-showcase{height:auto;aspect-ratio:1.75;border-radius:28px}.platforms-intro{display:flex;flex-direction:column;gap:20px;margin-top:20px}.platforms-intro p{position:static;width:100%;max-width:550px;align-self:flex-end;font-size:14px}.platform-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:15px}.platform-card{min-height:175px;padding:20px}.platform-card p{font-size:13px}}
@media(max-width:520px){.platform-cards{grid-template-columns:1fr}.platform-card{min-height:145px}.services-showcase{aspect-ratio:1.3}.services-intro-copy,.platforms-intro p{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){.services-start-bar{animation:none;transition:none}}

/* Match the homepage's two rectangular progress indicators. */
.services-indicators{position:fixed;bottom:4.1%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:24px;z-index:50;height:9px;pointer-events:none}
.services-indicator{display:block;flex:none;width:40px;height:7px;border:1px solid #dcdcdc;background:transparent}
.services-indicator:first-child{width:95px}
.services-indicator.active{background:#000;border-color:#000}
@media(max-width:850px){.services-indicators{gap:13px;bottom:4%}.services-indicator:first-child{width:60px}.services-indicator:nth-child(2){width:26px}}

/* Same smooth vertical card-hover movement as the homepage feature grid. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
.platform-card{translate:0 0;transition:translate .42s cubic-bezier(.22,1,.36,1)}
.platform-card:nth-of-type(odd):hover{translate:-12px 0}
.platform-card:nth-of-type(even):hover{translate:12px 0}
}

/* Homepage-matched solid slide-up entrance for Services cards.
   Animate transform only (no fade); keep hover translate independent. */
@keyframes services-card-overlay-rise{
 from{transform:translate3d(0,calc(100svh + 220px),0)}
 to{transform:translate3d(0,0,0)}
}
@media(prefers-reduced-motion:no-preference){
 .services-slide{overflow:clip}
 .platform-card{
  opacity:1;
  animation:services-card-overlay-rise 1.05s cubic-bezier(.22,1,.36,1) both;
  will-change:transform;
 }
 .platform-card:nth-of-type(1){animation-delay:.38s}
 .platform-card:nth-of-type(2){animation-delay:.46s}
 .platform-card:nth-of-type(3){animation-delay:.54s}
 .platform-card:nth-of-type(4){animation-delay:.62s}
}
@media(prefers-reduced-motion:reduce){
 .platform-card{animation:none!important;transform:none!important}
}
@media(max-width:850px) and (prefers-reduced-motion:no-preference){
 .services-slide{overflow:clip}
}

/* The large showcase card joins the same solid, staggered entrance. */
@media(prefers-reduced-motion:no-preference){
 .services-showcase{
  opacity:1;
  animation:services-card-overlay-rise 1.05s cubic-bezier(.22,1,.36,1) .30s both;
  will-change:transform;
 }
}
@media(prefers-reduced-motion:reduce){
 .services-showcase{animation:none!important;transform:none!important}
}

/* Second Services slide: three aligned cards and independently expanding details. */
.services-second-layer{position:fixed;z-index:20;top:132px;left:0;right:0;bottom:0;background:#fff;visibility:hidden;transform:translate3d(0,110%,0);transition:transform 1.05s cubic-bezier(.22,1,.36,1),visibility 0s linear 1.05s;overflow-y:auto;overscroll-behavior:contain}
body.services-second-visible .services-second-layer{visibility:visible;transform:translate3d(0,0,0);transition:transform 1.05s cubic-bezier(.22,1,.36,1),visibility 0s}
.services-core-cards{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;margin:40px 2.8% 0 21.3%}
.services-core-card{position:relative;min-height:189px;padding:21px 24px 40px;border-radius:18px;background:#fff;box-shadow:5px 7px 12px rgba(0,0,0,.19);transition:box-shadow .4s ease}
.services-core-card h3{font-family:"Caveat","Segoe Print",cursive;font-size:21px;font-weight:600;line-height:1.2;margin:0 0 14px}
.services-core-card>p{font-size:15px;line-height:1.24;margin:0}
.core-expand{position:absolute;bottom:16px;right:32px;border:0;background:transparent;display:flex;gap:8px;align-items:center;padding:0;cursor:pointer}
.core-expand span{display:block;width:6px;height:8px;background:#000;transition:width .4s cubic-bezier(.22,1,.36,1)}
.core-expand span:last-child{width:13px}
.services-core-card.expanded .core-expand span:first-child{width:52px}
.core-detail{display:grid;grid-template-rows:0fr;transition:grid-template-rows .65s cubic-bezier(.22,1,.36,1),margin .65s cubic-bezier(.22,1,.36,1);margin:0;visibility:hidden}
.core-detail>div{min-height:0;overflow:hidden}
.services-core-card.expanded .core-detail{grid-template-rows:1fr;margin:68px 0 25px;visibility:visible}
.core-detail strong{display:block;font-weight:500;font-size:15px;line-height:1.2;margin:0 0 6px}
.core-detail p{font-size:15px;line-height:1.24;margin:0 0 20px}
.services-core-heading{position:absolute;top:278px;left:5.5%}
.services-core-heading h2{font-family:"Newsreader",serif;font-size:36px;font-weight:200;letter-spacing:-.04em;margin:0 0 10px}
.services-core-heading p{font-size:13px;margin:0}
.services-indicators{pointer-events:auto}
.services-indicator{appearance:none;border-radius:0;padding:0;cursor:pointer}
@media(max-width:1150px){.services-core-cards{margin-left:6%;margin-right:6%}.services-core-card{padding:19px 17px 40px}.services-core-card h3{font-size:19px}.services-core-card>p,.core-detail p,.core-detail strong{font-size:13px}.services-core-heading{top:300px}}
@media(max-width:850px){.services-second-layer{top:95px;padding:28px 6% 100px}.services-core-cards{margin:0;grid-template-columns:1fr;gap:18px}.services-core-card{min-height:165px}.services-core-card>p,.core-detail p,.core-detail strong{font-size:14px}.services-core-heading{position:relative;top:auto;left:auto;margin-top:36px}}
@media(prefers-reduced-motion:reduce){.services-second-layer,.core-detail,.core-expand span{transition:none!important}}

/* Authentic handwritten card title assets, rather than a substitute font. */
.services-core-card h3{margin:0 0 14px;line-height:1}
.core-title-img{display:block;width:auto;height:auto;max-width:100%;max-height:30px;object-fit:contain;object-position:left center}
/* Hover previews the expanded control; click keeps the bar open. */
.core-expand span:first-child{transition:width .42s cubic-bezier(.22,1,.36,1)}
@media(hover:hover) and (pointer:fine){
 .core-expand:hover span:first-child,.core-expand:focus-visible span:first-child{width:38px}
 .services-core-card.expanded .core-expand:hover span:first-child{width:44px}
}
.services-core-card.expanded .core-expand span:first-child{width:52px}
@media(prefers-reduced-motion:reduce){.core-expand span:first-child{transition:none}}

/* Keep all three Core Services cards aligned in both collapsed and expanded states.
   Grid rows follow the tallest card, while every card fills that row. */
.services-core-cards{align-items:stretch}
.services-core-card{height:100%;display:flex;flex-direction:column}
.services-core-card>.core-detail{flex:0 0 auto}
.services-core-card>.core-expand{z-index:2}
@media(max-width:850px){
 .services-core-cards{align-items:stretch}
}

/* Independent expansion: match collapsed card heights without stretching siblings. */
.services-core-cards{align-items:start}
.services-core-card{height:auto;min-height:189px;display:block}
.services-core-card>.core-detail{flex:none}
@media(max-width:850px){.services-core-cards{align-items:start}.services-core-card{min-height:165px}}

/* Fixed collapsed dimensions: content length must not alter the resting height.
   Expanded cards alone grow; siblings remain at their fixed resting height. */
.services-core-card:not(.expanded){height:230px;min-height:230px}
.services-core-card.expanded{min-height:230px;height:auto}
@media(max-width:1150px){
 .services-core-card:not(.expanded){height:250px;min-height:250px}
 .services-core-card.expanded{min-height:250px}
}
@media(max-width:850px){
 .services-core-card:not(.expanded){height:200px;min-height:200px}
 .services-core-card.expanded{min-height:200px}
}
@media(max-width:520px){
 .services-core-card:not(.expanded){height:220px;min-height:220px}
 .services-core-card.expanded{min-height:220px}
}

/* Extra inset for expanded card copy; preserve the card's outside dimensions. */
.services-core-card .core-detail{padding-inline:12px}
@media(max-width:850px){.services-core-card .core-detail{padding-inline:8px}}

/* Slightly enlarge only the Creative Direction & Ad Production PNG lettering. */
.services-core-card:nth-child(2) .core-title-img{max-height:37px;width:100%;object-fit:contain;object-position:left center}

/* Let the content grid animate closed before hiding interaction.
   Visibility:hidden was snapping the closing transition immediately. */
.services-core-card .core-detail{visibility:visible;pointer-events:none}
.services-core-card.expanded .core-detail{visibility:visible;pointer-events:auto}
.services-core-card .core-detail>div{min-height:0;overflow:hidden}

/* Animate the actual card boundary in both directions, rather than snapping
   from auto height to a fixed collapsed height. */
.services-core-card{--core-closed-height:230px;transition:height .65s cubic-bezier(.22,1,.36,1),box-shadow .4s ease;overflow:hidden}
@media(max-width:1150px){.services-core-card{--core-closed-height:250px}}
@media(max-width:850px){.services-core-card{--core-closed-height:200px}}
@media(max-width:520px){.services-core-card{--core-closed-height:220px}}
@media(prefers-reduced-motion:reduce){.services-core-card{transition:none!important}}

/* Correct the expansion regression: allow intrinsic card height to follow the
   animated detail grid in BOTH directions, with a consistent resting floor. */
.services-core-card,.services-core-card:not(.expanded),.services-core-card.expanded{
 height:auto!important;
 min-height:var(--core-closed-height);
 overflow:visible;
}
.services-core-card .core-detail{
 grid-template-rows:0fr;
 margin:0;
 visibility:visible;
 pointer-events:none;
}
.services-core-card.expanded .core-detail{
 grid-template-rows:1fr;
 margin:68px 0 25px;
 pointer-events:auto;
}
.services-core-card .core-detail>div{min-height:0;overflow:hidden}

/* Give closing the same deliberate motion as opening.
   The detail's grid track and its vertical spacing must contract together. */
.services-core-card .core-detail{
 transition:grid-template-rows 1.05s cubic-bezier(.22,1,.36,1),margin 1.05s cubic-bezier(.22,1,.36,1);
}
.services-core-card.expanded .core-detail{
 transition:grid-template-rows .85s cubic-bezier(.22,1,.36,1),margin .85s cubic-bezier(.22,1,.36,1);
}
@media(prefers-reduced-motion:reduce){
 .services-core-card .core-detail,.services-core-card.expanded .core-detail{transition:none!important}
}


/* Original three-card second slide, before the five-card experiments. */
.services-core-cards{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:16px;margin:40px 2.8% 0 21.3%}
.services-core-card{position:relative;z-index:1}
.services-core-heading{position:absolute;top:278px;left:5.5%;z-index:0;pointer-events:none}
.services-core-card .core-detail{transition:grid-template-rows 1.05s cubic-bezier(.22,1,.36,1),margin 1.05s cubic-bezier(.22,1,.36,1)}
.services-core-card.expanded .core-detail{transition:grid-template-rows .85s cubic-bezier(.22,1,.36,1),margin .85s cubic-bezier(.22,1,.36,1)}
@media(max-width:1150px){.services-core-cards{margin:40px 6% 0}.services-core-heading{top:300px;left:5.5%}}
@media(max-width:850px){.services-core-cards{grid-template-columns:1fr;margin:0;gap:18px}.services-core-heading{position:relative;top:auto;left:auto;margin:34px 0 0}}
@media(prefers-reduced-motion:reduce){.services-core-card .core-detail{transition:none!important}}

/* Desktop: give the Optimization & Scaling handwritten title more presence. */
@media(min-width:851px){
 .services-core-card img[src$="optimization-scaling-title.png"]{
  max-height:39px;
 }
}

/* Desktop-only editorial index prototype; retain existing mobile cards. */
.services-editorial{display:none}
@media(min-width:851px){
 .services-mobile-original{display:none}
 .services-editorial{display:grid;grid-template-columns:minmax(250px,35%) minmax(0,1fr);gap:clamp(30px,5vw,90px);max-width:1510px;margin:0 auto;padding:clamp(40px,7vh,85px) 6% 80px;min-height:calc(100svh - 132px);box-sizing:border-box}
 .editorial-index{display:flex;flex-direction:column;min-width:0}
 .editorial-kicker,.editorial-index-footer,.editorial-panel-index{font-family:"IBM Plex Mono",monospace;font-size:12px;font-weight:300;letter-spacing:.035em;margin:0}
 .editorial-kicker{margin-bottom:clamp(45px,9vh,95px)}
 .editorial-index-footer{margin-top:auto;padding-top:55px;color:#777}
 .editorial-tabs{border-top:1px solid #d8d8d8}
 .editorial-tab{display:grid;grid-template-columns:30px minmax(0,1fr) 22px;align-items:start;gap:14px;width:100%;padding:22px 10px 24px 4px;border:0;border-bottom:1px solid #d8d8d8;background:transparent;text-align:left;color:#777;cursor:pointer;font-family:"IBM Plex Mono",monospace;font-size:clamp(13px,1.15vw,16px);font-weight:300;line-height:1.4;transition:background .3s,color .3s,padding .3s}
 .editorial-tab:hover,.editorial-tab:focus-visible{background:#f4f4f4;color:#080808;padding-left:12px}
 .editorial-tab.is-active{background:#f1f1f1;color:#080808;padding-left:12px}
 .editorial-number{font-size:11px;padding-top:2px;color:#777}
 .editorial-arrow{justify-self:end;font-size:17px}
 .editorial-content{min-width:0;padding:clamp(42px,8vh,90px) 0 30px}
 .editorial-panel[hidden]{display:none}
 .editorial-panel{animation:editorial-reveal .45s ease both}
 .editorial-panel-index{color:#777;margin-bottom:25px}
 .editorial-panel h3{font-family:"Newsreader",serif;font-size:clamp(43px,4.5vw,78px);font-weight:200;letter-spacing:-.045em;line-height:1.04;max-width:760px;margin:0 0 30px}
 .editorial-lead{font-size:clamp(16px,1.4vw,20px);line-height:1.4;max-width:650px;margin:0 0 clamp(35px,6vh,65px)}
 .editorial-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:36px;row-gap:8px;border-top:1px solid #d8d8d8;padding-top:24px}
 .editorial-details strong{font-family:"IBM Plex Mono",monospace;font-weight:400;font-size:13px;line-height:1.4;margin:0 0 7px}
 .editorial-details p{font-size:14px;line-height:1.4;margin:0 0 24px;color:#333}
 @keyframes editorial-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
}
@media(max-width:850px){.services-editorial{display:none}.services-mobile-original{display:contents}}
@media(prefers-reduced-motion:reduce){.editorial-panel{animation:none!important}}

/* Scroll-selected editorial index: the raised white card travels between topics. */
@media(min-width:851px){
 .editorial-tabs{border-top:0}
 .editorial-tab{
  border:0;border-radius:16px;
  padding:22px 22px;
  min-height:74px;
  margin:0 0 5px;
  color:#111;
  background:transparent;
  transition:background .38s ease,box-shadow .38s ease,transform .38s cubic-bezier(.22,1,.36,1);
 }
 .editorial-tab.is-active{
  background:#fff;
  box-shadow:5px 7px 14px rgba(0,0,0,.17);
  padding:22px 22px;
  transform:translateX(0);
 }
 .editorial-tab:hover,.editorial-tab:focus-visible{padding:22px 22px;background:#f9f9f9}
 .editorial-tab.is-active:hover,.editorial-tab.is-active:focus-visible{background:#fff}
 .editorial-number,.editorial-arrow{opacity:0;transition:opacity .25s}
 .editorial-tab:hover .editorial-number,.editorial-tab:focus-visible .editorial-number{opacity:1}
 .editorial-index-footer{font-size:11px}
}

/* Fixed desktop editorial viewport: no nested scrolling or overflowing content. */
@media(min-width:851px){
 body.services-second-visible{overflow:hidden}
 .services-second-layer{overflow:hidden;height:calc(100dvh - 132px);bottom:0;overscroll-behavior:none}
 .services-editorial{
  height:100%;min-height:0;max-height:100%;
  overflow:hidden;
  grid-template-columns:minmax(260px,38%) minmax(0,1fr);
  padding:clamp(18px,3.5vh,42px) 6% clamp(18px,3vh,32px);
  gap:clamp(28px,4vw,70px);
 }
 .editorial-index{min-height:0;overflow:hidden}
 .editorial-kicker{margin-bottom:clamp(15px,3vh,32px)}
 .editorial-tabs{flex:0 1 auto;min-height:0}
 .editorial-tab,.editorial-tab.is-active,.editorial-tab:hover,.editorial-tab:focus-visible{
  min-height:0;margin:0 0 clamp(3px,.65vh,8px);
  padding:clamp(11px,1.65vh,17px) 17px;
  font-size:clamp(12px,1.05vw,15px);
 }
 .editorial-index-footer{padding-top:12px}
 .editorial-content{min-height:0;overflow:hidden;padding:clamp(8px,2vh,22px) 0 0}
 .editorial-panel{max-height:100%;overflow:hidden}
 .editorial-panel-index{margin-bottom:clamp(10px,2vh,20px)}
 .editorial-panel h3{font-size:clamp(34px,3.3vw,57px);margin-bottom:clamp(12px,2.2vh,24px)}
 .editorial-lead{font-size:clamp(14px,1.15vw,18px);line-height:1.3;margin-bottom:clamp(15px,3vh,35px)}
 .editorial-details{padding-top:clamp(10px,2vh,20px);column-gap:22px;row-gap:3px}
 .editorial-details strong{font-size:clamp(11px,.88vw,13px)}
 .editorial-details p{font-size:clamp(12px,.95vw,14px);line-height:1.3;margin-bottom:clamp(8px,1.7vh,17px)}
 .editorial-pending{font-family:"IBM Plex Mono",monospace;font-size:13px;color:#777}
}

/* Let the editorial selection shadows breathe inside the fixed viewport. */
@media(min-width:851px){
 .editorial-index{overflow:visible}
 .editorial-tabs{padding:8px 18px 18px 8px;margin:-8px -18px -18px -8px}
 .services-editorial{overflow:visible}
 .services-second-layer{overflow:hidden}
}

/* Keep each published service detail heading paired with its description. */
@media(min-width:851px){
 .editorial-details{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(10px,2vh,22px) clamp(20px,2.5vw,36px)}
 .editorial-detail-row{min-width:0}
 .editorial-detail-row strong{display:block;margin:0 0 7px}
 .editorial-detail-row p{margin:0}
}

/* Desktop editorial composition: use the free vertical space more centrally. */
@media(min-width:851px){
 .services-editorial{align-items:center}
 .editorial-index,.editorial-content{align-self:center}
 .editorial-index{width:100%;padding-top:clamp(14px,3vh,34px)}
 .editorial-content{width:100%;padding-top:clamp(14px,3vh,34px);padding-bottom:0}
}

/* Slight upward adjustment to the centered desktop editorial composition. */
@media(min-width:851px){
 .editorial-index,.editorial-content{transform:translateY(-22px)}
}

/* Newsreader editorial heading tracking test. */
@media(min-width:851px){.editorial-panel h3{letter-spacing:0}}

/* Smaller Newsreader titles across the desktop editorial panels. */
@media(min-width:851px){.editorial-panel h3{font-size:clamp(34px,3.3vw,57px)}}

/* Mobile: the large showcase card belongs to the same grid as the platform cards,
   not between the hero copy and the platform section. */
.services-showcase-mobile{display:none}
@media(max-width:850px){
 .services-slide>.services-showcase{display:none}
 .platform-cards>.services-showcase-mobile{
  display:block;position:relative;left:auto;top:auto;
  width:100%;height:auto;min-width:0;
  aspect-ratio:1.75;grid-column:1/-1;
  margin:0;border-radius:28px;
 }
}
@media(max-width:520px){
 .platform-cards>.services-showcase-mobile{aspect-ratio:1.3}
}
