/* Pradinio puslapio naujausių darbų animacijos. */
html:root body #project-modules .featured-clients-heading .home-clients-title {
  text-align: center !important;
}
html:root[data-home-gallery] {
  --hero-header-height: 65px;
  --hero-stage-top: 0px;
  --hero-video-height: 100svh;
  --hero-overlap: 0px;
  --intro-controls-height: 0px;
  --intro-message-gap: 100px;
  --home-section-gap: calc(var(--hero-header-height) + 32px);
  --home-header-inset: 12px;
  --home-client-outline-outset: 0px;
}
/* Only the name and shuffle sit above the gallery. Navigation belongs to the portrait section. */
html:root[data-home-gallery] { --hero-nav-background: #ededed; --hero-nav-matte: 237 237 237; }
html:root[data-home-gallery][data-site-theme="dark"] { --hero-nav-background: #1b1a19; --hero-nav-matte: 27 26 25; }
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] {
  box-sizing: border-box;
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  overflow: visible !important;
  transform: none !important;
  height: auto !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  isolation: isolate;
  pointer-events: none;
  transition: background-color 1.2s ease !important;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-sizing: border-box;
  background: rgb(255 255 255 / 72%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgb(255 255 255 / 50%);
  box-shadow: 0 3px 12px rgb(0 0 0 / 8%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
html:root[data-site-shell][data-home-gallery][data-site-theme="dark"] body .site-header[data-hero-navigation]::before {
  background: rgb(27 26 25 / 88%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: rgb(255 255 255 / 8%);
  box-shadow: 0 2px 18px #0004;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation].has-scrolled-content::before {
  opacity: 1;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation].has-scrolled-content .logo a::after {
  opacity: 0;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo a {
  width: fit-content !important;
  max-width: 100%;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo a::after {
  content: "";
  position: absolute;
  inset: -18px -24px -42px;
  z-index: -2;
  background: linear-gradient(to bottom, rgb(var(--hero-nav-matte) / .72), rgb(var(--hero-nav-matte) / .22) 65%, rgb(var(--hero-nav-matte) / 0));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, rgb(0 0 0 / .8) 42%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 35%, #000 20%, rgb(0 0 0 / .8) 42%, transparent 72%);
  box-shadow: 0 18px 38px rgb(0 0 0 / .05);
  pointer-events: none;
  transition: opacity 1.2s ease;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] [data-hero-links] {
  position: static !important;
  inset: auto !important;
  z-index: 2;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  pointer-events: auto;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .hero-mobile-links { display: none !important; }
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] [data-hero-links] nav {
  margin: 0 !important;
  padding: 0 !important;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] :is(a, button, .hamburger-click-area) {
  pointer-events: auto;
}
/* The browser scrolls and docks the menu; no per-scroll top/transform updates. */
html:root[data-home-gallery] body .home-navigation-rail {
  position: absolute;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  overflow-anchor: none;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo-wrap {
  position: fixed !important;
  top: var(--home-header-inset) !important;
  left: 20px !important;
  z-index: 3;
  pointer-events: auto;
}
html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo a {
  --menu-link-top: var(--home-header-inset) !important;
}
@media (max-width: 932px) {
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo-container {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-end;
  }
}
html:root[data-home-gallery] body #turinys {
  box-sizing: border-box;
  padding-top: var(--home-section-gap) !important;
  scroll-margin-top: 0 !important;
}
@media (min-width: 933px) {
  /* Use the contact page's native compact sizing, including its 1px border. */
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] {
    border-bottom: 1px solid transparent !important;
  }
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation]::before { bottom: -1px; }
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo a::after {
    /* Reach past the viewport edges so blur stays solid above and left of the name. */
    inset: calc((40px - var(--hero-header-height)) / 2 - 32px) -32px -48px -52px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent), linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent), linear-gradient(to bottom, #000 60%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
html:root[data-home-gallery] body .masthead.home-intro-masthead { top: 0 !important; }
html:root[data-home-gallery] body .masthead.home-intro-overlay {
  height: var(--intro-controls-height) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html:root[data-site-shell] body #project-modules :is(.home-intro-experience, .home-intro-team) {
  --experience-color: #171717;
  color: var(--experience-color) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}
html:root[data-site-shell][data-site-theme="dark"] body #project-modules :is(.home-intro-experience, .home-intro-team) { --experience-color: #fff; }
/* Keep both introduction paragraphs identical, including legacy inline spans. */
html:root[data-home-gallery] body #project-modules :is(.home-intro-experience, .home-intro-team) * {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}
/* Remove legacy nested bottom padding so the buttons define the intro's lower edge. */
html:root[data-home-gallery] body .home-intro-row :is(.home-intro-copy, .home-intro-copy > .main-text, .home-intro-actions) {
  padding-bottom: 0 !important;
}
/* Repeat the space above the portrait before the client section. */
html:root[data-home-gallery] body #project-modules .featured-clients-heading {
  padding-top: var(--home-section-gap) !important;
  padding-bottom: 32px !important;
}
html:root[data-home-gallery] body #project-modules .featured-clients-heading::after {
  content: "";
  display: block;
  border-top: 1px solid rgb(27 26 25 / 22%);
  margin: 24px calc(-1 * var(--home-client-outline-outset)) 0;
  pointer-events: none;
}
html:root[data-home-gallery][data-site-theme="dark"] body #project-modules .featured-clients-heading::after {
  border-top-color: rgb(255 255 255 / 22%);
}
@media (max-width: 932px) {
  html:root[data-home-gallery] {
    --home-header-inset: 6px;
    --home-client-outline-outset: min(20px, 2.5vw);
  }
  html:root[data-home-gallery] body #project-modules .featured-clients-heading {
    padding-bottom: 64px !important;
  }
  html:root[data-home-gallery] body #project-modules .featured-clients-heading::after {
    margin-top: 48px;
  }
}
@media (max-width: 540px) {
  html:root[data-home-gallery] {
    --home-client-outline-outset: calc(min(20px, 2.5vw) + 5px);
  }
}
html:root body .hero-lab {
  --lab-ink: #242321;
  --lab-surface: rgb(255 255 255 / 64%);
  --lab-line: rgb(55 45 36 / 13%);
  --lab-matte: 237 237 237;
  --lab-fade-height: clamp(110px, 36%, 190px);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--lab-ink);
  background: radial-gradient(ellipse at 50% 42%, #faf9f6 0, #ededed 70%);
  font-family: "Space Grotesk", vcsm, sans-serif;
  text-align: left;
}
html:root[data-site-theme="dark"] body .hero-lab {
  --lab-ink: #f1ede7;
  --lab-surface: rgb(44 42 39 / 75%);
  --lab-line: rgb(255 255 255 / 14%);
  --lab-matte: 27 26 25;
  background: radial-gradient(ellipse at 50% 42%, #33302c 0, #1b1a19 75%);
}
.hero-lab[data-suspended="true"] { visibility: hidden; }
.hero-lab[data-suspended="true"] .hero-project { will-change: auto; }
.hero-lab[data-suspended="true"]::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero-lab-toolbar {
  --lab-ink: #242321;
  --lab-surface: rgb(255 255 255 / 64%);
  --lab-line: rgb(55 45 36 / 13%);
  --hero-shuffle-size: 40px;
  --hero-clock-radius: calc(var(--hero-shuffle-size) / 2 + 9.5px);
  position: absolute;
  z-index: 30;
  top: calc((var(--hero-header-height) - var(--hero-shuffle-size)) / 2);
  right: 24px;
}
html:root[data-site-theme="dark"] body .hero-lab-toolbar {
  --lab-ink: #f1ede7;
  --lab-surface: rgb(44 42 39 / 75%);
  --lab-line: rgb(255 255 255 / 14%);
}
html:root[data-site-shell] body :is(.hero-lab, .hero-lab-toolbar) [data-hero-shuffle] {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--lab-line);
  border-radius: 24px;
  background: var(--lab-surface);
  color: var(--lab-ink);
  font: 500 12px/1.2 "Space Grotesk", vcsm, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: scale(1);
  transform-origin: center;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
html:root[data-site-shell] body .hero-lab-toolbar [data-hero-shuffle]:is(:hover, :focus-visible, :active, .is-pressed) {
  transform: scale(1.2) !important;
  background: var(--button-hover-background, #5D4A3E) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgb(0 0 0 / 14%) !important;
}
.hero-shuffle-clock { position: absolute; inset: 0; pointer-events: none; color: var(--lab-ink); }
.hero-lab-toolbar [data-hero-shuffle]:is(:hover, :focus-visible, :active, .is-pressed) + .hero-shuffle-clock {
  --hero-clock-radius: calc(var(--hero-shuffle-size) * .6 + 9.5px);
}
html:root[data-site-shell] body .hero-lab-toolbar #hero-shuffle-clock .hero-shuffle-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  min-height: 0;
  padding: 0 !important;
  margin: -5px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lab-ink) !important;
  font: 700 8.5px/1 "Space Grotesk", vcsm, sans-serif;
  text-shadow: 0 0 4px var(--hero-nav-background);
  opacity: .12;
  transform: rotate(var(--tick-angle)) translateY(calc(-1 * var(--hero-clock-radius))) rotate(calc(-1 * var(--tick-angle)));
  transition: transform .2s ease, opacity .2s ease;
  pointer-events: none;
}
html:root[data-site-shell] body .hero-lab-toolbar #hero-shuffle-clock .hero-shuffle-tick[hidden] { display: none; }
html:root[data-site-shell] body .hero-lab-toolbar #hero-shuffle-clock .hero-shuffle-tick.is-current { opacity: 1; }
html:root[data-site-shell] body :is(.hero-lab, .hero-lab-toolbar) [data-hero-shuffle]:focus-visible { outline: 2px solid var(--lab-ink); outline-offset: 3px; }
.hero-lab-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-lab-stage {
  position: absolute;
  inset: var(--hero-stage-top) 0 0;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  transform-style: flat;
  isolation: isolate;
  pointer-events: auto;
  touch-action: pan-y;
}
/* Blur grows into a theme-matched fade before the cards reach the lower crop. */
.hero-lab::before,
.hero-lab::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--lab-fade-height);
  pointer-events: none;
}
.hero-lab::before {
  z-index: 19;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 90%);
  mask-image: linear-gradient(to bottom, transparent, #000 90%);
}
.hero-lab::after {
  z-index: 20;
  background: linear-gradient(to bottom, rgb(var(--lab-matte) / 0), rgb(var(--lab-matte) / .7) 60%, rgb(var(--lab-matte)) 96%);
}
.hero-lab-stage::before {
  content: "";
  position: absolute;
  width: min(64vw, 800px);
  height: 60px;
  left: 50%;
  bottom: -2%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #30241520, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.hero-project {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--project-width, 290px);
  aspect-ratio: 1080 / 844;
  margin: 0;
  will-change: transform;
}
html:root body .hero-project-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #e2dfda;
  box-shadow: 0 14px 32px #30271f26, 0 2px 5px #30271f12;
  color: #fff !important;
  text-decoration: none;
  isolation: isolate;
  transform: scale(1);
  transition: transform .35s ease, box-shadow .35s ease;
  -webkit-tap-highlight-color: transparent;
  pointer-events: inherit !important;
  cursor: pointer;
}
.hero-project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform .5s ease;
}
.hero-project-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgb(0 0 0 / 55%);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-project-title {
  color: #fff !important;
  font: 700 clamp(16px, 1.5vw, 21px)/1.25 "Space Grotesk", vcsm, sans-serif;
  text-align: center;
  text-wrap: balance;
  transform: translateY(7px);
  transition: transform .8s ease;
}
.hero-project-arrow { position: absolute; bottom: 14px; right: 16px; font-size: 23px; color: #fff; }
.hero-project.is-active .hero-project-link,
.hero-project-link:focus-visible { transform: scale(1.05); box-shadow: 0 20px 48px #211b184d; outline: 2px solid #fff; outline-offset: -2px; }
.hero-project.is-active .hero-project-image { transform: scale(1.025); }
.hero-project.is-active .hero-project-caption,
.hero-project-link:focus-visible .hero-project-caption { opacity: 1; }
.hero-project.is-active .hero-project-title,
.hero-project-link:focus-visible .hero-project-title { transform: translateY(0); }
/* Only background blur and a soft shadow, without an optical glass lens. */
html:root[data-home-gallery] body .masthead.home-intro-overlay > .home-intro-scroll {
  position: absolute !important;
  left: 50%;
  top: auto !important;
  bottom: var(--intro-message-gap) !important;
  overflow: visible !important;
  --hero-glass-fill: rgb(255 255 255 / 30%);
  --hero-glass-blur: blur(14px);
}
html:root[data-home-gallery][data-site-theme="dark"] body .masthead.home-intro-overlay > .home-intro-scroll { --hero-glass-fill: rgb(40 37 33 / 45%); }
@media (max-width: 932px) {
  /* Enlarge the panel 15%, its text 10%, and retain the arrow's visual size. */
  html:root[data-home-gallery] body .masthead.home-intro-overlay > .home-intro-scroll {
    max-width: calc((100vw - 32px) / 1.15);
    transform: translateX(-50%) scale(1.15) !important;
    transform-origin: center bottom !important;
  }
  html:root[data-home-gallery] body .home-intro-overlay .home-intro-message { transform: scale(.9565217391); }
  html:root[data-home-gallery] body .home-intro-overlay .home-intro-scroll .masthead-arrow {
    transform: translateX(-50%) rotate(45deg) scale(.8695652174) !important;
  }
  html:root[data-home-gallery] {
    --hero-header-height: 52px;
    --hero-stage-top: 0px;
    --hero-video-height: 100svh;
  }
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation],
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation]:not(.is-pinned) {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000;
    height: 52px !important;
    min-height: 52px !important;
    padding: 6px 20px !important;
  }
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .hero-mobile-links {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }
}
@media (hover: none), (pointer: coarse) {
  html:root[data-site-shell] body .hero-lab-toolbar #hero-variant-switch:hover:not(:active):not(.is-pressed):not(:focus-visible) {
    transform: scale(1) !important;
    background: var(--lab-surface) !important;
    color: var(--lab-ink) !important;
    box-shadow: none !important;
  }
  .hero-lab-toolbar #hero-variant-switch:hover:not(:active):not(.is-pressed):not(:focus-visible) + .hero-shuffle-clock {
    --hero-clock-radius: calc(var(--hero-shuffle-size) / 2 + 9.5px);
  }
}
@media (max-width: 640px) {
  .hero-lab-toolbar { --hero-shuffle-size: 44px; }
  html:root[data-site-shell] body :is(.hero-lab, .hero-lab-toolbar) [data-hero-shuffle] { width: 44px; height: 44px; }
  .hero-project-title { font-size: 16px; }
  html:root body .hero-project-link { border-radius: 4.5px; }
  html:root[data-site-shell] body #project-modules :is(.home-intro-experience, .home-intro-team) { font-size: 16px !important; }
}
@media (max-width: 400px) {
  html:root[data-site-shell][data-home-gallery] body .site-header[data-hero-navigation] .logo a { padding-inline: 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-project, .hero-project-link, .hero-project-image, .hero-project-caption, .hero-project-title { transition: none !important; }
  html:root[data-home-gallery] body .site-header[data-hero-navigation],
  html:root[data-home-gallery] body .site-header[data-hero-navigation]::before,
  html:root[data-home-gallery] body .site-header[data-hero-navigation] .logo a::after,
  .hero-lab-toolbar { transition: none !important; }
  html:root[data-site-shell] body .hero-lab-toolbar [data-hero-shuffle],
  html:root[data-site-shell] body .hero-lab-toolbar [data-hero-shuffle]:is(:hover, :focus-visible, :active, .is-pressed) { transform: none !important; transition: none !important; }
  .hero-lab-toolbar [data-hero-shuffle]:is(:hover, :focus-visible, :active, .is-pressed) + .hero-shuffle-clock {
    --hero-clock-radius: calc(var(--hero-shuffle-size) / 2 + 9.5px);
  }
  html:root[data-site-shell] body .hero-lab-toolbar #hero-shuffle-clock .hero-shuffle-tick { transition: none !important; }
}
