/* hero */
.s--hero .d--hero { font-size: min(var(--t-hero), 13.7vw); }   /* at 320 the kit size broke the line into six words; this keeps it to four lines and changes nothing from 390 up */
/* the heading sits right under the bar and the film comes up with it, so the first screen has no empty field above the words */
.s--hero { padding: clamp(92px, 12vh, 132px) var(--gut) clamp(24px, 4vh, 44px); display: flex; flex-direction: column; gap: clamp(20px, 3vh, 34px); }
html.gl .s--hero { padding: clamp(92px, 12vh, 132px) var(--gut) calc(var(--band) / 2 + clamp(24px, 4vh, 48px)); }
.hero__foot { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 56px); flex-wrap: wrap; }
.hero__foot .line { max-width: 40ch; color: var(--white); text-wrap: pretty; }
/* big type is earned by the hero alone: these sit well under it at every width */
#film .d, #ideas .d, #crm .d, #team .d { font-size: min(clamp(2.3rem, 1rem + 3.9vw, 6.4rem), 9.2vw); }
/* beside the ribbon the column is narrow: under about 1240 wide "how you sell." ran into the CRM object */
html.gl #film .d, html.gl #ideas .d, html.gl #crm .d, html.gl #team .d { font-size: min(clamp(2.3rem, 1rem + 3.9vw, 6.4rem), 5vw); }
.d .nw { display: inline; white-space: nowrap; }
#film .line, #crm .line { text-wrap: pretty; }
#film .line { max-width: 46ch; }
#film, #ideas, #crm, #team, #services { scroll-margin-top: 72px; }

/* 36 names, two rows running against each other */
.names { margin-top: clamp(24px, 3vw, 44px); overflow: hidden; display: grid; gap: clamp(4px, .6vw, 10px); -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.names__row { list-style: none; padding: 0; display: flex; width: max-content; animation: names 110s linear infinite; }
.names__row--back { animation-direction: reverse; animation-duration: 130s; }
.names__row li { font: 900 clamp(1.3rem, 2.5vw, 2.5rem)/1.25 "SM Display", sans-serif; text-transform: uppercase; white-space: nowrap; padding-right: clamp(26px, 3.2vw, 56px); color: var(--ink); }
@media (hover: hover) { .names:hover .names__row { animation-play-state: paused; } }
.names.is-paused .names__row { animation-play-state: paused; }
.names__pause { min-height: 44px; padding: 0 2px; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; color: var(--ink); transition: text-underline-offset .2s var(--ease); }
@media (hover: hover) { .names__pause:hover { text-underline-offset: 3px; } }
.names__pause:active { opacity: .62; }
/* no script: no copies to loop into, so every name just sits on the page */
html:not(.js) .names__row { animation: none; width: auto; flex-wrap: wrap; }
html:not(.js) .names { -webkit-mask: none; mask: none; }
html:not(.js) .names__pause { display: none; }
@keyframes names { to { transform: translateX(-50%); } }
.names__cap { margin-top: 10px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
.names__do { display: inline-flex; align-items: center; gap: 0 14px; }
/* huge screens: the small words and links grow with the page instead of stopping at 16px */
.names__cap, #crm .link, .people__go { font-size: clamp(1rem, .9vw, 1.4rem); }

/* the CRM, large, and the line it starts: every service stands on its own stretch of a small S */
/* the objects' 3D canvases run past their boxes; here they stop at the page's edge instead of widening it */
#crm { overflow-x: clip; }
.crm__say { position: relative; z-index: 3; max-width: 66%; }
.crm__go { margin-top: 6px; }
.line3 { position: relative; margin-top: clamp(-90px, -5vw, -30px); aspect-ratio: 1000 / 930; }
.line3__road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.line3__crm { position: absolute; right: 2%; width: 40%; bottom: calc(100% - 90 / 930 * 100% - 3.4%); display: block; z-index: 1; }
.line3__crm .turn { transition: transform .4s var(--ease); transform-origin: 50% 90%; }
.stop { position: absolute; width: calc(var(--w) * 1%); left: calc(var(--x) * 1% - var(--w) * .5%); top: calc((156 + var(--y) * 260) / 930 * 100%); text-decoration: none; text-align: center; z-index: 1; }
.stop .turn { transition: transform .4s var(--ease); transform-origin: 50% 90%; }
.stop:focus-visible .turn { transform: scale(1.06); }
.stop b { display: block; position: relative; z-index: 1; margin-top: .25em; font: 900 clamp(.92rem, 1.5vw, 2.2rem)/1.05 "SM Display", sans-serif; text-transform: uppercase; color: var(--ink); }
@media (hover: hover) { .stop:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; } }
.stop:active .turn, .line3__crm:active .turn { transform: scale(.98); }
.line3__all { position: relative; z-index: 3; margin-top: clamp(8px, 1.2vw, 18px); }
.line3__all .link { text-wrap: balance; }
/* script off: the film band is its still picture */
html:not(.js) .strip video[data-poster] { display: none; }

/* four people, four heights */
.people { display: grid; grid-template-columns: 4fr 2.9fr 3.3fr 2.9fr; gap: clamp(10px, 1.6vw, 24px); margin-top: clamp(24px, 3vw, 44px); text-decoration: none; align-items: start; }
.person { display: block; }
.person img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; background: var(--night); }
.person b { display: block; font: 800 clamp(1rem, 1.7vw, 2rem)/1.1 "SM Text", sans-serif; margin-top: 12px; }
.person > span { display: block; margin-top: 4px; font-size: clamp(.875rem, 1.1vw, 1.3rem); color: var(--mist); }
.person--b { margin-top: clamp(30px, 8vw, 150px); }
.person--c { margin-top: clamp(12px, 3vw, 60px); }
.person--d { margin-top: clamp(24px, 6vw, 118px); }
@media (hover: hover) { .person:hover b { text-decoration: underline; text-underline-offset: 5px; } }
.people__go { margin-top: clamp(10px, 1.4vw, 20px); }

/* close: the page's own dots spell the one number that matters here. The mouse parts them like everywhere else. */
.s--close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(24px, 4vw, 80px); padding-bottom: clamp(60px, 8vw, 150px); }
.s--close .d { font-size: clamp(2rem, 4.2vw, 6.4rem); text-wrap: balance; }
.s--close .line { font-size: clamp(1.1rem, 1.5vw, 2rem); }
.close__tag { margin-top: clamp(20px, 2.4vw, 34px); }
.close__tag > span { --h: clamp(58px, 4.6vw, 86px); height: var(--h); font-size: clamp(1.08rem, 1.4vw, 1.9rem); padding-inline: calc(var(--h) * .86) calc(var(--h) * .5); }
.close__num { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.close__led { min-height: clamp(240px, 30vw, 660px); }
.close__word { margin-top: clamp(6px, 1vw, 16px); text-align: center; font: 900 clamp(1.5rem, 2.6vw, 3.8rem)/1 "SM Display", sans-serif; text-transform: uppercase; color: var(--ink); }
.close__word .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .close__word .sr { position: static; width: auto; height: auto; clip-path: none; }
@media (max-width: 760px) { .s--close { grid-template-columns: minmax(0, 1fr); } .close__num { order: -1; } .close__led { min-height: 58vw; } }

@media (max-width: 760px) {
  .crm__say { max-width: none; }
  .line3 { margin-top: 18px; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 8px; }
  .line3__road { display: none; }
  .line3__crm { position: static; width: auto; grid-column: 1 / -1; max-width: 82%; margin-inline: auto; margin-block: -11% -6%; }
  .stop { position: static; width: auto; }
  /* a phone's label sits with its own object, not halfway to the next one */
  .stop b { margin-top: -6px; font-size: min(1.04rem, 4.3vw); white-space: nowrap; }
  .person b { font-size: min(var(--t-h3), 4.7vw); }
  .person > span { font-size: min(1rem, 4.3vw); }
  .people { grid-template-columns: 1fr 1fr; }
  .person--b, .person--c, .person--d { margin-top: 0; }
}
/* the band's picture is 6.7 times as wide as it is tall, so past 1340 wide it needs more height or the drift runs out of film */
@media (min-width: 1300px) { :root { --strip: max(200px, 15vw); } }
@media (prefers-reduced-motion: reduce) {
  .names__pause { display: none; }
  .names__row { animation: none; width: auto; flex-wrap: wrap; }
  .names { -webkit-mask: none; mask: none; }
  .names__row li[aria-hidden] { display: none; }
  .stop .turn { transition: none; }
}
@media (max-width: 620px) { .deck__static { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
