:root {
  --terra: #aa5d49;
  --bg: var(--terra);
  --stamp-in-ms: 260;
  --stamp-fade-ms: 7000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg);
  overflow: hidden;
}

.stage {
  height: 100dvh;
}

/* Grand-opening marquee across the top: cream strip, terra caps, a
   seamless loop of two identical halves shifting one half-width */
.banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 3;
  background: #f1efdf;
  color: var(--terra);
  overflow: hidden;
  padding-block: 10px;
  font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', helvetica, arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-track {
  display: flex;
  width: max-content;
  animation: banner-marquee 45s linear infinite;
}

.banner-half {
  display: flex;
}

.banner-half span {
  white-space: nowrap;
  padding-inline: 18px;
}

@keyframes banner-marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .banner-track { animation: none; }
}

.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;
}

.visual {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(337px, 72vw);
  aspect-ratio: 337 / 32;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.15);
  -webkit-mask: url('assets/logo-horizontal.svg') center / contain no-repeat;
  mask: url('assets/logo-horizontal.svg') center / contain no-repeat;
  filter: drop-shadow(0 1px 0 rgba(255, 252, 240, 0.14));
}

.logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #F1EFDF;
  -webkit-mask: url('assets/logo-horizontal.svg') no-repeat;
  mask: url('assets/logo-horizontal.svg') no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center calc(50% + 0.75px);
  mask-position: center calc(50% + 0.75px);
  filter: blur(0.5px);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

.stamps {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stamp {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  pointer-events: none;
}

.stamp-ink {
  animation:
    stamp-press calc(var(--stamp-in-ms) * 1ms) cubic-bezier(0.3, 1.1, 0.6, 1) both,
    stamp-fade calc(var(--stamp-fade-ms) * 1ms) ease-in calc(var(--stamp-in-ms) * 1ms) forwards;
}

@keyframes stamp-press {
  from { opacity: 0; transform: scale(1.15); }
  60%  { opacity: 1; transform: scale(0.99); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes stamp-fade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stamp-ink { animation: none; }
}

.badge-wrap         { position: relative; }
.badge-wrap .badge  { display: block; width: 100%; height: 100%; }
.badge-wrap .flower {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28.04%;
  height: 46.58%;
}
