:root {
  --black: #050505;
  --ink: #0b0808;
  --red: #ff2a2a;
  --red-soft: #ff5b50;
  --teal: #17e0c4;
  --gold: #f3ba5d;
  --cream: #fff4df;
  --muted: #b5aaa1;
  --line: rgba(255, 42, 42, 0.38);
  --glow-red: 0 0 12px rgba(255, 42, 42, 0.88), 0 0 36px rgba(255, 42, 42, 0.58);
  --shadow-red: 0 0 22px rgba(255, 42, 42, 0.48), 0 0 90px rgba(255, 42, 42, 0.24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 26%, rgba(243, 186, 93, 0.14), transparent 20rem),
    radial-gradient(circle at 22% 72%, rgba(255, 42, 42, 0.1), transparent 18rem),
    linear-gradient(145deg, #020202 0%, #090706 42%, #0b0a08 72%, #020202 100%);
  color: var(--cream);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(90deg, rgba(255, 42, 42, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(255, 42, 42, 0.08) 1px, transparent 1px);
  background-size: 6.2rem 6.2rem;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
}

body::after {
  background:
    linear-gradient(115deg, transparent 0 20%, rgba(23, 224, 196, 0.08) 20% 20.6%, transparent 20.6% 100%),
    linear-gradient(65deg, transparent 0 72%, rgba(243, 186, 93, 0.08) 72% 72.5%, transparent 72.5% 100%);
}

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

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  border: 1px solid var(--red);
  background: var(--black);
  color: var(--cream);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.noise,
.scanlines,
.cursor-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: 2;
  opacity: 0.15;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 2px),
    repeating-radial-gradient(circle at 73% 62%, rgba(255, 42, 42, 0.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

.scanlines {
  z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  opacity: 0.38;
}

.cursor-light {
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 42, 42, 0.2), transparent 17rem);
  transition: opacity 220ms ease;
}

.site-shell {
  position: relative;
  z-index: 4;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(1rem, 2vw, 1.75rem);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: clamp(0.85rem, 1.8vw, 1.5rem);
  border: 1px solid rgba(255, 42, 42, 0.24);
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
  filter: drop-shadow(0 0 18px rgba(255, 42, 42, 0.34));
  pointer-events: none;
  content: "";
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: 3%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 186, 93, 0.7), rgba(255, 42, 42, 0.42), transparent);
  box-shadow: 0 0 32px rgba(243, 186, 93, 0.35);
  content: "";
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.25rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--cream);
}

.wordmark strong {
  color: var(--red-soft);
  text-shadow: var(--glow-red);
}

.icon-link {
  display: inline-grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid rgba(255, 42, 42, 0.72);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.66);
  box-shadow: var(--shadow-red);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.icon-link svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.55fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1180px, calc(100% - 1rem));
  min-height: calc(100svh - 6rem);
  margin: 0 auto;
  padding: clamp(2.4rem, 5.8vw, 4.8rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.1rem;
  color: var(--gold);
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(243, 186, 93, 0.5);
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3.6rem, 5.5vw, 5.25rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--cream);
  text-shadow:
    0 0 1px var(--cream),
    0 0 18px rgba(255, 42, 42, 0.55),
    0 0 70px rgba(255, 42, 42, 0.28);
}

.intro {
  max-width: 38rem;
  margin: clamp(1rem, 2vw, 1.65rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  max-width: 100%;
  padding: 0.86rem 1.1rem;
  border: 1px solid rgba(255, 42, 42, 0.66);
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.button svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-left: 0.72rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 35%, rgba(255, 255, 255, 0.24) 48%, transparent 61% 100%);
  transform: translateX(-130%);
  transition: transform 480ms ease;
  content: "";
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(130%);
}

.button-primary {
  background: var(--red);
  color: #120202;
  box-shadow: var(--shadow-red);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--cream);
}

.button-ghost {
  background: rgba(5, 5, 5, 0.54);
  color: var(--cream);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(243, 186, 93, 0.18);
}

.logo-stage {
  position: relative;
  width: min(100%, 25rem);
  margin: 0;
  justify-self: end;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}

.logo-stage::before,
.logo-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.logo-stage::before {
  inset: -0.8rem;
  border: 1px solid var(--line);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  box-shadow: inset 0 0 28px rgba(255, 42, 42, 0.2), var(--shadow-red);
  transform: translateZ(-1px);
}

.logo-stage::after {
  inset: -10%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 42, 42, 0.38), transparent 42%),
    radial-gradient(circle at 52% 48%, rgba(243, 186, 93, 0.14), transparent 58%);
  filter: blur(34px);
  opacity: 0.82;
  animation: entrance-glow 4.8s ease-in-out infinite;
}

.logo-mark {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 42, 42, 0.44);
  object-fit: cover;
  filter: brightness(0.84) contrast(1.14) saturate(1.05);
  box-shadow:
    0 1.3rem 7rem rgba(0, 0, 0, 0.84),
    0 0 52px rgba(255, 42, 42, 0.3);
  animation: sign-flicker 5.6s steps(1, end) infinite;
}

figcaption {
  margin-top: 0.9rem;
  color: var(--gold);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(243, 186, 93, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-copy .reveal:nth-child(2).is-visible {
  transition-delay: 90ms;
}

.hero-copy .reveal:nth-child(3).is-visible {
  transition-delay: 180ms;
}

.hero-copy .reveal:nth-child(4).is-visible {
  transition-delay: 270ms;
}

@keyframes entrance-glow {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.84;
    transform: scale(1.02);
  }
}

@keyframes sign-flicker {
  0%,
  8%,
  10%,
  13%,
  100% {
    filter: brightness(0.84) contrast(1.14) saturate(1.05);
  }
  9%,
  12% {
    filter: brightness(0.62) contrast(1.08) saturate(0.78);
  }
  63% {
    filter: brightness(0.94) contrast(1.2) saturate(1.18);
  }
}

@media (hover: hover) and (pointer: fine) {
  body.has-pointer .cursor-light {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    min-height: auto;
    padding-top: 4rem;
  }

  .logo-stage {
    justify-self: center;
    width: min(58vw, 18rem);
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 0.85rem;
  }

  .hero::before {
    inset: 0.55rem;
  }

  .topbar {
    padding-inline: 0.2rem;
  }

  .wordmark {
    gap: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .hero-grid {
    width: min(100%, calc(100% - 1rem));
    gap: 1.4rem;
    padding-top: 2.4rem;
    padding-bottom: 2.2rem;
  }

  .logo-stage {
    width: min(58vw, 13rem);
  }

  figcaption {
    display: none;
  }

  h1 {
    font-size: clamp(3.1rem, 14.8vw, 4.3rem);
  }

  .intro {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
