/* ============================================================
   About me & Illustrations — standalone folder pages.
   Loaded on top of style.css (shared home base).
   ============================================================ */

.frame--about {
  min-height: 1080px;
  min-height: max(1080px, 100dvh);
}

.frame--illustrations {
  min-height: 1960px;
  min-height: max(1960px, 100dvh);
}

/* Home base content sits blurred behind the open folder */
.is-blurred {
  filter: blur(6px);
  pointer-events: none;
}

/* "< HOME" button (design: Buttons / Home Button) */
.home-btn {
  position: absolute;
  left: 40px;
  top: 40px;
  z-index: 6;
  font-family: "Google Sans Code", monospace;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.home-btn {
  transition: transform 0.2s ease;
}

.home-btn:hover {
  text-decoration: none;
  transform: translateX(-3px);
}

/* ---------- Open folder ---------- */

.page-folder {
  position: absolute;
  background-position: top center;
  background-repeat: no-repeat;
}

.page-folder::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
}

.frame--about .page-folder {
  left: -68px;
  top: 24px;
  width: calc(100% + 74px);
  height: calc(100% - 24px);
  background-image: url(../assets/about/tab-open-about-tall.svg);
  background-size: 100% 1749px;
}

.frame--about .page-folder::after {
  top: 1748px;
  background: #fde1ff;
}

.frame--illustrations .page-folder {
  left: -3px;
  top: 24px;
  width: calc(100% + 6px);
  height: calc(100% - 24px);
  background-image: url(../assets/illustrations/tab-open-ill-tall.svg);
  background-size: 100% 1946px;
}

.frame--illustrations .page-folder::after {
  top: 1945px;
  background: #caecff;
}

.page-label {
  position: absolute;
  top: 48px;
  font-family: "Google Sans Code", monospace;
  font-weight: 300;
  font-size: 32px;
  line-height: normal;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

/* Labels centered on each folder's bump (fraction of the shape) */
.frame--about .page-label {
  left: calc(34.319% - 42.6px);
  transform: translateX(-50%);
  text-align: center;
}

.frame--illustrations .page-label {
  left: calc(63.116% + 0.8px);
  transform: translateX(-50%);
  text-align: center;
}

/* ---------- About me content ---------- */

/* Soft gradient wash over the open folder (design node 281:24) */
.about-wash {
  position: absolute;
  left: -1px;
  top: -1px;
  width: calc(100% + 7px);
  height: 1081px;
  overflow: hidden;
  pointer-events: none;
}

.about-wash img {
  position: absolute;
  left: -18.18%;
  top: -19.07%;
  width: 123.29%;
  height: 141.94%;
  max-width: none;
}

.polaroid {
  position: absolute;
  left: calc(50% + 2.91px);
  top: 64px;
  width: 697px;
  height: 733px;
}

.about-photo {
  position: absolute;
  left: calc(8.33% + 101px);
  top: 180px;
  width: 546px;
  height: 281px;
}

.attach {
  position: absolute;
  left: calc(75% - 39px);
  top: 106px;
  width: 43px;
  height: 131px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.attach img {
  width: 39px;
  height: 130px;
  transform: rotate(1.86deg);
}

.polaroid img,
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-text-1 {
  position: absolute;
  left: calc(8.33% + 101px);
  top: 501px;
  width: 491px;
}

.about-text-2 {
  position: absolute;
  left: calc(58.33% - 11px);
  top: 790px;
  width: 491px;
}

.about-text-1 p,
.about-text-2 p {
  margin: 0;
  font-family: "Golos Text", sans-serif;
  font-size: 20px;
  line-height: 28px;
  color: var(--ink);
}

.about-text-2 p + p {
  margin-top: 28px;
}

.about-text-1 p.gap {
  margin-top: 28px;
}

/* ---------- Illustrations content ---------- */

/* Gradient fill inside the open folder body (two rotated layers) */
.ill-grad {
  position: absolute;
  left: -3px;
  right: -3px;
  top: 128px;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.ill-grad img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1852px;
  height: 1465px;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-90deg) scaleY(-1);
}

.ill-title {
  position: absolute;
  left: calc(16.67% + 126px);
  top: 212px;
  width: 709px;
  height: 215px;
  overflow: hidden;
}

.ill-title img {
  position: absolute;
  left: -0.22%;
  top: 0;
  width: 100.44%;
  height: 118.14%;
  max-width: none;
}

.fab-note {
  position: absolute;
  left: calc(33.33% + 181.49px);
  top: 247px;
  transform: translateX(-50%) rotate(-6.03deg);
  margin: 0;
  font-family: "Mansalva", cursive;
  font-size: 24px;
  color: var(--violet);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.fab-underline {
  position: absolute;
  left: calc(33.33% + 121.93px);
  top: 275px;
  width: 122px;
  height: 21px;
  transform: rotate(1.47deg);
}

.fab-arrow {
  position: absolute;
  left: calc(50% + 12px);
  top: 253px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-arrow img {
  width: 31px;
  height: 30px;
  transform: rotate(-114.29deg);
}

.ill-intro {
  position: absolute;
  left: calc(50% - 2px);
  top: 499px;
  transform: translateX(-50%);
  width: 790px;
  margin: 0;
  font-family: "Golos Text", sans-serif;
  font-size: 20px;
  line-height: normal;
  color: var(--ink);
  text-align: center;
}

.ill-carousel {
  position: absolute;
  left: 50%;
  top: 667px;
  transform: translateX(-50%);
  width: 1280px;
  max-width: calc(100% + 0px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.ill-nav {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.ill-nav img {
  width: 40px;
  height: 40px;
  display: block;
}

.ill-nav--next img {
  transform: scaleX(-1);
}

.ill-slider {
  width: 1136px;
  max-width: calc(100% - 144px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.ill-window {
  width: 100%;
  height: 592px;
  overflow: hidden;
}

.ill-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.ill-slide {
  flex: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 64px;
}

.ill-slide .art {
  flex: none;
  width: 592px;
  height: 592px;
}

.ill-slide .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ill-slide--details {
  gap: 24px;
}

.ill-slide--details .art {
  width: 556px;
  height: 556px;
}

.ill-slide .cap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: "Golos Text", sans-serif;
  color: var(--ink);
}

.ill-slide .cap h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
}

.ill-slide .cap .sub {
  margin: 0;
  font-size: 24px;
}

.ill-slide .cap .desc {
  margin: 40px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.ill-dots {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 56px;
}

.ill-dots button {
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  position: relative;
  cursor: pointer;
}

.ill-dots button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #eed7fd;
  transition: background 0.15s;
}

.ill-dots button:hover::before {
  background: #e0b7fb;
}

.ill-dots button.active {
  background: #cd89f7;
  filter: drop-shadow(0 20px 10px rgba(131, 141, 168, 0.08));
  animation: dot-pop-p 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ill-dots button.active::before {
  display: none;
}

@keyframes dot-pop-p {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.ill-phone {
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 422px;
  height: 544px;
  overflow: hidden;
  display: block;
}

.ill-phone img {
  width: 100%;
  height: auto;
}

/* ============================================================
   Mobile — flow layout (no mobile frames in Figma)
   ============================================================ */

@media (max-width: 767px) {
  .frame--about,
  .frame--illustrations {
    min-height: 100dvh;
  }

  /* base home content hidden on these pages */
  .frame--about .title,
  .frame--about .intro,
  .frame--illustrations .title,
  .frame--illustrations .intro {
    display: none;
  }

  .home-btn {
    left: 20px;
    top: 88px;
    z-index: 6;
  }

  .frame--about .page-folder,
  .frame--illustrations .page-folder {
    left: -8px;
    top: 16px;
    width: calc(100% + 12.5px);
    height: calc(100% - 16px);
    background-size: 100% 459px;
  }

  .frame--about .page-folder {
    background-image: url(../assets/m-tab-about.svg);
  }

  .frame--illustrations .page-folder {
    background-image: url(../assets/m-tab-ill.svg);
  }

  .frame--about .page-folder::after,
  .frame--illustrations .page-folder::after {
    top: 458px;
  }

  .frame--about .page-label,
  .frame--illustrations .page-label {
    left: calc(48.622% - 1.9px);
    transform: translateX(-50%);
    top: 32px;
    font-size: 20px;
  }

  /* about: stack content */
  .about-wash {
    height: 100%;
  }

  .polaroid,
  .about-photo,
  .attach,
  .about-text-1,
  .about-text-2 {
    position: static;
    width: auto;
    height: auto;
    transform: none;
  }

  .about-flow {
    position: relative;
    padding: 130px 20px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .attach {
    display: none;
  }

  .polaroid img,
  .about-photo img {
    width: 100%;
    height: auto;
  }

  .about-text-1 p,
  .about-text-2 p {
    font-size: 16px;
    line-height: 26px;
  }

  .about-text-1 p.gap,
  .about-text-2 p + p {
    margin-top: 26px;
  }

  /* illustrations: stack */
  .ill-grad {
    top: 60px;
  }

  .ill-title {
    position: relative;
    left: auto;
    top: auto;
    margin: 120px auto 0;
    width: min(360px, calc(100% - 32px));
    height: auto;
    aspect-ratio: 709 / 215;
  }

  .fab-note,
  .fab-underline,
  .fab-arrow {
    display: none;
  }

  .ill-intro {
    position: static;
    transform: none;
    width: auto;
    margin: 24px 20px 0;
    font-size: 16px;
  }

  .ill-carousel {
    position: static;
    transform: none;
    width: auto;
    margin: 32px 4px 0;
    gap: 4px;
  }

  .ill-nav,
  .ill-nav img {
    width: 32px;
    height: 32px;
  }

  .ill-slider {
    max-width: calc(100% - 80px);
  }

  .ill-window {
    height: auto;
  }

  .ill-slide {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .ill-slide .art {
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ill-slide--details {
    gap: 12px;
  }

  .ill-slide--details .art {
    width: 100%;
    max-width: 480px;
    height: auto;
  }

  .ill-slide .cap {
    text-align: center;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
  }

  .ill-slide .cap h2 {
    font-size: 24px;
  }

  .ill-slide .cap .sub {
    font-size: 16px;
  }

  .ill-slide .cap .desc {
    margin-top: 8px;
    font-size: 14px;
  }

  .ill-dots {
    height: auto;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .ill-phone {
    position: static;
    transform: none;
    width: min(320px, 80%);
    height: auto;
    margin: 48px auto 0;
  }
}
