.preloader,
.split-overlay,
.tags-overlay {
  position: fixed;
  width: 100%;
  height: 100svh;
}

.preloader,
.split-overlay {
  background-color: #0a0a0a;
  color: #ffffff;
}

.preloader,
.tags-overlay {
  z-index: 2;
}

.split-overlay {
  z-index: 1;
}

.intro-title {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  width: 100%;
  transform: translate(-50%, -50%);
}

.tag {
  position: absolute;
  overflow: hidden;
  width: max-content;
  color: #5a5a5a;
}

.tag-1 {
  top: 15%;
  left: 15%;
}

.tag-2 {
  bottom: 15%;
  left: 25%;
}

.tag-3 {
  bottom: 30%;
  right: 15%;
}

.section-two {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 8rem 2rem;
  overflow: hidden;
  position: relative;
}

.section-title {
  font-size: 6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-title .accent {
  color: #FFD700;
}

.subsection-title {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-align: center;
  color: #ffffff;
}

.about-agency {
  max-width: 900px;
  margin: 0 auto 8rem auto;
  text-align: center;
}

.about-agency .section-desc {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.8;
  color: #cccccc;
  text-transform: none;
}

.trusted-section {
  margin-bottom: 8rem;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(255, 255, 255, 0.02);
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee {
  display: inline-block;
  animation: scrollLeft 30s linear infinite;
}

.marquee img {
  height: 60px;
  width: auto;
  margin: 0 4rem;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
  vertical-align: middle;
}

.marquee img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.clients-section {
  max-width: 1200px;
  margin: 0 auto;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.client-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.client-item img {
  max-height: 60px;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: #FFD700;
}

.client-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* Project Slider Mobile (Hidden on Desktop) */
.project-slider-mobile {
  display: none;
}

/* Project Slider Mobile (Hidden on Desktop) */
.project-slider-mobile {
  display: none;
}

/* Generated by vite-plugin-svg-spritemap */
@media (max-width: 62.5rem) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title .accent,
  .hero-title .accent2 {
    font-size: 4rem !important;
    padding-left: 0.2rem;
    line-height: 2.8rem;
  }

  /* Specific adjustment for the arrow icon to align it with "OF" */
  .hero-text-top .hero-title .accent {
    position: relative;
    top: 10px; /* Push arrow down to align with 2.5rem text */
  }

  .container {
    margin-bottom: 2rem;
  }

  .hero-text-bottom {
    bottom: 1rem;
  }



  .intro-title .char {
    margin-top: 0.5rem;
  }

  .hero-desc-bottom-left {
    display: none;
  }

  .grid.grid--4 {
    display: none !important;
  }

  .client-grid {
    display: none !important;
  }

  .agency-info {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  .section-two {
    display: none !important;
  }

  .section-two .section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }

  .section-two .section-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
  }

  .project-slider-mobile {
    display: block;
    margin-top: 4rem;
  }

  .project-slider-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
  }

  .project-slider-track-scrollable {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
    width: 100%;
  }

  .project-slider-track-scrollable::-webkit-scrollbar {
    display: none;
  }

  .project-slide {
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
  }

  .project-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
  }

  .project-slide:active img {
    filter: grayscale(0%);
  }

  .marquee img {
    height: 40px;
    margin: 0 2rem;
  }

  .svgtext {
    display: none !important;
  }
}

canvas#sketch {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

ul.btns {
  position: absolute;
  z-index: 6;
  bottom: 5vh;
  left: 50vw;
  transform: translate(-50%, 0%);
  display: flex;
  flex-direction: row;
  gap: 13rem;
  list-style: none;
}

.btns button {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 9vh;
  height: 9vh;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btns button svg {
  height: 2.7rem;
}

.btns button svg path {
  fill: white;
}

.btns button.active {
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.btns button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

/* =========================== */
/* GRID SECTION 2 STYLES       */
/* =========================== */
:root {
  --perspective: 1500px;
  --grid-item-ratio: 1.5;
  --grid-width: 100%;
  --grid-height: auto;
  --grid-gap: 2vw;
  --grid-columns: 4;
  --grid-inner-scale: 1;
}

.content {
  position: relative;
  margin-bottom: 20vh;
}

.content--spacing {
  margin-bottom: 100vh;
}

.content__title {
  position: absolute;
  height: 100vh;
  width: 100vw;
  top: 50%;
  left: 50%;
  margin: -50vh 0 0 -50vw;
  padding: 0 10vw;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 300;
  font-size: clamp(1.5rem, 15vw, 6.5rem);
  color: #fff;
  z-index: 10;
}

.content__title--top {
  align-items: start;
}

.content__title--bottom {
  align-items: end;
}

.content__title--left {
  justify-items: start;
  text-align: left;
}

.content__title--right {
  justify-items: end;
  text-align: right;
}

.grid {
  display: grid;
  place-items: center;
  padding: 2rem;
  width: 100%;
  perspective: var(--perspective);
  position: relative;
  z-index: 20;
}

.grid-wrap {
  height: var(--grid-height);
  width: var(--grid-width);
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
  transform-style: preserve-3d;
}

.grid__item {
  aspect-ratio: var(--grid-item-ratio);
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.grid__item-inner {
  position: relative;
  width: calc(1 / var(--grid-inner-scale) * 100%);
  height: calc(1 / var(--grid-inner-scale) * 100%);
  background-size: cover;
  background-position: 50% 50%;
}


.vignette-card-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  height: 35vh;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

.vignette-card-bottom {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50vw;
  height: 35vh;
  background: linear-gradient(to top, #000 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Agency Info Block */
.agency-info {
  position: absolute;
  top: 15vh;
  left: 4rem;
  width: 35vw;
  z-index: 10;
  pointer-events: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.agency-info__title {
  font-size: 6rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  color: #fff;
}

.agency-info__title .char {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.agency-info__title .char span {
  position: relative;
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

.agency-info__desc .word {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.agency-info__desc .word span {
  position: relative;
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

.agency-info__line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  border: none;
  margin: 0;
}

.agency-info__desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Trusted By Section */
.trusted-section {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trusted-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.trusted-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.trusted-marquee__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: scrollMarquee 20s linear infinite;
}

.trusted-logo img {
  height: 35px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.trusted-logo img:hover {
  opacity: 1;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1.5rem));
  }
}

.agency-info__title .accent {
  color: #FFD700;
}

.card-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.card-view-project {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  
  letter-spacing: 2px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  text-align: center;
}


/* SECTION THREE */
.section-three {
  background-color: #000;
  color: #fff;
  position: relative;
  z-index: 10;
}

.section-three::-webkit-scrollbar,
.section-two::-webkit-scrollbar,
.project-slider-track-scrollable::-webkit-scrollbar {
  display: none !important;
}

.section-three-container {
  max-width: 1600px;
  padding: 2rem;
  margin: 0 auto;
}

.section-three-spacer {
  width: 100%;
  height: 30vh;
}

.arch {
  display: flex;
  gap: 80px;
  justify-content: space-between;
  max-width: 1400px;
  margin-inline: auto;
}

.arch__left {
  display: flex;
  flex-direction: column;
  min-width: 450px;
}

.arch__left .arch__info {
  max-width: 534px;
  height: 100vh;
  display: grid;
  place-items: center;
}

.arch__header {
  font-family: inherit;
  font-size: 63px;
  font-weight: 800;
  letter-spacing: -1.26px;
  color: #fff;
  margin-bottom: 0;
}

.arch__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 27px;
  letter-spacing: -0.81px;
  margin-block: 10px 42px;
  line-height: normal;
}

.arch__link {
  text-decoration: none;
  padding: 24px 27px;
  border-radius: 60px;
  display: flex;
  gap: 8px;
  width: fit-content;
  align-items: center;
  font-size: 20px;
}

.arch__link svg {
  transform: scale(1.5);
  margin-right: 4px;
}

.arch__right {
  flex-shrink: 1;
  height: 100vh;
  width: 100%;
  max-width: 810px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-label {
  position: absolute;
  top: 50%;
  left: -8rem;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: #fff;
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.1;
  text-transform: uppercase;
  z-index: 20;
  white-space: nowrap;
}

.animated-arrow {
  display: inline-block;
  animation: floatArrow 1.5s ease-in-out infinite alternate;
}

@keyframes floatArrow {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-10px, 10px);
  }
}

.arch__right .img-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 600px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.arch__right .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 900px) {
  .arch {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .arch {
    flex-direction: column;
    gap: 20px;
  }

  .arch__left,
  .arch__right {
    display: contents;
  }

  .arch__right {
    height: auto;
    max-width: 100%;
  }

  .arch__right .img-wrapper {
    position: static;
    transform: none;
    height: 360px;
    width: 100%;
    margin-bottom: 20px;
  }

  .arch__left .arch__info {
    height: auto;
    padding: 20px 0;
  }
}

@media (max-width: 560px) {
  .arch {
    gap: 12px;
  }

  .arch__right .img-wrapper {
    border-radius: 10px;
    height: 280px;
  }
}

@media (max-width: 62.5rem) {
  /* --- Mobile Agency Section --- */
  .mob-agency-container {
    display: flex !important;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 140px; /* Increased margin/padding from hero section */
    padding-bottom: 40px;
    background-color: #000000;
    width: 100%;
    position: relative;
    z-index: 100; /* Ensure it stays above any background elements */
  }

  .mob-agency-content {
    padding: 0 24px;
    margin-bottom: 40px;
  }

  .mob-agency-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mob-agency-title-text .char {
    display: inline-flex;
    overflow: hidden;
  }

  .mob-agency-title-text .char span {
    transform: translateY(100%);
  }

  .mob-agency-arrow {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }

  .mob-agency-desc-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    margin-bottom: 30px;
  }

  .mob-agency-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 90%;
  }

  .mob-agency-clients {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.4;
  }

  .mob-agency-clients span {
    font-size: 0.65rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mob-agency-trusted-wrapper {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
  }

  .mob-agency-trusted-wrapper .trusted-section {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 0;
  }

  .mob-agency-trusted-label {
    color: #888;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding: 0 24px;
  }

  .mob-agency-slider-section {
    width: 100%;
    position: relative;
    z-index: 105;
  }

  .mob-agency-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 110;
  }

  .mob-agency-slider-header .mob-agency-trusted-label {
    margin-bottom: 0;
    padding: 0;
  }

  .mob-agency-slider-arrows-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 24px;
    padding: 0 24px;
  }

  .mob-slider-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 120;
  }

  .mob-slider-btn:hover {
    background: #fff;
    color: #000;
  }

  .mob-agency-slider {
    display: flex;
    gap: 16px;
    padding: 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 115;
    pointer-events: auto;
  }

  .mob-agency-slider::-webkit-scrollbar {
    display: none;
  }

  .mob-agency-slide {
    flex: 0 0 75vw;
    height: auto;
    aspect-ratio: 4 / 3;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
  }

  .mob-agency-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
  }

  .mob-agency-slide:active {
    cursor: grabbing;
  }

  .mob-agency-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
  }

  .mob-agency-slide:hover img {
    opacity: 1;
  }
}