/* A concise personal dossier, a photographic strip and linked work covers. */
.person-heading { margin-bottom: 10px; }
.person-title { display: flex; align-items: baseline; gap: 22px; }
.person-title .section-heading { margin: 14px 0 0; font-size: 42px; letter-spacing: 7px; }
.person-title > span { font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.person-summary { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,2fr); align-items: center; gap: 36px; }
.person-overview { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #dbe7df; box-shadow: 0 12px 30px rgba(32,74,64,.1); }
.person-overview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%; }
.person-summary .person-facts dd { font-size: 18px; }
.person-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0 32px; margin: 0; }
.person-facts > div { padding: 18px 0; border-bottom: 1px solid var(--hairline); min-width: 0; }
.person-facts dt { color: #617f7c; font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: 1.5px; margin-bottom: 8px; }
.person-facts dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.person-facts .person-social { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 30px; }
.person-social dt { margin: 0; }
.person-social dd { font-size: 18px; }
.person-social dd > span { display: inline-block; font-family: var(--sans); font-size: 9px; letter-spacing: 1px; color: var(--muted); margin-left: 18px; border: 1px solid var(--hairline); border-radius: 20px; padding: 3px 9px; vertical-align: middle; }
.person-motto { margin: 22px 0 0; display: flex; align-items: baseline; gap: 30px; padding: 18px 22px; border-radius: 14px; background: rgba(220,234,224,.4); }
.person-motto > span { flex: 0 0 auto; color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.person-motto blockquote { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.8; color: var(--teal); }
.portrait-gallery { --gallery-card-width: clamp(300px, 34vw, 420px); margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-heading .section-label { font-size: 8px; letter-spacing: 2px; }
.gallery-heading h3 { font-family: var(--serif); font-size: 27px; font-weight: 700; letter-spacing: 2px; margin: 9px 0 0; }
.gallery-controls { display: flex; align-items: center; gap: 8px; }
.gallery-counter { min-width: 58px; font-size: 10px; letter-spacing: 1px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery-controls button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--hairline); border-radius: 50%; color: var(--teal); background: rgba(232,241,232,.7); font-size: 18px; transition: background .2s; }
.gallery-controls button:hover { background: #dcebe2; }
.gallery-controls button:disabled { opacity: .28; cursor: default; }
.gallery-rail { display: flex; gap: 0; position: relative; isolation: isolate; overflow-x: auto; overflow-y: hidden; padding: 36px 0 44px; padding-left: max(12px, calc(50% - var(--gallery-first-width, 420px) / 2)); padding-right: max(12px, calc(50% - var(--gallery-last-width, 420px) / 2)); scroll-snap-type: x mandatory; touch-action: auto; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; -webkit-overflow-scrolling: touch; }
.gallery-rail::-webkit-scrollbar { display: none; }
.gallery-rail:focus-visible { outline-offset: 1px; outline-color: #73978c; border-radius: 14px; }
.gallery-rail.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.gallery-item { position: relative; margin: 0; flex: 0 0 var(--gallery-card-width); width: var(--gallery-card-width); scroll-snap-align: center; scroll-snap-stop: always; }
.gallery-item + .gallery-item { margin-left: calc(var(--gallery-card-width) * -.32); }
.gallery-card { transform: perspective(1100px) translateZ(var(--gallery-depth, -54px)) rotateY(var(--gallery-rotate, 0deg)) scale(var(--gallery-scale, .82)); opacity: var(--gallery-opacity, .86); transform-origin: center center; transition: opacity .12s linear; will-change: transform; }
.gallery-photo { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: #dce6df; box-shadow: 0 12px 27px -12px rgba(30,68,62,.22); }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) { .gallery-item.is-centered .gallery-card:hover .gallery-photo { animation: gallery-hover-sway .8s ease-in-out; } }
.gallery-rail.is-dragging .gallery-photo { animation: none !important; }
@keyframes gallery-hover-sway { 0%,100% { transform: translateY(0) rotateZ(0); } 22% { transform: translateY(-3px) rotateZ(-.7deg); } 48% { transform: translateY(-1px) rotateZ(.6deg); } 72% { transform: translateY(-2px) rotateZ(-.25deg); } }
.work-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.work-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(119,151,136,.18); border-radius: 18px; background: rgba(255,255,249,.75); box-shadow: 0 8px 25px rgba(32,74,64,.06); transition: transform .2s, box-shadow .2s; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(32,74,64,.13); }
.work-card-cover { position: relative; aspect-ratio: 16 / 9; background: #dfe8df; overflow: hidden; }
.work-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-card-number { position: absolute; left: 12px; top: 12px; padding: 5px 8px; border-radius: 5px; background: rgba(245,249,239,.85); color: #3d665e; font-size: 9px; letter-spacing: 1px; backdrop-filter: blur(10px); }
.work-card-copy { padding: 19px 20px 17px; display: flex; flex-direction: column; flex: 1; }
.work-card-category { color: #799386; font-size: 9px; letter-spacing: 1px; }
.work-card h3 { margin: 10px 0 18px; font-family: var(--serif); color: var(--ink); font-size: 21px; line-height: 1.6; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
.work-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hairline); color: #6c8b7c; font-size: 10px; letter-spacing: 1px; }
.work-card-link > span { color: #345f59; font-size: 18px; }
@media(min-width:1700px) { .work-cards { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media(max-width:1000px) { .person-summary { grid-template-columns: minmax(220px,.8fr) minmax(0,1.4fr); gap: 24px; } .person-summary .person-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } .person-facts { gap: 0 22px; } .person-facts dd { font-size: 18px; } .work-cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; } }
@media(max-width:760px) {
  .person-title { gap: 15px; }
  .person-title .section-heading { font-size: 34px; margin-top: 16px; }
  .person-title > span { font-size: 6px; letter-spacing: 1.2px; }
  .person-summary { grid-template-columns: 1fr; gap: 15px; }
  .person-overview { width: 100%; border-radius: 14px; }
  .person-summary .person-facts dd { font-size: 17px; }
  .person-facts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .person-facts > div { padding: 15px 0; }
  .person-facts dt { font-size: 12px; margin-bottom: 6px; letter-spacing: 1px; }
  .person-facts dd { font-size: 17px; }
  .person-facts .person-social { display: block; }
  .person-social dt { margin-bottom: 7px; }
  .person-social dd { font-size: 16px; }
  .person-social dd > span { font-size: 7px; margin-left: 9px; padding: 2px 7px; }
  .person-motto { gap: 12px; align-items: flex-start; padding: 15px; margin-top: 19px; }
  .person-motto > span { padding-top: 4px; font-size: 9px; letter-spacing: 1px; }
  .person-motto blockquote { font-size: 16px; line-height: 1.9; }
  .portrait-gallery { --gallery-card-width: clamp(200px, 68vw, 290px); margin-top: 30px; padding-top: 24px; }
  .gallery-heading h3 { font-size: 23px; }
  .gallery-heading .section-label { font-size: 6px; letter-spacing: 1.4px; }
  .gallery-controls { gap: 5px; }
  .gallery-counter { min-width: 44px; font-size: 8px; }
  .gallery-controls button { width: 29px; height: 29px; font-size: 16px; }
  .gallery-rail { margin-inline: -16px; width: calc(100% + 32px); padding-top: 32px; padding-bottom: 38px; }
  .gallery-photo { border-radius: 12px; }
  .work-cards { gap: 14px 12px; }
  .work-card { border-radius: 12px; }
  .work-card-copy { padding: 12px 11px 10px; }
  .work-card-number { top: 7px; left: 7px; font-size: 7px; padding: 3px 5px; }
  .work-card-category { font-size: 7px; letter-spacing: .4px; }
  .work-card h3 { font-size: 14px; margin: 7px 0 11px; line-height: 1.65; min-height: 3.3em; }
  .work-card-link { font-size: 8px; letter-spacing: .5px; padding-top: 7px; }
  .work-card-link > span { font-size: 15px; }
}
@media(prefers-reduced-motion:reduce) { .gallery-card, .work-card { transition: none; } .work-card:hover { transform: none; } }
