/* About page. Builds on css/home-new.css (fonts, nav, connect button, footer). */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px var(--pad);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #f0ecec;
}
.site-header .nav-logo { width: 56px; }

main { padding: 0 var(--pad); max-width: 1520px; margin: 0 auto; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--accent);
}
.eyebrow--soft { font-size: 12px; color: var(--soft); }

/* ---------- hero ---------- */
.about-hero {
  display: flex;
  gap: clamp(32px, 5.6vw, 72px);
  align-items: flex-start;
  padding-top: 56px;
}
.about-photo {
  flex: none;
  width: min(493px, 40%);
  margin-right: 7px;
  align-self: flex-start;
  height: clamp(380px, calc(100svh - 260px), 527px);   /* keeps the Experience heading above the fold */
  object-fit: cover;
  object-position: 50% 82.6%;
  border-radius: 28px;
  display: block;
}
.about-copy { flex: 1; min-width: 0; }
.about-copy h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4.85vw, 62px);
  line-height: 1.08;
}
.about-copy p:not(.eyebrow) {
  margin: 28px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--mute);
}
.about-copy p:not(.eyebrow) + p { margin-top: 18px; }

/* ---------- experience ---------- */
.experience {
  display: flex;
  gap: clamp(32px, 5.6vw, 72px);
  padding-top: 40px;
}
.experience h2 {
  flex: none;
  width: min(480px, 40%);
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 56px);
  line-height: 1.05;
}
.exp-list { flex: 1; list-style: none; margin: 0; padding: 8px 0 0; }
.exp-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 46px 64px;
}
.exp-item::before {            /* connecting line */
  content: '';
  position: absolute;
  left: 11px;
  top: 34px;
  bottom: -34px;
  width: 2px;
  background: #eeddea;
}
.exp-item:last-child { padding-bottom: 0; }
.exp-item:last-child::before { display: none; }
.exp-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
}
.exp-logo-wrap {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.exp-logo { width: 34px; height: 34px; object-fit: contain; display: block; }
.exp-company { font-size: 19px; font-weight: 500; }
.exp-role { margin-top: 2px; font-size: 16px; color: var(--mute); }
.exp-date {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.3px;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- free time ---------- */
.free-time {
  scroll-margin-top: 96px;
  margin-top: 40px;
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 1px solid #eee9e9;
}
.pri { position: absolute; opacity: 0; pointer-events: none; }
.pbtns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.pbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid rgba(155, 176, 206, 0.3);
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.025em;
  color: #6a6a6a;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(155, 176, 206, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(155, 176, 206, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.pbtn:hover {
  border-color: #9bb0ce;
  color: #9bb0ce;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(155, 176, 206, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(155, 176, 206, 0.2);
}
#pr1:checked ~ .pbtns label[for='pr1'],
#pr2:checked ~ .pbtns label[for='pr2'],
#pr3:checked ~ .pbtns label[for='pr3'] { border-color: var(--accent); color: var(--accent); }
.pri:focus-visible ~ .pbtns label { outline: none; }
#pr1:focus-visible ~ .pbtns label[for='pr1'],
#pr2:focus-visible ~ .pbtns label[for='pr2'],
#pr3:focus-visible ~ .pbtns label[for='pr3'] { outline: 2px solid var(--accent); outline-offset: 3px; }

.pws { margin-top: 32px; }
.pw { display: none; }
#pr1:checked ~ .pws .w1,
#pr2:checked ~ .pws .w2,
#pr3:checked ~ .pws .w3 { display: block; }

.wall { display: flex; gap: clamp(10px, 1.7vw, 20px); align-items: stretch; }
.wall-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.7vw, 20px); }
.wall-col img { display: block; width: 100%; height: auto; border-radius: 0; }
.wall-col img.fill { flex: 1 1 auto; min-height: 0; object-fit: cover; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-hero, .experience { flex-direction: column; }
  .about-photo { width: 100%; max-width: 520px; height: auto; min-height: 0; aspect-ratio: 493 / 527; align-self: center; margin-left: auto; margin-right: auto; }
  .experience { padding-top: 40px; }
  .experience h2 { width: auto; }
  .free-time { margin-top: 40px; padding-top: 40px; }
}
@media (max-width: 480px) {
  .exp-item { gap: 14px; padding-left: 48px; }
  .exp-item::before { left: 9px; }
  .exp-dot { width: 20px; height: 20px; }
  .exp-role { font-size: 15px; }
}

.pws { scroll-margin-top: 110px; }

/* ---------- experience + free time: stacked on the left, smaller type (the about-me hero is unchanged) ---------- */
.experience { flex-direction: column; gap: 24px; padding-top: 56px; }
.experience h2 { width: auto; font-size: clamp(28px, 2.6vw, 34px); }
.exp-list { padding-top: 0; max-width: 640px; }
.exp-item { gap: 16px; padding: 0 0 30px 48px; }
.exp-item::before { left: 9px; top: 28px; bottom: -28px; }
.exp-dot { width: 20px; height: 20px; top: 2px; }
.exp-logo-wrap { width: 44px; height: 44px; }
.exp-logo { width: 28px; height: 28px; }
.exp-company { font-size: 16px; }
.exp-role { font-size: 14px; }
.exp-date { font-size: 11px; letter-spacing: 1.2px; }
.free-time { margin-top: 32px; padding-top: 32px; }
.free-time .eyebrow { font-size: 11px; }
.pbtn { padding: 10px 20px; font-size: 0.8rem; }
.pbtns { gap: 12px; margin-top: 16px; }

/* ---------- hero: bio on the left, photo on the right, smaller type ---------- */
@media (min-width: 861px) {
  .about-hero { flex-direction: row-reverse; justify-content: space-between; }
  .about-photo { margin-right: 0; margin-left: 7px; }
}
.about-copy { max-width: 640px; }
.about-copy h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.12; }
.about-copy p:not(.eyebrow) { font-size: clamp(15px, 1.2vw, 17px); margin-top: 22px; }
.about-copy p:not(.eyebrow) + p { margin-top: 14px; }

/* photo walls: a few photos are cropped so neighbouring columns never line up row for row */
.wall-col img.crop-sq { aspect-ratio: 1 / 1; height: auto; object-fit: cover; }
.wall-col img.crop-45 { aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.wall-col img.crop-43 { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.wall-col img.fill.crop-sq { aspect-ratio: auto; }

/* new photo: square corners, framed on the person */
.about-photo { border-radius: 0; object-position: 50% 50%; width: min(380px, 32%); height: auto; aspect-ratio: 816 / 1458; }
@media (max-width: 860px) { .about-photo { width: 100%; max-width: 420px; aspect-ratio: 816 / 1458; } }

/* experience sits under the bio, beside the photo */
.about-copy .experience { padding-top: 44px; }

/* bio sits closer to the photo */
@media (min-width: 861px) {
  .about-hero { justify-content: flex-start; gap: 56px; }
  .about-copy { max-width: none; flex: 1; }
}
