.aboutme-wrapper {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  align-items: start;
}

.aboutme-timeline {
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 12px;
  z-index: 10;
}

.aboutme-timeline-list {
  list-style: none;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.aboutme-timeline-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.aboutme-timeline-item:focus-visible {
  outline: 3px solid #cdff4e;
  outline-offset: 4px;
}

.aboutme-timeline-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.aboutme-timeline-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3366ff;
}

.aboutme-timeline-item.aboutme-active {
  opacity: 1;
}

.aboutme-content {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 8vw, 120px);
}

.aboutme-section {
  min-height: 100vh;
  padding: 12vh 0;
  display: flex;
  align-items: center;
  scroll-margin-top: 24px;
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
  will-change: opacity, transform, filter;
}

.aboutme-card {
  width: 100%;
  min-height: 420px;
  display: block;
}

.aboutme-card::after {
  content: "";
  display: block;
  clear: both;
}

.aboutme-card-content {
  padding: clamp(24px, 4vw, 48px);
}

.aboutme-card h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.aboutme-card p {
  margin: 0;
  max-width: none;
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
}

.aboutme-inline-image {
  float: right;
  width: min(42%, 420px);
  height: auto;
  margin: 0 0 24px 40px;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .aboutme-wrapper {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 20px;
  }

  .aboutme-inline-image {
    width: min(48%, 360px);
    margin: 0 0 24px 28px;
  }

  .aboutme-section {
    min-height: 82vh;
    padding: 8vh 0;
  }
}

@media (max-width: 767px) {
  .aboutme-wrapper {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 16px;
  }

  .aboutme-content {
    gap: 28vh;
  }

  .aboutme-timeline {
    top: 12px;
    height: calc(100vh - 24px);
    padding: 8px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .aboutme-timeline-list {
    gap: 18px;
  }

  .aboutme-timeline-label {
    font-size: 0.7rem;
  }

  .aboutme-section {
    min-height: 86vh;
    padding: 10vh 0;
    filter: none !important;
  }

  .aboutme-card {
    min-height: auto;
  }

  .aboutme-card-content {
    padding: 0;
  }

  .aboutme-inline-image {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  .aboutme-card h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .aboutme-card p {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}

@media (hover: none) {
  .aboutme-timeline-item:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aboutme-section,
  .aboutme-timeline-item {
    transition-duration: 0.01ms;
  }
}
