/* Static editorial profile. Keep every rule scoped to this page section. */
.profile-content {
  --profile-ink: #01010d;
  --profile-violet: #7c32fc;
  --profile-paper: #fff;
  --profile-muted: #5f5a6a;
  position: relative;
  color: var(--profile-ink);
  background: var(--profile-paper);
  font: 17px/1.6 Onest, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  isolation: isolate;
}
.profile-content * { box-sizing: border-box; animation: none !important; transition: none !important; }
.profile-content .profile-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 58px) clamp(20px, 4vw, 64px);
  border-top: 1px solid #dedce5;
  scroll-margin-top: 28px;
}
.profile-content h2 {
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(30px, 3.4vw, 49px);
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 650;
  text-wrap: pretty;
}
.profile-content h3 { margin: 0 0 12px; font-size: clamp(23px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; text-wrap: pretty; }
.profile-content p { margin: 0 0 16px; }
.profile-content a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.profile-content a:hover { color: var(--profile-violet); }
.profile-content a:focus-visible, .profile-content summary:focus-visible, .profile-content video:focus-visible, .profile-content [tabindex]:focus-visible { outline: 3px solid var(--profile-violet); outline-offset: 5px; }
.profile-content img { display: block; max-width: 100%; height: auto; }
.profile-content figure { min-width: 0; margin: 0; }
.profile-content .profile-lead { font-size: clamp(21px, 2vw, 28px); line-height: 1.4; letter-spacing: -.02em; }
.profile-content .profile-section-intro { margin: -10px 0 24px; color: var(--profile-muted); }
.profile-content .profile-button { display: inline-flex; width: fit-content; min-height: 46px; align-items: center; justify-content: center; padding: 11px 21px; border-radius: 26px; background: var(--profile-violet); color: #fff; text-decoration: none; font-size: 15px; font-weight: 650; text-align: center; line-height: 1.5; white-space: normal; }
.profile-content a.profile-button:hover { color: #fff; }

/* Keep the photograph spread and document ribbon comfortably separated. */
.profile-content .profile-about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px clamp(24px, 4vw, 56px); align-items: start; background: #fff; }
.profile-content .profile-about-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.profile-content .profile-about-copy > :last-child { margin-bottom: 0; }
.profile-content .profile-about-photos { position: relative; z-index: 2; grid-column: 1; grid-row: 1 / 3; align-self: center; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; pointer-events: none; }
.profile-content .profile-about-photos img { width: 100%; height: auto; border-radius: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 94%, transparent); mask-composite: intersect; }
.profile-content .profile-about-photos img:first-child { grid-column: 1 / 11; grid-row: 1; }
.profile-content .profile-about-photos img:last-child { grid-column: 6 / -1; grid-row: 1; margin-top: 80%; }
.profile-content .profile-education { grid-column: 2; grid-row: 2; min-width: 0; margin-left: 0; }
.profile-content .profile-education-heading { padding-left: 0; }
.profile-content .profile-education h3 { margin-bottom: 16px; font-size: clamp(22px, 2vw, 28px); }
.profile-content .profile-diploma-gallery { min-width: 0; }
.profile-content .profile-diplomas { min-width: 0; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; padding: 8px 4px 16px; scrollbar-width: none; }
.profile-content .profile-diplomas::-webkit-scrollbar { display: none; width: 0; height: 0; }
.profile-content .profile-diploma { flex: 0 0 clamp(155px, 14vw, 190px); }
.profile-content .profile-diploma a { display: block; }
.profile-content .profile-diploma img { width: 100%; height: 125px; object-fit: contain; }
.profile-content .profile-diploma figcaption { margin-top: 8px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

/* Keep each original video frame and the complete text in normal page flow. */

.profile-content .profile-reviews-grid { columns: 4; column-gap: 22px; }
.profile-content .profile-reviews-grid > figure { display: inline-block; width: 100%; margin: 0 0 28px; break-inside: avoid; }
.profile-content .profile-case-player { border-radius: 6px; overflow: hidden; background: transparent; }
.profile-content video { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; background: transparent; }
.profile-content .profile-case-caption { margin-top: 10px; }
.profile-content summary { min-height: 44px; padding: 7px 0; cursor: pointer; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.profile-content .profile-case-caption summary > span:first-child { display: inline; }
.profile-content .profile-case-duration { display: block; margin-left: 17px; font-size: 13px; color: var(--profile-muted); font-weight: 400; }
.profile-content .profile-case-transcript { margin-top: 12px; max-height: none; overflow: visible; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.profile-content .profile-case-transcript p { margin-bottom: 0; }

.profile-content .profile-journal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.profile-content .profile-journal-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 32px; padding: 18px 0; border-top: 1px solid #dedce5; text-decoration: none; align-items: baseline; }
.profile-content .profile-journal-entry:last-child { padding-bottom: 0; }
.profile-content .profile-journal-entry h3, .profile-content .profile-journal-entry p { margin: 0; }
.profile-content .profile-journal-entry p { color: var(--profile-muted); }

@media (max-width: 1100px) {
  .profile-content .profile-reviews-grid { columns: 2; column-gap: 24px; }
}
@media (max-width: 760px) {
  .profile-content { font-size: 16px; }
  .profile-content .profile-section { padding: 32px 20px; }
  .profile-content .profile-about { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .profile-content .profile-about-photos { grid-column: 1; grid-row: 1; width: 100%; max-width: 500px; justify-self: center; }
  .profile-content .profile-about-copy { grid-column: 1; grid-row: 2; }
  .profile-content .profile-education { grid-column: 1; grid-row: 3; margin-left: 0; }
  .profile-content .profile-education-heading { padding-left: 0; }
  .profile-content .profile-diplomas { padding-left: 4px; scroll-padding-left: 4px; }
  .profile-content .profile-diploma { flex-basis: 170px; }
  .profile-content .profile-journal-entry { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .profile-content .profile-journal-entry h3 { font-size: 24px; }
}
@media (max-width: 540px) {
  .profile-content .profile-reviews-grid { columns: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .profile-content .profile-section.profile-revealed { animation: profile-enter 360ms ease-out both !important; }
  @keyframes profile-enter { from { transform: translateY(10px); } to { transform: translateY(0); } }
}
