@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.boga-popup-widget {
  --boga-popup-width: 560px;
  --boga-offset-x: 0px;
  --boga-offset-y: 0px;
  --boga-reveal-x: 52%;
  --boga-reveal-y: 58%;
  --boga-reveal-radius: 96px;
  --boga-reveal-feather: 42%;
  --boga-image-x: 50%;
  --boga-image-y: 50%;
  --boga-scene-ratio: 1672 / 941;
  --boga-motion-duration: 420ms;
  --boga-motion-easing: cubic-bezier(.2, .7, .2, 1);
  --boga-edge-gap: 24px;
  --boga-launcher-x: var(--boga-offset-x);
  --boga-launcher-y: var(--boga-offset-y);
  font-family: 'Jost', sans-serif;
}

.boga-popup-widget [hidden] {
  display: none !important;
}

.boga-popup-overlay {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--boga-edge-gap);
  background: transparent;
  overflow: visible;
  pointer-events: none;
}

.boga-position-x-left .boga-popup-overlay { justify-content: flex-start; }
.boga-position-x-center .boga-popup-overlay { justify-content: center; }
.boga-position-x-right .boga-popup-overlay { justify-content: flex-end; }
.boga-position-y-top .boga-popup-overlay { align-items: flex-start; }
.boga-position-y-center .boga-popup-overlay { align-items: center; }
.boga-position-y-bottom .boga-popup-overlay { align-items: flex-end; }

.boga-position-x-left .boga-popup-launcher {
  right: auto;
  left: var(--boga-edge-gap);
  --boga-launcher-x: var(--boga-offset-x);
}

.boga-position-x-center .boga-popup-launcher {
  right: auto;
  left: 50%;
  --boga-launcher-x: calc(-50% + var(--boga-offset-x));
}

.boga-position-x-right .boga-popup-launcher {
  right: var(--boga-edge-gap);
  left: auto;
  --boga-launcher-x: var(--boga-offset-x);
}

.boga-position-y-top .boga-popup-launcher {
  top: var(--boga-edge-gap);
  bottom: auto;
  --boga-launcher-y: var(--boga-offset-y);
}

.boga-position-y-center .boga-popup-launcher {
  top: 50%;
  bottom: auto;
  --boga-launcher-y: calc(-50% + var(--boga-offset-y));
}

.boga-position-y-bottom .boga-popup-launcher {
  top: auto;
  bottom: var(--boga-edge-gap);
  --boga-launcher-y: var(--boga-offset-y);
}

.boga-popup-dialog {
  position: relative;
  width: min(var(--boga-popup-width), calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  translate: var(--boga-offset-x) var(--boga-offset-y);
  border-radius: 7px;
  background: #10100f;
  color: #f1ede5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
  isolation: isolate;
  outline: none;
  pointer-events: auto;
}

.boga-popup-dialog:focus-visible,
.boga-popup-button:focus-visible,
.boga-popup-contact:focus-visible,
.boga-popup-close:focus-visible,
.boga-popup-launcher:focus-visible {
  outline: 2px solid #f1ede5;
  outline-offset: 3px;
}

.boga-popup-close {
  position: absolute;
  z-index: 8;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 16, 15, .64);
  color: #fff;
  font: 300 25px/32px 'Jost', sans-serif;
  cursor: pointer;
}

.boga-popup-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--boga-scene-ratio);
  min-height: 180px;
  overflow: hidden;
  background: #b5a796;
  cursor: crosshair;
  touch-action: none;
}

.boga-popup-scene,
.boga-popup-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--boga-image-x) var(--boga-image-y);
}

.boga-popup-scene {
  display: block;
}

.boga-popup-after {
  background-position: var(--boga-image-x) var(--boga-image-y);
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: radial-gradient(
    circle var(--boga-reveal-radius) at var(--boga-reveal-x) var(--boga-reveal-y),
    #000 0%,
    #000 calc(100% - var(--boga-reveal-feather)),
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--boga-reveal-radius) at var(--boga-reveal-x) var(--boga-reveal-y),
    #000 0%,
    #000 calc(100% - var(--boga-reveal-feather)),
    transparent 100%
  );
  will-change: mask-image;
}

.boga-popup-stage.is-full-result .boga-popup-after {
  -webkit-mask-image: linear-gradient(#000, #000);
  mask-image: linear-gradient(#000, #000);
}

.boga-popup-topbar {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 38px;
  background: linear-gradient(to bottom, rgba(16, 16, 15, .72), transparent);
  pointer-events: none;
}

.boga-popup-brand {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  letter-spacing: .18em;
}

.boga-popup-instruction {
  max-width: 210px;
  font: 500 9px/1.35 'Jost', sans-serif;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.boga-instruction-mobile { display: none; }

.boga-popup-caption {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 16px;
  max-width: 62%;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .54);
  pointer-events: none;
}

.boga-popup-eyebrow {
  display: block;
  margin-bottom: 5px;
  font: 500 8px/1.4 'Jost', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.boga-popup-heading {
  margin: 0;
  color: inherit;
  font: 400 clamp(24px, 4vw, 38px)/1.03 'Jost', sans-serif;
}

.boga-popup-footer {
  padding: 14px 16px 15px;
  background: #10100f;
}

.boga-popup-description {
  margin: 0 0 10px;
  color: rgba(241, 237, 229, .72);
  font: 400 12px/1.5 'Jost', sans-serif;
}

.boga-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.boga-popup-actions.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.boga-popup-button,
.boga-popup-contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(241, 237, 229, .34);
  border-radius: 0;
  background: transparent;
  color: #f1ede5;
  font: 500 10px/1 'Jost', sans-serif;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.boga-popup-contact--primary {
  border-color: #536858;
  background: #536858;
  color: #fff;
}

.boga-popup-button:hover,
.boga-popup-contact:hover {
  border-color: #6a806f;
  background: #6a806f;
  color: #fff;
}

.boga-popup-note {
  display: block;
  margin-top: 9px;
  color: rgba(241, 237, 229, .54);
  font: 400 10px/1.4 'Jost', sans-serif;
}

.boga-popup-launcher {
  position: fixed;
  z-index: 999999;
  right: var(--boga-edge-gap);
  bottom: var(--boga-edge-gap);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #10100f;
  color: #f1ede5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .24);
  font: 500 11px/1 'Jost', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  translate: var(--boga-launcher-x) var(--boga-launcher-y);
}

.boga-popup-launcher span {
  font-size: 18px;
  font-weight: 300;
}

.boga-popup-editor-notice {
  padding: 14px;
  border: 1px solid #d7b85b;
  background: #fff8dd;
  color: #30280f;
  font: 400 13px/1.5 'Jost', sans-serif;
}

.boga-animate-in,
.boga-animate-out {
  animation-duration: var(--boga-motion-duration);
  animation-timing-function: var(--boga-motion-easing);
  animation-fill-mode: both;
}

.boga-animate-in.boga-motion-none,
.boga-animate-out.boga-motion-none { animation-name: none; }
.boga-animate-in.boga-motion-fade { animation-name: boga-fade-in; }
.boga-animate-out.boga-motion-fade { animation-name: boga-fade-out; }
.boga-animate-in.boga-motion-scale-fade { animation-name: boga-scale-in; }
.boga-animate-out.boga-motion-scale-fade { animation-name: boga-scale-out; }
.boga-animate-in.boga-motion-slide-up { animation-name: boga-slide-up-in; }
.boga-animate-out.boga-motion-slide-up { animation-name: boga-slide-up-out; }
.boga-animate-in.boga-motion-slide-down { animation-name: boga-slide-down-in; }
.boga-animate-out.boga-motion-slide-down { animation-name: boga-slide-down-out; }
.boga-animate-in.boga-motion-slide-left { animation-name: boga-slide-left-in; }
.boga-animate-out.boga-motion-slide-left { animation-name: boga-slide-left-out; }
.boga-animate-in.boga-motion-slide-right { animation-name: boga-slide-right-in; }
.boga-animate-out.boga-motion-slide-right { animation-name: boga-slide-right-out; }

@keyframes boga-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes boga-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes boga-scale-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes boga-scale-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.96); } }
@keyframes boga-slide-up-in { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes boga-slide-up-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }
@keyframes boga-slide-down-in { from { opacity: 0; transform: translateY(-34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes boga-slide-down-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(34px); } }
@keyframes boga-slide-left-in { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes boga-slide-left-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-34px); } }
@keyframes boga-slide-right-in { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes boga-slide-right-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(34px); } }

.boga-initial-before-fade .boga-popup-scene { animation: boga-fade-in 700ms ease both; }
.boga-initial-reveal-grow .boga-popup-after { animation: boga-reveal-grow 760ms cubic-bezier(.2, .7, .2, 1) both; }
@keyframes boga-reveal-grow { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 767px) {
  .boga-popup-widget { --boga-edge-gap: 12px; }
  .boga-popup-overlay { padding: var(--boga-edge-gap); }
  .boga-popup-dialog { width: min(var(--boga-popup-width), calc(100vw - 24px)); max-height: calc(100vh - 24px); }
  .boga-popup-stage { min-height: 220px; }
  .boga-popup-topbar { padding: 14px 14px 34px; }
  .boga-popup-caption { left: 14px; bottom: 14px; max-width: 74%; }
  .boga-popup-heading { font-size: clamp(23px, 8vw, 34px); }
  .boga-instruction-desktop { display: none; }
  .boga-instruction-mobile { display: inline; }
  .boga-popup-footer { padding: 13px 14px 14px; }
  .boga-popup-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .boga-popup-button, .boga-popup-contact { width: 100%; min-width: 0; }
}

@media (max-width: 420px) {
  .boga-popup-actions { grid-template-columns: 1fr; }
  .boga-popup-instruction { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .boga-animate-in,
  .boga-animate-out,
  .boga-initial-before-fade .boga-popup-scene,
  .boga-initial-reveal-grow .boga-popup-after {
    animation: none !important;
  }

  .boga-popup-actions,
  .boga-popup-button,
  .boga-popup-contact {
    transition: none !important;
  }
}
