/* ==========================================================================
   Custom layer
   Recreates the behaviour Webflow's runtime (webflow.js + Interactions) used
   to provide, using plain CSS plus assets/js/main.js. Loaded after site.css.
   ========================================================================== */

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

address {
  font-style: normal;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 6px;
  background-color: var(--font-color);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--hover-text);
  outline-offset: 2px;
}

.plain-link {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Page + hero load animations (were "Delay", "Home/About/Inner On Load")
   `backwards` fill keeps hover transforms working once an animation ends.
   -------------------------------------------------------------------------- */

@keyframes ix-fade {
  from { opacity: 0; }
}

@keyframes ix-rise-30 {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
}

@keyframes ix-rise-10 {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
}

@keyframes ix-rise-full {
  from { opacity: 0; transform: translate3d(0, 100%, 0); }
}

@keyframes ix-drop-10 {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
}

@keyframes ix-from-right-30 {
  from { opacity: 0; transform: translate3d(30px, 0, 0); }
}

@keyframes ix-from-right-20pct {
  from { opacity: 0; transform: translate3d(20%, 0, 0); }
}

@keyframes ix-from-left-full {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
}

@keyframes ix-grow-width {
  from { width: 0; }
}

@keyframes ix-bob {
  to { transform: translate3d(0, 10px, 0); }
}

.content {
  animation: ix-fade .3s ease .15s backwards;
}

.page-inner .hero-fill-title { animation: ix-rise-full .8s ease .5s backwards; }
.page-inner .hero-inner-text { animation: ix-rise-30 .8s ease .5s backwards; }
.page-inner .hero-subtitle { animation: ix-rise-30 .8s ease 1s backwards; }

.page-home .hero-text,
.page-about .hero-text { animation: ix-rise-30 .8s ease 1.1s backwards; }
.page-home .hero-bottom,
.page-about .hero-bottom { animation: ix-from-left-full 1.5s ease 1.5s backwards; }
.page-home .hero-guy,
.page-about .hero-girl { animation: ix-from-right-30 1s ease 1.5s backwards; }
.page-home .big-text,
.page-about .big-text { animation: ix-from-right-20pct 2s cubic-bezier(.455, .03, .515, .955) 1.6s backwards; }
.page-home .underline-box { animation: ix-grow-width 1s cubic-bezier(.25, .46, .45, .94) 1.8s backwards; }
.page-home .hero-fill-title,
.page-about .hero-fill-title { animation: ix-rise-full .8s ease 1.9s backwards; }
.page-home .scroll-down,
.page-about .scroll-down { animation: ix-drop-10 .8s ease 2s backwards; }
.page-home .hero-tab { animation: ix-rise-10 .6s ease 2s backwards; }
.page-home .hero-tab-2 { animation: ix-rise-10 .6s ease 2.1s backwards; }

.scroll-arrow {
  animation: ix-bob .8s ease-in-out infinite alternate;
}

.scroll-down {
  transition: transform .3s ease, background-color .3s ease;
}

.scroll-down:hover {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Reveal on scroll (main.js adds .is-revealed, then removes data-reveal)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 100px, 0);
  transition: opacity 1s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.165, .84, .44, 1);
}

.js [data-reveal="right"] {
  transform: translate3d(100px, 0, 0);
}

.js [data-reveal="left"] {
  transform: translate3d(-100px, 0, 0);
}

.js [data-reveal="line"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="line"] .divider-line {
  transform: translate3d(-100%, 0, 0);
  transition: transform .8s ease .4s;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-reveal="line"].is-revealed .divider-line {
  transform: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.navbar {
  z-index: 1000;
  transition: transform .5s ease;
}

.navbar.is-hidden {
  transform: translate3d(0, -140%, 0);
}

button.menu-button {
  border: 0;
  background-color: transparent;
  font-family: inherit;
  line-height: inherit;
}

.w-dropdown-toggle {
  outline: 0;
}

.mini-arrow {
  transition: transform .5s ease;
}

.w-dropdown-toggle.w--open .mini-arrow {
  transform: rotate(180deg);
}

.dropdown-column-arrow {
  transition: transform .3s ease;
}

.link-block-text {
  transition: color .3s ease;
}

.dropdown-item-arrow:hover .dropdown-column-arrow {
  transform: translate3d(5px, 0, 0);
}

.dropdown-item-arrow:hover .link-block-text {
  color: var(--hover-text);
}

.button {
  transition: background-color .3s ease, color .3s ease;
}

.button-arrow-container {
  transition: transform .8s ease;
}

.button:hover .button-arrow-container,
.button:focus-visible .button-arrow-container {
  transform: translate3d(40px, 0, 0);
}

@media screen and (max-width: 991px) {
  .navbar.menu-open {
    transform: none;
  }

  /* Must beat webflow.css: .w-nav[data-collapse='medium'] .w-nav-menu { display: none } */
  .w-nav[data-collapse] .nav-menu.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    text-align: center;
  }

  /* site.css fixes dropdowns at 50px tall, which makes an opened list cover the items below it */
  .w-nav[data-collapse] .nav-menu.is-open .category-dropdown {
    height: auto;
  }

  .w-nav[data-collapse] .nav-menu.is-open .w-dropdown-list {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Hover effects
   -------------------------------------------------------------------------- */

.go-up-button {
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 130%, 0) scale(.2);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}

.go-up-button.is-visible {
  visibility: visible;
  opacity: .9;
  transform: none;
  transition: opacity .5s ease, transform .5s ease;
}

.go-up-button.is-visible:hover {
  opacity: 1;
  transform: scale(1.13);
}

.footer-underline {
  width: 0;
  transition: width .3s ease;
}

.footer-menu-link:hover .footer-underline,
.footer-menu-link:focus-visible .footer-underline {
  width: 100%;
}

.inside-underline {
  width: 0;
  transition: width .5s ease;
}

.block-link-text:hover .inside-underline,
.preview-link:hover .inside-underline,
.block-link-text:focus-visible .inside-underline,
.preview-link:focus-visible .inside-underline {
  width: 100%;
}

.social-icons-container {
  transition: transform .5s ease;
}

.social-icon-rounded:hover .social-icons-container,
.social-icon-rounded:focus-visible .social-icons-container {
  transform: translate3d(0, -35px, 0);
}

/* Blog cards ("Post Hover") */
.hover-image {
  background-image: none;
  transition: transform .5s ease;
}

.preview-link-block img,
.mini-preview img {
  transition: transform .5s ease;
}

.hover-overlay {
  opacity: 0;
  transition: opacity .5s ease;
}

.button-green-preview {
  opacity: 0;
  transform: translate3d(0, 13px, 0);
  transition: opacity .5s ease, transform .5s ease, background-color .2s, color .2s;
}

.preview-link-block:hover img,
.mini-preview:hover img,
.preview-link-block:hover .hover-image,
.mini-preview:hover .hover-image {
  transform: scale(1.05);
}

.preview-link-block:hover .hover-overlay,
.mini-preview:hover .hover-overlay,
.preview-link-block:focus-visible .hover-overlay,
.mini-preview:focus-visible .hover-overlay {
  opacity: 1;
}

.preview-link-block:hover .button-green-preview,
.mini-preview:hover .button-green-preview,
.preview-link-block:focus-visible .button-green-preview,
.mini-preview:focus-visible .button-green-preview {
  opacity: 1;
  transform: none;
}

/* Gallery tiles ("Scale Hover" + pointer-following "View" bubble) */
.preview-block img {
  transition: transform .5s ease;
}

.preview-block:hover img,
.preview-block:hover .hover-image {
  transform: scale(1.05);
}

.item-hover-overlay {
  display: block;
  opacity: 0;
  transition: opacity .5s ease;
}

.blur-hover-overlay {
  opacity: 0;
  transition: opacity .3s ease;
}

.button-hover {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--hover-x, 0px), var(--hover-y, 0px), 0) scale(0);
  transition: opacity .5s ease, transform .5s ease;
}

.preview-block:hover .item-hover-overlay {
  opacity: .1;
}

.preview-block:hover .blur-hover-overlay {
  opacity: 1;
}

.preview-block:hover .button-hover,
.preview-block:focus-visible .button-hover {
  opacity: 1;
  transform: translate3d(var(--hover-x, 0px), var(--hover-y, 0px), 0) scale(1);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-label {
  display: inline;
  margin: 0;
  font-weight: inherit;
}

.w-form-done.is-visible,
.w-form-fail.is-visible {
  display: block;
}

form.is-submitting [type="submit"] {
  opacity: .7;
  cursor: progress;
}

/* --------------------------------------------------------------------------
   Content lists (blog, featured-in, gallery) and gallery lightbox
   -------------------------------------------------------------------------- */

.empty-note {
  width: 100%;
  padding: 40px 0;
  color: var(--gray-text);
  text-align: center;
}

.content-list {
  width: 100%;
}

.card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  color: var(--gray-text);
  font-size: 14px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.photo-grid a {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.photo-grid a:hover img {
  transform: scale(1.05);
}

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .9);
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 15px;
}

.lightbox-button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  font-size: 24px;
  line-height: 48px;
  cursor: pointer;
}

.lightbox-button:hover {
  background: rgba(255, 255, 255, .3);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { top: 50%; left: 20px; margin-top: -24px; }
.lightbox-next { top: 50%; right: 20px; margin-top: -24px; }

/* Text written in the admin panel's rich-text editor */
.rich-text p {
  margin: 0 0 1em;
  font: inherit;
  color: inherit;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 1.2em 0 .5em;
  color: var(--font-color);
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  text-align: left;
}

.rich-text blockquote {
  margin: 1em 0;
  font-size: inherit;
  line-height: inherit;
}

.rich-text img {
  height: auto;
  border-radius: 10px;
}

.gallery-tile-image {
  width: 100%;
  aspect-ratio: 316 / 331;
  object-fit: cover;
}

.book-cover {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js [data-reveal] .divider-line {
    opacity: 1;
    transform: none;
  }
}
