:root {
  --bg: #0c0c0d;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.72);
  --accent: #f0c23a;
  --accent-ink: #14120d;
  --line: rgba(244, 241, 234, 0.18);
  --veil: linear-gradient(
    105deg,
    rgba(8, 8, 9, 0.78) 0%,
    rgba(8, 8, 9, 0.42) 42%,
    rgba(8, 8, 9, 0.18) 100%
  );
  --font-display: "Syne", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-display);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a1a1c;
}

.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.1s var(--ease-soft),
    transform 4.5s var(--ease-out);
  pointer-events: none;
}

.hero__still {
  object-position: 42% center;
}

.hero__video.is-active,
.hero[data-stage="action"] .hero__still.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero[data-stage="action"] .hero__video {
  opacity: 0;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  transition: background 0.9s var(--ease-soft);
}

.hero[data-stage="action"] .hero__veil {
  background: linear-gradient(
    115deg,
    rgba(8, 8, 9, 0.86) 0%,
    rgba(8, 8, 9, 0.55) 48%,
    rgba(8, 8, 9, 0.28) 100%
  );
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  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)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(2) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
  100% { transform: translate(1%, -1%); }
}

.hero__top,
.stage {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.75rem) clamp(1.2rem, 4vw, 3rem);
}

.hero__tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__tag--right {
  text-align: right;
}

.brand-lockup {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.65rem, 1.6vw, 1.1rem);
}

.brand-lockup__mark {
  width: clamp(2.4rem, 5vw, 3.6rem);
  height: clamp(2.4rem, 5vw, 3.6rem);
  object-fit: contain;
  flex-shrink: 0;
  animation: brand-glow 3.8s ease-in-out infinite;
}

.brand-lockup__name {
  font-size: clamp(4.2rem, 14vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
}

.brand-lockup__name .line {
  display: block;
  overflow: hidden;
}

.brand-lockup__name .line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.stage__headline {
  margin: 0.85rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
}

.stage {
  display: flex;
  align-items: flex-end;
  padding:
    clamp(1rem, 4vh, 3rem)
    clamp(1.2rem, 4vw, 3rem)
    clamp(1.6rem, 5vh, 3.5rem);
}

.stage[hidden] {
  display: none !important;
}

.stage__copy {
  max-width: min(34rem, 100%);
}

.stage__copy--action {
  max-width: min(36rem, 100%);
}

.stage__kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero.is-ready[data-stage="attention"] .stage--attention .brand-lockup__name .line > span,
.hero.is-ready[data-stage="action"] .stage--action .brand-lockup__name .line > span {
  animation: rise-in 0.95s var(--ease-out) forwards;
}

.hero.is-ready[data-stage="attention"] .stage--attention .stage__headline,
.hero.is-ready[data-stage="action"] .stage--action .stage__headline {
  animation: fade-up 0.9s var(--ease-out) 0.18s forwards;
}

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

.stage__lede {
  margin: 0.85rem 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(18px);
}

.hero.is-ready[data-stage="attention"] .stage--attention .stage__lede,
.hero.is-ready[data-stage="action"] .stage--action .stage__lede {
  animation: fade-up 0.9s var(--ease-out) 0.32s forwards;
}

.stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero.is-ready[data-stage="attention"] .stage--attention .stage__actions,
.hero.is-ready[data-stage="action"] .stage--action .stage__actions {
  animation: fade-up 0.9s var(--ease-out) 0.42s forwards;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-glow {
  0%,
  100% { opacity: 0.88; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s var(--ease-soft),
    color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(240, 194, 58, 0.35);
  animation: cta-pulse 2.8s ease-in-out infinite;
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(240, 194, 58, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: rgba(244, 241, 234, 0.08);
  transform: translateY(-2px);
}

@keyframes cta-pulse {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(240, 194, 58, 0.28); }
  50% { box-shadow: 0 0 0 10px rgba(240, 194, 58, 0); }
}

@media (max-width: 720px) {
  .hero__tag {
    display: none;
  }

  .hero__video,
  .hero__still {
    object-position: 70% center;
  }

  .stage {
    align-items: flex-end;
  }

  .stage__lede {
    max-width: 34ch;
  }
}

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

  .hero__video.is-active,
  .hero__still.is-active,
  .brand-lockup__name .line > span,
  .stage__headline,
  .stage__lede,
  .stage__actions {
    opacity: 1 !important;
    transform: none !important;
  }
}
