:root {
  color-scheme: dark;
  --bg: #020304;
  --panel: rgba(6, 7, 10, 0.72);
  --fg: rgba(255, 255, 255, 0.88);
  --fg-soft: rgba(255, 255, 255, 0.68);
  --fg-hover: rgba(255, 255, 255, 1);
  --line: rgba(255, 255, 255, 0.12);
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
}

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 14%, rgba(174, 42, 34, 0.18), transparent 24%),
    radial-gradient(circle at 50% 55%, rgba(255, 110, 60, 0.08), transparent 34%),
    linear-gradient(180deg, #050608 0%, #020304 100%);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  filter: brightness(0.8) contrast(1.08) saturate(0.92);
  transform: scale(1.015);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 25%, rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.84) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.16) 60%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 18%, rgba(0, 0, 0, 0.08) 82%, rgba(0, 0, 0, 0.42) 100%);
}

.image-wrap,
.hero-shell,
.hero-image {
  display: none;
}

.signal-card {
  position: fixed;
  left: clamp(1rem, 4vw, 3rem);
  bottom: clamp(5.2rem, 9vw, 6.8rem);
  z-index: 2;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem 1rem 0.95rem;
  color: var(--fg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(4, 5, 8, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1.1rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(255, 92, 57, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at 10% 0%, rgba(255, 116, 82, 0.18), transparent 34%);
}

.signal-card__eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  color: var(--fg-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-card__eyebrow span {
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 50%;
  background: rgba(255, 124, 92, 0.9);
  box-shadow: 0 0 0 0 rgba(255, 124, 92, 0.38);
  animation: pulse 2.8s ease-out infinite;
}

.signal-card__title {
  position: relative;
  font-size: clamp(1.35rem, 4vw, 2.35rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-transform: lowercase;
}

.signal-card__meta {
  position: relative;
  margin-top: 0.72rem;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-card__scan {
  position: relative;
  height: 1px;
  margin-top: 0.9rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.signal-card__scan span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 100, 0.8), transparent);
  animation: scan 4.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.email-link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.email-link::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 124, 92, 0.85);
  box-shadow: 0 0 14px rgba(255, 104, 66, 0.5);
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--fg-hover);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 11, 14, 0.82);
  transform: translateY(-1px);
}

.email-link:focus-visible {
  outline: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 124, 92, 0.36); }
  70% { box-shadow: 0 0 0 0.55rem rgba(255, 124, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 124, 92, 0); }
}

@keyframes scan {
  0% { transform: translateX(-110%); opacity: 0; }
  16% { opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .signal-card__eyebrow span,
  .signal-card__scan span {
    animation: none;
  }
}

@media (max-width: 700px) {
  .scene::before {
    background-position: center top;
    background-size: cover;
  }

  .scene::after {
    background:
      radial-gradient(circle at 50% 42%, transparent 0 20%, rgba(0, 0, 0, 0.14) 44%, rgba(0, 0, 0, 0.52) 70%, rgba(0, 0, 0, 0.88) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.76) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.06) 16%, rgba(0, 0, 0, 0.06) 84%, rgba(0, 0, 0, 0.34) 100%);
  }

  .signal-card {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 4.35rem;
    width: auto;
    padding: 0.86rem 0.9rem 0.82rem;
  }

  .signal-card__meta {
    font-size: 0.59rem;
    letter-spacing: 0.08em;
  }

  .email-link {
    right: 0.85rem;
    bottom: 0.85rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 0.42rem 0.66rem;
  }
}
