/* Built Here hero (index-built-here.html): a first screen on graphite. A belt of 9:16 campaign tiles drifts across the top; the headline, supporting line and buttons sit below.
   .bh-js is set in the page head when motion is allowed: the belt drifts and the copy builds in on load.
   Without it (reduced motion, no script) the same layout shows at rest, the belt still.

   Sizing is proportional to the space below the bars, so the first screen fills any window:
   --bh-h    the hero's height: the viewport less the beta banner and the nav (--top-h, measured by js/studio-belt.js)
   --bh-belt the belt's share of that height
   --bh-seat the share the copy is laid out under; the belt is taller, so its faded feet run behind the headline
   --bh-f    the headline size: the smaller of a width term and a height term, so it grows on big windows
             and does not crowd the belt on short wide ones. Every other size and gap follows from these. */
.sp .bh{--bh-h:calc(100svh - var(--top-h,112px));--bh-belt:.505;--bh-seat:.42;--bh-top:.09;
  --bh-f:clamp(32px,min(5.2vw,calc(var(--bh-h) * .09)),168px);
  position:relative;z-index:1;background:#1C1B1A}
.sp .bh-stage{display:flex;flex-direction:column;min-height:var(--bh-h);padding-top:calc(var(--bh-h) * var(--bh-top));
  background:#1C1B1A}

/* ---------- The belt ----------
   Each tile crosses the belt on its own, by transform only, and returns to the right after it leaves.
   The script repeats the set when ten tiles do not span the window.
   Tile width follows from 9:16 and the gap from the tile, so the drift looks the same at every size:
   it is set as time per tile. The tile count is the number of .bh-tile elements in the markup. */
.sp .bh-belt{--bh-tiles:10;--bh-tile-time:3.5s;--bh-belt-h:calc(var(--bh-h) * var(--bh-belt));--bh-tile-gap:calc(var(--bh-belt-h) * .06);--bh-pitch:calc(var(--bh-belt-h) * .6225);
  flex:none;position:relative;overflow:hidden;height:var(--bh-belt-h);margin-bottom:calc(var(--bh-h) * (var(--bh-seat) + .05 - var(--bh-top) - var(--bh-belt)));pointer-events:none;
  /* the tiles dim downward so they sink behind the headline */
  --bh-m:linear-gradient(to right,transparent,#000 7%,#000 93%,transparent),linear-gradient(to bottom,rgba(0,0,0,.8) 0%,rgba(0,0,0,.73) 25%,rgba(0,0,0,.5) 45%,rgba(0,0,0,.24) 62%,rgba(0,0,0,.11) 78%,rgba(0,0,0,.05) 90%,transparent 100%);
  -webkit-mask-image:var(--bh-m);-webkit-mask-composite:source-in;mask-image:var(--bh-m);mask-composite:intersect}
.sp .bh-belt-track{display:flex;height:100%;width:max-content}
.sp .bh-tile{flex:none;height:100%;aspect-ratio:9/16;margin-right:var(--bh-tile-gap);border-radius:clamp(8px,calc(var(--bh-belt-h) * .035),14px);background:#252422;box-shadow:inset 0 0 0 1px #3F3D3A;overflow:hidden}
.sp .bh-tile video,.sp .bh-tile img{display:block;width:100%;height:100%;object-fit:cover}
.bh-js .sp .bh-belt-track{position:relative;width:auto}
.bh-js .sp .bh-tile{position:absolute;top:0;left:calc(var(--bh-pitch) * -1);margin:0;will-change:transform;
  animation:bh-belt calc(var(--bh-tiles) * var(--bh-tile-time)) linear infinite paused;animation-delay:calc((var(--i,0) + 1 - var(--bh-tiles)) * var(--bh-tile-time))}
.bh-js .sp .bh-belt.is-on .bh-tile{animation-play-state:running}
@keyframes bh-belt{from{transform:translateX(calc(var(--bh-tiles) * var(--bh-pitch)))}to{transform:translateX(0)}}

/* ---------- The copy: centred in the space under the belt, so the space above and below scales with the window ---------- */
.sp .bh-copy{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:max(16px,calc(var(--bh-f) * .34));
  padding:calc(var(--bh-h) * .04) var(--gutter);text-align:center}
.sp .bh .bh-title{color:#fff;max-width:none;width:min(88vw,17em);margin:0 auto;font:500 max(28px,calc(var(--bh-f) * .85))/1 var(--display);letter-spacing:-.03em;text-wrap:balance}
.sp .bh-sub{margin:0 auto;max-width:30em;font:500 clamp(17px,calc(var(--bh-f) * .29),34px)/1.3 var(--text);color:#C7C5C1;text-wrap:balance}
.sp .bh-btns{justify-content:center;margin:0;gap:calc(var(--bh-f) * .16)}
.sp .bh-btns .btn{font-size:clamp(16px,calc(var(--bh-f) * .21),22px);min-height:max(48px,2.9em);padding:.7em 1.55em}

/* before the entrance runs, the copy and belt wait unseen (only when motion is allowed) */
.bh-js .sp .bh-belt,.bh-js .sp .bh-copy{opacity:0}
.bh-js .sp .bh-live .bh-belt,.bh-js .sp .bh-live .bh-copy{opacity:1}

/* tablets held upright: more height than width, so the belt takes a larger share and the headline leans on the width */
@media (min-width:761px) and (orientation:portrait){
  .sp .bh{--bh-belt:.595;--bh-seat:.52;--bh-top:.1;--bh-f:clamp(32px,min(6.6vw,calc(var(--bh-h) * .09)),96px)}
}
/* phones: the headline wraps to three lines, so the belt takes a smaller share and the copy opens up */
@media (max-width:760px){
  .sp .bh{--bh-belt:.42;--bh-seat:.36;--bh-top:.085;--bh-f:clamp(28px,min(9.4vw,calc(var(--bh-h) * .058)),48px)}
  .sp .bh .bh-title{width:calc(100vw - 32px);line-height:1}
  /* the bottom padding keeps the buttons clear of the chat button fixed in the corner */
  .sp .bh-copy{gap:max(18px,calc(var(--bh-f) * .6));padding-bottom:92px}
}

/* ---------- The storyline on this page ----------
   Panels v1 and v3 are a true split: text in the left half, the photograph filling the right half edge to edge.
   v2 stays full-bleed. The stage sits below the sticky nav, so nothing is cropped behind it.
   js/studio-belt.js fades the figure and zooms the img inside it; the column itself never moves off the 50% line. */
.sp .story::before{content:none}
/* the text never sits on these two photographs, at any width, so they carry no shading */
.sp .panel.v1 .panel-media,.sp .panel.v3 .panel-media{box-shadow:none}
.sp .panel.v1 .panel-media::after,.sp .panel.v3 .panel-media::after{content:none}
.sp .panel.v1 .panel-title,.sp .panel.v3 .panel-title{text-shadow:none}
@media (min-width:760px){
  /* at rest (reduced motion, no script) the panels stack, one screen each */
  .sp .story-stage{width:auto;padding:0;gap:0}
  .sp .panel{height:calc(100svh - var(--nav-h,70px))}
  .hold .sp .story-stage{top:var(--nav-h,70px);height:calc(100svh - var(--nav-h,70px))}
  .hold .sp .panel{height:auto}
  /* the first two panels keep their pace; the last takes one scroll (LAST in studio-belt.js) */
  .hold .sp .story.s3{height:306vh}

  .sp .panel.v1 .panel-media,.sp .panel.v3 .panel-media{left:50%;right:0;top:0;bottom:0;width:auto;height:auto;border-radius:0;transform:none}

  .sp .panel.v3 .panel-media img{object-position:43% 50%}
  .sp .panel.v1 .panel-copy,.sp .panel.v3 .panel-copy{--split-gap:clamp(40px,4.4vw,80px);display:flex;flex-direction:column;justify-content:center;gap:clamp(16px,2.4vh,28px)}
  .sp .panel.v1 .panel-lead,.sp .panel.v1 .panel-title,.sp .panel.v3 .panel-title{position:static;max-width:calc(50% - var(--split-gap))}
  .sp .panel.v1 .panel-title,.sp .panel.v3 .panel-title{margin:0;text-wrap:balance}

  /* the progress ticks stand in the margin beside the text, on graphite, not over a photograph */
  .hold .sp .story-progress{right:auto;left:calc(max(0px,(100% - var(--max)) / 2) + var(--gutter) / 2)}
  .hold .sp .story-progress i{background:rgba(255,255,255,.4)}
}
/* wide enough for both workers: the crop moves left to keep the near one whole */
@media (min-width:1000px){.sp .panel.v1 .panel-media img{object-position:38% 50%}}

/* ---------- The beta bar on this page: brand magenta, so it stands up on graphite without matching the cobalt buttons ---------- */
.gs-site .announce,.gs-site .announce a{color:#fff}
.gs-site .announce{background:#D30D9E}
.gs-site .announce a:hover{color:#fff;text-decoration-thickness:2px}
.gs-site .announce a:focus-visible{outline-color:#fff}
