:root {
  --bg: #050505;
  --ink: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.72);
  --orange: #ff7a32;
  --line: rgba(255, 255, 255, 0.16);
  --display: "Syne", sans-serif;
  --body: "Outfit", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.18) 38%, rgba(5, 5, 5, 0.82) 100%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(255, 122, 50, 0.22), transparent 70%);
}

.falling {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.falling span {
  position: absolute;
  top: -20%;
  left: var(--x);
  width: clamp(10px, 1.4vw, 18px);
  height: var(--h);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(120, 190, 255, 0.95), rgba(80, 140, 220, 0.15));
  box-shadow: 0 0 18px rgba(120, 190, 255, 0.35);
  animation: fall 5.8s linear infinite;
  animation-delay: var(--d);
  opacity: 0.85;
}

.falling span.warm {
  background: linear-gradient(180deg, rgba(255, 140, 70, 0.98), rgba(255, 122, 50, 0.12));
  box-shadow: 0 0 20px rgba(255, 122, 50, 0.4);
}

.hero-copy {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto 8vh;
  padding: 1.25rem 0 0;
  animation: rise 0.9s ease both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.btn.primary {
  background: var(--orange);
  border-color: transparent;
  color: #1a0a04;
}

.btn.primary:hover {
  filter: brightness(1.06);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  border-color: var(--orange);
}

main {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.block + .block {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.block p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

footer {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 0 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  color: rgba(245, 241, 234, 0.5);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

@keyframes fall {
  0% {
    transform: translateY(-15vh);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh);
    opacity: 0.15;
  }
}

@keyframes drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0, -1.5%, 0);
  }
}

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

@media (max-width: 640px) {
  .hero-copy {
    margin-bottom: 6vh;
  }

  .brand {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .falling span,
  .hero-copy {
    animation: none;
  }

  .hero-media img {
    transform: none;
  }
}
