/* ── About page overrides ─────────────────────────────────── */
.about-page {
  background: #fff;
  color: #000;
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
  -webkit-overflow-scrolling: touch;
}

.about-page .nav {
  background: #fff;
}

.about-page .nav-name,
.about-page .nav-link {
  color: #000;
}

/* ── Layout ───────────────────────────────────────────────── */
.about-layout {
  max-width: 720px;
  margin: 0 auto;
  padding: 68px 32px 100px;
}

/* ── Sticky contents nav (always visible at top) ─────────── */
.about-sidebar {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: #fff;
  padding: 18px 0 20px;
}

.about-sidebar ul {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.sidebar-link {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.sidebar-link:hover {
  opacity: 0.7;
}

.sidebar-link.active {
  opacity: 1;
}

/* ── Main content ─────────────────────────────────────────── */
.about-content {
  padding-top: 40px;
  padding-bottom: 80px;
}

.about-section {
  margin-bottom: 80px;
  scroll-margin-top: 130px;
}

.section-heading {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 28px;
}

.section-body {
  font-size: 14px;
  line-height: 1.9;
  font-weight: 300;
  color: #111;
}

.section-body p + p {
  margin-top: 1.2em;
}

/* ── CV table ─────────────────────────────────────────────── */
.cv-table {
  border-collapse: collapse;
  width: 100%;
}

.cv-table tr {
  vertical-align: top;
}

.cv-table td {
  padding-bottom: 24px;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 300;
  color: #111;
}

.cv-year {
  white-space: nowrap;
  padding-right: 36px;
  opacity: 0.5;
}

.cv-sub {
  display: block;
  opacity: 0.6;
}

/* ── Contact links ────────────────────────────────────────── */
.contact-link {
  color: inherit;
  text-decoration: none;
}

.contact-link:hover {
  opacity: 0.5;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  .about-layout {
    padding: 55px 24px 80px;
  }

  .about-sidebar {
    top: 55px;
  }

  .about-sidebar ul {
    gap: 20px;
  }

  .about-section {
    scroll-margin-top: 115px;
  }
}

/* ── Notched iPhones (safe area) ──────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  .about-layout {
    padding-top: max(68px, calc(env(safe-area-inset-top) + 40px));
  }

  .about-sidebar {
    top: max(68px, calc(env(safe-area-inset-top) + 40px));
  }

  @media (max-width: 600px) {
    .about-layout {
      padding-top: max(55px, calc(env(safe-area-inset-top) + 34px));
    }

    .about-sidebar {
      top: max(55px, calc(env(safe-area-inset-top) + 34px));
    }
  }
}
