/* ==========================================================================
   WEARSHIVER — Bouncing Logo Coming Soon (v2)
   style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --c-bg:     #050505;
  --c-text:   #f0ede8;
  --c-muted:  #5a5a5a;
  --c-border: #2a2a2a;
  --c-accent: #8b1a1a;

  /* Bounce palette — cold, desaturated, streetwear */
  --hue-0: #f0ede8; /* off-white */
  --hue-1: #8b1a1a; /* dark red */
  --hue-2: #6e7a82; /* ice grey-blue */
  --hue-3: #b06a78; /* dusty pink */
  --hue-4: #a8e0c4; /* muted acid green */
  --hue-5: #4f6d8c; /* steel blue */

  --f-brand:   'Anton', Impact, sans-serif;
  --f-display: 'Bebas Neue', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'Courier New', Courier, monospace;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. Noise overlay
   -------------------------------------------------------------------------- */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* --------------------------------------------------------------------------
   4. System tag (top-left)
   -------------------------------------------------------------------------- */
.system-tag {
  position: fixed;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1.6;
}

.system-tag span:first-child {
  color: var(--c-accent);
}

/* --------------------------------------------------------------------------
   5. Stage
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: min(880px, 92vw);
  min-height: 100dvh;
  padding: clamp(5rem, 12vh, 8rem) 1.5rem 4.5rem;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) both;
}

/* The bouncing logo */
.bouncer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: clamp(58px, 6vw, 110px);
  max-width: calc(100vw - 32px);
  aspect-ratio: 800 / 729;
  --logo-filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(350%) hue-rotate(337deg) brightness(105%) contrast(88%);
  color: var(--hue-0);
  background: transparent;
  pointer-events: none;
  will-change: transform;
}

.bouncer__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
  mix-blend-mode: normal;
  filter: var(--logo-filter) drop-shadow(0 0 14px currentColor);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Color states cycled on impact — solid fills, cold/underground palette */
.bouncer--c0 {
  color: var(--hue-0);
  --logo-filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(350%) hue-rotate(337deg) brightness(105%) contrast(88%);
}

.bouncer--c1 {
  color: var(--hue-1);
  --logo-filter: brightness(0) saturate(100%) invert(15%) sepia(39%) saturate(2473%) hue-rotate(342deg) brightness(88%) contrast(96%);
}

.bouncer--c2 {
  color: var(--hue-2);
  --logo-filter: brightness(0) saturate(100%) invert(49%) sepia(12%) saturate(449%) hue-rotate(160deg) brightness(91%) contrast(86%);
}

.bouncer--c3 {
  color: var(--hue-3);
  --logo-filter: brightness(0) saturate(100%) invert(55%) sepia(17%) saturate(817%) hue-rotate(297deg) brightness(91%) contrast(83%);
}

.bouncer--c4 {
  color: var(--hue-4);
  --logo-filter: brightness(0) saturate(100%) invert(88%) sepia(24%) saturate(428%) hue-rotate(88deg) brightness(94%) contrast(88%);
}

.bouncer--c5 {
  color: var(--hue-5);
  --logo-filter: brightness(0) saturate(100%) invert(40%) sepia(12%) saturate(1059%) hue-rotate(169deg) brightness(91%) contrast(84%);
}

/* Brief glitch pulse on impact */
.bouncer.is-hit {
  animation: hitGlitch 0.22s steps(2, end);
}

/* --------------------------------------------------------------------------
   7. Brand / headings
   -------------------------------------------------------------------------- */
.brand {
  width: min(760px, 76vw);
  margin-bottom: clamp(1.2rem, 4vh, 2.1rem);
  line-height: 1;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(240, 237, 232, 0.72))
    drop-shadow(0 0 22px rgba(240, 237, 232, 0.3))
    drop-shadow(0 0 44px rgba(185, 221, 237, 0.12));
  transform: translateZ(0);
}

.subtitle {
  font-family: var(--f-display);
  font-size: clamp(1rem, 3.4vw, 1.4rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.2rem;
}

.subtext {
  font-family: var(--f-body);
  font-size: clamp(0.7rem, 2vw, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2.4rem;
}

/* --------------------------------------------------------------------------
   8. Notify stamp
   -------------------------------------------------------------------------- */
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stamp__row {
  display: flex;
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: border-color 0.25s ease;
  max-width: min(100%, 430px);
}

.stamp__row:focus-within {
  border-color: var(--c-muted);
}

.stamp__input {
  background: transparent;
  border: none;
  outline: none;
  width: clamp(150px, 40vw, 240px);
  padding: 0.8rem 1rem;
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--c-text);
  caret-color: var(--c-accent);
}

.stamp__input::placeholder {
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.stamp__btn {
  background: var(--c-text);
  color: var(--c-bg);
  border: none;
  padding: 0.8rem 1.2rem;
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.stamp__btn:hover {
  background: var(--c-accent);
  color: var(--c-text);
}

.stamp__btn:active {
  transform: scale(0.96);
}

.stamp__success {
  display: none;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text);
  margin-top: 0.9rem;
}

.stamp__success.is-visible {
  display: block;
  animation: fadeUp 0.5s ease both;
}

.refresh-copy {
  margin-top: 1.1rem;
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #343434;
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.footer {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2c2c2c;
  z-index: 3;
}

.instagram-button {
  position: fixed;
  right: 1.4rem;
  bottom: 3.5rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(240, 237, 232, 0.18);
  color: var(--c-text);
  background: rgba(5, 5, 5, 0.88);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.instagram-button:hover {
  border-color: var(--c-accent);
  background: rgba(139, 26, 26, 0.16);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   10. Keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hitGlitch {
  0%   { opacity: 1; }
  35%  { opacity: 0.82; }
  65%  { opacity: 1; }
  100% { opacity: 1; }
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .noise {
    opacity: 0.035;
    background-size: 220px 220px;
  }

  .system-tag {
    top: 1rem;
    left: 1rem;
    font-size: 0.52rem;
  }

  .stage {
    width: min(100%, 94vw);
    padding: 5.5rem 1rem 5rem;
  }

  .brand {
    width: min(94vw, 430px);
    margin-bottom: 1.35rem;
  }

  .brand__logo {
    filter:
      drop-shadow(0 0 5px rgba(240, 237, 232, 0.68))
      drop-shadow(0 0 17px rgba(240, 237, 232, 0.24));
  }

  .subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.38em;
    padding-left: 0.38em;
  }

  .subtext {
    max-width: 18rem;
    margin-bottom: 1.7rem;
    line-height: 1.65;
  }

  .stamp,
  .stamp__row {
    width: min(100%, 21rem);
  }

  .stamp__row {
    flex-direction: column;
  }

  .stamp__input {
    width: 100%;
    text-align: center;
  }

  .bouncer {
    width: clamp(38px, 12vw, 54px);
    max-width: calc(100vw - 32px);
  }

  .stamp__btn {
    width: 100%;
    padding: 0.8rem 0.9rem;
  }

  .instagram-button {
    right: 1rem;
    bottom: 2.7rem;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.58rem;
  }
}

/* --------------------------------------------------------------------------
   12. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .stage,
  .stamp__success.is-visible {
    animation: none;
  }
  .bouncer.is-hit {
    animation: none;
  }
  .bouncer {
    transition: none;
  }
}
