/* ============================================================
   JZ Creates — site-wide styles (every front-end page, old and 2026)
   Loaded by wp-content/novamira-sandbox/jzc-site.php, after the page's
   own stylesheets. The homepage links styles.css from inside its body,
   so it loads AFTER this file; rules that restyle homepage elements are
   prefixed with `html` to win on specificity rather than order.
   Colours are literal here because the old pages have no 2026 tokens.
   ============================================================ */

/* ---------- smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ============================================================
   BOOKING OVERLAY — the discovery-call calendar over the current page
   ============================================================ */
html.jzbook-open, html.jzbook-open body { overflow: hidden; }
.jzbook {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.jzbook.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
.jzbook__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.jzbook__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  height: min(900px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: #0c0c0e;
  border: 1px solid rgba(246, 243, 239, 0.1);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px -20px rgba(214, 0, 237, 0.35);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.jzbook.is-open .jzbook__panel { transform: none; }
.jzbook__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(246, 243, 239, 0.08);
  background: linear-gradient(92deg, rgba(255, 36, 56, 0.08), rgba(214, 0, 237, 0.06));
}
.jzbook__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #f6f3ef;
}
.jzbook__close {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 239, 0.18);
  background: rgba(246, 243, 239, 0.04);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}
.jzbook__close::before,
.jzbook__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: #f6f3ef;
}
.jzbook__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.jzbook__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.jzbook__close:hover { border-color: rgba(214, 0, 237, 0.6); transform: rotate(90deg); }
.jzbook__close:focus-visible { outline: 2px solid #ff2438; outline-offset: 2px; }
.jzbook__body { position: relative; flex: 1; background: #fff; }
.jzbook__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.jzbook.is-loaded .jzbook__frame { opacity: 1; }
.jzbook__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 36, 56, 0.2);
  border-top-color: #ff2438;
  animation: jzbookSpin 0.8s linear infinite;
}
.jzbook.is-loaded .jzbook__spin { display: none; }
@keyframes jzbookSpin { to { transform: rotate(360deg); } }
@media (max-width: 767px) {
  .jzbook { padding: 0; }
  .jzbook__panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .jzbook__bar { padding: 0.7rem 0.8rem 0.7rem 1.2rem; }
}

/* ============================================================
   MOBILE MENU — social row under the call-to-action
   ============================================================ */
.menu__social {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.4rem;
}
.jzp .menu__links .menu__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(246, 243, 239, 0.14);
  background: rgba(246, 243, 239, 0.03);
  color: #c0bbb2;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.jzp .menu__links .menu__social a:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(92deg, #ff0000 0%, #d600ed 100%);
}

/* ============================================================
   PLAY BUTTONS — one style everywhere: the Studio page's solid
   red-to-magenta disc with a white triangle
   ============================================================ */
html .hero__play,
html .work__play,
html .phone__play,
html .ytcard__play,
html .jzc .vid1x1__play {
  border: 0;
  background: linear-gradient(92deg, #ff0000 0%, #d600ed 100%);
  box-shadow: 0 10px 40px rgba(255, 36, 56, 0.35);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html .hero__play::after,
html .work__play::after,
html .phone__play::after,
html .ytcard__play::after,
html .jzc .vid1x1__play::after { border-left-color: #fff; }
html .hero__video:hover .hero__play,
html .work__item:hover .work__play,
html .phone:hover .phone__play,
html .ytcard:hover .ytcard__play,
html .jzc .vid1x1:hover .vid1x1__play {
  background: linear-gradient(92deg, #ff0000 0%, #d600ed 100%);
  box-shadow: 0 14px 50px rgba(255, 36, 56, 0.5);
}

/* ============================================================
   HOMEPAGE — "View work" is a gradient button, not an underlined link
   ============================================================ */
html .work__view {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(92deg, #ff0000 0%, #d600ed 100%);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 28px rgba(255, 36, 56, 0.28);
  transition: transform 0.3s, box-shadow 0.3s;
}
html .work__view:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 36, 56, 0.45);
}
@media (max-width: 767px) {
  html .work__view { padding: 0.6rem 1.05rem; font-size: 0.64rem; }
}

/* ============================================================
   HOMEPAGE LOADER — the quote on a phone: bigger, exactly two lines
   (the break is a <br class="loader__br"> that only shows here)
   ============================================================ */
.loader__br { display: none; }
@media (max-width: 767px) {
  html .loader__quote {
    white-space: nowrap;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    line-height: 1.28;
    max-width: none;
  }
  .loader__br { display: inline; }
  html .loader__attr { font-size: 0.85rem; margin-top: 0.6rem; }
}
