
/* ── Layout — persistent left sidebar, identical position/sizing
   to the home page's and case studies' sidebar. ── */
.case-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Content column ── */
.content-col {
  flex: 1;
  min-width: 0;
  /* side padding (max 120px) shrinks first on narrower screens */
  padding: 250px clamp(48px, calc((100vw - var(--sidebar-total) - 1046px) / 2), 120px) 0;
}

/* ── Bento ── */
.bento {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

/* ── Content row: bio column + photo grid, per Figma node 725:21579 ── */
.about-content-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.about-bio-col {
  /* fixed width -- stays readable when the chat panel opens and
     narrows .content-col; only .about-photos-grid should adapt */
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.about-hello {
  font-family: "Geist Sans", "Inter", sans-serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--text-primary);
}
.about-bio-text { margin-top: 20px; }
.about-bio-text p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16.8px;
}
.about-bio-text p:last-child { margin-bottom: 0; }
.about-bio-text p.bio-subhead {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Left-aligned pill links, reusing the site's Resume/Email/LinkedIn icons. */
.about-links-row {
  display: flex;
  gap: 16px;
  width: 100%;
}
.about-link-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  height: 56px;
  padding: 0 19px 0 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.2s, transform 0.2s;
}
.about-link-pill:hover {
  background: var(--line);
  transform: translateY(-2px);
}
.about-link-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.about-link-label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── Photo grid — one tall polaroid (mee) + two stacked (iceland,
   design talks), matching Figma's 2x2 grid with a row-span-2 cell. ── */
.about-photos-grid {
  flex: 1 1 66%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 5px;
}
.about-photo-mee {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.about-photo-iceland {
  grid-column: 2;
  grid-row: 1;
}
.about-photo-design-talks {
  grid-column: 2;
  grid-row: 2;
}

/* Photos render at their own aspect ratio (no letterboxing, no
   crop) and can be dragged around -- see the photo-drag script. */
.about-polaroid {
  width: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
  position: relative;
  transition: box-shadow 200ms;
}
.about-polaroid.dragging {
  cursor: grabbing;
  z-index: 10;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.about-polaroid img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
@media (max-width: 1100px) {
  /* ── Responsive ── */
  .content-col { padding: 48px 48px 0; }
}

@media (max-width: 900px) {
  .case-layout { flex-direction: column; }
  .content-col { padding: 32px 20px 0; }
  .about-content-row { flex-direction: column; }
  .about-bio-col {
    gap: 40px;
    flex-basis: auto;
  }
  .about-links-row { flex-direction: column; }
  .about-link-pill {
    flex: none;
    width: 100%;
  }
  .about-photos-grid {
    flex-basis: auto;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 5px;
  }
  .about-photo-mee, .about-photo-iceland, .about-photo-design-talks {
    grid-column: 1;
    grid-row: auto;
  }
  .about-polaroid { touch-action: pan-y; }
}

/* Chat open (desktop): the 420px chat column takes its space from the
   side padding first, so the content only narrows slightly instead of
   shrinking to half. Animates in step with the panel. */
.content-col { transition: padding var(--panel-duration) var(--panel-ease); }
@media (min-width: 901px) {
  body.chat-open .content-col { padding-left: 48px; padding-right: 48px; }
}
