
:root {
  --lj-bg:      #060d07;
  --lj-panel:   #0c1a0e;
  --lj-deep:    #142a17;
  --lj-forest:  #244d28;
  --lj-moss:    #3e7a44;
  --lj-lichen:  #6bb872;
  --lj-fog:     #a8d4ab;
  --lj-amber:   #c8a23a;

  /* Shared component tokens */
  --bg:                    var(--lj-bg);
  --text:                  var(--lj-fog);
  --ornament-border-color: rgba(107, 184, 114, 0.28);
  --ornament-corner-color: rgba(107, 184, 114, 0.52);
  --ornament-bg:           rgba(6, 13, 7, 0.80);
  --btn-bg:                #244d28;
  --btn-hover:             #3e7a44;
  --btn-color:             #a8d4ab;
  --form-status-color:     rgba(168, 212, 171, 0.85);
  --textarea-focus-ring:   rgba(107, 184, 114, 0.22);
}

/* ── Body ─────────────────────────────────── */
body { background: var(--lj-bg); color: var(--lj-fog); }

/* ══════════════════════════════════════
   WOW OPENING EFFECT — The Watcher's Gaze
   The background blurs while two amber
   eyes open, light up, then close and
   disappear — the whole sequence ≤ 3 s.
══════════════════════════════════════ */
.lj-forest-veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5, 12, 6, 0.22);
  pointer-events: none;
  animation: ljVeilClear 0.15s ease-out 1.8s both;
}

@keyframes ljVeilClear {
  from { opacity: 1; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  to   { opacity: 0; backdrop-filter: blur(0px);  -webkit-backdrop-filter: blur(0px); visibility: hidden; }
}

/* Eyes container — centered in the veil */
.lj-veil-eyes {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 90px;
}

/* Individual eerie eye */
.lj-veil-eye {
  position: relative;
  width: 70px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse 62% 52% at 50% 50%,
    #fffbe8 0%,
    #c8a23a 20%,
    #4a8f50 46%,
    rgba(10, 22, 12, 0.55) 72%,
    transparent 100%);
  box-shadow:
    0 0 18px rgba(200, 162, 58, 0.90),
    0 0 46px rgba(74, 143, 80, 0.65),
    0 0 80px rgba(74, 143, 80, 0.28);
  transform: scaleY(0);
  opacity: 0;
  animation:
    ljEyeOpen  0.40s cubic-bezier(0.2, 0.8, 0.3, 1)    0.20s both,
    ljEyeGlow  0.80s ease-in-out                         0.60s 1 both,
    ljEyeClose 0.40s cubic-bezier(0.7, 0.1, 0.9, 0.2)  1.40s forwards;
}

/* Vertical slit pupil */
.lj-veil-eye::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 112%;
  background: rgba(2, 6, 3, 0.90);
  border-radius: 50%;
}

@keyframes ljEyeOpen {
  0%   { transform: scaleY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes ljEyeGlow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(200, 162, 58, 0.90),
      0 0 46px rgba(74, 143, 80, 0.65);
  }
  50% {
    box-shadow:
      0 0 28px rgba(200, 162, 58, 1.0),
      0 0 68px rgba(74, 143, 80, 0.88),
      0 0 110px rgba(74, 143, 80, 0.38);
  }
}

@keyframes ljEyeClose {
  0%   { transform: scaleY(1); opacity: 1; }
  70%  { opacity: 0.6; }
  100% { transform: scaleY(0); opacity: 0; }
}

/* ── Spores canvas (full page, behind everything) ── */
#lj-spores {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Landing ──────────────────────────────── */
.lj-landing {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--lj-bg);
  padding-top: 64px;
}

/* Landing content */
.lj-landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 12px;
}

/* ── Title: letters descend from darkness ──── */
.lj-landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.2rem, 11vw + 0.5rem, 10rem);
  line-height: 1;
  color: var(--lj-fog);
  letter-spacing: 0.12em;
  text-shadow:
    0 0 40px rgba(107, 184, 114, 0.52),
    0 0 90px rgba(62, 122, 68, 0.28),
    0 4px 30px rgba(0, 0, 0, 0.96);
  margin: 0;
}

.lj-c {
  display: inline-block;
  opacity: 0;
  transform: translateY(-22px) scale(1.10);
  animation: ljCharEmerge 0.68s cubic-bezier(0.12, 0.88, 0.24, 1) forwards;
  animation-delay: calc(1.95s + var(--i) * 0.08s);
}

@keyframes ljCharEmerge {
  0%   { opacity: 0; transform: translateY(-22px) scale(1.10); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.lj-landing-tagline {
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  letter-spacing: 0.14em;
  color: var(--lj-lichen);
  opacity: 0.90;
  margin: 0;
  /* hidden before veil clears, fades in afterwards */
  animation: ljTagReveal 0.60s ease 2.30s both;
}

@keyframes ljTagReveal {
  from { opacity: 0; }
  to   { opacity: 0.90; }
}

/* Decorative separator */
.lj-landing-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 260px;
  max-width: 90vw;
  animation: ljSepReveal 0.60s ease 2.42s both;
}

@keyframes ljSepReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lj-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(107, 184, 114, 0.38), transparent);
}

.lj-sep-rune {
  font-size: 1.15rem;
  color: var(--lj-lichen);
  animation: ljRunePulse 3.8s ease-in-out 2.42s infinite;
}

@keyframes ljRunePulse {
  0%, 100% { opacity: 0.32; text-shadow: none; }
  50%       { opacity: 1;   text-shadow: 0 0 16px rgba(107, 184, 114, 0.85); }
}

/* Enter CTA */
.lj-enter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 34px;
  border: 1px solid rgba(107, 184, 114, 0.32);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.12em;
  color: var(--lj-fog);
  background: rgba(36, 77, 40, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: ljBtnReveal 0.65s ease 2.55s both;
}

@keyframes ljBtnReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lj-enter-btn:hover {
  background: rgba(107, 184, 114, 0.16);
  border-color: rgba(107, 184, 114, 0.66);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(36, 77, 40, 0.40);
}

/* Forest fog atmospheric overlay in landing */
.lj-landing-fog {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 45% at 8% 82%, rgba(20, 42, 23, 0.68) 0%, transparent 62%),
    radial-gradient(ellipse 52% 38% at 92% 18%, rgba(36, 77, 40, 0.44) 0%, transparent 62%),
    radial-gradient(ellipse 42% 32% at 50% 96%, rgba(6, 13, 7, 0.72) 0%, transparent 58%);
  animation: ljFogDrift 34s ease-in-out infinite alternate;
}

@keyframes ljFogDrift {
  0%   { opacity: 0.62; transform: scale(1) translateX(0); }
  50%  { opacity: 1.00; transform: scale(1.04) translateX(-22px); }
  100% { opacity: 0.70; transform: scale(1) translateX(20px); }
}

/* ── Shared text helpers ──────────────────── */
.lj-p {
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.12rem);
  line-height: 1.82;
  color: rgba(168, 212, 171, 0.86);
  margin: 0;
}

/* Reveal-on-scroll stagger system */
.lj-appear {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(7px);
  transition:
    opacity   0.90s ease calc(var(--ad, 0ms)),
    transform 0.90s cubic-bezier(0.12, 0.88, 0.24, 1) calc(var(--ad, 0ms)),
    filter    0.90s ease calc(var(--ad, 0ms));
}

.lj-appear.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section: About ───────────────────────── */
.lj-about {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.lj-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.lj-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Attribute pills */
.lj-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.lj-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(107, 184, 114, 0.26);
  border-radius: 999px;
  background: rgba(20, 42, 23, 0.38);
  font-family: "Cinzel", serif;
  font-size: 0.80rem;
  color: var(--lj-fog);
  letter-spacing: 0.04em;
}

/* Hollow grove quote card */
.lj-hollow-wrap {
  position: relative;
}

/* Top-left corner accent */
.lj-hollow-wrap::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(107, 184, 114, 0.56);
  border-left: 1px solid rgba(107, 184, 114, 0.56);
  pointer-events: none;
  z-index: 1;
}

/* Bottom-right corner accent */
.lj-hollow-wrap::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 36px;
  height: 36px;
  border-bottom: 1px solid rgba(107, 184, 114, 0.56);
  border-right: 1px solid rgba(107, 184, 114, 0.56);
  pointer-events: none;
  z-index: 1;
}

.lj-hollow {
  background: transparent;
  border: 1px solid rgba(107, 184, 114, 0.18);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  overflow: visible;
}

.lj-hollow-quote {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.4vw + 0.35rem, 1.22rem);
  line-height: 1.80;
  color: var(--lj-fog);
  font-style: italic;
  margin: 0 0 14px;
}

.lj-hollow-cite {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  color: var(--lj-lichen);
  letter-spacing: 0.07em;
}

/* ── Section: Powers ──────────────────────── */
.lj-powers {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6, 13, 7, 0.52) 40%,
    transparent 100%);
}

.lj-powers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lj-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.lj-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.lj-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(107, 184, 114, 0.15);
  background: transparent;
  padding: 30px 20px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(107, 184, 114, 0.46);
  box-shadow: 0 12px 40px rgba(36, 77, 40, 0.38);
}

/* Top-left corner accent */
.lj-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(107, 184, 114, 0.46);
  border-left: 1px solid rgba(107, 184, 114, 0.46);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

/* Bottom-right corner accent */
.lj-card::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid rgba(107, 184, 114, 0.46);
  border-right: 1px solid rgba(107, 184, 114, 0.46);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.lj-card:hover::before,
.lj-card:hover::after {
  border-color: var(--lj-lichen);
}

.lj-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(107, 184, 114, 0.40));
}

.lj-card-name {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 1.1vw + 0.15rem, 0.98rem);
  color: var(--lj-fog);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.lj-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(168, 212, 171, 0.58);
}

/* ── Section: Legends ─────────────────────── */
.lj-legends {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.lj-legends-inner {
  max-width: 900px;
  margin: 0 auto;
}

.lj-stories {
  display: flex;
  flex-direction: column;
}

.lj-story {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(20, 42, 23, 0.52);
  align-items: start;
}

.lj-story:last-child { border-bottom: none; }

.lj-story-num {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: rgba(107, 184, 114, 0.20);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  user-select: none;
}

.lj-story-content {
  padding-left: 18px;
  border-left: 2px solid rgba(62, 122, 68, 0.36);
  transition: border-color 0.3s ease;
}

.lj-story:hover .lj-story-content {
  border-left-color: var(--lj-lichen);
}

.lj-story-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.4rem);
  color: var(--lj-fog);
  letter-spacing: 0.04em;
  margin: 0;
  margin-bottom: 12px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .lj-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .lj-about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lj-story {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .lj-story-num { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .lj-landing-title { letter-spacing: 0.04em; }
  .lj-about, .lj-powers, .lj-legends { padding: 80px 16px 60px; }
}

@media (max-width: 400px) {
  .lj-cards { grid-template-columns: 1fr; }
}

/* -------------------------
NAVBAR CUSTOM
------------------------- */
.navbar {
  background-color: rgba(6, 13, 7, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--lj-fog);
}

.navbar.scrolled {
  background-color: rgba(6, 13, 7, 0.46);
}

.nav-links a:hover {
  background-color: rgba(36, 77, 40, 0.50);
}

@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(6, 13, 7, 0.97);
    border-bottom: 1px solid rgba(107, 184, 114, 0.12);
  }
}

/* -------------------------
CONTACT CUSTOM
------------------------- */
.kontakty {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6, 20, 8, 0.44) 40%,
    rgba(6, 13, 7, 0.72) 100%);
}

.ornament-frame {
  animation: ljForestGlow 6.2s ease-in-out infinite;
}

@keyframes ljForestGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(36, 77, 40, 0.15), inset 0 0 8px rgba(36, 77, 40, 0.08); }
  50%       { box-shadow: 0 0 34px rgba(107, 184, 114, 0.38), inset 0 0 18px rgba(107, 184, 114, 0.15); }
}

/* ── Falling leaves ───────────────────────────
   Three SVG forest leaves fall from the top-left
   toward the bottom-right, ending with the same
   margin from that corner as they start from the
   top-left. Each leaf uses smooth ease-in-out
   between keyframes so rotation swings like a
   real pendulum and X/Y drift feels organic.
   Position: fixed so they are never clipped by
   the landing section's overflow: hidden.
──────────────────────────────────────────────── */
.lj-leaves {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lj-leaf {
  position: absolute;
  transform-origin: 50% 40%;
  will-change: transform, opacity;
  filter: drop-shadow(0 3px 7px rgba(6, 13, 7, 0.60));
}

.lj-leaf svg {
  display: block;
}

/* ─── Leaf 1 — Oak, 48 px wide, starts ~6% from left ─── */
/* Delay 3.2s: veil clears at ~1.8s; leaves start well after landing content is visible. */
.lj-leaf-1 {
  top: -80px;
  left: 6%;
  width: 48px;
  animation: ljLeaf1Fall 12s linear 3.2s both;
}

/* ─── Leaf 2 — Ivy (3-lobed), 44 px wide, starts ~2% from left ─── */
/* Staggered 0.7 s after leaf 1. */
.lj-leaf-2 {
  top: -70px;
  left: 2%;
  width: 44px;
  animation: ljLeaf2Fall 13.5s linear 3.9s both;
}

/* ─── Leaf 3 — Willow (narrow), 22 px wide, starts ~11% from left ─── */
/* Staggered 0.3 s after leaf 1. */
.lj-leaf-3 {
  top: -60px;
  left: 11%;
  width: 22px;
  animation: ljLeaf3Fall 10.5s linear 3.5s both;
}

/*
 * Keyframe design notes:
 *  • animation: linear overall; each keyframe declares
 *    animation-timing-function: cubic-bezier(0.37,0,0.63,1)
 *    (ease-in-out) so motion between consecutive stops
 *    accelerates then decelerates — like a leaf on air currents.
 *  • Rotation uses a damped pendulum arc: amplitude shrinks each
 *    half-swing, direction reverses smoothly at keyframe boundaries.
 *  • X ends at ~85/93/76 vw, mirroring the starting margin from the
 *    top-left corner symmetrically near the bottom-right.
 *  • Opacity: quick fade-in (0→0.88) then holds, fades out in the
 *    last ~20% of the animation.
 */

@keyframes ljLeaf1Fall {
  0%  {
    transform: translate(0,     0)    rotate(-22deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  20% {
    transform: translate(16vw,  18vh) rotate(24deg);
    opacity: 0.88;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  40% {
    transform: translate(34vw,  40vh) rotate(-14deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  60% {
    transform: translate(52vw,  60vh) rotate(20deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  80% {
    transform: translate(69vw,  78vh) rotate(-10deg);
    opacity: 0.72;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  92% {
    transform: translate(79vw,  91vh) rotate(5deg);
    opacity: 0.12;
    /* linear: leaf is ~90% faded; just cleanly exit without ease-out bounce */
    animation-timing-function: linear;
  }
  100% {
    transform: translate(85vw, 110vh) rotate(-14deg);
    opacity: 0;
  }
}

@keyframes ljLeaf2Fall {
  0%  {
    transform: translate(0,     0)    rotate(18deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  20% {
    transform: translate(18vw,  18vh) rotate(-22deg);
    opacity: 0.84;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  40% {
    transform: translate(37vw,  40vh) rotate(18deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  60% {
    transform: translate(56vw,  60vh) rotate(-16deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  80% {
    transform: translate(73vw,  78vh) rotate(16deg);
    opacity: 0.70;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  92% {
    transform: translate(85vw,  92vh) rotate(-4deg);
    opacity: 0.10;
    /* linear: leaf is ~90% faded; just cleanly exit without ease-out bounce */
    animation-timing-function: linear;
  }
  100% {
    transform: translate(93vw, 110vh) rotate(14deg);
    opacity: 0;
  }
}

@keyframes ljLeaf3Fall {
  0%  {
    transform: translate(0,     0)    rotate(-26deg);
    opacity: 0;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  20% {
    transform: translate(14vw,  18vh) rotate(22deg);
    opacity: 0.90;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  40% {
    transform: translate(28vw,  40vh) rotate(-18deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  60% {
    transform: translate(44vw,  60vh) rotate(20deg);
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  80% {
    transform: translate(58vw,  76vh) rotate(-14deg);
    opacity: 0.78;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
  }
  92% {
    transform: translate(68vw,  91vh) rotate(6deg);
    opacity: 0.14;
    /* linear: leaf is ~90% faded; just cleanly exit without ease-out bounce */
    animation-timing-function: linear;
  }
  100% {
    transform: translate(76vw, 110vh) rotate(-10deg);
    opacity: 0;
  }
}
