
:root {
  --bj-bg:        #161a17;
  --bj-panel:     #2E3A33;
  --bj-forest:    #4B5A4A;
  --bj-purple-d:  #6A4A78;
  --bj-purple:    #8C5FA3;
  --bj-lavender:  #B7A8C9;
  --bj-crimson-d: #3A2A2E;
  --bj-crimson:   #5C2F3A;
  --bj-tan:       #A38F78;
  --bj-cream:     #CFC6B4;

  /* Shared component tokens */
  --bg:               var(--bj-bg);
  --text:             var(--bj-cream);
  --ornament-border-color: rgba(140, 95, 163, 0.32);
  --ornament-corner-color: rgba(140, 95, 163, 0.55);
  --ornament-bg:      rgba(26, 20, 32, 0.72);
  --btn-bg:           #6A4A78;
  --btn-hover:        #8C5FA3;
  --btn-color:        #CFC6B4;
  --form-status-color: rgba(183, 168, 201, 0.82);
  --textarea-focus-ring: rgba(140, 95, 163, 0.22);
}

/* ── Body ─────────────────────────────────── */
body { background: var(--bj-bg); color: var(--bj-cream); }

/* ══════════════════════════════════════
  ENTRY EFFECT — soft witch-magic glow
  A violet radial glow blooms from the
  centre of the screen, gently expands,
  and dissolves — no hard veil, just a
  soft breath of the forest witch.
══════════════════════════════════════ */
.bj-entry-glow {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 50% 45%,
    #8c5fa398                    0%,
    rgba(140, 95, 163, 0.32)    38%,
    transparent                  68%);
  filter: blur(22px);
  animation: bjEntryGlow 2.6s ease-out 0.15s both;
}

@keyframes bjEntryGlow {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* ── Will-o-wisp canvas (full page, behind everything) */
#bj-wisps {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Landing ──────────────────────────────── */
.bj-landing {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bj-bg);
  padding-top: 64px;
}

/* Slowly rotating ritual ring */
.bj-ritual-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(82vmin, 560px);
  height: min(82vmin, 560px);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: bjRingRotate 58s linear 1.0s infinite, bjRingAppear 0.9s ease 1.0s both;
}

@keyframes bjRingRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bjRingAppear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bj-ring-svg { width: 100%; height: 100%; }

/* Landing content */
.bj-landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 12px;
}


/* Animated letter-drop title */
.bj-landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3rem, 10vw + 0.5rem, 9.5rem);
  line-height: 1;
  color: var(--bj-lavender);
  letter-spacing: 0.05em;
  text-shadow:
    0 0 50px rgba(140, 95, 163, 0.55),
    0 0 110px rgba(106, 74, 120, 0.30),
    0 4px 30px rgba(0, 0, 0, 0.85);
  margin: 0;
}

.bj-c {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px) scale(0.80);
  animation: bjCharRise 0.75s cubic-bezier(0.12, 0.88, 0.24, 1) forwards;
  animation-delay: calc(2.20s + var(--i) * 0.08s);
}

@keyframes bjCharRise {
  0%   { opacity: 0; transform: translateY(28px) scale(0.80); filter: blur(8px); }
  60%  { filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.bj-space { display: inline-block; width: 0.30em; }

.bj-landing-tagline {
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  letter-spacing: 0.12em;
  color: var(--bj-tan);
  opacity: 0;
  animation: bjFadeIn 0.8s ease 3.0s both;
  margin: 0;
}

@keyframes bjFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.92; }
}

/* Decorative separator */
.bj-landing-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 290px;
  max-width: 90vw;
  opacity: 0;
  animation: bjFadeIn 0.8s ease 3.15s both;
}

.bj-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(140, 95, 163, 0.42), transparent);
}

.bj-sep-eye {
  font-size: 1.35rem;
  color: var(--bj-purple);
  animation: bjEyePulse 2.8s ease-in-out infinite;
}

@keyframes bjEyePulse {
  0%, 100% { opacity: 0.45; text-shadow: none; }
  50%       { opacity: 1;   text-shadow: 0 0 18px rgba(140, 95, 163, 0.85); }
}

/* Enter CTA */
.bj-enter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 34px;
  border: 1px solid rgba(140, 95, 163, 0.42);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.12em;
  color: var(--bj-lavender);
  background: rgba(106, 74, 120, 0.10);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: bjFadeIn 0.8s ease 3.40s both;
}

.bj-enter-btn:hover {
  background: rgba(140, 95, 163, 0.22);
  border-color: rgba(140, 95, 163, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(106, 74, 120, 0.32);
}

/* Atmospheric fog in landing */
.bj-landing-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 38% at 18% 68%, rgba(53, 70, 60, 0.5) 0%, transparent 65%),
    radial-gradient(ellipse 52% 32% at 82% 32%, rgba(85, 59, 66, 0.4) 0%, transparent 65%);
  animation: bjAtmosShift 22s ease-in-out infinite alternate;
}

@keyframes bjAtmosShift {
  0%   { opacity: 0.72; transform: scale(1) translateX(0); }
  50%  { opacity: 1;    transform: scale(1.04) translateX(-14px); }
  100% { opacity: 0.80; transform: scale(1) translateX(12px); }
}

/* ── Shared section helpers ───────────────── */
.bj-h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw + 0.4rem, 3rem);
  color: var(--bj-cream);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  margin: 0;
}

.bj-p {
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.12rem);
  line-height: 1.78;
  color: rgba(207, 198, 180, 0.88);
  margin: 0;
}

.bj-muted { 
  color: rgba(207, 198, 180, 0.60) !important;
}

/* Reveal-on-scroll */
.bj-appear {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity  0.85s ease calc(var(--ad, 0ms)),
    transform 0.85s cubic-bezier(0.12, 0.88, 0.24, 1) calc(var(--ad, 0ms)),
    filter    0.85s ease calc(var(--ad, 0ms));
}

.bj-appear.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section: About ───────────────────────── */
.bj-about {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.bj-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.bj-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Attribute pills */
.bj-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bj-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(75, 90, 74, 0.42);
  border-radius: 999px;
  background: rgba(46, 58, 51, 0.35);
  font-family: "Cinzel", serif;
  font-size: 0.80rem;
  color: var(--bj-cream);
  letter-spacing: 0.04em;
}

/* Magic mirror quote card */
.bj-mirror-wrap {
  position: relative;
}

/* Top-left corner accent */
.bj-mirror-wrap::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(140, 95, 163, 0.65);
  border-left: 1px solid rgba(140, 95, 163, 0.65);
  pointer-events: none;
  z-index: 1;
}

/* Bottom-right corner accent */
.bj-mirror-wrap::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 36px;
  height: 36px;
  border-bottom: 1px solid rgba(140, 95, 163, 0.65);
  border-right: 1px solid rgba(140, 95, 163, 0.65);
  pointer-events: none;
  z-index: 1;
}

.bj-mirror {
  background: transparent;
  border: 1px solid rgba(140, 95, 163, 0.24);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  overflow: visible;
}

.bj-mirror-quote {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.4vw + 0.35rem, 1.22rem);
  line-height: 1.75;
  color: var(--bj-lavender);
  font-style: italic;
  margin: 0 0 14px;
}

.bj-mirror-cite {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  color: var(--bj-purple);
  letter-spacing: 0.07em;
}

/* ── Section: Powers ──────────────────────── */
.bj-powers {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(26, 20, 32, 0.40) 40%,
    transparent 100%);
}

.bj-powers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bj-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.bj-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bj-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(140, 95, 163, 0.22);
  background: transparent;
  padding: 30px 20px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 95, 163, 0.52);
  box-shadow: 0 12px 40px rgba(106, 74, 120, 0.28);
}

/* Top-left corner accent */
.bj-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(140, 95, 163, 0.55);
  border-left: 1px solid rgba(140, 95, 163, 0.55);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner accent */
.bj-card::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid rgba(140, 95, 163, 0.55);
  border-right: 1px solid rgba(140, 95, 163, 0.55);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.bj-card:hover::before,
.bj-card:hover::after {
  border-color: var(--bj-purple);
}

.bj-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(140, 95, 163, 0.42));
}

.bj-card-name {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 1.1vw + 0.15rem, 0.98rem);
  color: var(--bj-lavender);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.bj-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(207, 198, 180, 0.62);
}

/* ── Section: Legends ─────────────────────── */
.bj-legends {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.bj-legends-inner {
  max-width: 900px;
  margin: 0 auto;
}

.bj-stories {
  display: flex;
  flex-direction: column;
}

.bj-story {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(75, 90, 74, 0.22);
  align-items: start;
}

.bj-story:last-child { border-bottom: none; }

.bj-story-num {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: rgba(140, 95, 163, 0.28);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  user-select: none;
}

.bj-story-content {
  padding-left: 18px;
  border-left: 2px solid rgba(92, 47, 58, 0.48);
  transition: border-color 0.3s ease;
}

.bj-story:hover .bj-story-content {
  border-left-color: var(--bj-purple);
}

.bj-story-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.4rem);
  color: var(--bj-cream);
  letter-spacing: 0.04em;
  margin: 0;
  margin-bottom: 12px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .bj-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bj-about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bj-story {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .bj-story-num { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .bj-landing-title { letter-spacing: 0.02em; }
  .bj-about, .bj-powers, .bj-legends { padding: 80px 16px 60px; }
}

@media (max-width: 400px) {
  .bj-cards { grid-template-columns: 1fr; }
}

/* -------------------------
NAVBAR CUSTOM
------------------------- */
.navbar {
  background-color: rgba(17, 21, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--bj-cream);
}

.navbar.scrolled { 
  background-color: rgba(17, 21, 19, 0.4); }

.nav-links a:hover {
  background-color: rgba(106, 74, 120, 0.52);
}

@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(26, 31, 28, 0.97);
    border-bottom: 1px solid rgba(140, 95, 163, 0.15);
  }
}

/* -------------------------
CONTACT CUSTOM
-------------------------- */
.kontakty {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(42, 26, 38, 0.38) 40%,
    rgba(26, 20, 32, 0.65) 100%);
}

.ornament-frame {
  animation: bjPurpleGlow 5.5s ease-in-out infinite;
}

@keyframes bjPurpleGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(106, 74, 120, 0.16), inset 0 0 8px rgba(106, 74, 120, 0.08); }
  50%       { box-shadow: 0 0 32px rgba(140, 95, 163, 0.42), inset 0 0 18px rgba(140, 95, 163, 0.20); }
}