/* Site-wide custom styles (moved from Webflow "Custom code > Head") */
[data-skeleton] {
  overflow: hidden;
  background-color: #e8e8e8;
}
[data-skeleton]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: skeleton-loading 1.4s infinite;
  transition: opacity 0.3s ease;
}
[data-skeleton] > img,
[data-skeleton] > video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-skeleton].is-loaded::after {
  opacity: 0;
  animation: none;
}
[data-skeleton].is-loaded > img,
[data-skeleton].is-loaded > video {
  opacity: 1;
}
@keyframes skeleton-loading {
  to {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-skeleton]::after {
    animation: none;
  }
}
  .load-wrap{
    opacity: 0;
  }
  body{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
  }
  html,
body {
  /* Firefox */
  scrollbar-width: none;
  /* IE / old Edge */
  -ms-overflow-style: none;
}
/* Chrome / Safari / Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
.input-wrap:focus-within .placeholder-text,
.input-wrap.has-value .placeholder-text {
  top: 8px;
  transform: translateY(-15px);
  font-size: 12px;
}
  @media screen and (max-width: 991px) {
    /* Default state: items hidden, shifted to the right */
  .nav-menu .ind-drop,
  .nav-menu .nav-block-wrap {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  /* Visible state, toggled per item via JS with a staggered delay */
  .nav-menu .ind-drop.is-visible,
  .nav-menu .nav-block-wrap.is-visible {
    opacity: 1;
    transform: translateX(0);
  }
  /* Smooth fade for the overlay */
  .nav-overlay {
    transition: opacity 0.3s ease;
  }
}

/* Case sliders on the home page: let slides run to the edge of the rounded
   .bubble (which clips them) instead of being cut off at the container padding. */
.container-new-case .swiper {
  overflow: visible;
}

/* Case pages (Dux, SkyOS): the "Case study: …" heading sits outside the white
   card, which has 64px side padding. Give the heading the same inset so it
   lines up with the content below instead of touching the screen edge.
   Below 768px the section itself has 24px side padding. */
@media (min-width: 768px) {
  .project-section > .div-block-102 { padding-left: 64px; padding-right: 64px; }
}

/* Case pages on phones (Dux, SkyOS, Persimmony). Webflow kept the desktop 64px
   card padding inside a 24px page padding, leaving ~200px for text at 375px.
   Same model as the Moppr case: the white card runs edge to edge with 24px
   inside, and the heading/intro line up with the card content. */
@media (max-width: 767px) {
  .project-section { padding-left: 0; padding-right: 0; }
  .project-section > .div-block-102, .pr-hero { padding-left: 24px; padding-right: 24px; }
  .pr-wrapper { padding: 28px 24px 80px; border-radius: 32px; }
  /* Persimmony: the 233px video circle pushed the name past the screen edge.
     198px = page padding (48) + card padding (24) + gap (16) + name column (110). */
  .b-profile.beige .c-8knots__video._w-233 { width: min(233px, calc(100vw - 198px)); height: min(233px, calc(100vw - 198px)); }
}

/* ---- Interactions (ex-Webflow IX), driven by public/js/interactions.js ----
   Hidden start states apply only while html has .ix-on (set in <head>), so
   content stays visible if the script never runs. */

/* Home hero: unblur + fade in on load (pure CSS, no waiting for scripts) */
@keyframes hero-in {
  from { opacity: 0; filter: blur(15px); }
  to { opacity: 1; filter: none; }
}
.hero-inner { animation: hero-in .5s ease both; }

/* Nav slides up on scroll down (html[data-nav-hide], see Base.astro) */
html[data-nav-hide] :is(.nav-left, .nav-block-wrap-drop, .nav-block-wrap._1, .nav-block-wrap._2) {
  transition: transform .3s ease;
}
html[data-nav-hide="always"].nav-hidden :is(.nav-left, .nav-block-wrap-drop, .nav-block-wrap._1, .nav-block-wrap._2) {
  transform: translate3d(0, -95px, 0);
}
@media (min-width: 992px) {
  html[data-nav-hide="desktop"].nav-hidden :is(.nav-left, .nav-block-wrap-drop, .nav-block-wrap._1, .nav-block-wrap._2) {
    transform: translate3d(0, -95px, 0);
  }
}

/* Fade in on scroll (SkyOS) */
html.ix-on [data-ix="fade-in"] { opacity: 0; }
html.ix-on [data-ix="fade-in"].ix-in {
  opacity: 1;
  transition: opacity 1s cubic-bezier(.165, .84, .44, 1);
}

/* Unblur + fade in on scroll (home) */
html.ix-on .blur-show { opacity: 0; filter: blur(15px); }
html.ix-on .blur-show.ix-in {
  opacity: 1;
  filter: none;
  transition: opacity .5s ease, filter .5s ease;
}

/* Two images rise in (Persimmony) */
html.ix-on [data-ix="rise-pair"] .image-19 { opacity: 0; }
html.ix-on [data-ix="rise-pair"] .image-19._1 { transform: translate3d(0, 73px, 0); }
html.ix-on [data-ix="rise-pair"] .image-19._2 { transform: translate3d(0, 88px, 0); }
html.ix-on [data-ix="rise-pair"].ix-in .image-19 {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}
html.ix-on [data-ix="rise-pair"].ix-in .image-19._1 { transition-delay: 70ms; }

/* Video circles: controls show and the circle grows on hover */
.video-container .video-progress-wrap { opacity: 0; transition: opacity .3s ease; }
.video-container .video-sound-togler-box {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .3s ease, transform .3s ease;
}
.video-container .vide-circle-wrap { transition: transform .3s ease; }
.video-container:hover .video-progress-wrap { opacity: 1; }
.video-container:hover .video-sound-togler-box {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease, transform .3s ease;
}
.video-container:hover .vide-circle-wrap { transform: scale(1.08); transition-duration: .4s; }

@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
  html.ix-on :is([data-ix="fade-in"], .blur-show, [data-ix="rise-pair"] .image-19) {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
