/* Essor Experience v0.1.0 */
:root {
  --essor-accent: #A1D80B;
  --essor-ink: #070707;
  --essor-paper: #F4F4F4;
  --essor-ease: cubic-bezier(.22, 1, .36, 1);
  --essor-line-light: rgba(244, 244, 244, .18);
  --essor-line-dark: rgba(7, 7, 7, .16);
}

/* Utilities */
.essor-serif-italic {
  font-family: "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.essor-eyebrow {
  font-size: 11px !important;
  line-height: 1.3 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
}

.essor-divider {
  border-top: 1px solid var(--essor-line-light);
}

/* Hero background layer */
body.essor-feature-hero .essor-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--essor-ink) !important;
}

body.essor-feature-hero .essor-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: clamp(64px, 6.25vw, 120px) clamp(64px, 6.25vw, 120px);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body.essor-feature-hero .essor-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(62vw, 980px);
  aspect-ratio: 1;
  right: -18vw;
  top: 2vh;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--essor-accent) 25%, transparent), transparent 68%);
  filter: blur(22px);
}

body.essor-feature-hero .essor-hero > * {
  position: relative;
  z-index: 2;
}

.essor-hero-symbol {
  pointer-events: none;
}

body.essor-feature-hero .essor-hero-symbol {
  position: absolute !important;
  z-index: 1 !important;
  width: min(44vw, 672px) !important;
  right: -4vw !important;
  top: 13vh !important;
  opacity: .11 !important;
  transform: rotate(-8deg);
}

body.essor-feature-hero .essor-hero-symbol img {
  width: 100%;
  height: auto;
}

/* Scroll reveals only become hidden after JS confirms support. */
body.essor-motion-ready .essor-reveal,
body.essor-motion-ready .essor-reveal-up,
body.essor-motion-ready .essor-reveal-left,
body.essor-motion-ready .essor-reveal-right {
  opacity: 0;
  transition:
    opacity .9s var(--essor-ease),
    transform 1.05s var(--essor-ease),
    filter 1.05s var(--essor-ease);
  transition-delay: var(--essor-delay, 0ms);
  will-change: opacity, transform;
}

body.essor-motion-ready .essor-reveal,
body.essor-motion-ready .essor-reveal-up {
  transform: translate3d(0, 44px, 0);
  filter: blur(5px);
}

body.essor-motion-ready .essor-reveal-left {
  transform: translate3d(-48px, 0, 0);
}

body.essor-motion-ready .essor-reveal-right {
  transform: translate3d(48px, 0, 0);
}

body.essor-motion-ready .essor-reveal.is-visible,
body.essor-motion-ready .essor-reveal-up.is-visible,
body.essor-motion-ready .essor-reveal-left.is-visible,
body.essor-motion-ready .essor-reveal-right.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Circular Divi button */
body.essor-feature-round-buttons .essor-round-link {
  width: 128px;
  max-width: 128px;
}

body.essor-feature-round-buttons .essor-round-link .et_pb_button,
body.essor-feature-round-buttons .essor-round-link.et_pb_button,
body.essor-feature-round-buttons a.essor-round-link {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: 128px !important;
  min-width: 128px !important;
  height: 128px !important;
  padding: 18px !important;
  overflow: hidden;
  color: var(--essor-paper) !important;
  background: transparent !important;
  border: 1px solid rgba(244,244,244,.4) !important;
  border-radius: 50% !important;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: .12em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  transition: color .4s var(--essor-ease), background-color .4s var(--essor-ease), border-color .4s var(--essor-ease), transform .4s var(--essor-ease) !important;
}

body.essor-feature-round-buttons .essor-round-link .et_pb_button:hover,
body.essor-feature-round-buttons .essor-round-link.et_pb_button:hover,
body.essor-feature-round-buttons a.essor-round-link:hover {
  padding: 18px !important;
  color: var(--essor-ink) !important;
  background: var(--essor-accent) !important;
  border-color: var(--essor-accent) !important;
  transform: scale(1.035);
}

body.essor-feature-round-buttons .essor-round-link .et_pb_button::before,
body.essor-feature-round-buttons .essor-round-link.et_pb_button::before,
body.essor-feature-round-buttons a.essor-round-link::before {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 18px !important;
  height: 1px !important;
  right: 18px !important;
  bottom: 22px !important;
  margin: 0 !important;
  opacity: 1 !important;
  background: currentColor !important;
  transform: none !important;
}

body.essor-feature-round-buttons .essor-round-link .et_pb_button::after,
body.essor-feature-round-buttons .essor-round-link.et_pb_button::after,
body.essor-feature-round-buttons a.essor-round-link::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  right: 18px !important;
  bottom: 18.5px !important;
  margin: 0 !important;
  opacity: 1 !important;
  border-top: 1px solid currentColor !important;
  border-right: 1px solid currentColor !important;
  font-size: 0 !important;
  transform: rotate(45deg) !important;
}

/* Project media hover */
body.essor-feature-project-hover .essor-project-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.essor-feature-project-hover .essor-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(7,7,7,.38), transparent 55%);
  opacity: .6;
  transition: opacity .7s var(--essor-ease);
}

body.essor-feature-project-hover .essor-project-image img,
body.essor-feature-project-hover .essor-project-media img,
body.essor-feature-project-hover .essor-project-media video {
  display: block;
  width: 100%;
  transition: transform 1.2s var(--essor-ease), filter 1.2s var(--essor-ease);
  will-change: transform;
}

body.essor-feature-project-hover .essor-project:hover .essor-project-image img,
body.essor-feature-project-hover .essor-project:hover .essor-project-media img,
body.essor-feature-project-hover .essor-project:hover .essor-project-media video,
body.essor-feature-project-hover .essor-project-media:hover img,
body.essor-feature-project-hover .essor-project-media:hover video {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

body.essor-feature-project-hover .essor-project:hover .essor-project-media::after,
body.essor-feature-project-hover .essor-project-media:hover::after {
  opacity: .35;
}

body.essor-feature-project-hover .essor-project-title {
  transition: transform .7s var(--essor-ease), color .5s ease;
}

body.essor-feature-project-hover .essor-project:hover .essor-project-title {
  transform: translateX(8px);
}

/* Magnetic layer: values are controlled by JS. */
body.essor-feature-magnetic .essor-magnetic,
body.essor-feature-magnetic .essor-magnetic .et_pb_button,
body.essor-feature-magnetic .essor-magnetic > a,
body.essor-feature-magnetic a.essor-magnetic,
body.essor-feature-magnetic button.essor-magnetic {
  transition: transform .5s var(--essor-ease);
  will-change: transform;
}

/* Cursor */
.essor-cursor-dot,
.essor-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}

.essor-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--essor-accent);
}

.essor-cursor-ring {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(244,244,244,.5);
  border-radius: 50%;
  color: var(--essor-ink);
  background: transparent;
  font: 500 8px/1 Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: width .35s var(--essor-ease), height .35s var(--essor-ease), margin .35s var(--essor-ease), background-color .35s ease, border-color .35s ease, color .35s ease;
}

body.essor-cursor-running,
body.essor-cursor-running a,
body.essor-cursor-running button,
body.essor-cursor-running .essor-cursor-target {
  cursor: none !important;
}

body.essor-cursor-running .essor-cursor-dot,
body.essor-cursor-running .essor-cursor-ring {
  opacity: 1;
}

.essor-cursor-ring.is-active {
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  color: var(--essor-ink);
  background: var(--essor-accent);
  border-color: var(--essor-accent);
}

.essor-cursor-ring__label {
  opacity: 0;
  transition: opacity .2s ease;
}

.essor-cursor-ring.is-active .essor-cursor-ring__label {
  opacity: 1;
}

/* Preloader */
.essor-preloader {
  position: fixed;
  inset: 0;
  z-index: 2147483500;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--essor-paper);
  background: var(--essor-ink);
  transform: translate3d(0, 0, 0);
  transition: transform 1s var(--essor-ease), visibility 1s step-end;
}

.essor-preloader__grain {
  position: absolute;
  inset: -50%;
  opacity: .06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: essor-grain .25s steps(2) infinite;
}

.essor-preloader__inner {
  position: relative;
  width: min(82vw, 720px);
  text-align: center;
}

.essor-preloader__eyebrow {
  margin: 0 0 clamp(34px, 6vh, 72px);
  opacity: 0;
  font: 500 9px/1.3 Inter, Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateY(12px);
  animation: essor-preloader-copy .8s .12s var(--essor-ease) forwards;
}

.essor-preloader__brand {
  position: relative;
  width: min(74vw, 540px);
  margin-inline: auto;
  overflow: hidden;
}

.essor-preloader__brand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(.985);
  animation: essor-preloader-logo 1s .38s var(--essor-ease) forwards;
}

.essor-preloader__wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--essor-accent);
  transform: translateX(-102%);
  animation: essor-preloader-wipe 1.05s .2s var(--essor-ease) forwards;
}

.essor-preloader__meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(34px, 6vh, 70px);
  opacity: 0;
  font: 500 9px/1 Inter, Arial, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: essor-preloader-copy .8s .82s var(--essor-ease) forwards;
}

.essor-preloader.is-leaving {
  transform: translate3d(0, -102%, 0);
  visibility: hidden;
}

.essor-preloader.is-skipped {
  display: none;
}

body.essor-preloading {
  overflow: hidden !important;
}

@keyframes essor-preloader-wipe {
  0% { transform: translateX(-102%); }
  48% { transform: translateX(0); }
  100% { transform: translateX(102%); }
}

@keyframes essor-preloader-logo {
  to { opacity: 1; transform: scale(1); }
}

@keyframes essor-preloader-copy {
  to { opacity: .7; transform: translateY(0); }
}

@keyframes essor-grain {
  0% { transform: translate3d(0,0,0); }
  25% { transform: translate3d(3%,-2%,0); }
  50% { transform: translate3d(-2%,3%,0); }
  75% { transform: translate3d(2%,2%,0); }
  100% { transform: translate3d(-3%,-1%,0); }
}

/* Optional audio bars */
.essor-audio-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 72px;
}

.essor-audio-bar {
  width: 2px;
  min-height: 10px;
  background: currentColor;
  transform-origin: center;
  animation: essor-wave 1.15s ease-in-out infinite alternate;
  animation-delay: calc(var(--essor-index, 0) * -90ms);
}

@keyframes essor-wave {
  from { transform: scaleY(.2); opacity: .35; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 767px) {
  body.essor-feature-hero .essor-hero-symbol {
    width: 88vw !important;
    right: -22vw !important;
    top: 12vh !important;
  }

  body.essor-feature-round-buttons .essor-round-link {
    width: 104px;
    max-width: 104px;
  }

  body.essor-feature-round-buttons .essor-round-link .et_pb_button,
  body.essor-feature-round-buttons .essor-round-link.et_pb_button,
  body.essor-feature-round-buttons a.essor-round-link {
    width: 104px !important;
    min-width: 104px !important;
    height: 104px !important;
    padding: 14px !important;
    font-size: 8px !important;
  }

  body.essor-feature-round-buttons .essor-round-link .et_pb_button:hover,
  body.essor-feature-round-buttons .essor-round-link.et_pb_button:hover,
  body.essor-feature-round-buttons a.essor-round-link:hover {
    padding: 14px !important;
  }

  .essor-preloader__inner {
    width: 86vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .essor-preloader__grain,
  .essor-preloader__eyebrow,
  .essor-preloader__brand img,
  .essor-preloader__wipe,
  .essor-preloader__meta,
  .essor-audio-bar {
    animation: none !important;
  }

  .essor-preloader__eyebrow,
  .essor-preloader__brand img,
  .essor-preloader__meta {
    opacity: 1;
    transform: none;
  }

  body.essor-motion-ready .essor-reveal,
  body.essor-motion-ready .essor-reveal-up,
  body.essor-motion-ready .essor-reveal-left,
  body.essor-motion-ready .essor-reveal-right {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
