/* Hero Section Styles */
.hero-section {
  position: relative;
  min-height: 95vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('./public/bannerM.jpg') 100%/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0px var(--spacing-md);
  color: var(--secondary-color);
  text-align: center;
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .3);
  z-index: 10;
}

.hero-heading {

  text-align: left;
  font-size: var(--font-size-5xl);
  font-weight: 600;
  line-height: 1.1;
  max-width: 100%;
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  z-index: 30;
}

.hero-description {
  text-align: right;
  position: absolute;
  bottom: 30px;
  right: 20px;
  max-width: 70%;
  font-size: var(--font-size-base);
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 auto;
  z-index: 30;
}

/* Tablet Styles */
@media screen and (min-width: 768px) {
  .hero-section {
    /* flex-direction: row; */
    /* align-items: center; */
    /* justify-content: space-between; */
    text-align: left;
    padding: 0px var(--spacing-2xl);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
      url('./public/banner.png') center/cover no-repeat;
  }

  .hero-heading {
    max-width: 60%;
    margin-top: var(--spacing-3xl);
    margin-bottom: 0;
  }

  .hero-description {
    max-width: 400px;
    text-align: right;
  }
}

/* Desktop Styles */
@media screen and (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--spacing-2xl) 67px;
    align-items: start;
    justify-content: center;
    position: relative;
  }

  .hero-heading {
    font-size: var(--font-size-6xl);
    max-width: 60%;
  }

  .hero-description {
    right: 5%;
    margin-right: auto;
    font-size: var(--font-size-lg);
  }
}












/* about us section */
section.showcase {
  padding-left: 67px;
  padding-right: 67px;
  margin: var(--spacing-xl) auto var(--spacing-xs);
  padding: var(--section-y) var(--section-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section.showcase h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  font-weight: 600;
  color: var(--text-dark);
}

.showcase .intro {
  font-size: var(--font-size-4xl);
  font-weight: 500;
  max-width: 70%;
  line-height: 1.1;
  margin-bottom: 3em;
  color: var(--text);
  font-family: "Outfit", sans-serif;
}

.cards-container {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: nowrap;
  position: relative;
  padding: 0 3rem;
}

.message_pills span {
  position: absolute;
  padding: 0.65rem;
  border-radius: 32px;
  border-bottom-left-radius: 0%;
  z-index: 30;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 1.rem;
}

.message_pills span:nth-of-type(1) {
  background-color: #C6011F;
  left: 10%;
  top: 8%;
}

.message_pills span:nth-of-type(2) {
  background-color: #7743F7;
  right: 20%;
  top: 20%;
}

.message_pills span:nth-of-type(3) {
  background-color: #FF6B35;
  border-top-left-radius: 0%;
  border-bottom-left-radius: 32px;
  right: -5%;
  bottom: 5%;
}

.card {
  position: relative;
  width: 270px;
  height: 340px;
  border-radius: var(--radius);
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.1);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: transform 0.3s ease;
  margin-left: -40px;
  border: 2px solid transparent;
}

.card:first-child {
  margin-left: 0;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* Rotations and z-index for each card */
.card:nth-child(2),
.card:nth-child(4) {
  transform: rotate(-4deg) translateY(-8%);


}

.card:nth-child(1),
.card:nth-child(3) {
  transform: rotate(4deg) translateY(4%);
  z-index: 15;
}

.card:nth-child(4) {
  z-index: 20;
  transform: translateY(-5%);
}

.card:nth-child(5) {
  transform: rotate(7deg) translateY(8%);
  z-index: 20;
}


.intro-vision {
  margin-top: var(--spacing-4xl, 5rem);
  max-width: 650px;
  font-weight: 500;
  line-height: 1.35;
}

.intro-vision h4 {
  font-size: var(--font-size-2xl);
  margin: var(--spacing-sm) auto;
}

.intro-vision p {
  font-size: var(--font-size-lg);
  color: #000;
  max-width: 100%;
}

/* Tablet Styles (768px - 1023px) */
@media screen and (max-width: 1023px) {
  section.showcase {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }



  .showcase .intro {
    max-width: 85%;
    font-size: var(--font-size-3xl);
    margin-bottom: 2.5em;
  }

  .cards-container {
    padding: 0 2rem;
  }

  /* Hide only the last card's image on tablet */
  .card:nth-of-type(3) {
    display: none;
  }
}

/* Mobile Styles (max-width: 767px) */
@media screen and (max-width: 767px) {
  section.showcase {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    padding-bottom: 0px;
    min-height: auto;
  }

  section.showcase h3 {
    font-size: var(--font-size-xl);
  }

  .cards-container {
    margin: 2em 0.5em 0em !important;
    flex-direction: column;
    gap: 0;
  }

  .card {
    width: 65%;
    height: 100%;
  }

  .card:nth-child(2) {
    transform: rotate(-4deg) translateY(-8%) translateX(14%) !important;

  }

  .card:nth-child(4) {
    transform: rotate(6deg) translateY(-40%) translateX(50%) !important;
  }

  .card:last-child {
    transform: rotate(-6deg) translateY(-40%) translateX(95%) !important;
  }

  .message_pills span {
    font-size: 0.8rem;
  }

  .message_pills span:nth-of-type(1) {
    top: -10px;
    left: 30%;
  }

  .message_pills span:nth-of-type(2) {
    right: 0%;
    top: 18%;
  }

  .message_pills span:nth-of-type(3) {
    bottom: 10%;
    right: 6%;
  }

  .card:last-child {
    z-index: 20;
    transform: translateY(-0%);
  }

  .showcase .intro {
    max-width: 95%;
    font-size: var(--font-size-2xl);
    margin-bottom: 2em;
  }


  /* Hide only the last card's image on mobile */
  .card:nth-of-type(3) {
    display: none;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media screen and (max-width: 480px) {
  section.showcase {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  .showcase .intro {
    font-size: var(--font-size-xl);
    max-width: 100%;
  }





}





/* presence */
.presence {
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
  margin-bottom: var(--spacing-xl);
  padding: 1em 67px 0em;
}

.presence__container {
  position: relative;
  min-height: 60vh;
  margin: var(--spacing-2xl) auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 6rem;
  padding: 4em 0em;
}

.presence__left {
  width: 50%;
}

.presence__heading {
  font-size: var(--font-size-5xl);
  line-height: 1.2;
  max-width: 80%;
  font-weight: 600;
  margin-top: var(--spacing-md);
  color: #000;
}



.presence__scribble-wrap svg {
  max-width: 45%;
  /* border: 1px solid black; */
  height: 220px;
  object-fit: cover;
  position: absolute;
  bottom: 2%;
  left: -110px;
}





.presence__right {
  width: 50%;
  /* padding-top: var(--spacing-xl); */
}

.presence__stat {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-xs);
}

.presence__stat-value {
  width: 50%;
  font-size: 5rem;
  font-weight: 600;
}

.presence__stat>div:nth-of-type(2) {
  width: 50%;
}

.presence__stat-title {
  font-size: var(--font-size-xl);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.045rem;
  color: #000;
}

.presence__stat-desc {
  color: var(--para);
  font-size: var(--font-size-lg);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.03rem;
  margin-top: var(--spacing-xs);
}



@media (max-width: 940px) {
  /* .presence {
    margin-top: 2.5em;
  } */

  .presence__container {
    min-height: 40vh;
  }

  .presence__left {
    width: 100%;
  }

  .presence {
    padding: 20px;
    padding-bottom: 16rem;
  }

  .presence__container {
    flex-direction: column;
    align-items: start;
    padding: var(--spacing-xs);
    gap: 0.8rem;
  }

  .presence__left .custom__dot {
    width: max-content;
    /* margin: auto; */
  }

  .presence__left {
    width: 80%;
    order: 1;
    text-align: center;
  }

  .presence__heading {
    font-size: var(--font-size-5xl);
    max-width: 100%;
    text-align: left;
  }



  .presence__scribble-wrap svg {
    max-width: 130%;
    width: 100%;
    left: -20px;
    bottom: -90%;
  }

  .presence__right {
    width: 100%;
    display: flex;
    align-items: start;
    justify-content: space-evenly;
    gap: 20px;
    /* border: 1px solid black; */
    order: 2;
    margin-top: var(--spacing-lg);
    text-align: center;
  }

  .presence__stat {
    flex-direction: column;
    justify-items: flex-start;
    align-items: start;
    padding: var(--spacing-lg) 0;
    width: 100%;
    gap: var(--spacing-md);
    text-align: left;

  }

  .presence__stat-value {
    width: 100%;
    /* Full width */
    font-size: var(--font-size-5xl);
    /* Slightly smaller for mobile */
  }

  .presence__stat>div:nth-of-type(2) {
    width: 100%;
    /* Full width */
  }

  .presence__stat-title {
    font-size: var(--font-size-3xl);
    /* Adjust size */
  }

  .presence__stat-desc {
    font-size: var(--font-size-lg);
    /* Adjust size */
  }
}

/* what we do */
.what-we-are-building {
  padding: 3em 67px;
  color: #222;
}

.what-we-are-building__intro {
  text-align: center;
  margin-bottom: 40px;
}

.what-we-are-building__title {
  text-align: center;
  font-size: var(--font-size-6xl);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.11rem;
}

.what-we-are-building__subtitle {
  color: var(--para);
  text-align: center;
  font-size: var(--font-size-lg);
  max-width: 60%;
  margin: var(--spacing-sm) auto;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.03rem;
}

.what-we-are-building__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
  justify-content: space-between;
}


.what-we-are-building__item img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
}

@media (max-width: 520px) {
  .presence__container {
    min-height: auto;
  }

  .presence__heading {
    font-size: var(--font-size-4xl);
    max-width: 100%;
    width: 100%;
    padding: 0;
  }

  .presence__left {
    width: 100%;
  }

  .presence__right {
    flex-direction: column;
  }

  .presence__left svg {
    bottom: -28%;
  }
}

.timer-circle {
  display: none;
  z-index: -1;
}


@media screen and (max-width: 1068px) {
  .what-we-are-building__content {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding-bottom: 10px;
  }

  .what-we-are-building__item {
    scroll-snap-align: center;
    flex: 0 0 100%;
    position: relative;
    /* Required for absolute positioning of timer */
  }

  .what-we-are-building {
    padding: 1em 20px;
  }

  .what-we-are-building__title {
    font-size: 3rem;
  }

  .what-we-are-building__subtitle {
    max-width: 100%;
  }

  .what-we-are-building__subtitle br {
    display: none;
  }
}

/* Additions for and dots */


.carousel-dots {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 15px;
  transition: all 0.2s ease-in-out;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  width: 60px;
  height: 8px;
  border-radius: 14px;
  background-color: #444;
}

.carousel-dot:hover {
  background-color: #666;
}

.what-we-are-building__item-title {
  font-size: var(--font-size-3xl);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  color : black;
  letter-spacing: -0.06rem;
  margin-top: var(--spacing-md);
}

.services {
  background: var(--card-bg);
  color: var(--text);
  margin-top: var(--spacing-3xl);
  padding: 4em 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services__container {
  padding: 2rem 0em;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6rem;
  position: relative;
}

.services__intro {
  flex: 0 0 var(--left-rail-w);
  max-width: var(--left-rail-w);
  position: sticky;
  top: 20px;
}

.services__title {
  margin: 0 0 .6rem 0;
  font-size: clamp(2.6rem, 6.3vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.services__subtitle {
  margin: 16px 0 2.25rem 0;
  color: var(--muted);
  font-size: var(--font-size-lg);
  max-width: 46ch;
  line-height: 1.4;
}

.services__rule {
  border: 0;
  height: 1px;
  background: rgba(0, 0, 0, .08);
  margin: 1.25rem 0 1rem 0;
  max-width: 52ch;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.services-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-dark);
}

.services-list__item:nth-of-type(2) {
  margin-bottom: 2.2rem;
}

.services-list__icon {
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
}

.services-list__icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}


/* Right rail: stacked cards */
.services__cards {
  flex: 1 1 auto;
  /* takes remaining width */
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.service-card {
  background: var(--dark-card-bg);
  padding: 1.5rem 1rem;
  border-radius: 4px;
}

.service-card__title {
  margin: 0 0 4px 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  color: var(--text);
  font-weight: 600;
}

.service-card__text {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-size-lg);
  line-height: 1.2;
  font-weight: 400;
}

/* Large-screen finesse */
@media (min-width: 1280px) {
  .services__cards .service-card {
    padding: 3rem 2.5rem;
  }
}

/* Stack on tablet & mobile, and relax min-height to avoid overflow */
@media (max-width: 1024px) {
  .services {
    min-block-size: auto;
  }

  .services__container {
    flex-direction: column;
    align-items: stretch;
  }

  .services__intro {
    flex-basis: auto;
    max-width: 720px;
    position: static;
  }
}

/* Mobile tightness */
@media (max-width: 640px) {
  .services {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .services__title {
    font-size: clamp(3rem, 8vw, 3.5rem);
  }

  .services__subtitle {
    font-size: var(--font-size-base);
  }

  .services__rule {
    max-width: 100%;
  }

  .service-card__title {
    margin: 0 0 8px 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    color: var(--text);
    font-weight: 600;
  }

  .services-cta__icon {
    inline-size: 42px;
    block-size: 42px;
  }
}




/* clients
 */
.clients {
  padding: var(--spacing-3xl) 0px;
  text-align: center;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2rem 0em;
}

.clients__heading {
  font-size: 5.5rem;
  font-weight: 500;
  max-width: 72%;
  margin: auto;
  line-height: 1;
  color: #000;
  margin-bottom: var(--spacing-3xl);
}


.slider {
  margin: var(--spacing-lg) auto;
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right,
      transparent,
      #000 10% 90%,
      transparent);
}

.slider .list {
  display: flex;
  width: 100%;
  min-width: calc(var(--width) * var(--quantity));
  position: relative;
}

.slider .list .item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0px;
  border: 1px solid rgba(0, 0, 0, .06);
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 13s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc((13s / var(--quantity)) * (var(--position) - 1) - 13s) !important;
}

.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes autoRun {
  from {
    left: 100%;
  }

  to {
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale(1);
}

.slider .item:hover {
  filter: grayscale(0);
}

.slider[reverse="true"] .item {
  animation: reversePlay 13s linear infinite;
}

@keyframes reversePlay {
  from {
    left: calc(var(--width) * -1);
  }

  to {
    left: 100%;
  }
}


@media screen and (width < 1024px) {
  .clients__heading {
    font-size: 4rem;
    max-width: 90%;
  }
}

@media screen and (width < 1024px) {
  .clients__heading {
    font-size: 3rem;
    max-width: 100%;
  }
}



/* Our Work section */

.work {
  background: var(--bg);
  color: var(--text);
}

/* Header */
.work__header {
  max-width: var(--container-max);
  margin: 0 auto clamp(1.25rem, 3vw, 1.75rem) auto;
  text-align: center;
}

.work__header .button {
  max-width: 220px;
  width: 100%;
  background-color: var(--card-bg);
}

.work__title {
  text-align: center;
  font-size: 7rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  /* 102.273% */
  letter-spacing: -0.11rem;
}

.work__subtitle {
  color: var(--para);
  text-align: center;
  font-size: var(--font-size-2xl);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.03rem;
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}



/* “Brands we have collaborated with” row */
.work__brands {
  max-width: var(--container-max);
  margin: clamp(1.25rem, 3vw, 1.75rem) auto clamp(1.25rem, 3vw, 1.75rem) auto;
}

.work__brands-label {
  display: block;
  text-align: center;
  color: var(--para);
  font-family: Inter;
  font-size: var(--font-size-2xl);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.03rem;
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.brands {
  display: flex;
  /* flex-wrap: wrap; */
  gap: .75rem;
  justify-content: center;
}

.brands__item {
  width: calc(100% / 8 - 60px);
  border-radius: 12px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
}

.brands__item img {
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.work__grid {
  max-width: var(--container-max);
  margin: var(--spacing-xl) auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
  position: relative;
}

/* Card */
.work-card {
  background: #f6f5f4;
  border-radius: 24px;
  overflow: hidden;
  padding-bottom: 1rem;
  position: sticky;
  top: 20px;
  cursor: default;
  transition: all 0.3s ease-in-out;
}

.work-card:hover {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="30" rx="15" fill="%23f97316"/><text x="50" y="20" text-anchor="middle" fill="white" font-size="12" font-family="Arial, sans-serif" font-weight="bold">Read More</text></svg>') 80 15, pointer;
}


.work-card__media {
  position: relative;
  aspect-ratio: 16 / 12;
  overflow: hidden;
}

.work-card__img {
  padding: 0.8em;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* Body: title, caption, tag chip row */
.work-card__body {
  padding: .85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.work-card__body div:nth-of-type(1) {
  flex: 0 0.6 70%;
}

.work-card__body div:nth-of-type(2) {
  flex: 0 0.4 40%;
  display: flex;
  align-items: end;
  width: 100%;
  text-wrap: nowrap;
}

.work-card__title {
  margin: 0 0 .35rem 0;
  font-size: var(--font-size-2xl);
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
}



.work-card__caption {
  margin: 0;
  color: #676666;
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.work-card__chip {
  margin-left: auto;
  flex: 0 0 30%;
  padding: 1rem 1.5rem;
  font-size: var(--font-size-lg);
  color: var(--text);
  font-weight: 500;
  background: var(--bg);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}



/* Tighten the vertical rhythm so two rows feel equal height like the mock */
.work-card__body+.work-card__body {
  padding-top: .75rem;
}

/* Responsive */
@media screen and (width< 1024px) {
  .work__grid {
    grid-template-columns: 1fr;
  }

  .work__title {
    font-size: 5rem;
  }

  .work-card__body div:nth-of-type(2) {
    display: block;
    width: 100%;
    text-wrap: nowrap;
  }
}

@media (max-width: 640px) {



  .work {
    padding: var(--spacing-2xl) 12px;
  }

  .work__header h2 {
    font-size: 4rem;
  }

  .brands__item {
    inline-size: 68px;
    block-size: 46px;
  }

  .work-card__body {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .work__grid {
    max-width: 100%;
  }
}




/* Testimonials section uses existing :root variables */

.testimonials {
  background: var(--bg);
  color: var(--text);
  margin: var(--spacing-3xl) auto;
  padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 5vw, 2rem);
}

.testimonials__container {
  max-width: var(--container-max);
  margin-inline: auto;
}



/* Title */
.testimonials__title {
  text-align: center;
  margin: 0 0 clamp(1.75rem, 6vw, 3rem) 0;
  font-size: clamp(2rem, 6.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text);
}

/* Grid */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card */
.t-card {
  background: #f6f6f6;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  /* maintains the tall feel in the screenshot */
}

.t-card__head {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .75rem;
  margin-bottom: .75rem;
}

.t-card__avatar {
  inline-size: 80px;
  block-size: 80px;
  border-radius: 999px;
  object-fit: cover;
  background: #eaeaea;
}

.t-card__stars {
  display: flex;
  gap: .25rem;
  margin-left: .25rem;
  margin-bottom: 1rem;
}

.t-card__star {
  color: var(--primary-color);
  width: 18px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Body copy */
.t-card__text {
  color: var(--text-dark);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: .25rem 0 10rem 0;
}

/* Footer sticks to bottom like the image with a faint divider */
.t-card__footer {
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid rgba(0, 0, 0, .08);
}

.t-card__name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--font-size-base);
}

.t-card__company {
  color: var(--muted);
  font-size: var(--font-size-xs);
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .t-card {
    min-height: 0;
  }
}