:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #000;
  --gutter: clamp(22px, 5vw, 80px);
  --client-nav-height: calc(clamp(13px, 1.8vw, 23px) + 28px + env(safe-area-inset-bottom));
  --underlined: "nitti-typewriter", sans-serif;
  --open: "nitti-typewriter-normal", sans-serif;
  --heading: Courier, "Courier New", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--underlined);
  font-size: 16px;
  font-weight: 500;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body { background: var(--paper); }
a { color: inherit; text-decoration: none; }

.experience {
  width: 100%;
  height: 100%;
  overflow: clip;
}

.slides {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(var(--panel-count, 8) * 100%);
  transition: transform 800ms cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.panel {
  position: relative;
  display: flex;
  flex: 0 0 calc(100% / var(--panel-count, 8));
  width: 100%;
  height: calc(100% / var(--panel-count, 8));
  align-items: stretch;
  padding: clamp(32px, 5vh, 58px) var(--gutter) clamp(92px, 12vh, 118px);
  overflow: hidden;
  isolation: isolate;
}

.panel--light {
  background: var(--paper);
  color: var(--ink);
}

.panel--clients {
  padding-inline: 0;
  padding-bottom: 0;
}

#strategy { padding: 0; }
#strategy .panel-content--service,
#strategy .service-selector {
  color: #000;
}

#strategy.has-light-service-text .panel-content--service,
#strategy.has-light-service-text .service-selector {
  color: #fff;
}

.panel--dark {
  background: var(--ink);
  color: var(--paper);
}

.panel::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}


.panel--dark::before { background: rgb(0 0 0 / 62%); }

.panel--clients::before {
  background: linear-gradient(transparent 45%, rgb(0 0 0 / 32%));
}

.clients-background,
.clients-background__image,
.clients-background__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clients-background { z-index: 0; overflow: hidden; background: #e7e5df; }

.clients-background__image,
.clients-background__video {
  object-fit: cover;
}

.clients-background__image {
  display: none;
}

.panel--clients.has-image .clients-background__image {
  display: block;
}

.clients-background__video {
  opacity: 0;
  transition: none;
}
.panel--clients.has-image .clients-background__video { visibility: hidden; }
.panel--clients.has-video .clients-background__video { opacity: 1; }
.panel--clients.is-loading-video .clients-background__video {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.panel__video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  
}

.panel__video--mobile { display: none; }

.panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1800px;
  min-height: 0;
  margin-inline: auto;
}

.panel-content--home { justify-content: center; }

.home-topline {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.45em;
  align-items: center;
  font: 500 clamp(13px, 1.7vw, 21px)/1.2 var(--open);
  
  text-underline-offset: 0.12em;
}
.home-topline a{text-decoration: underline;}
.home-topline > span { text-decoration: none!important;}
.home-hero { width: 100%; }

.wordmark {
  width: 100%;
  margin: 0;
}

.wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-label {
  width: fit-content;
  margin: clamp(14px, 2.5vh, 24px) 0 0 2px;
  padding: 5px 8px 6px;
  background: #f4ebbe;
  color: var(--ink);
  font: 500 clamp(12px, 2.3vw, 29px)/1 var(--open);
  letter-spacing: 0.08em;
}

.section-kicker {
  width: fit-content;
  margin: 0;
  font: 500 31pt/1.1 var(--heading);
  letter-spacing: 0.12em;
}

.section-wordmark {
  display: block;
  width: 100%;
  
  margin:auto 0 auto -6px;
  object-fit: contain;
  object-position: left center;
}

.panel--dark .section-wordmark { filter: invert(1); }
.panel-content--service .section-wordmark { filter: none; }

.service-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.service-background__image,
.service-background__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#strategy.has-service-image .service-background__image { display: block; }
#strategy.has-service-video .service-background__video { opacity: 1; }
.service-background__image { display: none; }
.service-background__video { opacity: 0; }

.panel-content--studio,
.panel-content--service {
  justify-content: center;
}

.panel-content--studio {
  padding-top: clamp(110px, 14vh, 170px);
}

.panel-content--studio .section-wordmark,
.panel-content--service .section-wordmark {
  position: absolute;
  top: clamp(24px, 5vh, 44px);
  left: 0;
  width: clamp(220px, 28vw, 380px);
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: left top;
  transform: translateY(30px);
}

.panel-content--service .section-wordmark {
  top: calc(clamp(32px, 5vh, 58px) + clamp(24px, 5vh, 44px));
  left: var(--gutter);
}

.panel-content--studio .studio-details,
.panel-content--service .service-copy {
  margin-block: auto;
}

.studio-details {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: clamp(32px, 10vw, 150px);
  align-items: start;
  max-width: 1280px;
  margin-top: clamp(18px, 3vh, 36px);
}

.studio-copy h3,
.contact-card h3,
.service-copy h3 {
  margin: 0 0 12px;
  font: 500 27pt/1.1 var(--heading);
}

.studio-copy p,
.contact-card p,
.service-copy p {
  margin: 0;
  font: 500 11pt/1.4 Courier, "Courier New", monospace;
  line-height: 22px;
  width: 76%;
}

.studio-copy .studio-tagline,
.service-copy .service-tagline {
  margin-bottom: 14px;
  font-weight: 800;
}

.contact-card {
  font-style: normal;
}

.contact-card p + p { margin-top: 14px; }
.contact-card span { font-weight: 800; }

.panel-content--clients {
  max-width: none;
  justify-content: flex-end;
  padding: 0 var(--gutter) 22px;
}

.clients-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.client-carousel {
  position: relative;
  display: flex;
  width: 295px;
  max-width: calc(100% - 46px);
  align-items: center;
  margin: 0 0 0 auto;
}

.service-selector {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  justify-content: flex-end;
  padding: 0 var(--gutter) 22px;
  pointer-events: none;
}

.service-carousel { pointer-events: auto; }

.service-carousel .service-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 55px;
}

.client-carousel__viewport {
  flex: 0 0 100%;
  width: 295px;
  min-width: 0;
  overflow: hidden;
  outline-offset: 4px;
}

.client-carousel__track {
  display: flex;
  gap: 5px;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  touch-action: pan-y;
}

.client-card {
  position: relative;
  flex: 0 0 55px;
  width: 55px;
  height: 55px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #606060;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.client-card:focus-visible,
.client-carousel__arrow:focus-visible,
.client-carousel__viewport:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.client-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 260ms ease, filter 260ms ease, transform 450ms ease;
}

.client-card__normal { opacity: 0; filter: blur(5px); }
.client-card__blur { opacity: 1; }
.client-card.is-active .client-card__normal { opacity: 1; filter: blur(0); }
.client-card.is-active .client-card__blur { opacity: 0; }
.client-card:hover img { transform: scale(1.04); }

.service-card img {
  opacity: 0.6;
  filter: grayscale(1);
}

.service-card.is-active img {
  opacity: 1;
  filter: grayscale(0);
}

.client-carousel__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 18px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
}

.client-carousel__arrow[data-direction="-1"] { left: -23px; }
.client-carousel__arrow[data-direction="1"] { right: -23px; }
.client-carousel__arrow[aria-disabled="true"] { opacity: 0.35; }

.panel-content--service {
  padding: clamp(32px, 5vh, 58px) var(--gutter) clamp(92px, 12vh, 118px);
}

.service-copy {
  width: min(100%, 760px);
  padding-bottom: clamp(4px, 1.5vh, 16px);
}

.service-copy h3 {
  max-width: 900px;
  margin-left: 0px;
  }

.service-copy p {max-width: 700px;/* margin-left: -6px; */}

.bottom-nav {
  position: fixed;
  z-index: 3;
  bottom: 40px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  padding: 0;
  color: var(--ink);
  font: 500 clamp(13px, 1.8vw, 23px)/1 var(--open);
  letter-spacing: 0.05em;
  transition: color 180ms ease;
  line-height: 1;
}

.bottom-nav[data-theme="dark"] { color: var(--paper); }
/*.bottom-nav[data-home-page="true"] { color: var(--paper); }*/
.bottom-nav[data-service-page="true"] { color: var(--ink); }
.bottom-nav[data-service-page="true"][data-service-text="white"] { color: var(--paper); }
.bottom-nav[data-client-page="true"] {
  bottom: 40px;
  color: var(--paper);
}

.bottom-nav a {
  padding: 4px 0.8em;
  border-right: 1px solid currentColor;
  transition: opacity 180ms ease, text-decoration-color 180ms ease;
  text-underline-offset: 0.2em;
  line-height: 12px;
}

.bottom-nav a:first-child { padding-left: 0; }
.bottom-nav a:last-child { border-right: 0; }
.bottom-nav a:hover,
.bottom-nav a[aria-current="page"] {
  text-decoration: underline;
}

.bottom-nav a:focus-visible,
.home-topline a:focus-visible,
.contact-card a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  :root {
    --client-nav-height: calc(clamp(13px, 4vw, 22px) + 28px + env(safe-area-inset-bottom));
  }

  .panel__video--mobile { display: block; }
  .panel__video--desktop { display: none; }

  .panel {
    padding: 30px 22px 100px;
  }

  .panel-content--service { padding: 30px 22px 100px; }

 .studio-copy p, .contact-card p, .service-copy p {width:100%!important;}
 .studio-copy h3, .contact-card h3, .service-copy h3 {
    
    font: 500 18pt / 1.1 var(--heading);
}
.studio-copy p, .contact-card p, .service-copy p {
   
    font: 500 10pt / 1.4 Courier, "Courier New", monospace;
    line-height: 18px;
    
}
  .home-topline { font-size: 13px; }

  

  .panel-content--studio .section-wordmark,
  .panel-content--service .section-wordmark {
    top: 0;
    left: 0;
    width: 100%;
    max-height: none;
  }

  .panel-content--service .section-wordmark {
    top: 30px;
    left: 22px;
    width: calc(100% - 44px);
  }

  .studio-details {
    grid-template-columns: 1fr 0.85fr;
    gap: 20px;
  }
.studio-copy h3, .contact-card h3, .service-copy h3 {
    margin: 0 0 24px 0px;
    
}
.service-copy p {
   
    margin-left: 0px;
}
.bottom-nav {
   
    margin-left: 0px;
}
  .panel-content--clients {
    align-items: center;
    padding: 0 16px calc(var(--client-nav-height) - 20px);
  }

  .client-carousel {
    width: 295px;
    min-width: 0;
    margin: 0 auto;
    transform: translateY(30px);
  }

  .service-selector {
    inset: 30px 22px 100px;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0 16px calc(var(--client-nav-height) - 20px);
  }

  .client-carousel__viewport { width: 295px; }
  .client-carousel__track { gap: 5px; }
  .client-carousel__arrow { display: grid; }
  .client-carousel { max-width: 100%; }

  .bottom-nav {
    bottom: 36px;
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 16px);
    height: auto;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    font-size: clamp(13px, 4vw, 22px);
    letter-spacing: 0.02em;
  }

  .bottom-nav[data-client-page="true"] { bottom: 36px; }

  .bottom-nav a { padding-block: 2px; }
}

@media (max-width: 420px) {
  .panel { padding-inline: 16px; }
  .panel-content--service { padding-inline: 16px; }
  .service-selector { inset-inline: 16px; }
  .panel-content--service .section-wordmark {
    left: 16px;
    width: calc(100% - 32px);
  }

  .studio-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .studio-copy h3,
  .contact-card h3 {
    margin-bottom: 6px;
  }

  .studio-copy .studio-tagline,
  .service-copy .service-tagline { margin-bottom: 8px; }

  .contact-card p + p { margin-top: 6px; }
  .contact-card p { line-height: 1.25; }
  .bottom-nav a { padding-inline: 0.45em; }
}

@media (max-height: 650px) {
  .panel { padding-top: 24px; }
  
  .studio-details { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { transition-duration: 0.01ms; }
}

  .bottom-nav a { padding-inline: 0.45em; }
}

@media (max-height: 650px) {
  .panel { padding-top: 24px; }
  
  .studio-details { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides { transition-duration: 0.01ms; }
}
