/* ===== Section 1 — Hero (header lives in header.css) ===== */

/* ----- Hero ----- */
.section1 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.section1__bg {
  position: absolute;
  inset: -4%;
  background: url("../images/hero-bg.webp") right center / cover no-repeat;
  animation: bgIn 2s var(--ease) both, beams 9s ease-in-out 2s infinite alternate;
  will-change: transform, filter;
}
/* left fade so text stays readable */
.section1::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(11,11,12,0.92) 0%, rgba(11,11,12,0.55) 40%, transparent 70%),
              linear-gradient(0deg, var(--black) 0%, transparent 22%);
  pointer-events: none;
}

.section1__emblem {
  position: absolute;
  z-index: 2;
  right: -4%;
  top: 50%;
  width: min(62vw, 980px);
  transform: translateY(-50%);
  pointer-events: none;
}
.section1__emblem-parallax { transition: transform 0.9s var(--ease); will-change: transform; }
.section1__emblem img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
  animation: emblemIn 1.6s var(--ease) 0.5s both, float 7s ease-in-out 2.1s infinite;
}

.section1__content {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
}

.section1__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, 9vw, 138px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin-bottom: 30px;
}
.section1__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.section1__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: lineUp 1.1s var(--ease) both;
}
.section1__title .line:nth-child(1) > span { animation-delay: 0.6s; }
.section1__title .line:nth-child(2) > span { animation-delay: 0.75s; }
.section1__title .line:nth-child(3) > span { animation-delay: 0.9s; }

.section1__text {
  max-width: 440px;
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 38px;
  animation: fadeUp 1s var(--ease) 1.25s both;
}

.section1__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeUp 1s var(--ease) 1.45s both;
}

.section1__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 1px; height: 56px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  animation: fadeUp 1s var(--ease) 1.9s both;
}
.section1__scroll::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--green);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ----- Keyframes ----- */
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bgIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1); } }
@keyframes beams {
  0%   { filter: brightness(0.9) saturate(1); transform: scale(1) translate(0, 0); }
  100% { filter: brightness(1.15) saturate(1.2); transform: scale(1.04) translate(-1%, 1%); }
}
@keyframes emblemIn {
  from { opacity: 0; transform: translateX(12%) rotate(-8deg) scale(0.85); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(-1.5deg); }
}
@keyframes scrollLine { 0% { top: -100%; } 100% { top: 100%; } }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .section1 { align-items: flex-end; }
  .section1__emblem { width: 110vw; right: -30%; top: 30%; opacity: 0.85; }
  .section1::before {
    background: linear-gradient(0deg, rgba(11,11,12,0.96) 0%, rgba(11,11,12,0.6) 50%, rgba(11,11,12,0.1) 100%);
  }
}

@media (max-width: 560px) {
  .section1__actions .btn { width: 100%; justify-content: space-between; }
  .section1__scroll { display: none; }
}
