/* Google Fonts — must be the first rule in the file. */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Open+Sauce+One:wght@400;500;600;700&display=swap');

/* ==============================================
     ROOT
============================================== */

:root {
    --white: #ffffff;
    --black: #0A0A0A;
    --pink: #C31D9F;
    --grey: #5A5A5A;
    --midgrey: #373737;
    --darkgrey: #101010;
    --primary-font:'Bebas Neue', 'Acumin Pro Extra Condensed', sans-serif;
    --secondary-font:'Open Sauce One', 'OpenSauceOne', sans-serif;
    --underline-motion: fadein 2.5s 1s cubic-bezier(.59,0,0,.97); 
    --cursor-timing: all 0.4s cubic-bezier(0.52, 0.02, 0, 0.99);
    --work-hover-motion: 1s cubic-bezier(.36,0,0,.99);
    --grid-gap: 3.819vw;
  }
  
  
  
  .pink {
    color: var(--pink);
  }
  
  
  
  /* ==============================================
         Hide Scrollbar
  ============================================== */
    
  body::-webkit-scrollbar{display: none;} /* Chrome, Safari, Opera */
  body {-ms-overflow-style: none;} /* IE & Edge */
  html {scrollbar-width: none;} /* Firefox */
  
  
  /* ==============================================
         Page Styles
  ============================================== */
  
  html, body {
    -webkit-font-smoothing: antialiased;
    font-size:1vw;
    line-height:1;
    font-family: var(--secondary-font);
    background: var(--white);
    color: var(--black);
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    width:100%;
    padding:0;
    margin:0 auto;
    /*
    min-height:100vh;
    */
    scroll-behavior: auto;
    overflow:hidden;
      height:auto;
    min-height:100dvh;
  }
  
  html {
    touch-action: manipulation;
  }
  
  input, textarea, select, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px; /* Ensures the text size is not small, preventing zooming */
  }
  
  #page-wrapper {
    
    height:auto;
    min-height:100%;
  
  }
  
  /* ==============================================
         CSS Reset
  ============================================== */
  
  *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
  li, ul, figure { padding: 0; margin: 0; list-style: none;}
  
  
  .w-inline-block {
    all:unset;
  }
  
  svg {
     max-width: none;
     height: auto;
     box-sizing: border-box;
  }
  
  audio, iframe, img, svg, video, picture, figure {
     vertical-align: middle;
      -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
  }
  
  
  
  h1, h2, h3, h4, h5, h6, p, a, li, ul, ol, span, strong, em, figcaption, .w-form, .w-radio {padding: 0; margin: 0; }
  
  
  span {
    line-height:unset;
    padding:0;
    margin:0;
  }
  
  
  :focus {
    outline: none;
  }
  
  strong {
    display:inline-flex;
    font-weight: inherit;
  }
  
  .hide {
    display:none;
  }
  
  .divs-hide {
    display:none;
  }
  
  
  .w-webflow-badge {
    display:none!important;
  }
  
  .unicorn {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important; /* Keep it centered */
    position: fixed;
    min-width: 100vw !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: difference !important;
    opacity: 1;
  
  }
  
  @media (max-width: 500px) {
    .unicorn {
      display:none;
      max-height: 50vh !important;
      min-height: 50vh !important;
      top: 9%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
  
  .w-dyn-list {
   padding:unset;
    margin:unset;
    line-height:unset;
    height:unset;
    min-height:unset;
    width:unset;
    min-width:unset;
  }
  
  
  
  /* ==============================================
      Page Transition Logic
   ============================================== */
    
  
  .page-overlay-first,  .page-overlay-second {
    display:none;
  }
   .page-overlay-first {
    width: 100%;
    height: 100.5svh;
    background: var(--white);
    position: fixed;
    top: 0; 
    left: 0;
    pointer-events: none;
    z-index: 9999999;
    transform-origin: bottom; 
  }
  
  .page-overlay-second {
    width:100%;
    height:100vh;
    background:var(--midgrey);
    position:fixed;
    top:0;
    left:0;
    opacity:0;
    pointer-events:none;
    z-index:999999;
  }
  
  .page-overlay-video {
    width:100%;
    height:100vh;
    background:var(--white);
    position:fixed;
    top:0;
    left:0;
    opacity:0;
    pointer-events:none;
    z-index:999;
  }
  
  
      
  
  /* ==============================================
         Cursor Style
  ============================================== */
  
  #cursor {
    position: fixed;
    z-index: 99999999999999!important;
    left: 0;
    top: 0;
    border-radius: 100%;
    pointer-events: none;
    will-change: transform;
    opacity:0;
    
  }
  
  @media (hover: hover) and (pointer: fine) {
    .cursor__circle {
      width: 3.3vw;
      height: 3.3vw;
      border-radius: 100%;
      border: solid 0.12vw var(--black);
      transition: var(--cursor-timing);
      background:transparent;
    }
  
    #cursor.change .cursor__circle {
      width: 0.2vw;
      height: 0.2vw;
      background-color: var(--black);
      border-color: transparent;
    }
  
    #cursor.explore .cursor__circle {
      border: solid 0.12vw var(--black);
          width: 4vw;
          height: 4vw;
      top: 150%;
          left: 50%;
          transition: var(--cursor-timing);
  
      }
      #cursor.explore .cursor__circle::after {
          content: "↔";
          display: block;
          position: absolute;
          top: 50%;
          left: 50%;
       margin-top:3vw;
          transform: translate(-50%, -50%);
          font-size: 1.5vw;
          line-height: 1;
          transition: var(--cursor-timing);
      text-align: center;
      }
    
    #cursor.drag .cursor__circle {
      border: solid 0.12vw var(--black);
          width: 8vw;
          height: 8vw;
      top: 150%;
          left: 50%;
          transition: var(--cursor-timing);
  
      }
      #cursor.drag .cursor__circle::after {
          content: "↕";
          display: block;
          position: absolute;
          top: 50%;
          left: 50%;
       margin-top:0vw;
          transform: translate(-50%, -50%);
          font-size: 1.5vw;
          line-height: 1;
          transition: var(--cursor-timing);
      text-align: center;
      }
  
    #cursor.hiding .cursor__circle {
      opacity:0!important;
  
      }
      #cursor.hiding .cursor__circle::after {
       opacity:0!important;
      }
    
  }
  
  @media (max-width: 500px) {
  
    #cursor {
      display: none;
    }
  }
  
  
  /* ==============================================
         Reset Styles
  ============================================== */
  
  
  h1, h2, h3, h4, h5, h6  {
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
  }
  
  a, button {
    text-decoration: none!important;
    color: inherit;
    background: none;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer!important;
  }
  
  a:focus, a:active {
    outline: none;
  }
  
  .btn {
    text-decoration: underline;
    text-underline-offset: 0.8vw;
  }
  
  
  
  
  /* ==============================================
       Fonts
  ============================================== */
  
  
  /* Fonts loaded from Google Fonts via @import (see top of file) — no local files needed.
     Open Sauce One: https://fonts.google.com/specimen/Open+Sauce+One
     Bebas Neue: substitute for the paid Acumin Pro Extra Condensed Bold. */
  @font-face {
    font-family: 'AcuminVariableConcept';
    src: local('Bebas Neue'), local('BebasNeue-Regular');
    font-weight: bold;
    font-style: normal;
  }
  
  /* ==============================================
         Typogoraphy
  ============================================== */
  
  h1, h2 {
    font-family: var(--primary-font);
    text-transform: uppercase;
    line-height: 0.85;
  }
  
  h1 {
    font-size: 12vw;
    letter-spacing: -0.3vw;
  }
  
  h2 {
    font-size: 6vw;
    letter-spacing: -0.15vw;
    margin-bottom:-0.6vw;
  }
  
  h3 {
    font-size: 1.6vw;
    line-height: 1.38;
  }
  
  h4 {
    font-size: 1.1vw;
    line-height: 1.5;
  }
  
  h5 {
    font-size:0.9vw;
  }
  
  h6 {
    font-size: 0.752vw;
    line-height: 1.7;
  }
  
  p {
    font-size: 1vw;
    line-height:1.5;
  }
  
  .project-info p {
    font-size: 1.6vw;
    line-height: 1.38;
  }
  
  .project-credits p {
    font-size: 1.1vw;
    line-height: 1.5;
  }
  /*
  @media (max-height: 920px) or (min-width:1920px) {
    h1 {
      font-size: 23vh;
    }
    h2 {
      font-size: 12.7vh;
      letter-spacing: -0.2vh;
    }
    h3 {
      font-size: 3.05vh;
      line-height: 1.38;
    }
    h4 {
      font-size: 1.95vh;
      line-height: 1.5;
    }
    h5 {
      font-size:1.88vh;
    }
  }
  */
  
  @media (max-width: 500px) {
    h1 {
      font-size: 17vw;
    }
    h2 {
      font-size: 15vw;
      letter-spacing:-0.5vw;
        margin-bottom:-1vw;
    }
    .hero h2 {
      font-size:16vw;
    }
    h3 {
      font-size: 5.5vw;
      line-height: 1.38;
    }
    h4, h5, .btn {
      font-size: 4vw;
    }
    h6 {
      font-size: 3vw;
      line-height: 1.7;
    }
    .project-info p {
      font-size: 5.5vw;
      line-height: 1.38;
  }
  
  .project-credits p {
      font-size: 4vw;
  }
  }
  
  
  
  /* ==============================================
         Grid Settings
  ============================================== */
  
  .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 3.819vw;
    padding: 3.819vw;
    margin: 0 auto;
  }
  
  .grid-overlay {
    position: fixed;
    top: 3.819vw;
    left: 3.819vw; 
    width: calc(100% - 7.638vw); 
    height: calc(100% - 7.638vw); 
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 3.819vw; 
    z-index: 999999999999999;
    pointer-events: none;
  }
  
  .grid-overlay div {
    background: rgba(255, 0, 0, 0.1);
  }
  
  @media (max-width: 500px) {
    .grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr)); 
      grid-gap: 8vw; 
      padding: 8vw; 
      width: calc(100% - 16vw); 
      /*
      overflow: hidden; 
      */
    }
  
    .grid-overlay {
      position: fixed;
      top: 8vw;
      left: 8vw;
      width: calc(100% - 16vw); 
      height: calc(100% - 16vw);
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr)); 
      grid-gap: 8vw;
      overflow: hidden;
      white-space: nowrap; 
    }
  
    .grid-overlay div {
      height: 100vh;
    }
  }
  
  
  /* ==============================================
         Header
  ============================================== */
  
  .header {
    width:100%;
    position:fixed;
    top:0;
    height:8vw;
    transition:top 0.5s cubic-bezier(.22,.19,0,.99);
    z-index:999;
  }
  
  .header.scroll {
    top: -10vw;
    transition:top 0.8s cubic-bezier(.22,.19,0,.99);
  }
  
  .header .logo {
    grid-column: 1 / 3;
    overflow: hidden;
    position: absolute;
    margin-top: -0.5vw;
    z-index:99;
  }
  
  .header .grid {
    width:100%;
  }
  
  .logo img {
    min-width: 10.194vw;
    max-width: 10.194vw;
    top: -1vw;
    left: 0;
  }
  
  
  .nav a {
    width:10vw;
    opacity: 1;
    font-size: 1vw;
    transition: opacity 0.3s ease;
  }
  
  .nav a:hover {
    opacity: 0.5;
  }
  
  #theme-toggle {
    margin-left: 20vw;
  }
  
  .toggle-switch {
    background: var(--black);
    width: 1.2vw;
    height: 1.2vw;
    border-radius:50vw;
  }
  
  .nav .current {
    pointer-events: none;
    position: relative;
    top:0.3vw;
  }
  
  .btn, .current {
    width:fit-content!important;
  }
  
  .btn:after, .current {
    display: block;
    content: "";
    border-bottom: solid 0.099vw var(--black);
    transform: scaleX(1);
    transition: transform 500ms cubic-bezier(.59,0,0,.97);
    transform-origin: 0 50%;
    padding-bottom: 0.7vw;
  
    /* Hide with opacity initially */
    opacity: 0;
    animation: fadein 2.5s 1s cubic-bezier(.59,0,0,.97) forwards;
  }
  
  /* Reveal and animate with clip-path */
  @keyframes fadein {
    0% { 
      opacity: 1;
      clip-path: inset(0 100% 0 0%);
    }
    50% { clip-path: inset(0 100% 0 0%); }
    100% { 
      opacity: 1;
      clip-path: inset(0 0 0 0); 
    }
  }
  
  
  .btn:hover:after {
    transform: scaleX(0);
    transform-origin: 100% 0%;
  
  }
  
  
  @media (max-width: 500px) {
    .nav a {
      display:none;
    }
    .btn:after, .current {
      margin-top:2vw;
      border-bottom: solid 0.3vw var(--black);
    }
  }
  
  .header .nav {
    grid-column: 7 / 13;
    width:100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  @media (max-width: 500px) {
    .header .logo {
      grid-column: 1 / 3;
    }
    .logo img {
      min-width: 30vw;
      max-width: 30vw;
    }
    .header .nav {
      grid-column: 4 / 7;
      justify-content: end;
    }
    .header.scroll {
      top: -16vw;
      transition:top 0.5s cubic-bezier(.22,.19,0,.99);
    }
    .toggle-switch {
      width: 4vw;
      height: 4vw;
      margin-top: 1vw;
    }
    #theme-toggle {
      margin-left: -21vw;
      z-index:99;
      position:relative;
    }
  }
  
  /* ==============================================
         Home Page
  ============================================== */
  
  
  
  .works-slider {
    grid-column: 1 / 13;
    width:100%;
    position: fixed;
    top: 7.8vw;
    z-index:0;
    cursor:grabbing;
  }
  
  .works-container {
    display:flex;
    width: 100vw;
  }
  
  .work-slide {
    min-width:38vh;
    margin-right: 6dvh;
    grid-gap: 1vw;
    display: grid;
    position:relative;
  }
  
  .work-slide .image {
    overflow: hidden;
  }
  .work-slide img {
    width: 100%;
    height: 25vh;
    object-fit:cover;
  
  }
  .work-slide h5 {
    margin-bottom:1vw;
  }
  
  
  @media (max-width: 500px) {
    .work-slide {
      min-width:28vh;
      margin-right: 3.5vh;
    }
    .work-slide img {
      height: 20vh;
    }
    .work-slide h5 {
      font-size:3vw;
      margin-top:2vw;
      margin-bottom:1vw;
    }
  }
  
  
  
  @media (max-height: 600px) and (max-width:500px) {
    .work-slide {
      min-width:26vh;
      margin-right: 3.5vh;
    }
    .work-slide img {
      height: 18vh;
    }
  }
  
  .hero .grid {
    position: relative;
    height: 100dvh;
    width:100%;
    align-items: center;
    justify-content: center;
    align-items:end;
    position: relative;
  }
  
  .hero .grid .scroll {
    position: absolute;
    bottom: 3.819vw;
    right: 3.819vw;
  }
  
  
  .hero .video-thumb {
    position:absolute;
    bottom: 3.819vw;
    left: 3.819vw;
    border-radius:0.1vw;
    overflow: hidden;
    cursor: pointer;
    z-index:9999;
  }
  
  .hero .video-thumb video {
    width: 20.2vw;
    height:12vw;
    object-fit: cover;
    z-index: 99999999999!important;
  }
  .video-thumb .play-reel {
    display:flex;
    grid-gap:0.4vw;
    margin-bottom:1.5vw;
  }
  
  .video-thumb .play-reel-icon {
    clip-path: polygon(20% 0, 20% 100%, 100% 50%);
    width: 0.6vw;
    height: 0.7vw;
    background: var(--black);
    position:relative;
    top:0.28vw;
    
  }
  
  .hero .hero-headline {
    grid-column: 7 / 13;
    display: grid;
    grid-gap: 1.3vw;
  }
  
  .hero .hero-headline .btn {
    margin-top:3vh;
  }
  
  
  
  @media (max-width: 500px) {
    
    .works-slider {
      margin:unset;
      top:12dvh;
    }
    
    .hero .hero-headline {
      grid-column: 1 / 7;
      display: grid;
      grid-gap: 5vw;
      margin-bottom:21vw;
    }
    
    .hero .hero-headline .btn {
      margin-top:8vw;
    }
  
    .hero .grid .scroll {
      bottom: 8vw;
      left: 8vw;
    }
    
    .hero .video-thumb {
      position:absolute;
      bottom:8vw;
      right:0vw;
      left:unset;
      min-width: 38.133vw;
      min-height:22.528vw;
      grid-column: 4 / 7;
    }
    .hero .video-thumb video {
      width:100%;
      height:21.5vw;
    }
  
    .video-thumb .play-reel-icon {
      width: 2vw;
      height: 2vw;
      top: 1.5vw;
      left: 1vw;
    }
    
    .unmute-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) translateY(100px);
      font-size: 24px;
      color: #fff;
      cursor: pointer;
      z-index: 10; 
      opacity: 0; 
    }
    .unmute-text span {
      overflow:clip;
    }
  
  }
  
  
  @media (max-height: 700px) and (max-width:500px) {
    .hero .hero-headline .btn {
      margin-top:3vw;
      margin-bottom:-1vw;
    }
  }
  
  
  #video-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  #project-videos video {
    min-width:100%;
    max-width:100%;
    max-height:45vw;
    object-fit:cover;
  }
  
  #project-videos {
    display: grid;
    grid-gap: 3.819vw;
  }
  
  .video-overflow {
    overflow:hidden;  
      min-width:100%;
    max-width:100%;
    max-height:45vw;
  }
  
  #project-video-wrapper {
  max-height:45vw;
    overflow:hidden;
  }
  
  #project-video-wrapper video {
   width:100%;
    height:100%;
    object-fit:cover;
  }
  
  #video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent */
    z-index: 1; /* Make sure it’s above the iframe */
    cursor: pointer; /* Show cursor pointer */
  }
  
  
  /* ==============================================
         Studio Page
  ============================================== */
  
  .studio section {
    margin-bottom: 8vw;
  }
  
  .studio-hero .grid {
    height:100dvh;
  }
  
  .studio-headline {
    grid-column: 3 / 11;
    display: flex;
    grid-gap: 2vw;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    margin-top:2vw;
  }
  
  .studio-hero img {
    mix-blend-mode:difference;
    width: 14.525vw;
  }
  
  .section-indicator {
    display: flex;
    grid-gap: 0.4vw;
    align-self: start!important;
    align-items: center;
  }
  
  .section-indicator img {
    width: 0.81vw;
    height: 0.81vw;
    position:relative;
  
  }
  
  @media (max-width: 500px) {
    .section-indicator {
      grid-gap: 3vw;
    }
    .section-indicator img {
      width:3vw;
      height:3vw;
    }
  }
  
  .our-motto {
    grid-column: 2 / 12;
    display: flex;
    flex-direction: column;
    grid-gap: 4vw;
  
  }
  
  .our-motto-indent-space {
    margin-left:25vw;
  }
  
  .line-down {
    display:inline-flex;
    width:100%;
  }
  
  .slider {
    grid-column: 1 / 13;
    cursor: grab;
    width: 100%;
    margin-top: 17.13vw;
  }
  
  .slider-wrapper {
    display: flex;
    grid-gap: 3vw;
  }
  
  .slider-item  {
    min-width:50vw;
    max-width:50vw;
    min-height:60dvh;
    max-height:60dvh;
  }
  
  .slider-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
  
  .meet-the-team {
    grid-column: 4 / 13;
  }
  
  .meet-the-team h3 {
    max-width: 28.356vw;
    margin-top: 4.861vw;
  }
  
  .team-gallery {
    grid-column: 4 / 13;
    display: flex;
    grid-gap: 3.77vw;
    flex-wrap: wrap;
    margin-top: 11.574vw;
    position:relative;
    z-index:2;
  }
  
  .member {
    display: flex;
    flex-direction: column;
    grid-gap: 2vw;
  }
  
  .member-details {
    display: flex;
    flex-direction: column;
    grid-gap: 0.8vw;
  }
  
  .member-details h6 {
    color: var(--grey);
  }
  
  .member-image {
    width: 20.255vw;
    height: 20.255vw;
    border: 0.07vw solid var(--darkgrey);
  }
  
  .our-friends {
    grid-column: 1 / 13;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  
  .our-friends .section-indicator {
    justify-content:center;
    margin-bottom: 4.861vw;
  }
  
  .logos-slider {
    margin-top:8vw;
    display: flex;
    flex-direction: column;
    grid-gap: 3.8vw;
    margin-bottom:15vw;
  }
  
  .partners-logos {
    display:flex;
  }
  
  .prizes-logos {
    display:flex;
  }
  
  .slider-collection {
    display:flex;
  }
  
  .logos-grid {
    display:flex;
  }
  
  .partner-logo {
    border:0.07vw solid #2F2F2F;
    border-radius: 0.1vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5.5vw 5.5vw;
    margin-left: 3.8vw;
    position: relative;
    overflow:visible!important;
    background: var(--white);
  }
  
  .partner-logo .image {
    filter: invert(1);
    mix-blend-mode: difference;
  }
  
  .partner-logo .image img {
    width: 10vw;
    height: 5vw;
  }
  
  @keyframes marquee {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-100% - 1rem));
    }
  }
  
  .corners {
    width: 100%;
    height: 100%;
    position: absolute;
  }
  
  .corners img {
    width: 1vw;
    position: absolute;
  }
  
  .corners img:nth-of-type(1) {
    top:-0.75vw;
    left:-0.75vw;
  }
  
  .corners img:nth-of-type(2) {
    bottom:-0.75vw;
    right:-0.75vw;
  }
  
  .corners img:nth-of-type(3) {
    top:-0.75vw;
    right:-0.75vw;
  }
  
  .corners img:nth-of-type(4) {
    bottom:-0.75vw;
    left:-0.75vw;
  }
  
  .marquee-content {
    min-width:unset;
  }
  
  .partners-logos .marquee {
    animation: marquee 80s linear infinite;
    animation-direction: reverse;
  }
  
  .prizes-logos .marquee {
    animation: marquee 20s linear infinite;
    
  }
  
  .footer-cta {
    width:fit-content;
    margin: auto;
    align-items:center;
    justify-content:center;
    padding-top:2vw;
    padding-bottom:7vw;
  }
  
  
  @media (max-width: 500px) {
    .studio-headline {
      grid-column: 1 / 7;
      grid-gap: 5vw;
    }
    .studio-hero img {
      width: 35vw;
    }
    .studio-hero .grid {
      padding-left:0;
      padding-right:0;
    }
    .studio-gallery .grid, .studio-team .grid, .studio-clients .grid {
      padding:unset;
      display:flex;
      flex-direction:column;
    }
    .our-motto {
      grid-column: 1 / 7;
      grid-gap: 10vw;
    }
    .our-motto-indent-space {
      margin-left: unset;
    }
    .meet-the-team h3 {
      max-width:unset;
    }
    .slider {
      margin-bottom: 20vw;
    }
    .slider-wrapper {
      grid-gap: 7vw;
    }
    .slider-item  {
      min-width:70vw;
      min-height:70vw;
    }
    .meet-the-team {
      display:grid;
      grid-gap: 7vw;
    }
    .team-gallery {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-gap:8vw;
      margin-top:15vw;
      margin-bottom:25vw;
    }
    .member {
      width:100%;
      height:100%;
    }
    .member-image {
      width: 100%;
      height: 100%;
    }
    .our-friends {
      display: grid;
      grid-gap: 7vw;
    }
    .partner-logo .image img {
      width: 20vw;
      height: 15vw;
    }
    .our-friends .footer-cta {
      padding-top: 15vw;
      padding-bottom:25vw;
    }
  }
  
  /* ==============================================
         Work Page
  ============================================== */
  
  
  .works-hero .grid {
    height:unset;
    padding-top: 12vw;
  }
  
  .works-headline {
    grid-column: 2 / 7;
    display: flex;
    grid-gap: 2vw;
    justify-content: start;
    align-items: start;
    text-align: left;
    flex-direction: column;
  }
  
  .works-filters {
    grid-column: 7 / 12;
    margin-top: 3.5vw;
    position: relative;
  }
  
  .works-filters .all-tags  {
    display: flex;
    flex-direction: row;
    grid-gap: 0.5vw;
    grid-row-gap: 0.7vw;
    flex-wrap:wrap;
  }
  
  .fs-cmsfilter-active {
    background:var(--black);
    color:var(--white);
    pointer-events:none;
  }
  
  
  .works-filters .all-tags .tag, .all-cases-radio {
    border-radius: 10vw;
    border: 0.07vw solid var(--black);
    padding: 0.7vw 1vw;
    text-wrap:nowrap;
    justify-self:start;
    
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  
  .works-filters .all-tags .tag:hover, .all-cases-radio:hover {
    opacity: 0.5;
  }

  /* ==============================================
     Category radio buttons (filter tabs)
     ==============================================
     The HTML uses native <input type="radio"> which by default shows a
     circle next to the label. We hide the native input and let the
     surrounding .tag label act as the visible button. The :checked state
     and an .is-active class (set by JS as a fallback) flip the colors.
  */
  .works-filters .all-tags .w-radio-input,
  .works-filters .all-tags input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
  }

  .works-filters .all-tags .tag,
  .works-filters .all-tags .all-cases-radio {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    color: var(--black);
    background: transparent;
  }

  .works-filters .all-tags .radio-button-label {
    display: inline-block;
    line-height: 1;
  }

  /* Selected state — works whether JS toggles a class on the label or via
     the modern :has() selector reading the radio's :checked state. */
  .works-filters .all-tags .tag.is-active,
  .works-filters .all-tags .all-cases-radio.is-active,
  .works-filters .all-tags .tag:has(input[type="radio"]:checked),
  .works-filters .all-tags .all-cases-radio:has(input[type="radio"]:checked) {
    background: var(--black);
    color: var(--white);
    opacity: 1;
  }

  /* ==============================================
     Pagination (works page)
     ============================================== */
  .works-pagination {
    /* When inside the .grid (12-col CSS grid), span all columns */
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5vw;
    margin-top: 4vw;
    margin-bottom: 5vw;
    width: 100%;
  }

  .works-pagination .pagination-btn {
    min-width: 2.6vw;
    height: 2.6vw;
    padding: 0 0.9vw;
    border-radius: 10vw;
    border: 0.07vw solid var(--black);
    background: transparent;
    color: var(--black);
    font-family: inherit;
    font-size: 0.9vw;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
  }

  .works-pagination .pagination-btn:hover:not(:disabled):not(.is-active) {
    opacity: 0.5;
  }

  .works-pagination .pagination-btn.is-active {
    background: var(--black);
    color: var(--white);
    pointer-events: none;
  }

  .works-pagination .pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .works-pagination .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6vw;
    color: var(--black);
    user-select: none;
  }

  @media screen and (max-width: 991px) {
    .works-pagination {
      gap: 1.5vw;
      margin-top: 6vw;
      margin-bottom: 8vw;
    }
    .works-pagination .pagination-btn {
      min-width: 8vw;
      height: 8vw;
      padding: 0 2.5vw;
      font-size: 2.5vw;
    }
  }

  @media screen and (max-width: 600px) {
    .works-pagination {
      gap: 2vw;
    }
    .works-pagination .pagination-btn {
      min-width: 10vw;
      height: 10vw;
      padding: 0 3vw;
      font-size: 3.5vw;
    }
  }
  
  .grid-change {
    grid-column: 2 / 12;
    position: relative;
    display: flex;
    justify-content: end; 
    height:auto;
  }
  
  .grid-slider-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 3.819vw;
    grid-row-gap:6vw;
    height:auto;
    margin-bottom:5vw;
  }
  
  .grid-slider-gallery#slider-mode .image-container:last-of-type .work-info{
    margin-bottom:5vw;
  }
  
  .image-container {
    position: relative;
    width: 36.227vw;
    display: flex;
    flex-direction: column;
    border-radius: 0.05vw;
    max-width: 100%;
    justify-self: end; 
    color:var(--black);
    opacity: 1;
    transition: oapcity 0.3 ease;
    cursor: pointer;
  }
  
  .box-link {
    position: absolute;
    top:0;
    left:0;
    width:100vw;
    height:100%;
    z-index:2;
  }
  
  .image-container .work-image {
    width: 36.227vw!important;
    height: 26vw!important;
    overflow: hidden;
  }
  
  .image-container .work-info {
    display:flex;
    flex-direction:column;
    grid-gap:1vw;
    margin-top:2vw;
  }
  
  .image-container .work-image img {
    transform:scale(1);
    transition: all 1s cubic-bezier(.36,0,0,.99);
  }
  
  .image-container:hover .work-image img {
    transform:scale(1.3) rotate(3deg);
  }
  
  .tags-list {
    display: flex;
    grid-gap: 0.3vw;
  }
  
  .tags-list h6 {
    border: 0.07vw solid var(--black);
    border-radius: 5vw;
    padding: 0.2vw 0.6vw;
  }
  
  .next-project .tags-list h6 {
    border: 0.07vw solid white;
  }
  
  .image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .toggle-btn  {
    font-size: 1vw;
    color: var(--black);
    
    text-decoration: underline 0.07vw var(--black)!important;
    text-underline-offset: 0.9vw;
  
    cursor: pointer;
    position:relative;
    z-index:999999;
    
  }
  
  
  
  @media (max-width: 500px) {
    
    .works-hero .grid  {
      padding:unset;
      padding-top:25vw;
      display:flex;
      flex-direction:column;
    }
    .works-headline {
      grid-gap: 7vw;
    }
    .toggle-btn {
      display:none;
    }
    .works-filters .all-tags {
      font-size:4.5vw;
      grid-gap:2vw;
    }
    .works-filters .all-tags .tag, .all-cases-radio {
        padding: 1.3vw 2vw;
    }
    .works-gallery {
      margin-top: 7vw;
    }
    .works-gallery .grid {
      padding:unset;
      display:flex;
      flex-direction:column;
    }
    .grid-change {
      grid-column: 1 / 7;
      justify-content: space-between; 
    }
    .grid-slider-gallery {
      display:flex;
      flex-direction:column;
      width:100%;
    }
    .image-container {
      display: grid;
      grid-gap: 4vw;
    }
    .image-container .work-info {
      grid-gap: 2.5vw;
    }
    .image-container .work-image {
      width:100%!important;
      height:55vw!important;
    }
    .image-container {
      width:100%;
    }
    
  
  
    .work-tags .tags-list {
      grid-gap:1vw;
        display: flex;
    flex-wrap: wrap;
    }
    .work-tags .tags-list h6 {
      padding:0.5vw 2vw;
    }
    
    .next-project .box-link {
      margin-top:-18dvh;
      height:100dvh;
    }
  }
  
  
  /* ==============================================
         Project
  ============================================== */
  
  .project-hero .grid {
    position:relative;
  }
  
  .project-hero .project-headline {
    grid-column: 2 / 12;
    display: flex;
    flex-direction: column;
    grid-gap: 6vw;
    margin-top:8vw;
  }
  .project-hero .back-button {
    display:flex;
    grid-gap:0.5vw;
  }
  
  .project-hero .back-button img {
    mix-blend-mode:difference;
    filter: invert(1);
    min-width:1vw;
    max-width:1vw;
  }
  
  .project-hero .project-cover {
    grid-column: 2 / 12;
    margin-top: 2vw;
    height:40vw;
    width:100%;
    overflow:hidden;
  }
  
  .project-hero .project-cover img {
    object-fit:cover;
    width:100%;
    height:100%;
  }
  
  .project-info {
    margin: 7vw 0vw;
  }
  
  .project-info .section-indicator {
    grid-column: 2 / 4;
  }
  
  .project-info .project-intro {
    grid-column: 7 / 12;
  }
  
  .gallery-container {
    grid-column: 2 / 12;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Always two columns */
    gap: 3.819vw; /* Spacing between items */
  }
  
  .gallery-grid div {
    display: block;
  }
  
  .gallery-container .gallery-grid img {
    max-height: 100dvh;
    min-height: 100dvh;
    object-fit: contain;
    margin:auto;
  }
  
  /*
  .gallery-grid .image {
    overflow: hidden;
    height:100%;
    max-height:fit-content;
    grid-column: span 1;
  }
  
  .gallery-grid .image img {
    display: block;
    object-fit: cover;
    width: 100%;
    height:100%;
    min-height:50vw;
    border-radius: 8px;
  }
  */
  .gallery-grid .image h5 {
    color: var(--black);
  }
  
  .project-gallery .work-video {
    grid-column: 2 / 12;
  }
  
  .project-gallery .section-note {
    grid-column: 2 / 12;
  }
  
  .project-gallery .video-gallery {
    grid-column: 2 / 12;
  }
  
  .project-gallery .work-video video {
    min-width:100%;
    max-width:100%;
  }
  
  .project-credits .section-indicator {
    grid-column: 2 / 4;
  }
  
  .project-credits .credits {
    grid-column: 7 / 12;
  }
  
  .project-credits h4 span {
    color: var(--grey)
  }
  
  .next-project {
    margin-top:8vw;
    width: 100%;
    height:40vw;
    padding: 15vw 0vw;
    position: relative;
    align-items:center;
    display: flex;
    overflow:hidden;
    cursor:pointer;
  }
  
  .next-project .grid {
    padding-top:15vw;
    padding-bottom:15vw;
  }
  
  .next-project .next-link {
    width:100%;
    height:100%;
    position:absolute;
    z-index:9;
    top:0;
    left:0;
  }
  
  .next-project::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
  }
  
  .next-project .next-project-image img {
    object-fit:cover;
    width: 100vw;
    height: 100%;
    transform:scale(1);
    transition: transform var(--work-hover-motion), filter var(--work-hover-motion);
  }
  
  
  .next-project:hover .next-project-image img {
    transform:scale(1.3) rotate(5deg);
    filter: brightness(150%);
  }
  
  .next-project .grid {
    position:absolute;
    z-index:1;
  }
  
  .next-project .next-project-text {
    grid-column: 2 / 7;
    display: flex;
    flex-direction: column;
    grid-gap: 3vw;
    color:white!important;
  }
  
  .project-video {
    grid-column: 2 / 12;
     height: 43vw;
  }
  
  .project-video video {
    width:100%;
    height: 100%;
  }
  
  @media (max-width: 500px) {
    .project-hero .grid  {
      padding:unset;
      padding-top:25vw;
      display:flex;
      flex-direction:column;
    }
    .project-hero .back-button img {
      min-width: 3vw;
      max-width: 3vw;
    }
    .project-hero .project-headline {
      grid-gap: 15vw;
    }
    .project-hero .project-cover {
      min-height:80vw;
    }
    .project-hero .project-cover img{
      left:0;
      width:100%;
      height:100%;
      object-fit:cover;
      position:relative;
    }
    .project-info .grid, .project-gallery .grid, .project-credits .grid {
      padding:unset;
      padding-top:15vw;
      display:flex;
      flex-direction:column;
    }
    .gallery-grid {
      grid-template-columns: repeat(1, 1fr);
      gap:unset;
          grid-row-gap: 8vw;
      width:100%;
    }
    /*
    .gallery-grid .image img {
      min-width:100%;
      height:100%;
      object-fit:cover;
    }
    */
    
    .gallery-container .gallery-grid img {
      min-width:100%;
      max-height: unset;
      min-height: unset;
    }
    .next-project {
      height: 120vw;
      margin-top:15vw;
    }
    .next-project .next-project-text {
      grid-column: 1 / 7;
    }
    .next-project .next-project-image img {
      min-height:100dvh;
    }
  }
  
  
  /* ==============================================
         Footer
  ============================================== */
  
  
  footer .grid{
    grid-column: 1 / 13;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .social-links {
    display: flex;
    grid-gap: 1vw;
      justify-content: space-between;
    align-items: center;
  }
  
  .social-links img {
    width: 1.764vw;
    height: 1.563vw;
    filter: invert(1);
    mix-blend-mode: difference;
    opacity: 1;
    transition: opacity 0.5s ease;
  }
  
  .social-links img:hover {
    opacity: 0.3;
  }
  
  @media (max-width: 500px) {
    footer {
      position: relative;
      padding-top:10vw;
      margin-top:25vw;
    }
    .social-links {
     position:absolute;
      top:10%;
      left:50%;
      transform: translate(-50%, -50%);
    }
    .social-links img {
      width:9vw;
      height:5vw;
    }
    footer .grid  {
      padding-left:0;
      padding-right:0;
    }
  
  }
  
  /* ==============================================
         Contact
  ============================================== */
  
  .contact-hero {
    min-height:100dvh;
  }
  
  .contact-hero .grid {
    position:relative;
    min-height:100dvh;
  }
  
  .contact-hero .contact-image {
    grid-column: 2 / 6;
    align-self: center;
    justify-self: center;
  }
  
  .contact-hero .scroll {
    display: flex;
    align-self: end;
    justify-self: end;
    text-align: right;
    bottom: 0;
    right: 0;
  }
  
  .contact-hero .contact-image img {
    height:65dvh;
    width: 45vw!important;
    object-fit:cover!important;
  }
  
  .contact-hero .contact-hero-text {
    grid-column: 7 / 12;
    display: flex;
    flex-direction: column;
    grid-gap: 2vw;
    padding-right:4vw;
    align-self:center;
    margin-top:33vh;
  }
  
  .contact-hero h1 {
    text-wrap:nowrap;
    padding-left:3vw;
    align-self:center;
  }
  .contact-hero .marquee {
    animation: marquee 3s linear infinite;
    animation-direction: reverse;
  }
  
  .contact-section {
    margin: 8vw 0vw;
  }
    
  .contact-section .heading-block {
    align-self:start;
    grid-column: 2 / 6;
    display: grid;
    grid-gap: 4.861vw;
    
  }
  
  .contact-section .offices-list {
    margin-top:6vw;
    grid-column: 7 / 11;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: var(--grid-gap);
    align-items:start;
    justify-content: start;
  }
  
  .contact-section .offices-list .place {
    display: grid;
    grid-gap: 1vw;
  }
  
  .contact-section .offices-list .place h6 {
    color:var(--grey);
  }
  
  .contact-section .contact-form {
    grid-column: 7 / 12;
  }
  
  .w-input, .w-select {
    all:unset;
    width: 100%;
    color:var(--grey);
    margin-bottom: 2vw;
    padding: 1vw 0vw;
    font-size: 14px;
    line-height: 1.42857;
    display: block;
    border-bottom: 0.07vw solid var(--grey)!important;
  }
  
  .w-button {
    all:unset;
    font-size: 1.622vw;
    line-height: unset;
    letter-spacing: -0.05vw;
    width:unset;
    cursor: pointer;
  }
  
  
  .marquee-new {
    position: absolute;
    top:25vh;
    width: 100vw;
    max-width: 100%;
    height: 200px;
    overflow: hidden;
  }
  
  .track {
    padding-top:2vw;
    position: absolute;
    white-space: nowrap;
    will-change: transform;
  
    display:flex;
    animation: marquee-new 20s reverse linear infinite;
  }
  
  
  
  @keyframes marquee-new {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  
  
  @media (max-width: 500px) {
    .contact-hero {
      min-height:unset;
    }
    .contact-hero .grid {
      min-height:unset;
      margin-top:15vw;
      grid-gap:20vw;
    }
    .contact-hero h1 {
      font-size: 30vw;
    }
    .contact-hero .contact-image {
      align-self:start;
    }
    .contact-hero .contact-image img {
      height:100%;
      width:54vw!important;
    }
    .contact-hero .contact-hero-text {
      margin-top:unset;
      grid-gap: 10vw;
    }
    .contact-section .grid, .contact-hero .grid {
      padding:unset;
      padding-top:15vw;
      display:flex;
      flex-direction:column;
    }
    .contact-section .heading-block {
      grid-gap: 10vw;
    }
    label {
      font-size: 4vw;
      font-weight:normal;
    }
    .w-input, .w-select {
      padding:3vw 0vw;
      margin-bottom:8vw;
      font-size:6vw;
          text-wrap:wrap;
      width:100%;
    }
    textarea.w-input {
      min-height: 40vw;
      word-wrap: break-word;
      white-space: pre-wrap;
      width: 100%;
      overflow:scroll
    }
   input.w-button {
      font-size: 7vw;
      text-decoration:none!important;
    }
    html.w-mod-touch * {
       text-decoration:none!important;
    }
  }
  
  
  
  /* ==============================================
         Mobile Menu
  ============================================== */
  
  @media (min-width: 500px) {
    .burger, .mobile-menu {
      display: none;
    }
  }
  .menu-toggle {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    width: 12vw;
    height: 8vw;
    background:transparent;
    top: 7vw;
    right: 8vw;
    border: hidden;
    transition: all 0.5s cubic-bezier(0,.18,0,.99);
    cursor: pointer;
    z-index: 9999;
  
  }
  
  .menu-bar {
    position: absolute;
    width: 12vw;
    height: 0.45vw;
    background: var(--black);
    transition-property: transform;
    transition: all 250ms ease-out;
  }
  
  .menu-toggle.clicked {
    mix-blend-mode:normal;
  }
  
  .menu-toggle.clicked .menu-bar{
    mix-blend-mode:normal;
    background: var(--black);
  }
  
  
  .menu-bar:nth-of-type(1) {
    transform: translateY(-1.2vw);
  }
  
  .menu-bar:nth-of-type(2) {
    transform: translateY(1.2vw);
  }
  
  .mobile-menu {
    display:none;
    position:fixed;
    top:0;
    left:0;
    height:100dvh;
    width:100%;
    background:var(--white);
    z-index:2;
  }
  
  .mega-menu-overlay {
    height:100dvh;
    width:100%;
    background:var(--midgrey);
    opacity:0;
    position:fixed;
    z-index:1;
    pointer-events:none;
  }
  
  .mobile-menu .burger {
    position:fixed;
    top:0vw;
    right:0vw;
  }
  
  .mobile-menu .nav {
      all: unset;
      display: flex;
      flex-direction: column;
      justify-content: end;
      align-items: start;
      text-align: left;
      position: relative;
      left: 6vw;
  }
  
  .mobile-menu .nav .link {
    all:unset;
    font-family:var(--primary-font);
  
    font-size: 22vw;
    letter-spacing:-0.5vw;
    grid-gap:4vw;
    line-height: 0.85;
    text-transform: uppercase;
  }
  
  .mobile-menu .nav .link span {
    all:unset;
  }
  
  .mobile-menu-container {
    display: grid;
    grid-gap:5vw;
  }
  .mobile-menu-container .social-links {
    all: unset;
    align-self: end;
    position: relative;
    left: 6vw;
    bottom: 8vw;
    display: flex;
    grid-gap:2vw;
    background: var(--white);
  }
  
  

/* ============================================================
   RESPONSIVE OVERHAUL
   Appended below to override the desktop-first rules above.
   Targets the gap range (501–991px tablets) and fixes the
   1vw root-font issue on phones (which made text unreadable).
   ============================================================ */

/* Desktop default uses font-size: 1vw which only works between
   ~1280–1920px. Cap it with clamp so very large or very small
   screens still get readable text. */
@media (min-width: 992px) {
  html, body {
    font-size: clamp(13px, 1vw, 20px);
  }
}

/* ============================================================
   TABLET: 501–991px (was missing entirely)
   ============================================================ */
@media (min-width: 501px) and (max-width: 991px) {
  html, body {
    font-size: clamp(14px, 1.6vw, 18px);
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100dvh;
  }

  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-gap: 4vw;
    padding: 4vw;
  }

  /* Hero — stack content under the video on tablet */
  .hero .grid {
    grid-template-rows: auto auto;
  }
  .hero .video-thumb {
    grid-column: 1 / -1;
    height: 60dvh;
  }
  .hero .hero-headline {
    grid-column: 1 / -1;
  }
  .hero h3 {
    font-size: 5vw;
    line-height: 1.05;
  }
  .hero h4 { font-size: 2.5vw; }
  .hero h5 { font-size: 2vw; }

  /* Works grid: 2 columns on tablet */
  .grid-slider-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-gap: 4vw !important;
    grid-row-gap: 6vw !important;
  }
  .grid-change {
    grid-column: 1 / -1;
  }
  .works-headline {
    grid-column: 1 / -1;
  }
  .works-filters {
    grid-column: 1 / -1;
    margin-top: 4vw;
  }
  .works-filters .all-tags {
    grid-gap: 1.5vw;
  }
  .works-filters .all-tags .tag,
  .works-filters .all-tags .all-cases-radio {
    padding: 1.4vw 2.2vw;
    font-size: 1.6vw;
  }

  /* Pagination buttons sized for finger taps */
  .works-pagination .pagination-btn {
    min-width: 6vw;
    height: 6vw;
    padding: 0 2vw;
    font-size: 1.8vw;
  }

  /* Nav: keep desktop nav on tablet but pad the burger area */
  .navigation .grid { padding: 3vw 4vw; }

  /* Project / case-study pages */
  .project-cover { height: 70dvh; }
  .project-headline h2 { font-size: 7vw; line-height: 1; }
  .project-intro { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-gap: 4vw; }

  /* Contact page */
  .contact .grid { grid-template-rows: auto auto; }
  .contact-image,
  .contact-form {
    grid-column: 1 / -1;
  }
  .contact-image { height: 50dvh; margin-bottom: 4vw; }

  /* About */
  .about-image { height: 60dvh; }

  /* Form inputs on tablet — large enough to tap */
  input.w-input, select.w-select, textarea.w-input {
    font-size: 16px; /* prevents iOS zoom-on-focus */
    padding: 1.5vw 2vw;
    min-height: 44px;
  }
  .btn { min-height: 44px; padding: 1.5vw 3vw; font-size: 1.8vw; }
}

/* ============================================================
   MOBILE: ≤ 500px
   The site already has @media (max-width: 500px) blocks above,
   but they inherit font-size: 1vw which produces 3-5px text on
   real phones. These overrides come last so they win.
   ============================================================ */
@media (max-width: 500px) {
  html, body {
    font-size: 16px; /* sane base — phones aren't 1600px wide */
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto;
    min-height: 100dvh;
    user-select: text;
    -webkit-user-select: text;
  }

  /* Re-establish a clean type scale in absolute units so phones
     don't shrink text into oblivion. */
  h1 { font-size: 2.4rem; line-height: 1.05; }
  h2 { font-size: 2rem;   line-height: 1.1; }
  h3 { font-size: 1.6rem; line-height: 1.15; }
  h4 { font-size: 1.2rem; line-height: 1.2; }
  h5 { font-size: 1rem;   line-height: 1.3; }
  h6 { font-size: 0.875rem; line-height: 1.3; }
  p, a, li, span, label { font-size: 1rem; line-height: 1.4; }

  /* Container padding in absolute units */
  .grid {
    grid-template-columns: 1fr !important; /* single column on phones */
    grid-gap: 1.5rem !important;
    padding: 1.25rem !important;
    width: auto !important;
  }
  .grid-overlay { display: none !important; } /* dev grid not useful on phones */

  /* HERO */
  .hero .grid {
    min-height: 100dvh;
    grid-template-rows: auto 1fr auto;
  }
  .hero .video-thumb {
    grid-column: 1 / -1;
    height: 55dvh;
    width: 100%;
  }
  .hero .hero-headline {
    grid-column: 1 / -1;
  }
  .hero h3 { font-size: 2rem; line-height: 1.1; }
  .hero h4 { font-size: 1rem; }
  .hero h5 { font-size: 0.9rem; }

  /* WORK SLIDES on home page */
  .works-slider .works-container,
  .works-container {
    grid-template-columns: 1fr !important;
  }
  .work-slide {
    width: 100% !important;
  }

  /* WORKS PAGE */
  .works-headline {
    grid-column: 1 / -1;
  }
  .works-headline h3 { font-size: 1.8rem; }
  .works-headline h4 { font-size: 0.9rem; }

  .works-filters {
    grid-column: 1 / -1;
    margin-top: 1rem;
    width: 100%;
  }
  .works-filters .all-tags {
    grid-gap: 0.5rem;
    flex-wrap: wrap;
  }
  .works-filters .all-tags .tag,
  .works-filters .all-tags .all-cases-radio {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
    border-width: 1px;
  }

  .grid-slider-gallery {
    grid-template-columns: 1fr !important;
    grid-gap: 1.5rem !important;
    grid-row-gap: 2rem !important;
  }
  .image-container .work-image {
    width: 100%;
    aspect-ratio: 4 / 5;
  }
  .image-container .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .image-container .work-info h4 {
    font-size: 1.1rem;
    margin-top: 0.75rem;
  }
  .image-container .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .image-container .tags-list h6 {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--black);
    border-radius: 999px;
  }

  /* PAGINATION on phone — finger-sized */
  .works-pagination {
    gap: 0.4rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
  .works-pagination .pagination-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    font-size: 0.95rem;
    border-width: 1px;
  }
  .works-pagination .pagination-dots {
    min-width: 1rem;
    font-size: 1rem;
  }

  /* NAVIGATION */
  .navigation .grid {
    padding: 1rem 1.25rem !important;
    grid-template-columns: 1fr auto !important;
    align-items: center;
  }
  .navigation .logo img { width: 7rem; height: auto; }
  .navigation .nav { display: none; } /* hidden — burger menu opens it */
  /* Burger menu toggle — finger-sized */
  .menu-toggle,
  .burger button.menu-toggle {
    width: 44px !important;
    height: 44px !important;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    top: 1rem !important;
    right: 1rem !important;
  }
  .menu-bar {
    width: 1.5rem !important;
    height: 2px !important;
  }
  .menu-bar:nth-of-type(1) {
    transform: translateY(-0.35rem) !important;
  }
  .menu-bar:nth-of-type(2) {
    transform: translateY(0.35rem) !important;
  }

  /* MOBILE MENU overlay */
  .mobile-menu {
    width: 100vw;
    height: 100dvh;
  }
  .mobile-menu-container {
    grid-gap: 1.25rem;
    padding: 6rem 1.5rem 2rem;
    height: 100%;
    box-sizing: border-box;
  }
  .mobile-menu .nav .link {
    font-size: 1.75rem;
    line-height: 1.3;
    padding: 0.5rem 0;
    display: block;
  }
  .mobile-menu-container .social-links {
    left: 0;
    bottom: 0;
    grid-gap: 1rem;
    margin-top: auto;
  }
  .mobile-menu-container .social-links img {
    width: 1.75rem;
    height: 1.75rem;
  }

  /* CONTACT page form */
  .contact .grid { grid-template-rows: auto auto; }
  .contact-image,
  .contact-form {
    grid-column: 1 / -1;
  }
  .contact-image {
    height: 40dvh;
    margin-bottom: 1.5rem;
  }
  .w-form, form { width: 100%; }
  input.w-input, select.w-select, textarea.w-input {
    font-size: 16px !important; /* iOS won't zoom on focus when ≥16px */
    padding: 0.85rem 1rem;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    border: 1px solid var(--black);
    background: transparent;
  }
  textarea.w-input { min-height: 120px; }

  /* BUTTONS — finger-friendly */
  .btn,
  button.w-button,
  input.w-button {
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* PROJECT / case-study pages */
  .project-cover {
    height: 50dvh;
    width: 100%;
  }
  .project-headline {
    grid-column: 1 / -1;
  }
  .project-headline h2 {
    font-size: 2.2rem;
    line-height: 1.05;
  }
  .project-intro,
  .project-intro h3 {
    grid-column: 1 / -1;
  }
  .project-intro h3 { font-size: 1.1rem; line-height: 1.4; }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-gap: 1rem;
  }
  .gallery-grid .image img {
    width: 100%;
    height: auto;
  }

  .next-project {
    grid-column: 1 / -1;
    height: 40dvh;
  }

  /* ABOUT page */
  .about-image {
    height: 50dvh;
    grid-column: 1 / -1;
  }
  .about-text { grid-column: 1 / -1; }

  /* FOOTER / scroll indicator at hero bottom */
  .scroll {
    position: relative;
    margin-top: 1rem;
  }

  /* Touch / accessibility — kill custom cursor on phones */
  #cursor, .custom-cursor { display: none !important; }
  body { cursor: auto; }

  /* Disable hover-only animations from breaking on tap */
  *:hover { transition-duration: 0.15s; }
}

/* ============================================================
   VERY SMALL / OLDER PHONES: ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
  html, body { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  .hero h3 { font-size: 1.6rem; }
  .grid {
    padding: 1rem !important;
    grid-gap: 1rem !important;
  }
  .works-filters .all-tags .tag,
  .works-filters .all-tags .all-cases-radio {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ============================================================
   LANDSCAPE PHONE
   In landscape on a phone the hero video shouldn't be 100dvh.
   ============================================================ */
@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {
  .hero .video-thumb { height: 80dvh; }
  .hero .grid { min-height: 100dvh; }
  .mobile-menu-container { padding-top: 4rem; }
  .mobile-menu .nav .link { font-size: 1.25rem; padding: 0.3rem 0; }
}

/* ============================================================
   ACCESSIBILITY: reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   SAFE AREAS (iPhone notch / Android cutouts)
   ============================================================ */
@supports (padding: max(0px)) {
  @media (max-width: 991px) {
    .navigation .grid {
      padding-left: max(1.25rem, env(safe-area-inset-left)) !important;
      padding-right: max(1.25rem, env(safe-area-inset-right)) !important;
    }
    .mobile-menu-container {
      padding-left: max(1.5rem, env(safe-area-inset-left));
      padding-right: max(1.5rem, env(safe-area-inset-right));
      padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
  }
}


/* ============================================================
   HERO WORKS SLIDER — desktop fix
   The original rules size slides in `vh` (viewport height),
   which makes them huge on tall desktop monitors.
   These overrides lock in a sensible portrait aspect-ratio,
   cap the absolute height, and constrain the slider track.
   ============================================================ */
@media (min-width: 992px) {
  .works-slider {
    /* Sit at the top portion of the hero, not over the headline */
    top: 8vw;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(280px, 40vh, 480px);
    overflow: hidden;
    pointer-events: auto;
  }

  .works-container {
    display: flex;
    gap: clamp(16px, 1.5vw, 32px);
    width: max-content; /* let it grow as wide as the slides need */
    padding: 0 clamp(16px, 3vw, 48px);
    height: 100%;
    align-items: stretch;
  }

  .work-slide {
    /* Each slide: portrait card with a capped width */
    flex: 0 0 auto;
    min-width: 0; /* override the old min-width:38vh */
    width: clamp(220px, 22vw, 360px);
    margin-right: 0; /* gap on container handles spacing */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }

  .work-slide .image {
    width: 100%;
    aspect-ratio: 4 / 5;          /* consistent portrait shape */
    max-height: clamp(240px, 35vh, 420px);
    overflow: hidden;
    border-radius: 0;             /* keep design language */
  }

  .work-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .work-slide h5 {
    font-size: clamp(13px, 1vw, 18px);
    margin: 0;
  }
}

/* Tablet refinement (501-991px) — slider already gets handled by the
   tablet block above, but ensure slides are sized sensibly here too. */
@media (min-width: 501px) and (max-width: 991px) {
  .works-slider {
    top: 10vw;
    width: 100%;
    height: clamp(220px, 35vh, 380px);
    overflow: hidden;
  }
  .works-container {
    display: flex;
    gap: 1.2rem;
    width: max-content;
    padding: 0 2vw;
    height: 100%;
  }
  .work-slide {
    flex: 0 0 auto;
    width: clamp(180px, 28vw, 280px);
    margin-right: 0;
    min-width: 0;
  }
  .work-slide .image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    max-height: clamp(200px, 30vh, 340px);
  }
  .work-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
