/**
 * Avahouse Final — Y2K / neo-brutalist scrapbook
 */

:root {
  --lime: #c8ff4a;
  --pink: #ff7eb3;
  --lavender: #c4b5fd;
  --sky: #7dd3fc;
  --cream: #fef3e7;
  --ink: #0c0c0c;
  --white: #fff;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --shadow-pop: 6px 6px 0 var(--ink);
  --shadow-pop-sm: 4px 4px 0 var(--ink);
  --vol-layer:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -3px 0 rgba(0, 0, 0, 0.06),
    0 3px 0 rgba(0, 0, 0, 0.12),
    6px 8px 0 var(--ink),
    10px 18px 28px rgba(0, 0, 0, 0.22);
  --vol-layer-sm:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.1),
    4px 5px 0 var(--ink),
    6px 12px 18px rgba(0, 0, 0, 0.18);
  --radius: 14px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .vol-float,
  .logo-burst svg.star-bg {
    animation: none !important;
  }
  .vol-tilt {
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 16px) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(0, -11px, 24px) rotate(var(--rot, 0deg));
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 12px) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(0, -8px, 20px) rotate(var(--rot, 0deg));
  }
}

@keyframes float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 14px) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(0, -14px, 22px) rotate(var(--rot, 0deg));
  }
}

@keyframes star-pulse {
  0%,
  100% {
    transform: translateZ(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateZ(8px) scale(1.03) rotate(3deg);
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--lavender);
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  perspective: 1400px;
}

.vol-float {
  transform-style: preserve-3d;
  will-change: transform;
}

.vol-tilt {
  transform-style: preserve-3d;
  transition: box-shadow 0.25s ease;
}

a {
  color: inherit;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px 80px;
}

/* ----- Top bar stickers ----- */
.top-scatter {
  padding: 20px 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  justify-content: space-between;
}

.logo-burst {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  transform-style: preserve-3d;
  animation: float-b 5.5s ease-in-out infinite;
}

.logo-burst svg.star-bg {
  position: absolute;
  width: min(118vw, 420px);
  height: auto;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: star-pulse 6s ease-in-out infinite;
  filter: drop-shadow(4px 6px 0 var(--ink)) drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.logo-burst img {
  position: relative;
  z-index: 2;
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 0 4px var(--white)) drop-shadow(0 0 0 6px var(--ink));
}

.nav-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.nav-sticker {
  display: inline-flex;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--lime);
  box-shadow: var(--vol-layer-sm);
  --rot: -2deg;
  animation: float-b 4.8s ease-in-out infinite;
}

.nav-sticker:nth-child(1) {
  animation-delay: 0s;
  --rot: -3deg;
}

.nav-sticker:nth-child(2) {
  animation-delay: 0.4s;
  --rot: 2deg;
}

.nav-sticker:nth-child(3) {
  animation-delay: 0.8s;
  --rot: -1deg;
}

.nav-sticker:nth-child(4) {
  animation-delay: 1.2s;
  --rot: 3deg;
}

.nav-sticker:nth-child(2) {
  background: var(--pink);
}

.nav-sticker:nth-child(3) {
  background: var(--sky);
}

.nav-sticker:nth-child(4) {
  background: var(--cream);
}

.nav-sticker:hover {
  animation-play-state: paused;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    8px 10px 0 var(--ink),
    14px 22px 32px rgba(0, 0, 0, 0.28);
}

/* ----- Sections ----- */
.y2k-section {
  position: relative;
  padding: 56px 0;
  border-bottom: 5px solid var(--ink);
}

.y2k-section--pink {
  background: var(--pink);
}

.y2k-section--lavender {
  background: var(--lavender);
}

.y2k-section--lime {
  background: var(--lime);
}

.y2k-section--sky {
  background: var(--sky);
}

.y2k-section--cream {
  background: var(--cream);
}

.y2k-section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 16' preserveAspectRatio='none'%3E%3Cpath d='M0 8 L40 0 L80 8 L120 0 L160 8 L200 0 L240 8 L280 0 L320 8 L360 0 L400 8 L440 0 L480 8 L520 0 L560 8 L600 0 L640 8 L680 0 L720 8 L760 0 L800 8 L840 0 L880 8 L920 0 L960 8 L1000 0 L1040 8 L1080 0 L1120 8 L1160 0 L1200 8 L1200 16 L0 16 Z' fill='%230c0c0c'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 1200px 16px;
  pointer-events: none;
  z-index: 2;
}

.y2k-section:last-of-type::after {
  display: none;
}

/* ----- Typography stickers ----- */
.hero-y2k {
  padding: 20px 0 50px;
}

.tape-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.sticker-title {
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--vol-layer);
  --rot: -1.5deg;
  animation: float-a 4.2s ease-in-out infinite;
}

.tape-row:nth-child(2) .sticker-title {
  animation-delay: 0.35s;
}

.tape-row:nth-child(3) .sticker-title:nth-child(1) {
  --rot: 2deg;
  animation-delay: 0.7s;
}

.tape-row:nth-child(3) .sticker-title:nth-child(2) {
  --rot: -3deg;
  animation-delay: 1.05s;
}

.sticker-title--outline {
  color: var(--white);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--lime);
}

.sticker-title--fill {
  background: var(--lime);
}

.sticker-title--pink {
  background: var(--pink);
  --rot: 2deg;
}

.sticker-title--lav {
  background: var(--lavender);
  --rot: -3deg;
}

.sticker-sub--wide {
  max-width: none;
  margin-bottom: 16px;
}

.sticker-sub--lime {
  background: var(--lime);
  --rot: -2deg;
  animation-delay: 0.85s;
}

.sticker-sub--pink {
  background: var(--pink);
  --rot: 2deg;
  animation-delay: 1.15s;
}

.cloud-label--lime {
  background: var(--lime);
}

.cloud-label--white {
  background: var(--white);
  border-width: 4px;
}

.cloud-label--cream {
  background: var(--cream);
}

.mm-card--pink {
  background: var(--pink);
}

.mm-card--sky {
  background: var(--sky);
}

.btn-y2k--white {
  background: var(--white);
}

.sticker-sub {
  max-width: 36ch;
  padding: 14px 18px;
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--vol-layer-sm);
  --rot: 1deg;
  animation: float-c 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.cutout {
  border: 5px solid var(--white);
  outline: 3px solid var(--ink);
  border-radius: 8px 18px 12px 20px;
  box-shadow: var(--vol-layer);
  overflow: hidden;
  background: var(--white);
  --rot: -2deg;
  animation: float-a 5.2s ease-in-out infinite;
  animation-delay: 0.2s;
}

.cutout:hover {
  animation-play-state: paused;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.65),
    10px 12px 0 var(--ink),
    16px 28px 40px rgba(0, 0, 0, 0.3);
}

.cutout img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.grid-y2k {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid-y2k-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .grid-y2k-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mm-card {
  padding: 18px 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--vol-layer-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  --rot: 0deg;
  animation: float-b 4.6s ease-in-out infinite;
}

.mm-card:nth-child(1) {
  --rot: -2deg;
  animation-delay: 0s;
}

.mm-card:nth-child(2) {
  --rot: 2deg;
  animation-delay: 0.45s;
}

.mm-card:nth-child(3) {
  --rot: -1deg;
  animation-delay: 0.9s;
}

.mm-card:hover {
  animation-play-state: paused;
  box-shadow: var(--vol-layer);
}

.mm-card span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  opacity: 0.75;
}

.mind-wrap {
  position: relative;
  padding: 20px 0 40px;
}

.dotted-connector {
  display: none;
}

@media (min-width: 900px) {
  .dotted-connector {
    display: block;
    position: absolute;
    left: 8%;
    right: 8%;
    top: 42%;
    height: 100px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
  }
}

.cloud-label {
  display: inline-block;
  padding: 20px 28px;
  margin: 0 auto 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 50% 40% 55% 45% / 55% 45% 55% 45%;
  background: var(--white);
  box-shadow: var(--vol-layer);
  --rot: 0deg;
  animation: float-c 5.8s ease-in-out infinite;
}

.section-head-center {
  text-align: center;
}

.btn-y2k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  box-shadow: var(--vol-layer);
  cursor: pointer;
  --rot: -2deg;
  animation: float-a 4.4s ease-in-out infinite;
}

.btn-y2k:nth-child(2) {
  animation-delay: 0.55s;
  --rot: 2deg;
}

.btn-y2k:hover {
  animation-play-state: paused;
  filter: brightness(1.05);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    10px 12px 0 var(--ink),
    18px 26px 36px rgba(0, 0, 0, 0.28);
}

.btn-y2k--pink {
  background: var(--pink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

[data-reveal] {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal]:not(.vol-float) {
  transform: translate3d(0, 36px, 0) rotate(0.5deg);
}

[data-reveal].vol-float {
  transform: translate3d(0, 40px, 0);
}

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

[data-reveal].in:not(.vol-float) {
  transform: translate3d(0, 0, 0) rotate(0);
}

[data-reveal].in.vol-float {
  transform: none;
}

.foot-y2k {
  text-align: center;
  padding: 32px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.foot-y2k a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
