/* =============================================================
   ABOUT.CSS — About page layout and components
   ============================================================= */

/* Lock page to viewport — no scroll */
body, .page {
  height: 100dvh;
  overflow: hidden;
}

/* -------------------------------------------------------------
   Two-column layout — sticky sidebar left, bio right
   ------------------------------------------------------------- */
.about-layout {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* -------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------- */
.about-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-headshot {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--border-radius-xl);
  display: block;
  border: 1px solid var(--color-border);
}

/* Info card — name, title, links, resume */
.about-card {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card identity row — image hidden on desktop, shown on mobile via mobile.css */
.about-card__identity {
  display: contents; /* transparent wrapper — children render as direct card children */
}

.about-headshot--card {
  display: none;
}

.about-name {
  font-family: var(--font-accent);
  font-size: var(--scale-5);   /* 24.88px */
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: normal;
}

.about-title {
  font-family: var(--font-primary);
  font-size: var(--scale-2);   /* 14.4px */
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: normal;
  margin-top: 4px;
}

.about-divider {
  height: 1px;
  background: var(--color-border);
}

/* Social links */
.about-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: var(--scale-2);   /* 14.4px */
  font-weight: 700;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.about-link:hover {
  color: var(--color-active);
}

.about-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Resume button */
.about-resume-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--scale-2);   /* 14.4px */
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: left;
  transition: color var(--transition-fast);
}

.about-resume-btn:hover {
  color: var(--color-active);
}

.about-resume-btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------
   Bio — right column, flows naturally with page scroll
   ------------------------------------------------------------- */
.about-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  padding: 40px var(--space-7) var(--space-7);
  overflow-y: auto;
}

.about-bio-greeting {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.about-bio-name {
  font-family: var(--font-accent);
  font-size: var(--scale-7);   /* 35.83px */
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.about-bio-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 8px;
}

.about-bio-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-bio-label {
  font-family: var(--font-primary);
  font-size: var(--scale-2);   /* 14.4px */
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-bio-text {
  font-family: var(--font-primary);
  font-size: var(--scale-3);   /* 17.28px */
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text-primary);
}

.about-bio-text strong {
  font-weight: 700;
  color: var(--color-text-dark);
}

/* -------------------------------------------------------------
   Resume modal overlay
   ------------------------------------------------------------- */
.resume-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(12.5px);
  -webkit-backdrop-filter: blur(12.5px);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.resume-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resume-modal {
  position: relative;
  width: min(700px, 90vw);
  height: 88vh;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.resume-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--scale-2);
  color: var(--color-text-dark);
  transition: background var(--transition-fast);
  line-height: 1;
}

.resume-close:hover {
  background: var(--color-surface);
}
