/* Shared portfolio surfaces for the header and its companion panel. */
:root {
  --portfolio-header-stroke: #8191aa32;
  --portfolio-header-shadow: 0 3px 12px #7888a217;
  --portfolio-cta-fill: linear-gradient(175deg, #fafbfe, #e9ecf4);
  --portfolio-cta-primary-fill: linear-gradient(180deg, #797b9f, #5b5d80);
  --portfolio-cta-stroke: #8297af24;
  --portfolio-cta-shadow: 0 3px 8px #60789520;
}

.site-header .liquid-navigation {
  --selected: var(--current, 0);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 22rem);
  margin: 0;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.liquid-navigation::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -1px;
  border: 1px solid #777b9a29;
  background:
    radial-gradient(ellipse 38% 125% at var(--sheen-x, 50%) var(--sheen-y, 0%), #ffffffd9, transparent),
    linear-gradient(135deg, #f7f7fc9c, #dadced59);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  box-shadow: inset 0 1px 0 #fff9, inset 0 -1px 0 #777b9a12, 0 5px 18px #555b7710;
  border-radius: inherit;
  pointer-events: none;
  transition: border-radius 300ms ease, transform 420ms cubic-bezier(.2, 1.3, .4, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .liquid-navigation:has(a:first-child:hover)::after {
    border-radius: 10% 8% 8% 12% / 58% 46% 52% 50%;
    transform: translateX(-1px) scaleY(1.06) rotate(-.35deg);
  }

  .liquid-navigation:has(a:nth-child(2):hover)::after {
    transform: scaleY(1.085);
  }

  .liquid-navigation:has(a:last-child:hover)::after {
    border-radius: 8% 10% 12% 8% / 46% 58% 50% 52%;
    transform: translateX(1px) scaleY(1.06) rotate(.35deg);
  }
}

.liquid-navigation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 4px;
  width: calc((100% - 8px) / 3);
  border-radius: inherit;
  background: linear-gradient(150deg, #ffffffd9, #eeeefa70 68%, #dbd9ec8c);
  box-shadow: inset 0 0 0 1px #77739429, inset 0 1px 1px #fff,
    inset 0 -1px 1px #948ab62b, 0 2px 7px #54557516;
  transform: translateX(calc(var(--selected) * 100%));
  transition: transform 450ms cubic-bezier(.22, 1.15, .38, 1);
}

.liquid-navigation a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: inherit;
  color: #394660;
  font-size: clamp(.8125rem, 2vw, .9375rem);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.liquid-navigation a[aria-current="page"] { color: #203858; }
.liquid-navigation a:focus-visible { outline: 2px solid #4a4e69; outline-offset: -3px; }

@supports selector(:has(*)) {
  .liquid-navigation:has(a:nth-of-type(1):focus-visible, a:nth-of-type(1):active) { --selected: 0; }
  .liquid-navigation:has(a:nth-of-type(2):focus-visible, a:nth-of-type(2):active) { --selected: 1; }
  .liquid-navigation:has(a:nth-of-type(3):focus-visible, a:nth-of-type(3):active) { --selected: 2; }

  @media (hover: hover) {
    .liquid-navigation:has(a:nth-of-type(1):hover) { --selected: 0; }
    .liquid-navigation:has(a:nth-of-type(2):hover) { --selected: 1; }
    .liquid-navigation:has(a:nth-of-type(3):hover) { --selected: 2; }
  }
}

.liquid-navigation.is-flowing::before {
  animation: liquid-stretch 450ms ease-out;
}

@keyframes liquid-stretch {
  0%, 100% { scale: 1; }
  40% { scale: 1.11 .94; }
}

.site-header:has(.liquid-navigation) .uui-navbar07_container {
  height: auto;
  min-height: 4.5rem;
  gap: 8px 24px;
  justify-content: space-between;
}

@media (max-width: 560px) {
  .site-header:has(.liquid-navigation) .uui-navbar07_container {
    flex-direction: column;
    padding-block: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-navigation::before { transition: none; }
  .liquid-navigation.is-flowing::before { animation: none; }
}

.page-wrap .uui-navbar07_component.site-header,
.page-wrap .uui-section_logos04 {
  border-bottom: 1px solid var(--portfolio-header-stroke);
  box-shadow: var(--portfolio-header-shadow);
}

.page-wrap:has(.home-hero) a.liquid-cta.uui-button-secondary-gray {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  color: #303e59;
  touch-action: manipulation;
}

.page-wrap:has(.home-hero) a.liquid-cta.uui-button-secondary-gray:not(:focus):not(:focus-visible) {
  box-shadow: none;
}

.liquid-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--portfolio-cta-stroke);
  background: var(--portfolio-cta-fill);
  box-shadow: inset 0 1px 1px #fff, inset 0 -1px 2px #9eb5cc45, var(--portfolio-cta-shadow);
  pointer-events: none;
}

.liquid-cta:focus-visible {
  outline: 2px solid #4a4e69;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .liquid-cta::before {
    transition: transform 340ms cubic-bezier(.2, 1.35, .4, 1), border-radius 280ms ease;
  }

  .liquid-cta.is-liquid-hovered::before {
    border-radius: 26% 22% 24% 22% / 54% 46% 53% 47%;
    transform: translate(var(--liquid-x, 0px), var(--liquid-y, 0px))
      rotate(var(--liquid-tilt, 0deg)) scale(1.035, 1.08);
  }

  .liquid-cta:active::before {
    border-radius: 24% 22% 22% 26% / 48% 52% 46% 54%;
    transform: scale(1.035, .91);
    transition-duration: 120ms;
  }
}

.page-wrap:has(.home-hero) a.liquid-cta--work.uui-button-secondary-gray {
  color: #fff;
}

.liquid-cta--work::before {
  background: var(--portfolio-cta-primary-fill);
  box-shadow: var(--portfolio-cta-shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .liquid-cta-letter {
    display: inline-block;
    transform: scale(calc(1 + var(--letter-pull, 0) * .11));
    -webkit-text-stroke: calc(var(--letter-pull, 0) * .55px) currentColor;
    transition: transform 160ms ease-out, -webkit-text-stroke-width 160ms ease-out;
  }
}

.home-hero .uui-heroheader06_content {
  min-width: 0;
  container-type: inline-size;
}

.home-hero .uui-heroheader06_content .uui-text-size-xlarge-2,
.home-hero .html-embed-4-copy {
  width: 100%;
  min-width: 0;
}

.home-hero .hero-headline-sizer,
.home-hero .hero-headline-live {
  white-space: nowrap;
}

.home-hero .html-embed-4-copy {
  font-size: min(40px, 5.7cqi);
}

@media (min-width: 992px) {
  .home-hero .uui-heroheader06_component {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  }
}
