:root {
  --bg: #000000;
  --ink: #f2ebe3;
  --muted: rgba(242, 235, 227, 0.72);
  --blood: #c4161c;
  --blood-hot: #e31b23;
  --font-display: "Syne", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --parallax-x: 0px;
  --parallax-y: 0px;
  --bar-top: 4rem;
  --bar-bottom: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: var(--font-serif);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/*
  Full-viewport stage: image centered on the screen (not between unequal bars).
  Black bars overlay as chrome; max-height keeps art clear of both bars.
*/
.banner {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}

.banner__frame {
  position: relative;
  display: grid;
  max-width: min(100vw, 1024px);
  max-height: min(
    calc(100dvh - 2 * max(var(--bar-top), var(--bar-bottom))),
    calc(100vw * 575 / 1024)
  );
  transform: translate3d(
    calc(var(--parallax-x) * -0.25),
    calc(var(--parallax-y) * -0.2),
    0
  );
  transition: transform 0.55s var(--ease);
  will-change: transform;
  isolation: isolate;
}

.banner__art {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: inherit;
  object-fit: contain;
  /* Soft dissolve on all edges into the black stage */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* Soft fog on all four edges */
.banner__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.9) 8%, transparent 22%),
    linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0.9) 8%, transparent 22%),
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.9) 10%, transparent 26%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.9) 10%, transparent 26%);
}

@media (min-width: 1200px) {
  .banner__frame {
    max-width: min(100vw, 960px);
  }
}

@media (min-width: 1800px) {
  :root {
    --bar-top: 4.5rem;
    --bar-bottom: 4.5rem;
  }

  .banner__frame {
    max-width: min(100vw, 1024px);
  }
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.1;
  mix-blend-mode: screen;
  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)'/%3E%3C/svg%3E");
  animation: grain-shift 0.8s steps(2) infinite;
}

.topbar,
.hero {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  background: #000;
}

/* Top black bar */
.topbar {
  top: 0;
  height: var(--bar-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.1rem, 3.5vw, 2.5rem);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 0.7rem);
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(100% - 4.5rem);
  font-family: var(--font-display);
  font-size: clamp(0.52rem, 2.6vw, 0.72rem);
  font-weight: 700;
  letter-spacing: clamp(0.04em, 0.35vw, 0.14em);
  text-transform: uppercase;
}

.topbar__brand span {
  white-space: nowrap;
  overflow: visible;
}

.topbar__brand img {
  width: clamp(1.55rem, 7vw, 2.1rem);
  height: clamp(1.55rem, 7vw, 2.1rem);
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: screen;
}

.topbar__meta {
  margin: 0;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 2.2vw, 0.65rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 235, 227, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Bottom black bar — same height as top for optical balance */
.hero {
  bottom: 0;
  height: var(--bar-bottom);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding: 0 clamp(1.1rem, 3.5vw, 2.5rem);
}

.hero__copy {
  display: grid;
  gap: 0.2rem;
}

.hero__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blood-hot);
  animation: rise 1.2s var(--ease) both;
}

.hero__lede {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  animation: rise 1.2s var(--ease) 0.1s both;
}

.socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  animation: rise 1.2s var(--ease) 0.2s both;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.socials__link svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.socials__link:hover {
  transform: translateY(-2px) scale(1.08);
}

.socials__link--soon {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-2%, 1%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  :root {
    --bar-top: 3.75rem;
    --bar-bottom: 3.75rem;
  }

  .topbar {
    gap: 0.5rem;
    padding: 0 0.85rem;
  }

  .hero__copy {
    display: none;
  }

  .socials {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grain,
  .hero__eyebrow,
  .hero__lede,
  .socials {
    animation: none;
  }

  .banner__frame {
    transition: none;
  }
}
