/* TUCA overrides on top of the reference build */
.testimonial-card-pfp .testimonial-img-wrap { display: none; }
.testimonial-card-pfp .pfp-info-wrapper { padding-left: 0; }
.testimonial-pfp-name { font-family: var(--font-primary); text-transform: uppercase; letter-spacing: .04em; }

/* hero: 4K walk-cycle, baked on the same pink as .section-hero-wrapper.
   contain, not cover: the band is wider than 16:9, and cover was slicing heads and feet. */
.hero-video-loop .hero-video-bg { background-color: #fae3e2; }
/* the band grows with the type scale and, on a wide short screen, runs past the
   fold — which is what was cutting the feet off. Keep the whole frame in view. */
@media (min-width: 992px) {
  .hero-video-loop .hero-video-bg {
    /* beats Webflow's .w-background-video { height: 500px } */
    height: min(40em, calc(100svh - 21em));
    min-height: 0;
    max-height: none;
  }
}
.hero-video-bg video {
  width: 100%; height: 100%;
  object-fit: contain !important;
  object-position: center center;
  background-color: #fae3e2;
  background-size: contain; background-position: center center; background-repeat: no-repeat;
}
/* the reference zooms this band on the smallest screens and clips it */
@media (max-width: 479px) {
  .hero-video-bg { transform: none; }
}

/* about statement: leave room under the fixed nav and keep the block inside one screen */
.about-pinned { padding-top: 5em; padding-bottom: 0; }
@media (max-height: 820px) {
  .about-para { font-size: 4.2em; line-height: 108%; }
}

/* services: the reference tucks the caption under the icon, which collides once the
   labels are Indonesian. Drop the bubble below the row and make it readable. */
.service-block { grid-column-gap: 1.8em; grid-row-gap: .9em; }
.service-block-para-wrapper {
  top: calc(100% + .9em);
  bottom: auto;
  right: 0;
  transform: rotate(-3deg);
  max-width: 17em;
  padding: 14px 22px;
}
.service-block-para { font-size: 15px; line-height: 1.35; letter-spacing: 0; }

/* services on phones: the desktop-calibrated sideways nudges (right: -27%,
   -17% …) push the second word to the screen edge, and the 0.5em flex gap
   lets the 7em icon art touch the words. Widen the gaps, soften the nudges,
   and clip the section so a scrub overshoot can never hang outside the page. */
@media (max-width: 767px) {
  .service-block { grid-column-gap: 1.5em; }
  .service-block.one, .service-block.four { right: -10%; }
  .service-block.two { left: -10%; }
  .service-block.three { right: 0; }
  .service-block.five { left: -6%; }
  .service-block.six { right: -6%; }
  .service-block.seven { left: -10%; }
  /* the weaving stroke and the labels are the same #FF5400, so wherever the
     path crosses a word the letter gaps fill in and the word smears. Mute
     the path on phones (desktop keeps the pure-orange weave). */
  .service-path-mobile path,
  .service-path-mobile-dark path { stroke: #ffcdb3; }
  .section-services-wrapper { overflow: hidden; }
}
@media (max-width: 479px) {
  .service-svg { width: 6em; }
}

/* project cards: product screenshots are portrait, keep them filling the frame */
.project-img, .project-img-hover { object-fit: cover; object-position: top center; }
.project-logo-img { max-height: 3.2em; width: auto; object-fit: contain; }

/* product screenshots need a positioned frame so cover-crop is predictable */
.project-card-img-wrapper { position: relative !important; }
.project-img, .project-img-hover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  min-width: 0; transform: none;
}

/* about hero: the orange story path crosses the intro paragraph, so give it a card
   (same language as the service captions) that sits above the decorative stroke */
@media (min-width: 992px) {
  .abput-para-wrapper {
    position: relative;
    z-index: 4;
    background-color: var(--brand-white);
    border: 1px solid var(--brand-primary);
    border-radius: 22px;
    padding: 1.1em 1.4em;
    max-width: 21em;
    margin-left: 3.5em;
  }
}

/* about hero: wordmark instead of the reference founders illustration */
.tuca-about-mark { display: flex; align-items: center; justify-content: flex-start; width: 100%; }
.tuca-about-mark svg { width: 100%; max-width: 560px; height: auto; }

/* FAQ: hide the reference studio's numbered badges */
.faq-logo { display: none; }
.cat-svg svg { width: 88%; max-width: 420px; height: auto; }
