

:root {

  --hero-meme-top: 10%;
  --hero-meme-left: 7%;
  --hero-meme-width: 28%;

  --hero-title-top: 12%;
  --hero-title-left: 44%;
  --hero-title-width: 48%;

  --hero-subtitle-top: 26%;
  --hero-subtitle-left: 44%;
  --hero-subtitle-width: 40%;

  --hero-text-top: 31%;
  --hero-text-left: 44%;
  --hero-text-width: 46%;

  --hero-social-bottom: 5%;
  --hero-social-right: 6%;


  --chart-title-top: 6%;
  --chart-title-left: 48%;

  --chart-box-top: 16%;
  --chart-box-left: 15%;
  --chart-box-width: 70%;
  --chart-box-height: 45%;

  --gallery-title-top: 66%;
  --gallery-title-left: 48%;

  --gallery-row-top: 74%;
  --gallery-row-left: 0%;
  --gallery-row-width: 50%;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #f2f2f2;
  color: #111;
}

.page {
  position: relative;
}

.screen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}


.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  opacity: 1;
  z-index: 0;
}


#toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(120%);
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



.hero-meme {
  position: absolute;
  top: var(--hero-meme-top);
  left: var(--hero-meme-left);
  width: var(--hero-meme-width);
  max-width: 520px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.hero-title {
  position: absolute;
  top: var(--hero-title-top);
  left: var(--hero-title-left);
  width: var(--hero-title-width);

  font-family: "Alfa Slab One", system-ui;
  font-size: 60px;
  line-height: 1.1;
  color: #000;
  z-index: 2;
}

.hero-subtitle {
  position: absolute;
  top: var(--hero-subtitle-top);
  left: var(--hero-subtitle-left);
  width: var(--hero-subtitle-width);

  font-family: "Allan", cursive;
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
  color: #000;
  z-index: 2;
}

.hero-text {
  position: absolute;
  top: var(--hero-text-top);
  left: var(--hero-text-left);
  width: var(--hero-text-width);

  font-family: "Allan", cursive;
  font-size: 22px;
  line-height: 1.35;
  color: #000;
  z-index: 2;
}


.hero-socials {
  position: absolute;
  right: var(--hero-social-right);
  bottom: var(--hero-social-bottom);
  display: flex;
  gap: 32px;
  font-family: "Allan", cursive;
  font-size: 52px;
  z-index: 2;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: "Allan", cursive !important;
  font-size: 52px;
  position: relative;
  color: #000;
  text-transform: lowercase;
  letter-spacing: 1px;
  transform-origin: bottom center;
  transition: transform 0.2s ease-out, letter-spacing 0.2s ease-out, color 0.2s ease-out;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: #000;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.22s ease-out;
}

.text-link:hover {
  transform: translateY(-4px) scale(1.04);
  letter-spacing: 2px;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link:active {
  transform: translateY(1px) scale(0.96);
}



.chart-title {
  position: absolute;
  top: var(--chart-title-top);
  left: var(--chart-title-left);
  transform: translateX(-50%);
  font-family: "Allan", cursive;
  font-size: 52px;
  font-weight: 700;
  text-transform: lowercase;
  z-index: 2;
}

.chart-box {
  position: absolute;
  top: var(--chart-box-top);
  left: var(--chart-box-left);
  width: var(--chart-box-width);
  height: var(--chart-box-height);

  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #111, 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 2;
}

.chart-box iframe {
  width: 100%;
  height: 100%;
}

.gallery-title {
  position: absolute;
  top: var(--gallery-title-top);
  left: var(--gallery-title-left);
  transform: translateX(-50%);
  font-family: "Allan", cursive;
  font-size: 46px;
  font-weight: 700;
  z-index: 2;
}

.gallery-row {
  position: absolute;
  top: var(--gallery-row-top);
  left: 13%;
  transform: translateX(-50%);
  width: var(--gallery-row-width);

  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 16px;
  z-index: 2;
}


.gallery-item {
  height: 250px;
  width: auto;
  object-fit: cover;
  box-shadow: 0 5px 18px rgba(0,0,0,0.25);
  border-radius: 4px;
  transform-origin: center;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, filter 0.2s ease-out;
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  filter: brightness(1.05);
}


.animated-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animated-item.visible {
  opacity: 1;
  transform: translateY(0);
}


.screen {
  animation: paperDrift 12s ease-in-out infinite alternate;
}

@keyframes paperDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 15px 25px; }
}


@media (max-width: 900px) {
  .screen {
    height: auto;
    min-height: unset;
    padding: 60px 16px 60px;
  }

  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero-meme,
  .hero-title,
  .hero-subtitle,
  .hero-text,
  .hero-socials {
    position: static;
    width: 100%;
    transform: none;
  }

  .hero-meme {
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 40px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 26px;
    text-align: left;
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-socials {
    justify-content: center;
    font-size: 40px;
    gap: 24px;
  }


  #chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .chart-title,
  .chart-box,
  .gallery-title,
  .gallery-row {
    position: static;
    transform: none;
    width: 100%;
  }

  .chart-box {
    height: 260px;
  }

  .gallery-row {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .gallery-item {
    flex: 0 0 auto;
    height: 140px;
  }
}

