:root {
  --color-obsidian: #0A0A0B;
  --color-gold-highlight: #F5C542;
  --color-gold-mid: #B8860B;
  --color-gold-shadow: #6B4E00;
  --color-silver-highlight: #E6E6E6;
  --color-silver-mid: #BFBFBF;
  --color-silver-shadow: #7A7A7A;
  --ticker-text: rgba(230, 230, 230, 0.82);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 35%, rgba(40, 40, 42, 0.24), transparent 65%),
    var(--color-obsidian);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: transform 0.2s ease, left 0.2s ease;
}

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

#app {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 0 5vw;
  text-align: center;
  z-index: 10;
}

.hero-spacer {
  height: 22vh;
  min-height: 160px;
  width: 100%;
}

.headline-wrapper,
.subline-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subline-wrapper {
  margin-top: 12px;
}

.headline-canvas,
.subline-canvas {
  display: none;
  width: 100%;
  max-width: 80vw;
}

.headline-fallback-text,
.subline-fallback-text {
  display: inline-block;
  background: linear-gradient(
      135deg,
      var(--color-gold-highlight),
      var(--color-gold-mid) 45%,
      var(--color-gold-shadow) 90%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-transform: none;
  position: relative;
  background-size: 200% 200%;
  animation: fallbackFlow 12s ease-in-out infinite;
}

.headline-fallback-text {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 700;
}

.subline-fallback-text {
  background: linear-gradient(
      135deg,
      var(--color-silver-highlight),
      var(--color-silver-mid) 50%,
      var(--color-silver-shadow) 100%
    );
  font-size: clamp(18px, 2.6vw, 36px);
  font-weight: 500;
  margin-top: 0;
  animation-duration: 16s;
}

.headline-fallback-text::after,
.subline-fallback-text::after {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 0) 65%
  );
  mix-blend-mode: screen;
  opacity: 0.3;
  transform: translate3d(-20%, -20%, 0);
  animation: fallbackSweep 6s ease-in-out infinite;
}

.subline-fallback-text::after {
  opacity: 0.22;
  animation-duration: 8s;
}

.ticker-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
  --gx: 50%;
  --gy: 50%;
  --gr: 0px;
}

.ticker-row {
  position: relative;
  width: 100%;
  height: 2.4rem;
  line-height: 2.4rem;
  overflow: hidden;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.18));
}

.ticker-track {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  height: 100%;
  transform: translate3d(var(--ticker-x, 0px), 0, 0);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1.1vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ticker-text);
  white-space: nowrap;
  user-select: none;
  will-change: transform;
}

.ticker-track.base {
  mix-blend-mode: normal;
}

.ticker-segment {
  display: inline-flex;
  align-items: center;
}

.ticker-overlay {
  pointer-events: none;
  mix-blend-mode: screen;
  --overlay-offset-x: 0px;
  --overlay-offset-y: 0px;
  transform: translate3d(calc(var(--ticker-x, 0px) + var(--overlay-offset-x, 0px)), var(--overlay-offset-y, 0px), 0);
  mask-image: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    #000 0,
    #000 var(--gr, 0px),
    transparent calc(var(--gr, 0px) + 12px)
  );
}

.ticker-overlay.r {
  filter: hue-rotate(-20deg) saturate(1.4);
  --overlay-offset-x: 2px;
}

.ticker-overlay.g {
  filter: hue-rotate(60deg) saturate(1.4);
  --overlay-offset-x: -2px;
}

.ticker-overlay.b {
  filter: hue-rotate(180deg) saturate(1.4);
  --overlay-offset-y: 1px;
}

.no-js-message {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 8vw;
  background: var(--color-obsidian);
  color: #f5f5f5;
  text-align: center;
  font-family: "Manrope", system-ui, sans-serif;
}

.ticker-fallback {
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(230, 230, 230, 0.6);
}

html.has-webgl .headline-canvas,
html.has-webgl .subline-canvas {
  display: block;
}

html.has-webgl .headline-fallback,
html.has-webgl .subline-fallback {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.headline-wrapper::after,
.subline-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

@media (max-width: 768px) {
  .hero {
    padding: 0 6vw;
  }

  .hero-spacer {
    height: 18vh;
    min-height: 120px;
  }
}

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

  .headline-fallback-text::after,
  .subline-fallback-text::after {
    opacity: 0.18;
  }
}

@keyframes fallbackFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fallbackSweep {
  0%,
  100% {
    transform: translate3d(-20%, -20%, 0);
  }
  50% {
    transform: translate3d(15%, 25%, 0);
  }
}
