.btn {
  min-height: 56px;
  gap: 1.25rem;
  padding: 5px 5px 5px 1.2rem;
}

.service-intro em,
.material-stage em,
.page-hero em,
.motion-copy em,
.team-intro em,
.closing-cta em {
  font-weight: inherit;
}

.btn b {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.hero-bottom .line-link {
  min-width: max-content;
}

.hero-bottom .tag-row {
  min-width: 0;
  justify-content: flex-end;
}

.menu-links a.is-current {
  transform: none;
}

.menu-links a.is-current:hover {
  transform: translateX(1rem);
}

.people {
  border-top: 1px solid rgba(255, 255, 255, .24);
  border-top-color: color-mix(in srgb, currentColor 24%, transparent);
}

.people article {
  border-bottom-color: rgba(255, 255, 255, .24);
  border-bottom-color: color-mix(in srgb, currentColor 24%, transparent);
}

.people article > div:last-child {
  border-left-color: rgba(255, 255, 255, .24);
  border-left-color: color-mix(in srgb, currentColor 24%, transparent);
}

.people article:nth-child(even) > div:last-child {
  border-right-color: rgba(255, 255, 255, .24);
  border-right-color: color-mix(in srgb, currentColor 24%, transparent);
}

.people .person-letter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-indent: 0;
}

.people .person-letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 62% 62%;
  mask-size: 62% 62%;
}

.people article:first-child .person-letter {
  color: var(--green);
  background: var(--white);
}

.people article:first-child .person-letter::before {
  -webkit-mask-image: url("/assets/letter-b.svg");
  mask-image: url("/assets/letter-b.svg");
}

.people article:nth-child(2) .person-letter {
  color: var(--green);
  background: var(--white);
}

.people article:nth-child(2) .person-letter::before {
  -webkit-mask-image: url("/assets/letter-a.svg");
  mask-image: url("/assets/letter-a.svg");
}

@media (max-width: 900px) {
  .people article > div:last-child,
  .people article:nth-child(even) > div:last-child {
    border-right: 0;
    border-left: 0;
  }

  .people .person-letter::before {
    -webkit-mask-size: min(58%, 24rem) min(58%, 24rem);
    mask-size: min(58%, 24rem) min(58%, 24rem);
  }
}

@media (max-width: 600px) {
  .people .person-letter::before {
    -webkit-mask-size: 54% 54%;
    mask-size: 54% 54%;
  }
}

@media (max-width: 600px) {
  .filter-bar {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    margin-right: calc(var(--pad) * -1);
    padding-right: var(--pad);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-bar button {
    flex: 0 0 auto;
  }
}

.footer-brand {
  min-height: clamp(210px, 24vw, 390px);
  overflow: visible;
}

.footer-brand .brand-mark {
  transform-origin: 50% 50%;
  animation: footer-logo-drift 5.5s var(--ease) infinite alternate;
}

@keyframes footer-logo-drift {
  0% { transform: translate3d(0, -10%, 0) rotate(-5deg); }
  100% { transform: translate3d(10%, 12%, 0) rotate(7deg); }
}

@media (max-width: 900px) and (min-width: 601px) {
  .hero-bottom {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .hero-bottom .tag-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .hero-bottom {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .hero-bottom .tag-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-bottom {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bottom .line-link {
    min-width: 0;
  }

  .hero-bottom .tag-row {
    justify-content: flex-start;
  }

  .footer-brand {
    min-height: 190px;
  }
}

@media (max-width: 900px) {
  .home-team {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(3rem, 10vw, 5rem);
    overflow: hidden;
  }

  .home-team .team-intro,
  .home-team .team-grid {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .home-team {
    padding: 5rem var(--pad);
  }

  .home-team .team-intro h2 {
    max-width: 7ch;
    font-size: clamp(4rem, 19vw, 6.4rem);
  }

  .home-team .team-grid article {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    min-height: 340px;
  }

  .home-team .team-grid article::before {
    left: 4.25rem;
  }

  .home-team .team-letter {
    font-size: clamp(6.5rem, 28vw, 9rem);
  }

  .home-team .team-grid h3,
  .home-team .team-grid article > p {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-brand .brand-mark {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .service-intro h2,
  .team-intro h2,
  .motion-copy h2 {
    font-size: clamp(3.8rem, 7vw, 8rem);
    line-height: .82;
  }

  .page-hero h1 {
    margin-top: -20px;
    font-size: clamp(4.6rem, 9vw, 10.5rem);
    line-height: .8;
  }

  .studio-manifest > h2 {
    font-size: clamp(3.2rem, 5.8vw, 6.2rem);
  }

  .page-hero > p:last-child {
    font-size: clamp(1rem, 1.45vw, 1.35rem);
  }
}

.tool-card {
  transition: background-color .28s var(--ease), color .28s var(--ease);
}

.tool-card small,
.tool-card strong,
.tool-card .tool-letters {
  transition: color .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), transform .28s var(--ease);
}

.tool-card .tool-letters {
  color: transparent;
}

.tool-card .tool-letters::before {
  color: var(--cream);
}

.tool-card:hover {
  color: var(--black);
  background: var(--cream);
}

.tool-card:hover small,
.tool-card:hover strong {
  transform: translateY(-4px);
}

.tool-card:hover .tool-letters {
  border-color: var(--green);
  color: var(--cream);
  background: var(--green);
}

.tool-card img {
  border-radius: 14px;
  transition: background .25s var(--ease), filter .25s var(--ease), padding .25s var(--ease);
}

.tool-card:hover img {
  padding: .55rem;
  background: var(--green);
  filter: brightness(0) invert(1);
}

/* Home typography alignment: services title matches the team title scale. */
.home-services .service-intro {
  gap: 2rem !important;
  padding-top: clamp(3rem, 7vw, 7rem) !important;
}

.home-services .service-intro h2 {
  margin: 0 !important;
  padding-bottom: 0 !important;
  font-size: clamp(4rem, 8vw, 8rem) !important;
  font-weight: 800 !important;
  line-height: .82 !important;
  letter-spacing: -.065em;
}

.home-services .service-intro p {
  max-width: 26ch !important;
  margin: 0 !important;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem) !important;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .home-services .service-intro h2 {
    font-size: 15vw !important;
  }
}

/* Brand combinations: balanced rows by item count. */
.brand-combination-grid {
  grid-template-columns: repeat(var(--brand-combo-cols, 3), minmax(0, 1fr)) !important;
}

@media (max-width: 900px) {
  .brand-combination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .brand-combination-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Project masonry: preserve the uploaded media ratio, no forced crop. */
.case-masonry .masonry figure {
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

.case-masonry .masonry .masonry-note {
  min-height: 260px !important;
  background: var(--green) !important;
}

.case-masonry .masonry img,
.case-masonry .masonry video {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
}

.case-masonry .masonry figure:hover img {
  transform: scale(1.01);
}

@media (max-width: 600px) {
  .case-masonry .masonry figure:nth-child(n) {
    height: auto !important;
    min-height: 0 !important;
  }
}
