
:root {
  --dv-bg:        #070504;
  --dv-panel:     #1a1208;
  --dv-wood:      #3a2810;
  --dv-ember-d:   #7a2805;
  --dv-ember:     #c96820;
  --dv-flame:     #e68c2a;
  --dv-gold:      #f5c84a;
  --dv-ash:       #c0b8a8;
  --dv-cream:     #f0e6d0;
  --dv-smoke:     #6a6050;

  /* Shared component tokens */
  --bg:               var(--dv-bg);
  --text:             var(--dv-cream);
  --ornament-border-color: rgba(201, 104, 32, 0.32);
  --ornament-corner-color: rgba(201, 104, 32, 0.55);
  --ornament-bg:      rgba(18, 10, 4, 0.78);
  --btn-bg:           #7a2805;
  --btn-hover:        #c96820;
  --btn-color:        #f0e6d0;
  --form-status-color: rgba(245, 200, 74, 0.85);
  --textarea-focus-ring: rgba(201, 104, 32, 0.22);
}

/* ── Body ─────────────────────────────────── */
body { background: var(--dv-bg); color: var(--dv-cream); }

/* ── Ember canvas (full page, behind everything) */
#dv-embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   WOW OPENING EFFECT — Hearth Ignition
   The room is dark. Then the hearth
   catches fire — warm light blooms from
   the bottom and floods upward.
══════════════════════════════════════ */

/* 1. Dark room — fades out */
#dv-dark {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #070504;
  pointer-events: none;
  animation: dvDarkFade 2.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dvDarkFade {
  0%, 20% { opacity: 1; }
  100%    { opacity: 0; }
}

/* 2. Kindle burst — fire blooms from hearth */
#dv-kindle {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  transform-origin: bottom center;
  background: radial-gradient(ellipse 90% 75% at 50% 108%,
    rgba(255, 148, 35, 0.98) 0%,
    rgba(196, 78, 8, 0.84) 24%,
    rgba(75, 22, 4, 0.58) 52%,
    transparent 75%);
  animation: dvKindle 2.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

@keyframes dvKindle {
  0%   { opacity: 0; transform: scaleY(0.0); }
  10%  { opacity: 0; transform: scaleY(0.0); }
  24%  { opacity: 1; transform: scaleY(1.12); }
  54%  { opacity: 0.70; transform: scaleY(1.02); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* ── Navbar overrides ─────────────────────── */
.navbar {
  background: rgba(7, 5, 4, 0.72);
  border-bottom: 1px solid rgba(201, 104, 32, 0.12);
}

.navbar.scrolled {
  background: rgba(18, 10, 4, 0.90);
  border-bottom-color: rgba(201, 104, 32, 0.22);
}

.nav-links a:hover {
  background-color: rgba(201, 104, 32, 0.16);
}

/* ── Landing ──────────────────────────────── */
.dv-landing {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dv-bg);
  padding-top: 64px;
  padding-bottom: 260px; /* leave room for the fire scene */
}

/* ── Hearthfire scene ─────────────────────── */
.dv-fire-scene {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 84vw);
  z-index: 1;
  pointer-events: none;
}

.dv-fire-glow-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 160px;
  background: radial-gradient(ellipse 85% 65% at 50% 85%,
    rgba(215, 98, 12, 0.55) 0%,
    rgba(155, 58, 6, 0.32) 38%,
    rgba(75, 26, 3, 0.18) 62%,
    transparent 82%);
  filter: blur(22px);
}

.dv-fire-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Flame animations — each flame flickers at its own pace */
.dv-fl { transform-origin: center bottom; }

.dv-fl-1    { animation: dvFlicker 2.15s ease-in-out infinite alternate; }
.dv-fl-2    { animation: dvFlicker 1.88s ease-in-out infinite alternate; animation-delay: -0.35s; }
.dv-fl-3    { animation: dvFlicker 2.42s ease-in-out infinite alternate; animation-delay: -0.62s; }
.dv-fl-4    { animation: dvFlicker 1.72s ease-in-out infinite alternate; animation-delay: -0.14s; }
.dv-fl-5    { animation: dvFlicker 2.28s ease-in-out infinite alternate; animation-delay: -0.48s; }
.dv-fl-core { animation: dvFlickerFast 1.25s ease-in-out infinite alternate; animation-delay: -0.2s; }

@keyframes dvFlicker {
  0%   { transform: skewX(0deg)   scaleX(1.00) scaleY(1.00); }
  28%  { transform: skewX(-2.2deg) scaleX(0.93) scaleY(1.05); }
  58%  { transform: skewX(1.8deg)  scaleX(1.06) scaleY(0.96); }
  100% { transform: skewX(-0.8deg) scaleX(0.97) scaleY(1.02); }
}

@keyframes dvFlickerFast {
  0%   { transform: scaleX(0.88) scaleY(1.06) skewX(3.5deg);  opacity: 0.82; }
  50%  { transform: scaleX(1.12) scaleY(0.95) skewX(-2.5deg); opacity: 1; }
  100% { transform: scaleX(0.94) scaleY(1.03) skewX(1.8deg);  opacity: 0.88; }
}

/* ── Glowing eyes — the spirit is watching ── */
.dv-eyes {
  position: absolute;
  right: 10%;
  bottom: 34%;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.dv-eye {
  width: 12px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 38% 32%,
    rgba(255, 215, 80, 0.96) 0%,
    rgba(220, 130, 30, 0.92) 42%,
    rgba(140, 55, 8, 0.78) 72%,
    rgba(80, 20, 3, 0.55) 100%);
  box-shadow:
    0 0 7px 3px rgba(220, 130, 30, 0.65),
    0 0 18px 7px rgba(150, 60, 10, 0.30);
  animation: dvEyeGlow 4.5s ease-in-out infinite, dvEyeBlink 8.5s ease-in-out infinite;
}

.dv-eye + .dv-eye {
  animation-delay: 0.6s, 0.6s;
}

@keyframes dvEyeGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%       { opacity: 0.88; transform: scale(1.10); }
}

@keyframes dvEyeBlink {
  0%, 93%, 100% { transform: scaleY(1); }
  96%            { transform: scaleY(0.06); }
}

/* ── Landing content ──────────────────────── */
.dv-landing-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  gap: 14px;
}

/* ── Title: letters kindle from dark coal to glowing gold ── */
.dv-landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.2rem, 11vw + 0.5rem, 10rem);
  line-height: 1;
  color: var(--dv-gold);
  letter-spacing: 0.06em;
  margin: 0;
}

.dv-c {
  display: inline-block;
  color: rgba(60, 15, 2, 0);
  animation: dvCharKindle 0.88s cubic-bezier(0.12, 0.88, 0.24, 1) forwards;
  animation-delay: calc(0.55s + var(--i) * 0.09s);
}

@keyframes dvCharKindle {
  0%   { color: rgba(60, 15, 2, 0);    text-shadow: none; }
  18%  { color: rgba(120, 40, 5, 0.80); text-shadow: 0 0 12px rgba(140, 58, 10, 0.65); }
  55%  { color: rgba(201, 104, 32, 1);  text-shadow: 0 0 28px rgba(201, 104, 32, 0.82), 0 0 60px rgba(120, 50, 10, 0.40); }
  100% { color: var(--dv-gold);         text-shadow: 0 0 38px rgba(201, 104, 32, 0.68), 0 0 85px rgba(122, 40, 5, 0.42), 0 4px 28px rgba(0, 0, 0, 0.88); }
}

.dv-landing-tagline {
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  letter-spacing: 0.13em;
  color: var(--dv-ash);
  opacity: 0.88;
  margin: 0;
}

/* Decorative separator */
.dv-landing-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 300px;
  max-width: 88vw;
}

.dv-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 104, 32, 0.42), transparent);
}

.dv-sep-flame {
  font-size: 1.3rem;
  color: var(--dv-flame);
  animation: dvFlamePulse 2.4s ease-in-out infinite;
}

@keyframes dvFlamePulse {
  0%, 100% { opacity: 0.48; text-shadow: none; }
  50%       { opacity: 1;   text-shadow: 0 0 14px rgba(201, 104, 32, 0.90), 0 0 30px rgba(245, 200, 74, 0.42); }
}

/* Enter CTA */
.dv-enter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 36px;
  border: 1px solid rgba(201, 104, 32, 0.42);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.12em;
  color: var(--dv-gold);
  background: rgba(122, 40, 5, 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;
}

.dv-enter-btn:hover {
  background: rgba(201, 104, 32, 0.22);
  border-color: rgba(245, 200, 74, 0.72);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122, 40, 5, 0.38);
}

/* Warm atmospheric glow overlay */
.dv-landing-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 50% 68%, rgba(122, 40, 5, 0.35) 0%, transparent 62%),
    radial-gradient(ellipse 40% 28% at 18% 78%, rgba(55, 38, 15, 0.48) 0%, transparent 60%),
    radial-gradient(ellipse 40% 28% at 82% 78%, rgba(55, 38, 15, 0.42) 0%, transparent 60%);
  animation: dvAtmosBreath 20s ease-in-out infinite alternate;
}

@keyframes dvAtmosBreath {
  0%   { opacity: 0.68; }
  100% { opacity: 1.00; }
}

/* ── Shared section helpers ───────────────── */
.dv-p {
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.12rem);
  line-height: 1.80;
  color: rgba(240, 230, 210, 0.85);
  margin: 0;
}

/* Scroll-reveal stagger */
.dv-appear {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(5px);
  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));
}

.dv-appear.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section: About ───────────────────────── */
.dv-about {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.dv-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.dv-about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Attribute pills */
.dv-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dv-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(58, 40, 16, 0.55);
  border-radius: 999px;
  background: rgba(26, 18, 8, 0.52);
  font-family: "Cinzel", serif;
  font-size: 0.80rem;
  color: var(--dv-ash);
  letter-spacing: 0.04em;
}

/* Hearth quote card — matches Rusalka pool style */
.dv-hearth-wrap {
  position: relative;
}

.dv-hearth-wrap::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(201, 104, 32, 0.65);
  border-left: 1px solid rgba(201, 104, 32, 0.65);
  pointer-events: none;
  z-index: 1;
}

.dv-hearth-wrap::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 36px;
  height: 36px;
  border-bottom: 1px solid rgba(201, 104, 32, 0.65);
  border-right: 1px solid rgba(201, 104, 32, 0.65);
  pointer-events: none;
  z-index: 1;
}

.dv-hearth {
  background: transparent;
  border: 1px solid rgba(201, 104, 32, 0.22);
  border-radius: 20px;
  padding: 44px 36px;
}

.dv-hearth-quote {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.4vw + 0.35rem, 1.22rem);
  line-height: 1.78;
  color: var(--dv-gold);
  font-style: italic;
  margin: 0 0 14px;
}

.dv-hearth-cite {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  color: var(--dv-flame);
  letter-spacing: 0.07em;
}

/* ── Section: Powers ──────────────────────── */
.dv-powers {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(7, 5, 4, 0.40) 40%,
    transparent 100%);
}

.dv-powers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.dv-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 52px;
}

.dv-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dv-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(201, 104, 32, 0.18);
  background: transparent;
  padding: 30px 20px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 104, 32, 0.52);
  box-shadow: 0 12px 40px rgba(122, 40, 5, 0.30);
}

/* Corner accents — like Rusalka cards */
.dv-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(201, 104, 32, 0.50);
  border-left: 1px solid rgba(201, 104, 32, 0.50);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.dv-card::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid rgba(201, 104, 32, 0.50);
  border-right: 1px solid rgba(201, 104, 32, 0.50);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.dv-card:hover::before,
.dv-card:hover::after {
  border-color: var(--dv-flame);
}

.dv-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(201, 104, 32, 0.42));
}

.dv-card-name {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 1.1vw + 0.15rem, 0.98rem);
  color: var(--dv-gold);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.dv-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(192, 184, 168, 0.62);
}

/* ── Section: Legends ─────────────────────── */
.dv-legends {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.dv-legends-inner {
  max-width: 900px;
  margin: 0 auto;
}

.dv-stories {
  display: flex;
  flex-direction: column;
}

.dv-story {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(58, 32, 10, 0.45);
  align-items: start;
}

.dv-story:last-child { border-bottom: none; }

.dv-story-num {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: rgba(201, 104, 32, 0.25);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  user-select: none;
}

.dv-story-content {
  padding-left: 18px;
  border-left: 2px solid rgba(122, 40, 5, 0.40);
  transition: border-color 0.3s ease;
}

.dv-story:hover .dv-story-content {
  border-left-color: var(--dv-flame);
}

.dv-story-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.4rem);
  color: var(--dv-cream);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .dv-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .dv-about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .dv-story {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }
  .dv-story-num { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .dv-landing { padding-bottom: 200px; }
  .dv-landing-title { font-size: clamp(2.6rem, 14vw, 5.5rem); letter-spacing: 0.04em; }
  .dv-about, .dv-powers, .dv-legends { padding: 80px 16px 60px; }
}

@media (max-width: 400px) {
  .dv-cards { grid-template-columns: 1fr; }
}

/* ── Navbar mobile menu bg ────────────────── */
@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(7, 5, 4, 0.97);
    border-bottom: 1px solid rgba(201, 104, 32, 0.14);
  }
}

/* ── Contact custom ───────────────────────── */
.kontakty {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 7, 4, 0.40) 40%,
    rgba(7, 5, 4, 0.68) 100%);
}

.ornament-frame {
  animation: dvEmberGlow 5.5s ease-in-out infinite;
}

@keyframes dvEmberGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(122, 40, 5, 0.18), inset 0 0 8px rgba(122, 40, 5, 0.09); }
  50%       { box-shadow: 0 0 34px rgba(201, 104, 32, 0.40), inset 0 0 18px rgba(201, 104, 32, 0.18); }
}
