/* =========================================================
   ABOUT (second fold) + the photo that flies in from the passport
   ========================================================= */
html { scroll-padding-top: 84px; }   /* free, smooth scrolling: no section snapping */


.about {

  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 84px);
  padding: clamp(32px, 6vh, 72px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.about__kicker {
  margin: 0 0 14px; font: 600 12px/1 ui-monospace, Menlo, monospace;
  letter-spacing: .18em; text-transform: uppercase; color: #8a7d6c;
}
.about__title {
  margin: 0 0 24px;
  font: 600 clamp(32px, 3.6vw, 48px)/1.08 "Passport Garamond", "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 96; letter-spacing: -.015em; color: #1d1b19;
}
.about__text p:not(.about__kicker) {
  margin: 0 0 18px; max-width: 58ch;
  font: 400 clamp(17px, 1.3vw, 19px)/1.65 "Passport Garamond", "Fraunces", Georgia, serif;
  font-variation-settings: "opsz" 18; color: #3a352f;
}

/* ---------- Photo collage ----------
   Every print is placed in units of the collage width (cqw), so the whole
   arrangement scales as one piece. Small overlaps only: each print stays
   at least 85% visible. */
.about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.about__collage {
  container-type: inline-size;
  position: relative; justify-self: center;
  width: min(560px, 100%, calc((100svh - 170px) * 100 / var(--ratio)));
  aspect-ratio: 100 / var(--ratio);
}
.about__card {
  position: absolute; z-index: var(--z); margin: 0;
  left: calc(var(--x) * 1cqw); top: calc(var(--y) * 1cqw); width: calc(var(--w) * 1cqw);
  background: #fff; padding: 1.1cqw; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(40, 30, 20, .12), 0 12px 26px -12px rgba(40, 30, 20, .4);
  transform: rotate(var(--rot));
  transition: scale .25s ease, box-shadow .25s ease;
}
.about__img { display: block; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about__card--extra { overflow: hidden; }
.about__card--extra img {
  position: absolute; inset: 1.1cqw; width: calc(100% - 2.2cqw); height: calc(100% - 2.2cqw);
  object-fit: cover; object-position: var(--pos);
}
.about__card:hover { z-index: 20; scale: 1.08; box-shadow: 0 1px 1px rgba(40,30,20,.12), 0 24px 44px -16px rgba(40,30,20,.45); }

/* With the flight on: the other prints wait tucked under the passport photo, then fan out once it lands */
html.photo-flight .about__card--extra {
  opacity: 0;
  transform: translate(calc(var(--hx) * 1cqw), calc(var(--hy) * 1cqw)) rotate(0deg) scale(.55);
  transition: transform .75s cubic-bezier(.2, .9, .3, 1.12), opacity .35s ease, scale .25s ease;
  transition-delay: 0s;
}
html.photo-flight .about__collage.is-revealed .about__card--extra {
  opacity: 1;
  transform: rotate(var(--rot));
  transition-delay: var(--d), var(--d), 0s;
}

/* ---------- Flight (desktop/tablet, motion allowed; JS adds the classes) ---------- */
html.photo-flight .about__img { visibility: hidden; }          /* the flyer lands exactly here */
.photo-flyer {
  position: fixed; top: 0; left: 0; z-index: 9; pointer-events: none;
  transform-origin: 50% 50%; will-change: transform; visibility: hidden;
}
.photo-flyer img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  background: #fff; padding: 10px; border-radius: 2px;
  box-shadow: 0 1px 1px rgba(40, 30, 20, .12), 0 18px 40px -16px rgba(40, 30, 20, .35);
}
html.photo-away .photo-flyer { visibility: visible; }
/* the passport keeps an empty photo slot (the stamp ink stays on the page) */
html.photo-away .pp-portrait { visibility: hidden; }
.pp-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border: 1.5px dashed rgba(70, 50, 30, .3); border-radius: 3px; transform: rotate(-1.2deg);
  opacity: 0; transition: opacity .25s ease;
}
html.photo-away .pp-photo::before { opacity: 1; }

/* ---------- Mobile: stacked, no flight ---------- */
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; min-height: 0; }
  .about { grid-template-columns: 1fr; }
  .about__collage { width: 100%; }
}

/* the "More about me" cue has done its job once you start scrolling */
.hero__scroll { transition: opacity .3s ease; }
html.photo-away .hero__scroll { opacity: 0 !important; pointer-events: none; }

/* ---------- About copy: a little tighter so it sits beside the collage in one fold ---------- */
.about__text p:not(.about__kicker) { font-size: clamp(16px, 1.15vw, 17.5px); line-height: 1.6; margin-bottom: 14px; }
.about__title { margin-bottom: 18px; }
.about__lead { margin-bottom: 8px !important; font-weight: 600; }
.about__builds { margin: 0; padding: 0; list-style: none; max-width: 58ch; }
.about__builds li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font: 400 clamp(15.5px, 1.1vw, 17px)/1.5 "Passport Garamond", "Fraunces", Georgia, serif; color: #3a352f;
}
.about__builds li::before {                      /* tiny stamp-like marker */
  content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid #1c2a4f; box-shadow: inset 0 0 0 2px #F9F4ED, inset 0 0 0 4px #1c2a4f;
}
.about__title { font-size: clamp(28px, 2.9vw, 40px); margin-bottom: 14px; }
.about__text p:not(.about__kicker) { font-size: clamp(15.5px, 1.1vw, 16.5px); line-height: 1.55; margin-bottom: 12px; }
.about__builds li { font-size: clamp(15px, 1.05vw, 16px); line-height: 1.45; margin-bottom: 6px; }
.about { padding-block: clamp(24px, 4vh, 56px); }

/* ---------- Roomier paragraphs ---------- */
.about__text p:not(.about__kicker) { margin-bottom: 22px; line-height: 1.6; }
.about__title { margin-bottom: 22px; }
.about__lead { margin: 6px 0 12px !important; }

/* ---------- Builds: an icon badge per item ---------- */
.about__builds li { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; margin-bottom: 12px; }
.about__builds li::before { content: none; }
.about__icon {
  flex: none; width: 30px; height: 30px; margin-top: -3px; border-radius: 50%;
  display: grid; place-items: center; color: #1c2a4f;
  background: rgba(28, 42, 79, .08); box-shadow: inset 0 0 0 1px rgba(28, 42, 79, .18);
}
.about__icon svg { width: 17px; height: 17px; }

/* ---------- About: link to Builds ---------- */
.about__lead a { color: #1c2a4f; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- BUILDS ---------- */
.builds, .experience {

  max-width: var(--max); margin: 0 auto;
  min-height: calc(100svh - 84px);
  padding: clamp(32px, 6vh, 72px) var(--gutter);
}
.builds__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.build {
  position: relative; padding: 26px 26px 22px; border-radius: 14px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='36' fill='none' stroke='%23b9ae97' stroke-width='.5' stroke-opacity='.4'><path d='M0 18 Q15 2 30 18 T60 18 T90 18 T120 18'/><path d='M0 18 Q15 34 30 18 T60 18 T90 18 T120 18'/></svg>"),
    #fbf7f0;
  box-shadow: 0 0 0 1px rgba(110, 85, 55, .14), 0 14px 30px -18px rgba(30, 25, 15, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.build:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(28, 42, 79, .25), 0 20px 40px -18px rgba(30, 25, 15, .4); }
.build__icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #1c2a4f;
  background: rgba(28, 42, 79, .08); box-shadow: inset 0 0 0 1px rgba(28, 42, 79, .2);
}
.build__icon svg { width: 24px; height: 24px; }
.build__title { margin: 16px 0 6px; font: 600 22px/1.2 "Passport Garamond", "Fraunces", Georgia, serif; color: #1d1b19; }
.build__text { margin: 0 0 14px; font: 400 16.5px/1.55 "Passport Garamond", "Fraunces", Georgia, serif; color: #3a352f; }
.build__tags { margin: 0; font: 500 11.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #8a7d6c; }
@media (max-width: 760px) { .builds__grid { grid-template-columns: 1fr; } .builds, .experience { min-height: 0; } }

/* the locked intro hides these too */
html.pp-locked .builds, html.pp-locked .experience { visibility: hidden; }
