/* ── About page layout ── */
.about-main {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding: calc(var(--nav-h) + 5rem) max(3rem, calc((100% - 936px) / 2)) 6rem;
}

.about-header .section-header {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.about-header h2 {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.3;
}

/* ── Two-column layout ── */
.about-selfintro {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: start;
  margin-top: -6rem;
}

/* ── Single-column stacked layout ── */
.about-example {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-example .about-image {
  position: static;
}

.about-example-visual {
  display: grid;
  grid-template-columns: calc(5 * 104px) 1fr;
  gap: 2rem;
  align-items: start;
}

.about-example-visual .about-image {
  height: calc(3 * 104px);
}

.about-example-visual .about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: unset;
}

.about-mini-grid-wrap {
  width: calc(5 * 104px);
}

.about-mini-grid {
  display: grid;
  width: calc(5 * 104px);
  height: calc(3 * 104px);
  grid-template-columns: repeat(5, 104px);
  grid-template-rows: repeat(3, 104px);
  position: relative;
  border-left: 1px solid rgba(0,0,0,0.12);
  border-top: 1px solid rgba(0,0,0,0.12);
}

.about-text p {
  font-size: 1rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg-card);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .about-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .about-selfintro {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-selfintro .about-image {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .about-example-visual {
    grid-template-columns: 1fr;
  }

  .about-example-visual .about-image {
    height: auto;
    width: 100%;
    max-width: calc(5 * 104px);
    margin: 0 auto;
  }

  .about-example-visual .about-image img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .about-mini-grid-wrap {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .about-mini-grid {
    width: calc(5 * 64px);
    height: calc(3 * 64px);
    grid-template-columns: repeat(5, 64px);
    grid-template-rows: repeat(3, 64px);
  }

  .about-mini-grid-wrap {
    width: calc(5 * 64px);
  }

  .about-example-visual {
    grid-template-columns: 1fr;
  }

  .about-example-visual .about-image {
    height: auto;
    max-width: calc(5 * 64px);
  }
}
