:root {
  --bg: #083A2C;
  --fg: #FEC5F0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Gowun Batang", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

/* Wyjęty z układu, więc tytuł zostaje dokładnie na środku ekranu */
.hero__eyebrow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  padding: 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(2.75rem, 10vw, 6rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- Warstwy animacji ---------- */

.layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Cyfry */
.layer--digits {
  z-index: 2;
}

.hero {
  position: relative;
  z-index: 3;
}

/* Tytuł zostaje w DOM (SEO, czytniki ekranu, zaznaczanie). Na czas animacji
   jest przezroczysty i rysują go cyfry, potem płynnie się wypełnia. */
.hero__title {
  transition: color 0.6s ease;
}

.js-digits .hero__title {
  color: transparent;
}

.hero__eyebrow {
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow {
    animation: none;
  }
}
