/* About A4 · Warm editorial: A3 made more personal. The page opens with the same title as the
   Projects page (kicker + "About Me" in Italianno with the faint orchid), green leads, the pup
   waves hello, and each job shows its photo when you hover it. */
.page-about { --lead: #4E6B48; }

/* The title, the same as the Projects page */
.ab-title-wrap { position: relative; isolation: isolate; margin: 0 0 clamp(56px, 8vw, 96px); text-align: center; }
.ab .ab-title-wrap .kicker { margin: 0 0 4px; font-size: 12.5px; line-height: 1.65; color: #A6566B; } /* the Projects page kicker, exactly */
.ab-title { margin: 0; font-family: var(--font-script); font-weight: 400; font-size: clamp(76px, 10vw, 120px); line-height: 0.9; letter-spacing: 0; color: var(--ink); }
.ab-title-wrap .t-orchid { position: absolute; top: 50%; left: 50%; z-index: -1; width: 300px; translate: -50% -52%; opacity: 0.6; pointer-events: none; }

/* Hero: photo with the pup, intro beside it */
.ab-hero { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-bottom: 56px; }
.ab-hero-photo { position: relative; margin: 0; }
.ab-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 49% 30%; border-radius: 24px; box-shadow: 0 0 0 1px var(--box-line); }
.ab-hi { margin: 0 0 10px; font-family: var(--font-head); font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--ink); }
.ab-hero .ab-lede { color: var(--lead) !important; }

/* The pup peeking over the photo's corner, waving */
.ab-pup { position: absolute; right: -34px; bottom: -22px; width: 118px; pointer-events: none; }
.ab-pup svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-pup .bp .art { stroke-width: 9; }
.ab-pup .hand.r { transform-box: fill-box; transform-origin: 30% 6%; animation: ab-wave 1.8s ease-in-out infinite; }
.ab-pup .head { transform-box: fill-box; transform-origin: 50% 100%; animation: ab-tilt 3.6s ease-in-out infinite; }
.ab-bubble { position: absolute; top: -8px; right: 78px; padding: 6px 12px; border-radius: 14px 14px 4px 14px; font-size: 13px; font-weight: 600; color: #FFFFFF; background: var(--lead); white-space: nowrap; }
@keyframes ab-wave { 0%, 60%, 100% { rotate: 0deg; } 15% { rotate: -38deg; } 30% { rotate: -14deg; } 45% { rotate: -38deg; } }
@keyframes ab-tilt { 0%, 100% { rotate: 0deg; } 50% { rotate: -4deg; } }

/* Places I've called home, and a few numbers */
.ab-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ab-places li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3B5536; background: var(--sage-wash); }
.ab-places svg { width: 14px; height: 14px; color: var(--lead); }
.ab-places-label { margin-top: 26px !important; font-size: 12.5px !important; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--kicker) !important; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 8px; padding: 0 0 56px; list-style: none; }
.ab-stats li { padding: 20px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--box-line); }
.ab-stats b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 52px; line-height: 1; color: var(--lead); }
.ab-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--soft); }

/* Where I've studied (A3's list) */
.ab-edu { margin: 0; padding: 0; list-style: none; }
.ab-edu li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ab-edu li:first-child { padding-top: 0; }
.ab-edu li:last-child { border-bottom: 0; padding-bottom: 0; }
.ab-edu h3, .ab-jobs h3 { font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ab-where { margin-top: 2px; font-size: 15.5px; color: var(--text); }
.ab-note { margin-top: 6px; font-size: 14px !important; color: var(--soft) !important; }
.ab-when { text-align: right; font-size: 14px !important; line-height: 1.5 !important; color: var(--soft) !important; white-space: nowrap; }
.ab-when b { display: block; font-weight: 600; color: var(--kicker); }

/* Where I've worked: the list on the left, the photo of the job you're on at the right */
.ab-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 48px; align-items: start; }
.ab-jobs { margin: 0; padding: 0; list-style: none; }
.ab-job { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 22px 22px 22px 26px; border-radius: 18px; cursor: default; transition: background 0.3s; }
.ab-job + .ab-job { margin-top: 4px; }
.ab-job::before { content: ""; position: absolute; top: 26px; left: 0; width: 4px; height: 22px; border-radius: 4px; background: var(--line); transition: background 0.3s, height 0.3s; }
.ab-job.is-on { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--box-line); }
.ab-job.is-on::before { height: 40px; background: var(--peach); }
.ab-job:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ab-story { grid-column: 1 / -1; font-size: 15px !important; color: var(--soft) !important; }
.ab-job-pic { display: none; }
.ab-preview { position: sticky; top: 110px; margin: 0; }
.ab-preview-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 22px; background: #F6F1EA; box-shadow: 0 0 0 1px var(--box-line), 0 18px 40px rgba(120, 90, 60, 0.1); }
.ab-preview-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.ab-preview-frame img.is-on { opacity: 1; }
.ab-preview figcaption { margin-top: 10px; font-size: 13px; color: var(--soft); text-align: center; }

.ab-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ab-two .ab-sub { margin-top: 0 !important; }
.ab-fun h3 { color: var(--ink); }
.ab-fun li:nth-child(odd) .ab-fun-icon { color: var(--lead); background: var(--sage-wash); }

@media (max-width: 960px) {
  .ab-work { grid-template-columns: 1fr; }
  .ab-preview { display: none; }
  .ab-job { padding: 20px 0 20px 22px; background: none !important; box-shadow: none !important; }
  .ab-job::before { height: 22px !important; background: var(--peach) !important; }
  .ab-job-pic { display: block; grid-column: 1 / -1; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-top: 6px; }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .ab-hero { grid-template-columns: 1fr; }
  .ab-hero-photo { max-width: 400px; }
  .ab-edu li { grid-template-columns: 1fr; gap: 10px; }
  .ab-when { text-align: left; }
  .ab-job { grid-template-columns: 1fr; gap: 4px; }
  .ab-two { grid-template-columns: 1fr; gap: 28px; }
  .ab-pup { right: -8px; width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-pup .hand.r, .ab-pup .head { animation: none; }
}
