/* ==========================================================
   About Section — DOSOFTLAB
   - publish 본 (publish/about.css) 베이스
   - 사이트 통합 수정:
     1) Inter → Montserrat (사이트 영문 폰트 컨벤션)
     2) padding 120px → 7rem + 100vh flex center (pagepiling 호환)
     3) ::before 도트 패턴 제거 (회사 배경 이미지 보존)
   ========================================================== */

.about-section {
  --about-brand: #1E5FFF;
  --about-ink: #0B0F1A;
  --about-ink-2: #2A3142;
  --about-ink-3: #5A6275;
  --about-line: #E6E8EE;
  --about-line-2: #EEF0F5;
  --about-soft: #F5F7FB;
  --about-bg: #FAFBFD;
  --about-card: #FFFFFF;

  /* position 명시 X — pagepiling의 .pp-section { position: absolute }가 자연 적용되도록.
     publish 본의 position: relative는 ::before 도트 패턴 anchor용이었으나 도트 패턴 display:none 처리 후 불필요. */
  /* background는 main.css의 .section#about 정의(회사 배경 이미지)를 의도적으로 사용 */
  color: var(--about-ink);
  padding: 7rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* dotted backdrop — 회사 배경 이미지 위에선 시각 노이즈가 되어 비활성 */
.about-section::before {
  display: none;
}

.about-section .container {
  position: relative;
  max-width: 1280px;
  padding: 0 80px;
  margin: 0 auto;
  width: 100%;
}

/* ---------- header row ---------- */
.about-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.about-title {
  font-family: 'Pretendard', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.15;
  letter-spacing: -1.6px;
  margin: 0;
  max-width: 760px;
  color: var(--about-ink);
}

.about-title em {
  font-style: normal;
  color: var(--about-brand);
}

.about-lede {
  margin: 0;
  max-width: 340px;
  text-align: right;
  color: var(--about-ink-3);
  font-size: 15px;
  line-height: 1.8;
}

/* ---------- card grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  position: relative;
  overflow: hidden;
  background: var(--about-card);
  border: 1px solid var(--about-line);
  border-radius: 18px;
  padding: 40px 32px 32px;
  box-shadow: 0 2px 0 rgba(11, 15, 26, .02);
  transition:
    transform .35s cubic-bezier(.2, .7, .2, 1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.about-card:hover,
.about-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--about-brand);
  box-shadow:
    0 22px 40px -22px rgba(30, 95, 255, .35),
    0 2px 0 rgba(11, 15, 26, .02);
}

/* index row */
.about-card__index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}

.about-card__no {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  color: #7B8299;
  transition: color .35s ease;
}

.about-card__rule {
  flex: 1;
  height: 1px;
  background: var(--about-line);
  transition: background .35s ease;
}

.about-card__tag {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7B8299;
  text-transform: uppercase;
}

.about-card:hover .about-card__no,
.about-card:focus-within .about-card__no { color: var(--about-brand); }
.about-card:hover .about-card__rule,
.about-card:focus-within .about-card__rule { background: var(--about-brand); }

/* number watermark (decorative) */
.about-card__watermark {
  position: absolute;
  right: -6px;
  bottom: -30px;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 140px;
  letter-spacing: -6px;
  line-height: 1;
  color: rgba(11, 15, 26, .03);
  pointer-events: none;
  user-select: none;
  transition: color .35s ease;
}

.about-card:hover .about-card__watermark,
.about-card:focus-within .about-card__watermark {
  color: rgba(30, 95, 255, .06);
}

/* titles */
.about-card__en {
  position: relative;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -.8px;
  line-height: 1.05;
  margin: 0 0 8px;
  word-break: break-word;
  color: var(--about-ink);
}

.about-card__ko {
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 28px;
  color: var(--about-ink-3);
}

/* divider */
.about-card__divider {
  height: 1px;
  background: var(--about-line-2);
  margin: 0 0 28px;
}

/* description */
.about-card__desc {
  margin: 0;
  color: var(--about-ink-2);
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-line;
}

/* ==========================================================
   Responsive
   ========================================================== */

/* tablet */
@media (max-width: 1024px) {
  /* 태블릿/모바일: 카드 1열로 stack되어 컨텐츠가 viewport보다 큼 → flex center 해제 + pp-scrollable이 자체 스크롤 가능하도록
     padding-top은 px 명시 — 모바일 rem 정책(1rem=8px)으로 작아져 fixed 메뉴바에 가림 방지 */
  .about-section {
    padding: 96px 0 64px;
    display: block;
    justify-content: initial;
  }
  /* pp-scrollable 클래스 부여 시 자체 세로 스크롤 활성 (publish 본 overflow:hidden 덮어씀) */
  .about-section.pp-scrollable {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .about-section .container { padding: 0 40px; }

  .about-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
  }

  .about-title { font-size: 42px; letter-spacing: -1.2px; }
  .about-lede { text-align: left; max-width: 560px; }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 32px 28px 28px; }
  .about-card__index { margin-bottom: 40px; }
  .about-card__watermark { font-size: 120px; }
}

/* mobile */
@media (max-width: 640px) {
  .about-section { padding: 80px 0 48px; }
  .about-section .container { padding: 0 20px; }

  .about-title { font-size: 26px; letter-spacing: -1px; line-height: 1.3; }
  .about-lede { font-size: 14px; }

  .about-card { padding: 28px 22px 24px; border-radius: 14px; }
  .about-card__index { margin-bottom: 32px; }
  .about-card__tag { display: none; }
  .about-card__en { font-size: 26px; }
  .about-card__ko { font-size: 15px; margin-bottom: 20px; }
  .about-card__divider { margin-bottom: 20px; }
  .about-card__desc { font-size: 13.5px; }
  .about-card__watermark { font-size: 96px; bottom: -20px; }

  /* mobile: disable hover lift, keep only color states on tap */
  .about-card:hover { transform: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .about-card,
  .about-card__no,
  .about-card__rule,
  .about-card__watermark { transition: none; }
  .about-card:hover { transform: none; }
}