/* Keep the wireframe and client strip legible on the dark homepage. */
:is(.nk-home-intro,.service-wire-opening) {
  --wire-grid:158,158,158;
  --wire-room:150,150,150;
  display: flow-root;
  padding-top: clamp(130px,10.5vw,175px);
}
.nk-home-intro .story-copy {
  width: min(calc(100% - 2 * var(--edge)),1320px);
}
.nk-home-intro .hero-title {
  font-size: var(--hero-headline-size);
  font-weight: 500;
  letter-spacing: -.075em;
  animation: type-in .8s var(--ease) both;
}
.nk-home-intro .intro-text {
  max-width: 650px;
  margin: clamp(39px,4.1vw,65px) auto 0;
  font-size: 18px;
  line-height: 1.38;
}
.nk-home-intro .home-actions { margin-top: 26px; }

.nk-client-strip {
  margin-block: clamp(42px,4.7vw,75px) clamp(51px,4.4vw,78px);
  padding-block: 0;
}
.nk-client-strip .strip__label { margin: 0; font-size: 14px; }
.nk-client-strip .strip__label::before { content: '/ '; color: var(--accent); }
.nk-client-strip .strip__window { container-type: inline-size; }
.nk-client-strip .strip__track { animation-duration: 24s; }
.nk-mark-set {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: max(615px,100cqw);
  gap: clamp(38px,5vw,82px);
  padding-inline: 3vw;
}
.nk-mark {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(100px,11vw,160px);
  height:clamp(36px,3.65vw,52px);
}
.nk-mark img {
  width:100%;
  height:100%;
  object-fit:contain;
}
.nk-mark--tws { padding:4px 10px; }
.nk-mark--gridstone { width:auto;gap:5px; }
.nk-mark--gridstone img { width:clamp(29px,3vw,42px); }
.nk-gridstone-wordmark { display:grid;color:var(--paper);font:750 clamp(11px,1.15vw,16px)/1.05 system-ui,sans-serif; }
.nk-gridstone-wordmark strong { letter-spacing:.14em; }
.nk-gridstone-wordmark small { display:flex;justify-content:space-between;margin-top:.45em;color:#dda078;font-size:clamp(7px,.54vw,8px); }

.nk-home-intro { position: relative; isolation: isolate; }
.hero-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero-motion-toggle {
  position: absolute; right: var(--edge); bottom: 12px; width: 36px; height: 36px;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; z-index: 1;
}
.hero-motion-toggle::before { content: ''; width: 7px; height: 9px; border-inline: 2px solid currentColor; box-sizing: border-box; }
.hero-motion-toggle[aria-pressed="true"]::before {
  width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor;
}
.hero-motion-toggle[hidden] { display:none; }
:is(.nk-home-intro,.service-wire-opening) .hero-motion-toggle { color:inherit; }
.tws-home-still { position:relative;z-index:2; }
.tws-home-still a { display:block;transform-origin:top left; }
.tws-home-still img { display:block;width:100%;height:auto;border-radius:3px; }
.tws-still-dock {
  display:inline-block;width:clamp(76px,13vw,192px);aspect-ratio:8/5;
  margin-inline-start:.13em;vertical-align:-.10em;
}
.nk-home-intro[data-animation-paused] .strip__track { animation-play-state:paused; }
body[data-betsi-home] .tws-case-study .strategy-section {
  width: 100%;
  max-width: none;
  padding: clamp(44px,5.5vw,88px) var(--edge) clamp(56px,6vw,90px);
  background:transparent;
  color:inherit;
}
.tws-case-study .strategy-intro { width: 100%; max-width: 1350px; }
.tws-case-study .strategy-intro h2,
.nk-brand-chapter h2,
.betsi-studio-interlude h2 {
  max-width: none;
  font-size: var(--brand-display-size);
  line-height: var(--brand-display-leading);
  letter-spacing: var(--brand-display-tracking);
}
.tws-case-study .strategy-intro h2 em,
.nk-brand-chapter h2 em,
.betsi-studio-interlude h2 em { color: inherit; }
.tws-case-study .strategy-intro .intro { margin-top: clamp(34px,4vw,60px); }
.nk-brand-chapter {
  width: 100%;
  max-width: none;
  display: block;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(68px,8vw,120px) var(--edge) clamp(52px,5.2vw,85px);
  text-align: center;
}
.nk-brand-chapter .perspective-copy {
  max-width: 680px;
  padding-top: clamp(34px,4vw,60px);
  margin: auto;
}
.nk-brand-chapter .perspective-copy p { margin-inline: auto; }
.nk-brand-chapter :is(.perspective-accent,.dot,.perspective-copy strong) { color:var(--accent); }
.nk-brand-chapter .perspective-copy strong { font-weight:700; }
.cinematic.betsi-studio-interlude { min-height:clamp(420px,51vw,720px);padding-block:clamp(60px,6vw,92px); }
.landscape-lettermark {
  position:absolute;inset:50% auto auto 50%;height:min(84%,530px);width:auto;overflow:visible;
  transform:translate3d(
    calc(-50% + var(--scene-x,0px) - var(--world-x,0px) * .42),
    calc(-50% + var(--scene-y,0px) - var(--world-y,0px) * .36),0
  ) rotate(var(--world-turn,0deg));
  fill:color-mix(in srgb,var(--accent) 12%,transparent);stroke:var(--accent);stroke-width:2;
  stroke-linejoin:round;filter:drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 16px var(--accent));
}
.betsi-studio-interlude .section-heading { margin: 0 auto; }
.betsi-studio-interlude .website-essentials-accent { color:var(--accent); }
.betsi-studio-interlude .section-heading > p { margin-top: clamp(30px,3.8vw,58px); }
.betsi-studio-interlude + .connected .journey { margin-top: 0; }
body[data-betsi-home] :is(.featured,.capabilities,.closing) { padding-block:var(--brand-section-space); }
body[data-betsi-home] :is(.nk-brand-chapter+.featured,.featured+.capabilities) { padding-top:clamp(24px,3vw,48px); }
body[data-betsi-home] .project-index-title,
body[data-betsi-home] .capabilities .section-heading { margin-bottom:clamp(32px,5vw,76px); }
body[data-betsi-home] .capability-list { row-gap:clamp(36px,3.7vw,55px); }
body[data-betsi-home] .capability-list .media-card__caption { grid-template-columns:minmax(0,1fr); }
.home-support-heading {
  margin-block:clamp(36px,5vw,68px) clamp(22px,2.8vw,38px);
  padding-block-start:clamp(18px,2vw,26px);
  border-top:1px solid var(--line);
  color:var(--accent);
  font-size:clamp(20px,2vw,32px);
  text-wrap:wrap;
}
body[data-betsi-home] .connected > .section { padding-block:clamp(35px,5vw,75px); }
body[data-betsi-home] .closing-bottom { margin-top:clamp(25px,3.2vw,50px); }
.home-closing-actions {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:14px 28px;margin-top:clamp(24px,3vw,30px);
}
.closing-bottom .home-closing-actions .button { margin-top:0; }

/* Keep the lime accents visible on both dark and light surfaces. */
body[data-betsi-home] :is(.project-index-title em,.capabilities .section-heading em,.closing h2 em) {
  color:var(--accent);
}
body[data-betsi-home] .nk-home-intro .hero-title em { color:inherit; }
.nk-home-intro .hero-accent { color:var(--accent); }
.tws-case-study .tws-headline-accent { color:var(--accent); }
body[data-betsi-home] .tws-case-study .tws-step__label {
  color:inherit;
  text-decoration:underline var(--accent) .055em;
  text-underline-offset:.12em;
}
.connected[data-theme="dark"] .journey :is(b, div > span) { color:inherit; }
.connected[data-theme="dark"] .journey > div > span { text-decoration:underline var(--accent);text-underline-offset:.12em; }

@media(max-width:880px) {
  :is(.nk-home-intro,.service-wire-opening) { padding-top: 118px; }
}
@media(max-width:600px) {
  .tws-still-dock { display:block;width:clamp(88px,29vw,158px);margin:.35em auto 0; }
  :is(.nk-home-intro,.service-wire-opening) { padding-top: clamp(102px,14svh,123px); }
  .nk-home-intro .intro-text { margin-top: 43px; font-size: 16px; line-height: 1.4; }
  .nk-home-intro .home-actions { margin-top: 22px; gap: 16px; }
  .nk-home-intro .home-actions :is(.button,.text-link) { font-size: 15px; }
  .nk-client-strip { margin-block: 48px 51px; }
  .nk-mark-set { min-width: 450px; gap: 32px; padding-inline: 16px; }
  .nk-client-strip .strip__label { font-size: 13px; }
}
@media(prefers-reduced-motion: reduce) {
  .nk-client-strip .strip__track { width: 100%; }
  .nk-client-strip .strip__window { mask-image: none; }
  .nk-mark-set { flex-wrap: wrap; justify-content: flex-start; min-width: 0; gap: 10px 28px; padding: 0; }
  .nk-mark-set[aria-hidden] { display: none; }
  .nk-docked-film { display: none; }
}

/* Travel With Sport case study and full-homepage viewer. */
.tws-home-action{margin-top:22px;}
.tws-home-action a{font-size:14px;}
.tws-home-viewer{
  width:min(1220px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);
  padding:0;border:1px solid #424242;border-radius:5px;background:#171717;color:white;overflow:hidden;
}
.tws-home-viewer[open]{display:flex;flex-direction:column;}
.tws-home-viewer::backdrop{background:#000d;}
.tws-home-viewer__bar{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:5px clamp(12px,3vw,25px);border-bottom:1px solid #424242;
}
.tws-home-viewer__bar h3{font-size:clamp(16px,3vw,24px);letter-spacing:-.02em;}
.tws-home-viewer__bar button{min-height:44px;color:white;white-space:nowrap;}
.tws-home-viewer__scroll{overflow:auto;overscroll-behavior:contain;}
.tws-home-viewer__scroll img{width:100%;height:auto;display:block;}
.tws-home-viewer :focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
body:has(.tws-home-viewer[open]){overflow:hidden;}
.tws-journey{
  width:min(100%,var(--max));margin:clamp(28px,4.4vw,62px) auto 0;padding:0;
  list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(17px,2.4vw,36px);
}
.tws-journey li{min-width:0;border-top:1px solid var(--line);padding-top:16px;}
.tws-step__image{
  display:block;overflow:hidden;aspect-ratio:8/5;border-radius:3px;background:#171717;
}
.tws-step__image img{display:block;width:100%;height:100%;object-fit:contain;}
.tws-step__label{margin-top:19px;font-weight:600;}
.tws-journey h3{font-size:clamp(22px,2.8vw,36px);line-height:1.04;letter-spacing:-.04em;margin-top:8px;}
.tws-journey h3+p{margin-top:12px;font-size:16px;line-height:1.5;max-width:46ch;}
.tws-story__link{margin:35px auto 0;display:table;}
@media(max-width:1000px){.tws-journey{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){
  .tws-journey{grid-template-columns:1fr;}
  .tws-journey li{padding-bottom:12px;}
}

