html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 90px;
}

body {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.hero {
  min-height: min(850px, calc(100vh - 86px));
}

.services-section {
  background: var(--paper);
  isolation: isolate;
}

.hero-side-note {
  left: clamp(12px, calc(var(--pad) - 32px), 64px);
}

@media (max-width: 800px) {
  .hero {
    min-height: min(820px, calc(100vh - 84px));
  }

  .hero-side-note {
    display: none;
  }
}

@supports (height: 100svh) {
  .hero {
    min-height: min(850px, calc(100svh - 86px));
  }

  @media (max-width: 800px) {
    .hero {
      min-height: min(820px, calc(100svh - 84px));
    }
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .videos-grid--portrait {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  columns: auto;
}

.home-video-ratio-group {
  display: block;
  min-width: 0;
}

.home-video-ratio-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}

.home-video-card {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

@media (min-width: 601px) and (max-width: 900px) {
  .videos-grid--portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-video-ratio-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .home-video-grid {
    gap: 28px;
  }

  .home-video-ratio-row {
    grid-template-columns: none;
    grid-auto-columns: min(78%, 270px);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
}

@supports not (aspect-ratio: 1 / 1) {
  .video-card-media,
  .home-video-thumb,
  .video-player-frame {
    height: 0;
    padding-top: 56.25%;
    aspect-ratio: auto;
  }

  .video-ratio--portrait {
    padding-top: 177.78%;
  }

  .video-ratio--standard {
    padding-top: 75%;
  }

  .video-ratio--widescreen {
    padding-top: 56.25%;
  }

  .video-card-media img,
  .home-video-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-player iframe {
    position: absolute;
  }
}

main,
main > *,
main section,
.section-pad > *,
.page-hero > *,
.brand-score-form > *,
.brand-score-form-section > *,
.report-shell > * {
  min-width: 0;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

p,
li,
td,
th,
a,
button,
label,
small {
  overflow-wrap: anywhere;
}

.button,
.nav-cta,
.text-link,
.filter-tabs button {
  min-height: 44px;
}

.service-card,
.project-card,
.blog-card,
.team-grid article,
.value-grid article,
.case-content > *,
.contact-layout > *,
.career-details > *,
.career-application > *,
.career-detail-content > * {
  min-width: 0;
}

.quote-track {
  min-height: clamp(340px, 38vw, 560px);
}

.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 12px;
}

.quote-card blockquote {
  overflow-wrap: anywhere;
}

.report-criteria {
  width: 100%;
  table-layout: fixed;
}

.report-criteria th:first-child,
.report-criteria td:first-child {
  width: auto;
  overflow-wrap: anywhere;
}

.report-criteria th:nth-child(2),
.report-criteria td:nth-child(2) {
  width: 88px;
}

.report-criteria th:nth-child(3),
.report-criteria td:nth-child(3) {
  width: 82px;
}

.whatsapp-float {
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (min-width: 801px) and (max-width: 1120px) {
  :root {
    --pad: clamp(28px, 4vw, 48px);
  }

  .site-header {
    gap: 24px;
  }

  .site-nav {
    gap: clamp(12px, 1.8vw, 20px);
    font-size: .78rem;
  }

  .nav-cta {
    padding-inline: 12px;
  }

  .hero h1 {
    max-width: 880px;
    font-size: clamp(5rem, 10vw, 8.5rem);
  }

  .value-grid,
  .team-grid,
  .score-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 1000px) {
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: calc(84px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    transform: none;
    background: var(--paper);
    box-shadow: 0 1px 0 rgb(14 14 14 / 8%);
  }

  body {
    padding-top: calc(84px + env(safe-area-inset-top));
  }

  html {
    scroll-padding-top: calc(84px + env(safe-area-inset-top));
  }

  .wordmark img {
    height: auto;
    max-width: 200px;
    max-height: 66px;
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--ink);
    transition: transform .25s;
  }

  .menu-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 51;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(10px, 2vh, 18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    box-sizing: border-box;
    padding: max(96px, env(safe-area-inset-top)) var(--pad) max(36px, env(safe-area-inset-bottom));
    background: var(--yellow);
    font: 700 clamp(2.25rem, 8vw, 4.5rem)/1.02 var(--display);
    letter-spacing: -.05em;
    visibility: hidden;
    transform: translateY(-105%);
    transition: transform .4s cubic-bezier(.7, 0, .2, 1), visibility 0s linear .4s;
  }

  .site-nav.is-open {
    visibility: visible;
    transform: translateY(0);
    transition: transform .4s cubic-bezier(.7, 0, .2, 1), visibility 0s;
  }

  .site-nav > a {
    max-width: 100%;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
  }

  .site-nav.is-open > a {
    opacity: 1;
    transform: none;
  }

  .site-nav.is-open > a:nth-child(1) { transition-delay: .05s; }
  .site-nav.is-open > a:nth-child(2) { transition-delay: .09s; }
  .site-nav.is-open > a:nth-child(3) { transition-delay: .13s; }
  .site-nav.is-open > a:nth-child(4) { transition-delay: .17s; }
  .site-nav.is-open > a:nth-child(5) { transition-delay: .21s; }
  .site-nav.is-open > a:nth-child(6) { transition-delay: .25s; }
  .site-nav.is-open > a:nth-child(7) { transition-delay: .29s; }
  .site-nav.is-open > a:nth-child(8) { transition-delay: .33s; }

  .site-nav .nav-cta {
    margin-top: 4px;
    padding: 12px 16px;
    font: 700 1rem/1.2 var(--body);
    letter-spacing: 0;
  }

  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .career-application,
  .brand-score-form-section {
    gap: 42px;
  }

  .brand-score-form-heading {
    position: static;
  }

  .career-application {
    grid-template-columns: 1fr 1fr;
  }
}

.kolkata-section > .city-scene {
  width: 100%;
  min-width: 0;
}

.studio-access-link {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  color: inherit;
  opacity: .65;
  text-decoration: none;
  transition: color .2s, border-color .2s, opacity .2s, transform .2s;
}

.studio-access-link span {
  font-size: 15px;
  line-height: 1;
}

.studio-access-link:hover,
.studio-access-link:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
  opacity: 1;
  transform: rotate(30deg);
}

.studio-access-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

@media (min-width: 801px) and (max-width: 1000px) {
  .services-grid .service-card {
    min-height: 340px;
  }

  .project-grid,
  .blog-grid {
    gap: 38px 16px;
  }

  .project-card:nth-child(even),
  .blog-card:nth-child(even) {
    margin-top: 60px;
  }

  .kolkata-section {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .city-scene {
    min-width: 0;
  }

  .footer-top {
    gap: 32px;
  }
}

@media (max-width: 800px) {
  :root {
    --pad: clamp(20px, 5vw, 30px);
  }

  .site-nav .nav-cta {
    font: 700 1rem/1.2 var(--body);
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
    min-height: min(820px, calc(100svh - 84px));
    padding-top: clamp(72px, 12vh, 112px);
    padding-bottom: 100px;
  }

  .hero-copy {
    z-index: 2;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.5rem, 11vw, 6.5rem);
    overflow-wrap: anywhere;
  }

  .hero-promise {
    max-width: 18ch;
    font-size: clamp(1.65rem, 5vw, 2.4rem);
  }

  .hero-orbit {
    right: -6%;
    top: 9%;
    width: clamp(170px, 34vw, 245px);
    opacity: .16;
  }

  .shape-one {
    width: clamp(170px, 48vw, 300px);
    top: 23%;
    right: -18%;
    opacity: .2;
  }

  .shape-two {
    width: clamp(130px, 32vw, 220px);
    right: -4%;
    top: 42%;
    opacity: .18;
  }

  .hero-index {
    bottom: 28px;
  }

  .hero-bottom,
  .hero-actions {
    width: 100%;
  }

  .hero-actions {
    gap: 14px 22px;
  }

  .story-stage {
    min-height: 0;
  }

  .story-copy,
  .story-caption {
    min-width: 0;
  }

  .service-card {
    min-width: 0;
  }

  .kolkata-section {
    min-height: 0;
  }

  .city-scene {
    min-width: 0;
  }

  .quote-track {
    min-height: clamp(380px, 70vw, 520px);
  }

  .quote-card blockquote {
    font-size: clamp(1.8rem, 5vw, 3.1rem);
  }

  .project-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 14px;
  }

  .project-card:nth-child(even),
  .blog-card:nth-child(even) {
    margin-top: 0;
  }

  .career-application {
    grid-template-columns: 1fr;
  }

  .report-score-layout {
    gap: 28px;
  }
}

@media (max-width: 540px) {
  .brand-score-hero h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
    overflow-wrap: anywhere;
  }

  .brand-score-hero {
    min-height: 0;
  }

  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: clamp(28px, 5vh, 40px);
  }

  .hero-copy {
    margin-block: 0;
  }

  .hero .eyebrow {
    max-width: 30ch;
    font-size: .65rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 12.5vw, 4.5rem);
  }

  .hero-promise {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .hero-orbit {
    top: 15%;
    right: -14%;
    opacity: .12;
  }

  .shape-one {
    top: 34%;
    right: -28%;
    opacity: .14;
  }

  .shape-two {
    top: 49%;
    right: -16%;
    opacity: .12;
  }

  .hero-bottom {
    gap: 22px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .story-art {
    min-height: clamp(250px, 72vw, 320px);
  }

  .story-art .mockups {
    gap: clamp(5px, 2vw, 10px);
  }

  .story-art .mock-cup {
    width: clamp(58px, 19vw, 84px);
    height: clamp(90px, 30vw, 124px);
  }

  .story-art .mock-phone {
    width: clamp(62px, 20vw, 86px);
    height: clamp(120px, 40vw, 165px);
  }

  .story-art .mock-billboard {
    padding: clamp(12px, 4vw, 20px) clamp(8px, 2.4vw, 14px);
    font-size: clamp(.72rem, 3.8vw, 1.1rem);
  }

  .service-track,
  .services-grid,
  .project-grid,
  .blog-grid,
  .gallery-grid,
  .value-grid,
  .team-grid,
  .process-list,
  .score-principles,
  .score-pillar-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card:nth-child(even),
  .blog-card:nth-child(even) {
    margin-top: 0;
  }

  .featured-project {
    min-width: 0;
  }

  .featured-project > span {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    overflow-wrap: anywhere;
  }

  .footer-top {
    gap: 36px;
  }

  .footer-cta {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .report-score-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-summary {
    min-width: 0;
  }

  .report-summary h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
    overflow-wrap: anywhere;
  }

  .report-criteria th:nth-child(2),
  .report-criteria td:nth-child(2) {
    width: 64px;
  }

  .report-criteria th:nth-child(3),
  .report-criteria td:nth-child(3) {
    width: 58px;
  }

  .report-criteria th,
  .report-criteria td {
    padding: 8px 4px;
    font-size: .72rem;
  }

  .career-application .button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav,
  .site-nav > a {
    transition: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .services-section .service-track {
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
  }

  .services-section .service-card {
    scroll-snap-align: start;
  }
}

.services-section .service-track {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.services-section .service-track::-webkit-scrollbar {
  display: none;
}

.services-section .service-card {
  flex: 0 0 clamp(250px, 28vw, 410px);
}

@media (max-width: 800px) {
  .services-section .service-card {
    flex-basis: clamp(280px, 72vw, 410px);
    min-height: 300px;
  }
}

@media (max-width: 540px) {
  .services-section .service-card {
    flex-basis: min(84vw, 360px);
    min-height: 280px;
  }
}
