/* ==========================================================================
   zejneba.com — About page (about.html)
   --------------------------------------------------------------------------
   1. Accent color
   2. Hero ("From a €50 logo to fintech platforms") + polaroids
   3. Polaroid (Figma: About/Polaroid)
   4. Story ("How it all started")
   5. Life outside of Figma (polaroid wall)
   6. Responsive
   ========================================================================== */


/* 1. Accent color
   ========================================================================== */

.about-accent {
  color: var(--brand-olive);
}


/* 2. Hero
   ========================================================================== */

.about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 152px 24px 40px;
  text-align: center;
}

.about-hero h1 {
  max-width: 900px;
  color: var(--base-black);
}

.about-hero__intro,
.about-life__intro {
  color: var(--neutral-muted);
}

.about-hero__intro {
  max-width: 560px;
}

/* The polaroids are placed on a 1106px stage, exactly as in Figma.
   Each one is positioned by its center (--x, --y) and turned by --r. */
.polaroid-stage {
  position: relative;
  width: 1106px;
  height: 470px;
  flex-shrink: 0;
}

.polaroid-stage > .about-polaroid {
  position: absolute;
  top: var(--y);
  left: var(--x);
  /* centered with margins, so the reveal animation can use translate */
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
}

.about-hero__note {
  position: absolute;
  top: 3px;
  left: 653px;
  color: var(--base-black);
  font-family: "Gochi Hand", cursive;
  font-size: 17px;
  line-height: 20px;
  white-space: nowrap;
}

.about-hero__arrow {
  position: absolute;
  top: 21.5px;
  left: 624px;
  width: 48.6px;
  height: 36.5px;
  color: var(--base-black);
}


/* 3. Polaroid
   --------------------------------------------------------------------------
   White frame, photo on top, handwritten caption, a strip of sage tape.
   Size with --w / --h, tilt with --r. Without a photo, the photo area
   shows a fog background and a short hint ("Add photo: …").
   ========================================================================== */

.about-polaroid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: var(--w, 300px);
  height: var(--h, 360px);
  margin: 0;
  padding: 12px 12px 14px;
  border-radius: var(--radius-xs);
  background: var(--base-white);
  filter: drop-shadow(0 18px 25px rgba(20, 20, 20, 0.14));
  rotate: var(--r, 0deg);
}

.about-polaroid__photo {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 12px;
  border-radius: 2px;
  background: var(--brand-fog);
  color: var(--brand-olive);
  object-fit: cover;
  text-align: center;
}

img.about-polaroid__photo {
  padding: 0;
}

.about-polaroid__caption {
  color: var(--base-black);
  font-family: "Gochi Hand", cursive;
  font-size: 17px;
  line-height: 22px;
  text-align: center;
}

.about-polaroid__tape {
  position: absolute;
  top: -13px;
  left: calc(50% - 45px);
  width: 90px;
  height: 26px;
  background: var(--brand-sage);
}

/* Hover: the whole polaroid (tape included) lifts a little and straightens */
@media (hover: hover) {
  .about-polaroid {
    transition:
      translate var(--duration-base) var(--ease-out),
      rotate var(--duration-base) var(--ease-out),
      filter var(--duration-base) var(--ease-out);
  }

  .about-polaroid:hover {
    z-index: 1;
    translate: 0 -10px;
    rotate: calc(var(--r, 0deg) * 0.5);
    filter: drop-shadow(0 26px 32px rgba(20, 20, 20, 0.18));
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-polaroid {
    transition: none;
  }
}


/* 4. Story
   ========================================================================== */

.about-story {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: min(680px, 100% - 48px);
  margin: 0 auto;
  padding: 120px 0 40px;
}

.about-story h2 {
  color: var(--base-black);
}

.about-story__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
  color: var(--neutral-muted);
}


/* 5. Life outside of Figma
   ========================================================================== */

/* Heading and text sit in the same left-aligned 680px column as the story */
.about-life {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 140px 24px 120px;
}

.about-life h2,
.about-life__intro {
  width: min(680px, 100%);
}

.about-life h2 {
  color: var(--base-black);
}

.about-life__intro {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 28px;
}

.polaroid-stage--wall {
  height: 440px;
}


/* 6. Responsive
   --------------------------------------------------------------------------
   Below 1140px the stage no longer fits: the polaroids wrap into
   centered rows, keeping their tilt.
   ========================================================================== */

@media (max-width: 1140px) {
  .polaroid-stage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 28px;
    width: 100%;
    max-width: 900px;
    height: auto;
    padding: 48px 0 24px;
  }

  .polaroid-stage > .about-polaroid {
    position: relative;
    top: auto;
    left: auto;
    margin: 0;
    width: 260px;
    height: 310px;
  }

  .about-hero__note,
  .about-hero__arrow {
    display: none;
  }
}

@media (max-width: 860px) {
  .about-hero {
    padding-top: 124px;
  }

  .about-story {
    gap: 40px;
    padding-top: 80px;
  }

  .about-life {
    padding: 100px 24px 80px;
  }
}

@media (max-width: 640px) {
  .about-hero {
    padding: 112px var(--grid-margin) 24px;
  }

  .about-hero h1 {
    font-size: 40px;
    line-height: 46px;
  }

  .about-story h2,
  .about-life h2 {
    font-size: 36px;
    line-height: 42px;
  }

  .about-story {
    width: calc(100% - 2 * var(--grid-margin));
  }

  .about-life {
    padding: 80px var(--grid-margin) 64px;
  }

  .polaroid-stage {
    gap: 32px 12px;
  }

  .polaroid-stage > .about-polaroid {
    width: calc(50% - 6px);
    max-width: 220px;
    height: auto;
    aspect-ratio: 260 / 310;
    gap: 8px;
    padding: 8px 8px 10px;
  }

  .about-polaroid__caption {
    font-size: 15px;
    line-height: 18px;
  }

  .about-polaroid__photo {
    font-size: 11px;
    line-height: 14px;
  }

  .about-polaroid__tape {
    top: -10px;
    left: calc(50% - 32px);
    width: 64px;
    height: 20px;
  }
}
