/* The creative profile overlay (assets/js/profile-sheet.js).
   Self-contained, so it looks the same over the home page (world.css) and the
   other pages (circle.css): the Circle's ink, greys and Light Azure, Jost. */
.psheet {
  --ps-ink: #1C3E55; --ps-slate: #3A4E5C; --ps-steel: #5F7182; --ps-mist: #B9C4CB; --ps-azure: #F3F4F5; --ps-hair: #E2E7EA;
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 4vw, 48px);
  border: 0; background: transparent; display: none; place-items: center; overflow: hidden;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif; color: var(--ps-slate);
}
.psheet[open] { display: grid; }
.psheet::backdrop {
  background: rgba(18, 34, 45, .28);
  -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9);
  animation: psheet-fade .35s ease both;
}
html.psheet-open { overflow: hidden; }             /* the page behind stays put */

.psheet__panel {
  position: relative; width: min(920px, 100%); max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ps-azure); padding: clamp(28px, 4.5vw, 56px);
  box-shadow: 0 40px 90px -30px rgba(18, 34, 45, .55), 0 0 0 1px rgba(18, 34, 45, .06);
  animation: psheet-in .45s cubic-bezier(.22, .61, .36, 1) both;
}
.psheet.is-closing .psheet__panel { animation: psheet-out .26s ease both; }
.psheet.is-closing::backdrop { animation: psheet-fade .26s ease reverse both; }

.psheet__close {
  position: sticky; top: 0; float: right; margin: -12px -12px 0 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ps-mist); background: var(--ps-azure);
  color: var(--ps-ink); font: 300 24px/1 'Jost', sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.psheet__close:hover { background: var(--ps-ink); border-color: var(--ps-ink); color: var(--ps-azure); }
.psheet__close:focus-visible { outline: 1px solid var(--ps-ink); outline-offset: 3px; }

.psheet__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.psheet__photo { aspect-ratio: 4 / 5; background: var(--ps-hair); overflow: hidden; }
.psheet__photo.is-empty { background: var(--ps-hair); }
.psheet__photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.psheet__eyebrow { display: block; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--ps-steel); }
.psheet__name { margin: 14px 0 0; font-weight: 200; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: .04em; text-transform: uppercase; color: var(--ps-ink); }
.psheet__role { margin: 18px 0 0; font-size: 17px; font-weight: 300; color: var(--ps-slate); }
.psheet__base { margin: 6px 0 0; font-size: 13px; color: var(--ps-steel); }
.psheet__block { margin-top: 30px; }
.psheet__block p { margin: 10px 0 0; font-size: 15px; font-weight: 300; line-height: 1.8; }
.psheet__links { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.psheet__links a { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ps-ink); text-decoration: none; border-bottom: 1px solid var(--ps-ink); padding-bottom: 4px; }
.psheet__bio { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--ps-hair); columns: 2 320px; column-gap: 48px; }
.psheet__bio p { margin: 0 0 1.1em; font-size: 15px; font-weight: 300; line-height: 1.8; break-inside: avoid-column; }
.psheet__reel { margin-top: 14px; aspect-ratio: 16 / 9; background: var(--ps-hair); }
.psheet__reel iframe { display: block; width: 100%; height: 100%; border: 0; }

@keyframes psheet-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes psheet-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes psheet-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }

/* Phones: a sheet that rises from the bottom. */
@media (max-width: 640px) {
  .psheet { padding: 0; place-items: end stretch; }
  .psheet__panel { width: 100%; max-height: 90vh; padding: 28px 20px 36px; border-radius: 18px 18px 0 0; animation-name: psheet-up; }
  .psheet.is-closing .psheet__panel { animation-name: psheet-down; }
  .psheet__panel::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--ps-mist); margin: -12px auto 18px; }
  .psheet__top { grid-template-columns: 1fr; }
  .psheet__photo { width: 62%; }
  .psheet__close { margin: -4px -4px 0 12px; }
  @keyframes psheet-up { from { transform: translateY(100%); } to { transform: none; } }
  @keyframes psheet-down { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) {
  .psheet__panel, .psheet::backdrop { animation: none !important; }
}
