.from-internal .body,
.from-internal .preloader {
  background-color: #000000;
}

.from-internal .loader-wrap-load {
  opacity: 0;
  display: none;
}

:root {
  --size-unit: 16;
  --size-container-ideal: 1440;
  --size-container-min: 991px;
  --size-container-max: 1920px;
  --size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max));
  --size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit)));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--size-font);
}

body {
  overflow-x: hidden;
}

/* Tablet (Portrait & Landscape) */
@media screen and (max-width: 991px) and (orientation: portrait) {
  :root {
    --size-container-ideal: 834;
    --size-container-min: 768px;
    --size-container-max: 991px;
  }
}

/* Mobile Landscape */
@media screen and (max-width: 991px) and (orientation: landscape) {
  :root {
    --size-container-ideal: 667;
    --size-container-min: 480px;
    --size-container-max: 991px;
  }
}

/* Mobile Portrait */
@media screen and (max-width: 479px) and (orientation: portrait) {
  :root {
    --size-container-ideal: 390;
    --size-container-min: 320px;
    --size-container-max: 479px;
  }
}

[text-split] {
  opacity: 0;
}

html.w-editor [text-split] {
  opacity: 1;
}

.word {
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  transform-origin: bottom;
}

/* Стили для slide-in-bottom.f работают на ВСЕХ устройствах */
.slide-in-bottom.f {
  overflow: hidden;
  display: inline-block;
}

.slide-in-bottom.f div {
  position: relative;
  display: inline-block;
  transition: transform 0.3s;
}

.slide-in-bottom.f div::before {
  position: absolute;
  top: 100%;
  content: attr(data-hover);
  font-weight: 900;
  transform: translate3d(0, 0, 0);
  display: block;
}

.slide-in-bottom.f:hover div,
.slide-in-bottom.f:focus div {
  transform: translateY(-110%);
}


.outline {
  color: transparent;
}

/* Стили только для десктопа (1024px+) */
@media (min-width: 1024px) {

  /* Обычный slide-in-bottom только на ПК */
  .slide-in-bottom {
    overflow: hidden;
    display: inline-block;
  }

  .slide-in-bottom div {
    position: relative;
    display: inline-block;
    transition: transform 0.3s;
  }

  .slide-in-bottom div::before {
    position: absolute;
    top: 100%;
    content: attr(data-hover);
    font-weight: 900;
    transform: translate3d(0, 0, 0);
    display: block;
  }

  .slide-in-bottom:hover div,
  .slide-in-bottom:focus div {
    transform: translateY(-100%);
  }

  .nav-link {
    position: relative;
    text-decoration: none;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5px;
    background: white;
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: right;
  }

  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.mouse-cursor-container,
.sticky-camera {
  pointer-events: none;
}

.image-container {
  pointer-events: auto;
}

/* Устанавливаем ширину скроллбара */
::-webkit-scrollbar {
  width: 2px;
}

/* Трек - фон скроллбара */
::-webkit-scrollbar-track {
  background: #191a21;
}

/* Ползунок - сам скроллбар */
::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 6px;
}

[js-line-animation] {
  visibility: hidden;
}

.w--editor [js-line-animation] {
  visibility: visible;
}

[js-line-animation] .line {
  overflow: hidden;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: clip;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}



/* FIX для letters-slide-up */
[letters-slide-up],
[letters-slide-up-t] {
  overflow: hidden;
  line-height: 1;
}

[letters-slide-up] .char,
[letters-slide-up-t] .char {
  vertical-align: bottom;
  line-height: inherit;
}

.grid-spacer {
  height: calc(100vh + 3800px);
}

.grid_myworks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

/* ========== WebGL Canvas - FIXED (фон ПОД sticky) ==========*/
#webgl-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  isolation: isolate;
  margin: 0;
  padding: 0;
  border: 0;
}

/* iOS Safari специфичные правила */
@supports (-webkit-touch-callout: none) {
  #webgl-canvas {
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    contain: layout style paint;
    content-visibility: auto;
  }
}

#webgl-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========== Plane wrapper ==========*/
.plane-wrapper-webgl {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.plane-wrapper-webgl img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  opacity: 0;
}

.rotate-overlay.show {
  display: flex;
  opacity: 1;
}

.menu-button {
  display: none;
}


@media screen and (max-width: 991px) {
  .menu-button {
    position: relative;
    z-index: 100;
    display: flex;
    width: 75px;
    height: 30px;
    padding: 8px 24px;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    border-radius: 20rem;
    background-color: var(--white);
    transition-property: all;
    transition-duration: 777ms;
    transition-timing-function: ease;
    cursor: pointer;
  }
}

@media screen and (max-width: 991px) {
  .menu-button.open {

    width: 60px;
    height: 60px;
    padding: 0px;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    border-style: solid;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.6);
    border-radius: 100%;
  }
}

.phone-icon {
  animation: rotatePhoneFull 2s ease-in-out infinite;
}



/* Альтернативная анимация - полный поворот на 90 градусов */
@keyframes rotatePhoneFull {
  0% {
    transform: rotate(90deg);
  }

  50% {
    transform: rotate(45deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


@media (min-width: 1141px) {
  .section-404 {
    cursor: none !important;
  }

  .section-404 * {
    cursor: none !important;
  }

  /* Hide cursor on scrollbar when over section-404 */
  .section-404::-webkit-scrollbar {
    cursor: none !important;
  }

  .section-404::-webkit-scrollbar-thumb {
    cursor: none !important;
  }

  .section-404::-webkit-scrollbar-track {
    cursor: none !important;
  }
}

#fluid-canvas {
  position: absolute;
  top: -100px;
  left: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  pointer-events: none;
  z-index: 10;
  filter: url('#goo');
  mix-blend-mode: difference;
}

@media (max-width: 1140px) {
  #fluid-canvas {
    display: none;
  }
}

.svg-filters {
  position: absolute;
  visibility: hidden;
  width: 0;
  height: 0;
}

.section-404 {
  position: relative;
  overflow: hidden;
}

/* Ensure hero-spacer can position partner-text-box */
.container.hero-spacer {
  position: relative;
}

/* Partner text box */
.partner-text-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  background-color: #141414;
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 4px;
  transform: translateY(200vh);
  z-index: 10;
}

.partner-text {
  font-family: Roboto, sans-serif;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Services text box */
.services-text-box {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(33.333% - 0.5rem);
  height: 100vh;
  background-color: #1a1a1a;
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 4px;
  transform: translateY(200vh);
  z-index: 11;
}

.services-text-box-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(33.333% - 0.5rem);
  height: 100vh;
  background-color: #2a2a2a;
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 4px;
  transform: translateY(200vh);
  z-index: 11;
}

.services-text-box-3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(200vh);
  width: calc(33.333% - 0.5rem);
  height: 100vh;
  background-color: #575656;
  padding: 2rem 3rem;
  color: #fff;
  border-radius: 4px;
  z-index: 11;
}

.services-text {
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.services-text h3 {
  color: #d5868f;
  margin-bottom: 1rem;
}

/* Position third text animation to overlap with first/second */
.hmain-text-animation._3 {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

/* Z-index layering */
.outline-button.light {
  position: relative;
  z-index: 5;
}

.section-with-blue-bg {
  position: relative;
  z-index: 100;
}

/* Why Candace & Co section */
.why-details {
  text-transform: uppercase;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4rem;
  text-align: right;
  position: relative;
}

.why-white {
  color: #ffffff;
}

.why-pink-paragraph {
  color: #d5868f;
  font-size: 1.6em;
  align-items: center;
  margin-top: 2rem;
}

/* Client logo carousel */
.client-carousel {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0 3rem;
  position: relative;
}

.client-carousel-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: carousel-scroll 20s linear infinite;
  width: fit-content;
}

.client-logo {
  height: 12vh;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 991px) {
  .client-logo {
    height: 8vh;
  }

  .client-carousel-track {
    gap: 2rem;
  }
}

/* Word wrappers stay together, but can wrap between words */
.why-white .word,
.why-pink .word {
  display: inline-block;
  white-space: nowrap;
}

/* Characters display inline within their word wrapper */
.why-white .char-animate,
.why-pink .char-animate {
  display: inline;
}

/* About Candace section */
.about-candace-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  padding: 0 2rem;
}

.about-heading {
  font-size: 4rem;
  font-weight: 700;
  color: #d5868f;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(20px);
}

.about-content {
  max-width: 900px;
  text-align: center;
}

.about-paragraph {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.about-paragraph:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 991px) {
  .about-heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .about-content {
    max-width: 100%;
  }

  .about-paragraph {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* Contact section - works as both scroll target and click overlay */
.contact-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(100vh);
  z-index: 300;
}

/* Close button for contact section */
.contact-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid #d5868f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #d5868f;
  transition: all 0.3s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.contact-close:hover {
  background-color: #d5868f;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Show close button only when opened via click */
.contact-section.clicked-open .contact-close {
  opacity: 1;
  pointer-events: auto;
}

.contact-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.contact-left {
  flex: 1;
  max-width: 50%;
}

.contact-heading {
  font-family: Roboto, sans-serif;
  font-size: 4.3rem;
  line-height: 1.1;
  letter-spacing: 0.05rem;
  color: #000000;
  margin-bottom: 2rem;
  font-weight: 400;
}

.contact-text {
  font-family: Roboto, sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 1.5rem;
}

.contact-info {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  font-family: Roboto, sans-serif;
  font-size: 1.5rem;
  color: #d5868f;
  text-decoration: none;
  background-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #ffffff;
  background-color: #d5868f;
}

.contact-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 991px) {
  .contact-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .contact-left {
    max-width: 100%;
  }

  .contact-heading {
    font-size: 3rem;
  }

  .contact-text {
    font-size: 1.2rem;
  }

  .contact-link {
    font-size: 1.2rem;
  }

  .contact-logo {
    width: 200px;
    height: 200px;
  }
}

/* Prevent gradient overlays from blocking clicks */
.blick-2nd,
.blick-2nd.right {
  pointer-events: none;
}

/* Override slide-in-bottom animation for Let's Talk button */
.outline-button.light .button-name {
  transition: none !important;
  transform: none !important;
}

.outline-button.light .button-name::before {
  display: none !important;
}

/* Add color inversion on hover instead */
.outline-button.light {
  transition: all 0.3s ease;
}

.outline-button.light:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 0 20px 10px #ececec1a !important;
}

/* Initial position for Why Candace section - starts off-screen below */
.pin-wrapper {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  overflow: visible;
}

.section-with-blue-bg {
  height: 100vh;
  overflow: visible;
}

.top-bubble-wrap.is-taller {
  pointer-events: none;
  z-index: -1;
}

.top-bubble {
  will-change: transform;
}

@media screen and (max-width: 991px) {
  .partner-text-box {
    width: 100%;
  }

  .partner-text {
    font-size: 1rem;
  }

  .services-text-box,
  .services-text-box-2,
  .services-text-box-3 {
    width: 100%;
  }

  .services-text-box-3 {
    left: 0;
    transform: translateY(200vh);
  }

  .services-text {
    font-size: 0.9rem;
  }

  .why-details {
    font-size: 1.8rem;
  }
}

/* Make navbar pass through clicks except on interactive elements */
.navbar {
  pointer-events: none;
}

.navbar .brand,
.navbar .nav-link,
.navbar .w-nav-brand,
.navbar .w-nav-link,
.navbar .w-nav-button,
.navbar a {
  pointer-events: auto;
}













.hero-container {
    width: 65rem;
    margin-bottom: 2em;

}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* 3. Typography */
.text-section {
    flex: 1.2;
}

.text-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 300; /* Light weight for the main text */
    line-height: 1.1;
    margin: 0;
}

.text-section strong {
    font-weight: 800; /* Bold emphasis on "led marketing" */
}

/* 4. Image Styling */
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
}

.circle-frame {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid #e2b1b1; /* Soft pink/rose border */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the circle without stretching */
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .text-section h1 {
        font-size: 2.5rem;
    }
    
    .circle-frame {
        width: 280px;
        height: 280px;
    }
}