/* Josh Butcher cinematic portfolio — scoped to the plugin so the host theme stays intact. */

.jbc,
.jbc-preloader,
.jbc-nav,
.jbc-progress,
.jbc-cursor,
.jbc-cursor-ring,
.jbc-toast,
.jbc-modal,
.jbc-grain {
  --jbc-void: #0A0A0F;
  --jbc-void-2: #101018;
  --jbc-purple: #8B5CF6;
  --jbc-purple-deep: #5B21B6;
  --jbc-violet: #A78BFA;
  --jbc-magenta: #C084FC;
  --jbc-white: #F5F3FF;
  --jbc-muted: #8E8CA3;
  --jbc-glass: rgba(255, 255, 255, 0.04);
  --jbc-glass-border: rgba(139, 92, 246, 0.25);
  --jbc-grad: linear-gradient(135deg, var(--jbc-purple), var(--jbc-magenta));
  --jbc-glow: 0 0 40px rgba(139, 92, 246, 0.25), 0 0 80px rgba(91, 33, 182, 0.15);
  --jbc-display: "Clash Display", "Inter", sans-serif;
  --jbc-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --jbc-mono: "JetBrains Mono", ui-monospace, monospace;
  --jbc-ease: cubic-bezier(0.19, 1, 0.22, 1);
}

.jbc,
.jbc * { box-sizing: border-box; }

.jbc {
  position: relative;
  background: var(--jbc-void);
  color: var(--jbc-white);
  font-family: var(--jbc-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.jbc h1,
.jbc h2,
.jbc h3,
.jbc p,
.jbc a,
.jbc button,
.jbc input,
.jbc textarea,
.jbc label {
  font-family: var(--jbc-body);
  margin: 0;
  padding: 0;
}

.jbc a { text-decoration: none; color: inherit; }
.jbc img { max-width: 100%; display: block; }
.jbc ::selection { background: rgba(139, 92, 246, 0.4); color: var(--jbc-white); }

.jbc-mono {
  font-family: var(--jbc-mono) !important;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.jbc-grad {
  font-style: normal !important;
  background: var(--jbc-grad) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Preloader */
.jbc-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--jbc-void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.7s var(--jbc-ease), visibility 0.7s;
}
.jbc-preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.jbc-preloader__mark {
  font-family: var(--jbc-display);
  font-weight: 700;
  font-size: 3rem;
  color: var(--jbc-white);
  animation: jbc-pulse 1.6s ease-in-out infinite;
}
.jbc-preloader__mark span { color: var(--jbc-purple); }
.jbc-preloader__count {
  font-family: var(--jbc-mono);
  font-size: 0.85rem;
  color: var(--jbc-muted);
  letter-spacing: 0.2em;
}
@keyframes jbc-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { text-shadow: 0 0 50px rgba(139, 92, 246, 0.8); }
}

.jbc-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100020;
  width: 100%;
  height: 2px;
  background: var(--jbc-grad);
  transform-origin: left center;
  transform: scaleX(0);
}

.jbc-grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: jbc-grain 0.8s steps(4) infinite;
}
@keyframes jbc-grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

.jbc-cursor,
.jbc-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100040;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.jbc-cursor {
  width: 8px;
  height: 8px;
  background: var(--jbc-violet);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.9);
  margin: -4px 0 0 -4px;
}
.jbc-cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, border-color 0.25s;
}
.jbc-cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(167, 139, 250, 0.8);
}
.jbc-cursor-ring.is-grab {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--jbc-violet);
}
@media (hover: none), (pointer: coarse) {
  .jbc-cursor, .jbc-cursor-ring { display: none; }
}

/* Nav */
.jbc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(10, 10, 15, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  transform: translateY(-110%);
  transition: transform 0.6s var(--jbc-ease);
}
.jbc-nav.is-visible { transform: translateY(0); }
body.admin-bar .jbc-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .jbc-nav { top: 46px; }
}
.jbc-nav__logo {
  font-family: var(--jbc-display) !important;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--jbc-white) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.jbc-nav__logo span { color: var(--jbc-purple); }
.jbc-nav__logo img { height: 36px; width: auto; }

/* Buttons */
.jbc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-family: var(--jbc-body) !important;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.35s, background 0.35s, border-color 0.35s;
  will-change: transform;
}
.jbc-btn--primary {
  background: var(--jbc-grad) !important;
  color: #fff !important;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.35);
}
.jbc-btn--primary:hover { box-shadow: 0 0 45px rgba(139, 92, 246, 0.65), 0 0 90px rgba(91, 33, 182, 0.3); }
.jbc-btn--ghost {
  background: transparent !important;
  color: var(--jbc-white) !important;
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.jbc-btn--ghost:hover { border-color: var(--jbc-violet); background: rgba(139, 92, 246, 0.08) !important; }
.jbc-btn--sm { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.jbc-btn--lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; width: 100%; }
.jbc-btn__arrow { transition: transform 0.3s var(--jbc-ease); }
.jbc-btn:hover .jbc-btn__arrow { transform: translateX(4px); }

.jbc-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--jbc-mono) !important;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--jbc-violet) !important;
  margin-bottom: 1.5rem;
}
.jbc-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jbc-purple);
  box-shadow: 0 0 10px var(--jbc-purple);
  animation: jbc-dot 2s ease-in-out infinite;
  flex: none;
}
@keyframes jbc-dot { 50% { box-shadow: 0 0 18px var(--jbc-violet); } }

.jbc-section-title,
.jbc-hero__title,
.jbc-scene__title,
.jbc-contact__title,
.jbc-mission__text {
  font-family: var(--jbc-display) !important;
  font-weight: 600;
  color: var(--jbc-white) !important;
  letter-spacing: -0.02em;
}

.jbc-section-title {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}
.jbc-card {
  background: var(--jbc-glass);
  border: 1px solid var(--jbc-glass-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.jbc-line-mask { display: block; overflow: hidden; }
.jbc-line { display: block; }

.jbc-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.jbc-orb--hero {
  width: 55vw;
  height: 55vw;
  max-width: 750px;
  max-height: 750px;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.35), transparent 65%);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation: jbc-orb 14s ease-in-out infinite alternate;
}
.jbc-orb--mission {
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.28), transparent 65%);
  bottom: -10%;
  right: -10%;
  animation: jbc-orb 18s ease-in-out infinite alternate;
}
.jbc-orb--contact {
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 60%);
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  animation: jbc-orb 12s ease-in-out infinite alternate;
}
@keyframes jbc-orb {
  from { translate: 0 0; scale: 1; }
  to { translate: 4% 6%; scale: 1.08; }
}

/* Scenes */
.jbc-scene { position: relative; }
.jbc-scene__sticky {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--jbc-void);
}
.jbc-scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jbc-scene__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(10, 10, 15, 0.75) 100%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.5), transparent 18%, transparent 82%, rgba(10, 10, 15, 0.85));
  pointer-events: none;
}
.jbc-scene__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  padding: 0 1.5rem;
}
.jbc-scene__title {
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1.02;
  text-shadow: 0 4px 40px rgba(10, 10, 15, 0.8);
}

/* Hero */
.jbc-hero {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
}
.jbc-hero__eyebrow { justify-content: center; }
.jbc-hero__title {
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.98;
  position: relative;
  z-index: 1;
}
.jbc-hero__sub {
  margin-top: 1.75rem;
  max-width: 34rem;
  color: var(--jbc-muted) !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  position: relative;
  z-index: 1;
}
.jbc-hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
  position: relative;
  z-index: 1;
}
.jbc-hero__scrollcue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--jbc-muted);
}
.jbc-hero__scrollline {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, transparent, var(--jbc-violet));
  animation: jbc-scroll 1.8s ease-in-out infinite;
}
@keyframes jbc-scroll {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Stats */
.jbc-stats {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  background: var(--jbc-void-2);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}
.jbc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.jbc-stat { text-align: center; position: relative; }
.jbc-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.3), transparent);
}
.jbc-stat__num {
  font-family: var(--jbc-display) !important;
  font-weight: 700;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 1;
  background: var(--jbc-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
.jbc-stat__label {
  margin-top: 0.9rem;
  color: var(--jbc-muted) !important;
  font-size: 0.72rem !important;
}

/* Mission */
.jbc-mission {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) clamp(1.25rem, 6vw, 4rem);
  overflow: hidden;
  background: var(--jbc-void);
}
.jbc-mission__text {
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 60rem;
  position: relative;
  z-index: 1;
}
.jbc-word { opacity: 0.15; }
.jbc-mission__horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(91, 33, 182, 0.25), transparent 70%);
  opacity: 0;
  pointer-events: none;
}

/* Work */
.jbc-work {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  background: var(--jbc-void);
}
.jbc-work__hint { color: var(--jbc-muted) !important; margin-bottom: 2.5rem; }
.jbc-browser {
  border-radius: 24px;
  border: 1px solid var(--jbc-glass-border);
  background: rgba(16, 16, 24, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--jbc-glow);
  overflow: hidden;
  text-align: left;
}
.jbc-browser__chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.3rem;
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}
.jbc-browser__dots { display: flex; gap: 0.45rem; }
.jbc-browser__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.35);
}
.jbc-browser__dots span:nth-child(1) { background: #C084FC; box-shadow: 0 0 8px rgba(192, 132, 252, 0.6); }
.jbc-browser__dots span:nth-child(2) { background: #8B5CF6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.6); }
.jbc-browser__dots span:nth-child(3) { background: #5B21B6; box-shadow: 0 0 8px rgba(91, 33, 182, 0.6); }
.jbc-browser__url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  color: var(--jbc-muted);
  font-size: 0.72rem !important;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}
.jbc-browser__spacer { width: 60px; }
.jbc-browser__viewport {
  position: relative;
  height: clamp(420px, 62vh, 640px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(91, 33, 182, 0.15), transparent 60%),
    radial-gradient(rgba(139, 92, 246, 0.07) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  touch-action: none;
}
.jbc-work-card {
  position: absolute;
  width: clamp(180px, 22vw, 280px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  cursor: grab;
  user-select: none;
  background: #120c1c;
  will-change: transform;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.jbc-work-card:hover,
.jbc-work-card:focus-visible {
  border-color: var(--jbc-violet);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.45), 0 14px 50px rgba(0, 0, 0, 0.6);
  outline: none;
}
.jbc-work-card.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.7), 0 24px 70px rgba(0, 0, 0, 0.7);
}
.jbc-work-card img { width: 100%; height: auto; pointer-events: none; }
.jbc-work-card__ph {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #5B21B6, #C084FC);
}
.jbc-work-card__chip {
  position: absolute;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.35rem 0.8rem;
  background: rgba(10, 10, 15, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 999px;
  font-size: 0.62rem !important;
  color: var(--jbc-white);
  pointer-events: none;
}

/* Modal */
.jbc-modal { position: fixed; inset: 0; z-index: 100050; }
.jbc-modal[hidden] { display: none !important; }
.jbc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.75);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s;
}
.jbc-modal.is-open .jbc-modal__backdrop { opacity: 1; }
.jbc-modal__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(680px, 92vw);
  max-height: 88vh;
  max-height: 88svh;
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 24, 0.92);
  border: 1px solid var(--jbc-glass-border);
  border-radius: 28px;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s var(--jbc-ease), transform 0.35s var(--jbc-ease);
  box-shadow: var(--jbc-glow), 0 40px 100px rgba(0, 0, 0, 0.7);
}
.jbc-modal.is-open .jbc-modal__card { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.jbc-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(10, 10, 15, 0.7);
  color: var(--jbc-white);
  font-size: 0.9rem;
  cursor: pointer;
}
.jbc-modal__close:hover { background: rgba(139, 92, 246, 0.3); box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.jbc-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 2.5rem 1.2rem 0.3rem;
  text-align: left;
}
.jbc-modal__head h3 {
  font-family: var(--jbc-display) !important;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--jbc-white) !important;
}
.jbc-modal__desc { color: var(--jbc-muted) !important; font-size: 0.9rem; }
.jbc-modal__frame {
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.jbc-modal__scroll {
  height: 100%;
  max-height: 62vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--jbc-purple) transparent;
}
.jbc-modal__scroll img { width: 100%; height: auto; }

/* Contact */
.jbc-contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 65%),
    var(--jbc-void);
}
.jbc-contact__title {
  font-weight: 700;
  font-size: clamp(2.6rem, 7.5vw, 7rem);
  line-height: 1.02;
  position: relative;
  z-index: 1;
}
.jbc-contact__sub {
  margin-top: 1.5rem;
  color: var(--jbc-muted) !important;
  max-width: 32rem;
  position: relative;
  z-index: 1;
}
.jbc-contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  width: min(640px, 100%);
  margin-top: 3rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  position: relative;
  z-index: 1;
  text-align: left;
}
.jbc-field { display: flex; flex-direction: column; gap: 0.5rem; }
.jbc-field--full { grid-column: 1 / -1; }
.jbc-field label {
  font-family: var(--jbc-mono) !important;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jbc-violet) !important;
}
.jbc-field input,
.jbc-field textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(139, 92, 246, 0.25) !important;
  border-radius: 14px !important;
  padding: 0.9rem 1.1rem !important;
  color: var(--jbc-white) !important;
  font-family: var(--jbc-body) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  width: 100%;
  resize: vertical;
  box-shadow: none !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.jbc-field input:focus,
.jbc-field textarea:focus {
  outline: none;
  border-color: var(--jbc-violet) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25) !important;
}
.jbc-field input::placeholder,
.jbc-field textarea::placeholder { color: rgba(142, 140, 163, 0.6); }
.jbc-contact__form .jbc-btn--lg { grid-column: 1 / -1; margin-top: 0.4rem; }
.jbc-contact__direct {
  margin-top: 2rem;
  color: var(--jbc-muted) !important;
  position: relative;
  z-index: 1;
}
.jbc-contact__email {
  background: none;
  border: none;
  border-bottom: 1px dashed rgba(167, 139, 250, 0.5);
  font-family: var(--jbc-mono) !important;
  font-size: 0.95rem;
  color: var(--jbc-violet) !important;
  cursor: pointer;
  padding: 0 0 2px;
}
.jbc-contact__email:hover { color: var(--jbc-magenta) !important; text-shadow: 0 0 16px rgba(192, 132, 252, 0.6); }
.jbc-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}
.jbc-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 200%);
  padding: 0.8rem 1.6rem;
  background: rgba(16, 16, 24, 0.95);
  border: 1px solid var(--jbc-glass-border);
  border-radius: 999px;
  color: var(--jbc-violet);
  z-index: 100060;
  box-shadow: var(--jbc-glow);
  transition: transform 0.5s var(--jbc-ease);
  pointer-events: none;
}
.jbc-toast.is-visible { transform: translate(-50%, 0); }

/* Footer */
.jbc-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.2rem clamp(1.25rem, 5vw, 4rem) 2.6rem;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  color: var(--jbc-muted);
  font-size: 0.85rem;
  background: var(--jbc-void);
}
.jbc-footer__left { font-size: 0.65rem !important; }
.jbc-footer__right { display: flex; align-items: center; gap: 1rem; font-size: 0.7rem !important; }
.jbc-footer__top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: transparent;
  color: var(--jbc-violet);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.jbc-footer__top:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}
.jbc-footer__glowline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--jbc-grad);
  opacity: 0.7;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

.jbc-reveal { opacity: 0; transform: translateY(40px); }

.jbc-editor-note {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  margin: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1a1028;
  color: #fff;
  border: 1px solid #8B5CF6;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

/* Editor and reduced motion stay readable. */
.jbc.is-editor .jbc-preloader,
.jbc.is-editor .jbc-progress,
.jbc.is-editor .jbc-cursor,
.jbc.is-editor .jbc-cursor-ring { display: none !important; }
.jbc.is-editor .jbc-hero,
.jbc.is-editor .jbc-scene__caption { opacity: 1 !important; }
.jbc.is-editor .jbc-scene__caption { transform: none !important; }
.jbc.is-editor .jbc-reveal { opacity: 1 !important; transform: none !important; }
.jbc.is-editor .jbc-word { opacity: 1 !important; }
.jbc-full.is-editor .jbc-nav {
  position: absolute;
  transform: none;
}
.jbc-chrome.is-editor .jbc-nav {
  position: relative;
  transform: none;
}
.jbc-chrome:not(.is-editor) { height: 0; min-height: 0; overflow: visible; }

html.jbc-reduced .jbc-hero,
html.jbc-reduced .jbc-scene__caption,
html.jbc-reduced .jbc-reveal { opacity: 1 !important; transform: none !important; }
html.jbc-reduced .jbc-word { opacity: 1 !important; }
html.jbc-reduced .jbc-nav { transform: none; }
html.jbc-reduced .jbc-grain,
html.jbc-reduced .jbc-orb,
html.jbc-reduced .jbc-eyebrow__dot,
html.jbc-reduced .jbc-hero__scrollline,
html.jbc-reduced .jbc-preloader__mark { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .jbc-hero,
  .jbc-scene__caption,
  .jbc-reveal { opacity: 1 !important; transform: none !important; }
  .jbc-word { opacity: 1 !important; }
  .jbc-nav { transform: none; }
  .jbc-grain, .jbc-orb, .jbc-eyebrow__dot, .jbc-hero__scrollline, .jbc-preloader__mark { animation: none !important; }
}

@media (max-width: 768px) {
  .jbc-stats__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .jbc-stat:nth-child(even)::after { display: none; }
  .jbc-contact__form { grid-template-columns: 1fr; }
  .jbc-footer { flex-direction: column; text-align: center; }
  .jbc-browser__viewport {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 2rem 1.25rem;
    height: auto;
    touch-action: pan-x;
  }
  .jbc-work-card {
    position: relative !important;
    transform: none !important;
    flex: 0 0 78%;
    scroll-snap-align: center;
    cursor: pointer;
  }
  .jbc-hero__title { font-size: clamp(2.6rem, 12vw, 4.2rem); }
}

/* Break the widget out of a boxed Elementor column without touching other widgets. */
.elementor-widget-jb_fullpage,
.elementor-widget-jb_hero,
.elementor-widget-jb_stats,
.elementor-widget-jb_mission,
.elementor-widget-jb_scene,
.elementor-widget-jb_work,
.elementor-widget-jb_contact,
.elementor-widget-jb_footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
}
.elementor-widget-jb_fullpage > .elementor-widget-container,
.elementor-widget-jb_hero > .elementor-widget-container,
.elementor-widget-jb_stats > .elementor-widget-container,
.elementor-widget-jb_mission > .elementor-widget-container,
.elementor-widget-jb_scene > .elementor-widget-container,
.elementor-widget-jb_work > .elementor-widget-container,
.elementor-widget-jb_contact > .elementor-widget-container,
.elementor-widget-jb_footer > .elementor-widget-container,
.elementor-widget-jb_chrome > .elementor-widget-container {
  margin: 0;
  padding: 0;
}
.elementor-widget-jb_chrome { margin: 0 !important; }

body.jbc-active { background: #0A0A0F; overflow-x: clip; }

.e-con:has(.jbc),
.elementor-section:has(.jbc),
.elementor-column:has(.jbc),
.elementor-widget-wrap:has(.jbc),
.elementor-widget-container:has(.jbc) {
  overflow: visible !important;
}
