:root {
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.load-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--void);
  transform-origin: top;
  animation: overlayOut 1.1s var(--reveal-ease) 0.25s forwards;
}

@keyframes overlayOut {
  to {
    transform: translateY(-101%);
  }
}

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

.cursor-dot,
.cursor-ring {
  position: absolute;
  border-radius: 50%;
  translate: -50% -50%;
}

.cursor-dot {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background: var(--copper);
}

.cursor-ring {
  width: var(--cursor-ring);
  height: var(--cursor-ring);
  border: 1px solid color-mix(in srgb, var(--copper) 80%, white);
  opacity: 0.7;
}

body.is-pointer .cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  opacity: 1;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-reveal) var(--reveal-ease), transform var(--duration-reveal) var(--reveal-ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-clip] {
  clip-path: inset(12% 12% 12% 12%);
  transform: scale(1.04);
  transition: clip-path 900ms var(--reveal-ease), transform 900ms var(--reveal-ease);
}

[data-clip].is-in {
  clip-path: inset(0 0 0 0);
  transform: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 148px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 24px);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--reveal-ease) forwards;
}

.hero-title .line:nth-child(2) span {
  animation-delay: 0.12s;
}

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

.hero-sub {
  margin-top: 28px;
  max-width: 28rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--reveal-ease) 0.45s forwards;
}

.hero-ctas {
  margin-top: 32px;
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.9s var(--reveal-ease) 0.6s forwards;
}

.hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(36px, 7vw, 88px);
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: fadeUp 0.9s var(--reveal-ease) 0.7s forwards;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.magnetic {
  display: inline-flex;
}

.page-fade {
  animation: pageIn 0.7s var(--reveal-ease);
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shake {
  animation: shake 200ms var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none !important; }
  body { cursor: auto; }
}

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

  .load-overlay,
  .cursor {
    display: none !important;
  }

  [data-reveal],
  .hero-title .line span,
  .hero-sub,
  .hero-ctas,
  .hero-bar {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .hero-canvas {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 168px;
  }

  .hero-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
