
:root {
  --st-bg:      #07040a;
  --st-void:    #120818;
  --st-deep:    #1e0f26;
  --st-blood:   #6b0f0f;
  --st-crimson: #b01c1c;
  --st-scarlet: #e63030;
  --st-amber:   #d4862a;
  --st-bone:    #c8bfa0;
  --st-dust:    #a09888;
  --st-pale:    #e8dfd0;

  /* Shared component tokens */
  --bg:                    var(--st-bg);
  --text:                  var(--st-bone);
  --ornament-border-color: rgba(176, 28, 28, 0.30);
  --ornament-corner-color: rgba(176, 28, 28, 0.55);
  --ornament-bg:           rgba(7, 4, 10, 0.80);
  --btn-bg:                var(--st-blood);
  --btn-hover:             var(--st-crimson);
  --btn-color:             var(--st-pale);
  --form-status-color:     rgba(200, 191, 160, 0.85);
  --textarea-focus-ring:   rgba(176, 28, 28, 0.25);
}

/* ── Body ─────────────────────────────────── */
body { background: var(--st-bg); color: var(--st-bone); }

/* ══════════════════════════════════════
   WOW OPENING EFFECT — blur-veil reveal
   A full-page backdrop-blur keeps the
   scene dark and mysterious while the
   demon owl eyes open, glow, and close.
   After 1.8 s the blur fades away,
   leaving the shadow wings and the
   rising title letters.
══════════════════════════════════════ */
.st-veil {
  position: fixed;
  inset: 0;
  z-index: 9998;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 4, 10, 0.38);
  pointer-events: none;
  animation: stVeilClear 0.20s ease-out 1.80s both;
}

@keyframes stVeilClear {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* Owl-eye container — centred in the veil */
.st-eyes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  pointer-events: none;
  animation: stEyesFade 0.45s ease-in 1.55s both;
}

@keyframes stEyesFade {
  to { opacity: 0; }
}

/* Each eye */
.st-eye {
  position: relative;
  width: 52px;
  height: 30px;
}

/* Iris glow */
.st-eye::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse 60% 80% at 50% 50%,
    #ffcc44 0%,
    #e07000 48%,
    #8b1a00 82%,
    transparent 100%);
  box-shadow:
    0 0 18px rgba(255, 175, 30, 0.95),
    0 0 55px rgba(200, 75, 0, 0.60),
    0 0 110px rgba(140, 20, 0, 0.35);
  transform: scaleY(0);
  animation: stEyeOpen 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) 0.60s both;
}

/* Slit pupil */
.st-eye::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 24px;
  border-radius: 50%;
  background: #07040a;
  transform: translate(-50%, -50%) scaleY(0);
  animation: stPupilOpen 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.72s both;
}

@keyframes stEyeOpen {
  0%   { transform: scaleY(0) scaleX(0.2); opacity: 0.3; }
  60%  { transform: scaleY(1.18) scaleX(1); opacity: 1; }
  100% { transform: scaleY(1) scaleX(1); opacity: 1; }
}

@keyframes stPupilOpen {
  0%   { transform: translate(-50%, -50%) scaleY(0); }
  100% { transform: translate(-50%, -50%) scaleY(1); }
}

/* ── Wings canvas ────────────────────────── */
/* During veil phase: fixed below the veil panels (z-index 9997 < veil 9998)
   so the owl eyes (inside the veil) always render on top of the wings.
   Wings are revealed as the panels slide apart.
   After veil ends JS adds .st-wings-settled → absolute inside .st-landing
   so wings never overlap the contact or any other section. */
#st-wings-canvas {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
}

#st-wings-canvas.st-wings-settled {
  position: absolute;
  z-index: 1;
}

/* ── Landing ─────────────────────────────── */
.st-landing {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--st-bg);
  padding-top: 64px;
}

/* Subtle central radial glow */
.st-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(107, 15, 15, 0.16) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.st-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 rise from darkness ────── */
.st-landing-title {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(3.4rem, 12vw + 0.5rem, 11rem);
  line-height: 1;
  color: var(--st-bone);
  letter-spacing: 0.12em;
  text-shadow:
    0 0 40px rgba(176, 28, 28, 0.72),
    0 0 100px rgba(107, 15, 15, 0.42),
    0 4px 32px rgba(0, 0, 0, 0.96);
  margin: 0;
}

.st-c {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.86);
  animation: stCharRise 0.78s cubic-bezier(0.12, 0.88, 0.24, 1) forwards;
  animation-delay: calc(2.05s + var(--i) * 0.09s);
}

@keyframes stCharRise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.86);
         text-shadow: 0 0 32px rgba(230, 48, 48, 0.95); }
  60%  { text-shadow: 0 0 16px rgba(176, 28, 28, 0.55); }
  100% { opacity: 1; transform: translateY(0) scale(1);
         text-shadow: inherit; }
}

/* Subtitle */
.st-landing-subtitle {
  font-family: "Cinzel", serif;
  font-size: clamp(0.7rem, 1.2vw, 0.95rem);
  letter-spacing: 0.32em;
  color: var(--st-crimson);
  margin: 0;
  opacity: 0;
  animation: stFadeIn 0.9s ease 2.85s forwards;
}

/* Decorative separator */
.st-landing-sep {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  width: 300px;
  max-width: 90vw;
  opacity: 0;
  animation: stFadeIn 0.8s ease 3.0s forwards;
}

@keyframes stFadeIn {
  to { opacity: 1; }
}

.st-sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(176, 28, 28, 0.44), transparent);
}

.st-sep-rune {
  font-size: 1.1rem;
  color: var(--st-crimson);
  animation: stRunePulse 3.6s ease-in-out infinite;
}

@keyframes stRunePulse {
  0%, 100% { opacity: 0.38; text-shadow: none; }
  50%       { opacity: 1;   text-shadow: 0 0 18px rgba(176, 28, 28, 0.92); }
}

/* Tagline */
.st-landing-tagline {
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  letter-spacing: 0.14em;
  color: rgba(200, 191, 160, 0.80);
  margin: 0;
  opacity: 0;
  animation: stFadeIn 0.9s ease 3.1s forwards;
}

/* Enter CTA */
.st-enter-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 14px 34px;
  border: 1px solid rgba(176, 28, 28, 0.40);
  border-radius: 4px;
  font-family: "Cinzel", serif;
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  letter-spacing: 0.12em;
  color: var(--st-bone);
  background: rgba(107, 15, 15, 0.14);
  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: stFadeIn 0.8s ease 3.35s forwards;
}

.st-enter-btn:hover {
  background: rgba(176, 28, 28, 0.24);
  border-color: rgba(230, 48, 48, 0.68);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107, 15, 15, 0.42);
}

/* Atmospheric mist overlay */
.st-landing-mist {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 36% at 16% 72%, rgba(30, 15, 38, 0.62) 0%, transparent 65%),
    radial-gradient(ellipse 48% 32% at 84% 26%, rgba(107, 15, 15, 0.32) 0%, transparent 65%);
  animation: stMistShift 30s ease-in-out infinite alternate;
}

@keyframes stMistShift {
  0%   { opacity: 0.65; transform: scale(1) translateX(0); }
  50%  { opacity: 1;    transform: scale(1.04) translateX(-14px); }
  100% { opacity: 0.72; transform: scale(1) translateX(12px); }
}

/* ── Shared text helpers ──────────────────── */
.st-p {
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.12rem);
  line-height: 1.80;
  color: rgba(200, 191, 160, 0.88);
  margin: 0;
}

/* Appear-on-scroll system */
.st-appear {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(5px);
  transition:
    opacity   0.88s ease calc(var(--ad, 0ms)),
    transform 0.88s cubic-bezier(0.12, 0.88, 0.24, 1) calc(var(--ad, 0ms)),
    filter    0.88s ease calc(var(--ad, 0ms));
}

.st-appear.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── Section: About ───────────────────────── */
.st-about {
  position: relative;
  z-index: 2;
  padding: 120px 24px 80px;
}

.st-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.st-about-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Attribute pills */
.st-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.st-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid rgba(176, 28, 28, 0.32);
  border-radius: 999px;
  background: rgba(107, 15, 15, 0.20);
  font-family: "Cinzel", serif;
  font-size: 0.80rem;
  color: var(--st-bone);
  letter-spacing: 0.04em;
}

/* Quote card */
.st-quote-wrap {
  position: relative;
}

.st-quote-wrap::before {
  content: '';
  position: absolute;
  top: -7px;
  left: -7px;
  width: 36px;
  height: 36px;
  border-top: 1px solid rgba(176, 28, 28, 0.62);
  border-left: 1px solid rgba(176, 28, 28, 0.62);
  pointer-events: none;
  z-index: 1;
}

.st-quote-wrap::after {
  content: '';
  position: absolute;
  bottom: -7px;
  right: -7px;
  width: 36px;
  height: 36px;
  border-bottom: 1px solid rgba(176, 28, 28, 0.62);
  border-right: 1px solid rgba(176, 28, 28, 0.62);
  pointer-events: none;
  z-index: 1;
}

.st-quote-box {
  background: transparent;
  border: 1px solid rgba(176, 28, 28, 0.22);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
}

.st-quote-text {
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.4vw + 0.35rem, 1.18rem);
  line-height: 1.80;
  color: var(--st-dust);
  font-style: italic;
  margin: 0 0 14px;
}

.st-quote-cite {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 0.82rem;
  color: var(--st-crimson);
  letter-spacing: 0.07em;
}

/* ── Section: Powers ──────────────────────── */
.st-powers {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(18, 8, 24, 0.52) 40%,
    transparent 100%);
}

.st-powers-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.st-sec-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 48px;
}

.st-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.st-card {
  position: relative;
  overflow: visible;
  border-radius: 16px;
  border: 1px solid rgba(176, 28, 28, 0.20);
  background: transparent;
  padding: 30px 20px 26px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.st-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 48, 48, 0.52);
  box-shadow: 0 12px 40px rgba(107, 15, 15, 0.36);
}

.st-card::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 22px;
  height: 22px;
  border-top: 1px solid rgba(176, 28, 28, 0.52);
  border-left: 1px solid rgba(176, 28, 28, 0.52);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.st-card::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid rgba(176, 28, 28, 0.52);
  border-right: 1px solid rgba(176, 28, 28, 0.52);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.st-card:hover::before,
.st-card:hover::after {
  border-color: var(--st-scarlet);
}

.st-card-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 8px rgba(176, 28, 28, 0.52));
}

.st-card-name {
  font-family: "Cinzel", serif;
  font-size: clamp(0.85rem, 1.1vw + 0.15rem, 0.98rem);
  color: var(--st-bone);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.st-card-desc {
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(200, 191, 160, 0.60);
}

/* ── Section: Legends ─────────────────────── */
.st-legends {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}

.st-legends-inner {
  max-width: 900px;
  margin: 0 auto;
}

.st-stories {
  display: flex;
  flex-direction: column;
}

.st-story {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(30, 15, 38, 0.55);
  align-items: start;
}

.st-story:last-child { border-bottom: none; }

.st-story-num {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: rgba(176, 28, 28, 0.28);
  line-height: 1;
  text-align: right;
  padding-top: 4px;
  user-select: none;
}

.st-story-content {
  padding-left: 18px;
  border-left: 2px solid rgba(107, 15, 15, 0.45);
  transition: border-color 0.3s ease;
}

.st-story:hover .st-story-content {
  border-left-color: var(--st-crimson);
}

.st-story-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.1rem, 1.8vw + 0.3rem, 1.4rem);
  color: var(--st-bone);
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
  .st-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .st-about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .st-story {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .st-story-num { font-size: 1.8rem; }

  .st-eyes { gap: 60px; }
}

@media (max-width: 600px) {
  .st-landing-title { letter-spacing: 0.04em; }
  .st-about, .st-powers, .st-legends { padding: 80px 16px 60px; }
}

@media (max-width: 400px) {
  .st-cards { grid-template-columns: 1fr; }
  .st-eyes { gap: 36px; }
  .st-eye { width: 38px; height: 22px; }
}

/* ── Navbar custom ────────────────────────── */
.navbar {
  background-color: rgba(7, 4, 10, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--st-bone);
}

.navbar.scrolled {
  background-color: rgba(7, 4, 10, 0.46);
}

.nav-links a:hover {
  background-color: rgba(107, 15, 15, 0.48);
}

@media (max-width: 1100px) {
  .nav-links {
    background-color: rgba(7, 4, 10, 0.97);
    border-bottom: 1px solid rgba(176, 28, 28, 0.16);
  }
}

/* ── Contact custom ───────────────────────── */
.kontakty {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(18, 8, 24, 0.46) 40%,
    rgba(7, 4, 10, 0.72) 100%);
}

.ornament-frame {
  animation: stCrimsonGlow 5.5s ease-in-out infinite;
}

@keyframes stCrimsonGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(107, 15, 15, 0.20), inset 0 0 8px rgba(107, 15, 15, 0.10); }
  50%       { box-shadow: 0 0 36px rgba(176, 28, 28, 0.44), inset 0 0 18px rgba(176, 28, 28, 0.18); }
}
