:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --ink: #f4f1ec;
  --muted: #9a958c;
  --accent: #e21818;
  --accent-soft: rgba(226, 24, 24, 0.35);
  --line: rgba(244, 241, 236, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(226, 24, 24, 0.12), transparent 55%),
    radial-gradient(900px 500px at 80% 110%, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, var(--bg) 45%, #080808 100%);
  color: var(--ink);
  font-family: var(--font-body);
  overflow: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-touch {
  cursor: auto;
  overflow-y: auto;
}

body.is-touch .cursor {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, transparent 28%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.45));
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.spotlight {
  --x: 50%;
  --y: 42%;
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--x) var(--y),
    rgba(226, 24, 24, 0.16),
    rgba(226, 24, 24, 0.05) 28%,
    transparent 58%
  );
  transition: opacity 0.4s ease;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform, width, height;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition:
    width 0.25s var(--ease-out),
    height 0.25s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease;
}

body.is-hovering .cursor-ring {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}

body.is-hovering[data-cursor-type="email"] .cursor-ring,
body.is-hovering[data-cursor-type="social"] .cursor-ring {
  width: 78px;
  height: 78px;
}

.scene {
  position: relative;
  z-index: 5;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.15rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.55);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease-out) 0.1s forwards;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 1.8s ease-out infinite;
}

.logo-stage {
  position: relative;
  margin: 0.4rem 0 0.2rem;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  animation: rise-scale 1.15s var(--ease-out) 0.2s forwards;
}

.logo {
  width: min(72vw, 460px);
  height: auto;
  display: block;
  user-select: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s var(--ease-out), filter 0.45s ease;
  will-change: transform;
}

.logo-stage:hover .logo,
.logo-stage.is-active .logo {
  filter:
    drop-shadow(0 22px 48px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 28px rgba(226, 24, 24, 0.2));
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease-out) 0.35s forwards;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease-out) 0.45s forwards;
}

.contacts {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 36rem);
  margin-top: 0.85rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease-out) 0.55s forwards;
}

.contact-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.35s var(--ease-out);
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.1vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease-out) 0.65s forwards;
}

.socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.35s var(--ease-out),
    color 0.25s ease;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: rgba(226, 24, 24, 0.7);
  background: rgba(226, 24, 24, 0.12);
  color: #fff;
  outline: none;
}

.socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.fineprint {
  margin-top: 0.4rem;
  color: rgba(154, 149, 140, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1s var(--ease-out) 0.75s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-scale {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  70% {
    box-shadow: 0 0 0 12px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (max-width: 720px) {
  body {
    overflow-y: auto;
  }

  .scene {
    gap: 1rem;
    padding-block: 2.5rem 3rem;
  }

  .logo {
    width: min(82vw, 340px);
  }

  .contacts {
    gap: 0.4rem;
  }

  .contact-link {
    padding: 0.75rem 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .status,
  .logo-stage,
  .headline,
  .lede,
  .contacts,
  .socials,
  .fineprint {
    opacity: 1;
    transform: none;
  }

  body {
    cursor: auto;
  }

  .cursor {
    display: none;
  }
}
