body.page-template-page-about-me,
body.page-about-me {
  min-height: 100vh;
  overflow: hidden;
  background: #f3f1ef;
}

.sl-about {
  min-height: 100vh;
  padding: clamp(10px, 1.7vw, 28px);
  background: #f3f1ef;
}

.sl-desktop {
  --sl-about-photo: none;
  min-height: calc(100vh - clamp(20px, 3.4vw, 56px));
  position: relative;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 34px);
  background: #e8e5e2;
  isolation: isolate;
}

.sl-desktop__photo,
.sl-desktop__soften {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sl-desktop__photo {
  z-index: 0;
  background-image: var(--sl-about-photo);
  background-size: cover;
  background-position: center 38%;
  filter: none;
  image-rendering: auto;
  transform: translateZ(0);
}

.sl-desktop__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .95;
  background:
    radial-gradient(circle at 48% 43%, rgba(112,112,112,.78) 0 13%, rgba(165,165,165,.55) 14% 27%, transparent 46%),
    radial-gradient(circle at 50% 63%, rgba(72,72,72,.76) 0 12%, rgba(134,134,134,.45) 30%, transparent 55%),
    linear-gradient(110deg,#efefef 0%,#ddd 32%,#aaa 49%,#e9e9e9 68%,#f3f3f3 100%);
}

.sl-desktop[style] .sl-desktop__photo::before { opacity: 0; }

.sl-desktop__soften {
  display: none;
}

/* Choose the About photography treatment in the Customizer. */
.sl-desktop--bw .sl-desktop__photo { filter: grayscale(1) contrast(1.03); }
.sl-desktop--color .sl-desktop__photo { filter: none; }
.sl-desktop--bw .sl-cutout { filter: grayscale(1) contrast(1.03); }
.sl-desktop--color .sl-cutout { filter: none; }

/* Full navigation on the About page */
.sl-aboutbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(20px, 2vw, 34px);
  border-bottom: 1px solid rgba(0,0,0,.12);
  background: rgba(246,244,242,.42);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

.sl-aboutbar__brand {
  justify-self: start;
  white-space: nowrap;
  letter-spacing: -.035em;
}
.sl-aboutbar__brand strong { font-weight: 800; }

.sl-aboutbar__nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
  white-space: nowrap;
}

.sl-aboutbar a { transition: opacity .25s ease, transform .25s ease; }
.sl-aboutbar a:hover { opacity: .55; transform: translateY(-2px); }
.sl-aboutbar__nav .is-current { font-weight: 700; }

.sl-desktop__label {
  position: absolute;
  z-index: 3;
  top: 92px;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: .04em;
  mix-blend-mode: multiply;
}
.sl-desktop__label--left { left: 28px; }
.sl-desktop__label--right { right: 28px; text-align: right; }

/* Transparent cut-out photo slots */
.sl-cutout {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  transform-origin: 50% 100%;
  filter: none;
  opacity: .96;
}

.sl-cutout img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46vh;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.12));
}

.sl-cutout--one {
  left: 39%;
  bottom: 2.5%;
  width: clamp(128px, 13.5vw, 245px);
  transform: rotate(-3deg);
  animation: slCutoutFloatOne 7.5s ease-in-out infinite;
}
.sl-cutout--two {
  right: 27%;
  bottom: 1.5%;
  width: clamp(118px, 12vw, 220px);
  transform: rotate(3deg);
  animation: slCutoutFloatTwo 8.4s ease-in-out infinite;
}
.sl-cutout--three {
  left: 53%;
  top: 17%;
  width: clamp(86px, 9vw, 165px);
  opacity: .72;
  transform: rotate(2deg) scale(.92);
  animation: slCutoutFloatThree 6.9s ease-in-out infinite;
}

@keyframes slCutoutFloatOne {
  0%,100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -7px; rotate: .6deg; }
}
@keyframes slCutoutFloatTwo {
  0%,100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -10px; rotate: -.7deg; }
}
@keyframes slCutoutFloatThree {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Minimal mannequin placeholders until transparent photos are uploaded. */
.sl-person {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: .48 / 1;
  opacity: .58;
}

.sl-person i {
  position: absolute;
  display: block;
  background: rgba(55,55,55,.58);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.sl-person__head {
  top: 0;
  left: 50%;
  width: 28%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
}

.sl-person__body {
  top: 25%;
  left: 24%;
  width: 52%;
  height: 46%;
  border-radius: 48% 48% 24% 24% / 28% 28% 12% 12%;
}

.sl-person__leg {
  top: 65%;
  width: 20%;
  height: 35%;
  border-radius: 10px 10px 5px 5px;
}
.sl-person__leg--a { left: 27%; transform: rotate(3deg); }
.sl-person__leg--b { right: 27%; transform: rotate(-4deg); }
.sl-person--two .sl-person__body { transform: rotate(-5deg); }
.sl-person--two .sl-person__head { margin-left: -6%; }
.sl-person--two .sl-person__leg--a { transform: rotate(8deg); }
.sl-person--two .sl-person__leg--b { transform: rotate(-12deg); }
.sl-person--three .sl-person__body { transform: rotate(5deg); }
.sl-person--three .sl-person__head { margin-left: 6%; }

.sl-file {
  position: absolute;
  z-index: 8;
  width: 112px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  text-align: center;
  transition: transform .38s cubic-bezier(.2,.85,.2,1), filter .3s ease;
  animation: slFloat 5.5s ease-in-out infinite;
}

.sl-file:hover,
.sl-file:focus-visible {
  transform: translateY(-10px) scale(1.07);
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.13));
  outline: none;
}

.sl-folder {
  width: 66px;
  height: 50px;
  margin: 0 auto 9px;
  display: block;
  position: relative;
  border-radius: 7px 8px 9px 9px;
  border: 1px solid rgba(0,0,0,.28);
  background: rgba(247,247,244,.86);
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
}
.sl-folder::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -8px;
  width: 28px;
  height: 11px;
  border: 1px solid rgba(0,0,0,.28);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: rgba(247,247,244,.92);
}
.sl-folder span {
  position: absolute;
  inset: 9px;
  border-top: 1px solid rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.sl-file__name {
  display: inline-block;
  padding: 3px 5px;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: .02em;
  background: rgba(248,248,245,.38);
  backdrop-filter: blur(4px);
}

.sl-file--about   { left: 13%; top: 24%; animation-delay: -.4s; }
.sl-file--cv      { left: 32%; top: 16%; animation-delay: -1.8s; }
.sl-file--skills  { right: 20%; top: 18%; animation-delay: -3.2s; }
.sl-file--socials { right: 10%; top: 48%; animation-delay: -2.3s; }
.sl-file--studio  { left: 19%; bottom: 20%; animation-delay: -4.1s; }

@keyframes slFloat {
  0%,100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

.sl-window {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 51%;
  width: min(740px, 67vw);
  min-height: 430px;
  transform: translate(-50%,-45%) scale(.78);
  opacity: 0;
  visibility: hidden;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 34px 90px rgba(0,0,0,.22);
  transition: opacity .32s ease, transform .5s cubic-bezier(.2,.9,.2,1), visibility .32s;
}

.sl-window.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,-50%) scale(1);
}

.sl-window__bar {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.58);
}
.sl-window__dots { display: flex; gap: 6px; }
.sl-window__dots span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(0,0,0,.4); }
.sl-window__title { justify-self: center; font-size: 11px; font-weight: 600; }
.sl-window__close { justify-self: end; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 23px; line-height: 1; }
.sl-window__close:hover { background: rgba(0,0,0,.06); }

.sl-window__content { padding: clamp(28px, 4vw, 54px); }
.sl-panel h1,
.sl-panel h2 {
  margin: 0 0 26px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: .93;
  letter-spacing: -.065em;
  font-weight: 800;
}
.sl-kicker { margin: 0 0 16px; font-size: 10px; letter-spacing: .12em; }
.sl-lead { margin: 0; max-width: 620px; font-size: clamp(19px, 2vw, 31px); line-height: 1.12; letter-spacing: -.035em; }
.sl-small { max-width: 430px; margin: 28px 0 0; font-size: 13px; line-height: 1.45; }

.sl-cvimage {
  width: 100%;
  max-height: 50vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.13);
  background: rgba(255,255,255,.72);
}
.sl-cvimage a { width: 100%; height: 100%; display: grid; place-items: center; }
.sl-cvimage img {
  display: block;
  max-width: 100%;
  max-height: 50vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sl-cvimage__placeholder {
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}
.sl-cvimage__placeholder span { font-size: 10px; letter-spacing: .12em; opacity: .55; }
.sl-cvimage__placeholder p { max-width: 360px; margin: 0; font-size: 13px; line-height: 1.45; opacity: .68; }

.sl-action { display: inline-block; margin-top: 26px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; }

.sl-skillgrid { display: grid; grid-template-columns: repeat(2,1fr); border-top: 1px solid rgba(0,0,0,.14); }
.sl-skill { min-height: 58px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid rgba(0,0,0,.14); font-size: 18px; }
.sl-skill:nth-child(odd) { border-right: 1px solid rgba(0,0,0,.14); padding-right: 18px; }
.sl-skill:nth-child(even) { padding-left: 18px; }
.sl-skill span { font-size: 9px; opacity: .55; }

.sl-links { border-top: 1px solid rgba(0,0,0,.15); }
.sl-links a,
.sl-links > span { min-height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.15); font-size: clamp(22px,2.6vw,36px); letter-spacing: -.04em; }
.sl-links a { transition: padding .25s ease, opacity .25s ease; }
.sl-links a:hover { padding-left: 10px; opacity: .55; }
.sl-links em { font-size: 10px; font-style: normal; opacity: .45; letter-spacing: 0; }

/* Larger, clearer desktop dock */
.sl-dock {
  position: absolute;
  z-index: 24;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 20px;
  background: rgba(245,244,241,.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(0,0,0,.13);
}

.sl-dock a,
.sl-dock button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  color: #111;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.sl-dock a:hover,
.sl-dock button:hover {
  transform: translateY(-9px) scale(1.08);
  background: rgba(255,255,255,.96);
}

.sl-dock__icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-dock__symbol {
  font-size: 25px !important;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
}
.sl-dock__mail { font-size: 24px !important; font-family: Arial, sans-serif; }

@media (max-width: 1120px) {
  .sl-aboutbar { gap: 18px; }
  .sl-aboutbar__nav { gap: 14px; font-size: 11px; }
  .sl-cutout--three { display: none; }
}

@media (max-width: 760px) {
  body.page-template-page-about-me,
  body.page-about-me { overflow: auto; }

  .sl-about { padding: 0; }
  .sl-desktop { min-height: 100svh; border-radius: 0; }
  .sl-aboutbar {
    min-height: 58px;
    height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 13px 16px 12px;
  }
  .sl-aboutbar__brand { font-size: 13px; }
  .sl-aboutbar__nav {
    justify-self: start;
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 10px;
    scrollbar-width: none;
  }
  .sl-aboutbar__nav::-webkit-scrollbar { display: none; }
  .sl-desktop__label { top: 94px; }

  .sl-cutout--one { left: 32%; bottom: 10%; width: 120px; opacity: .74; }
  .sl-cutout--two { right: 10%; bottom: 8%; width: 108px; opacity: .65; }
  .sl-cutout--three { display: none; }

  .sl-file { width: 92px; }
  .sl-folder { width: 54px; height: 42px; }
  .sl-file--about { left: 7%; top: 24%; }
  .sl-file--cv { left: 37%; top: 19%; }
  .sl-file--skills { right: 7%; top: 27%; }
  .sl-file--socials { right: 8%; top: 52%; }
  .sl-file--studio { left: 10%; bottom: 22%; }

  .sl-window { width: calc(100vw - 24px); min-height: 470px; top: 50%; }
  .sl-window__content { padding: 28px 22px 36px; }
  .sl-cvimage,
  .sl-cvimage img { max-height: 58vh; }
  .sl-skillgrid { grid-template-columns: 1fr; }
  .sl-skill:nth-child(odd) { border-right: 0; padding-right: 0; }
  .sl-skill:nth-child(even) { padding-left: 0; }

  .sl-dock {
    bottom: 12px;
    max-width: calc(100vw - 22px);
    gap: 4px;
    padding: 5px;
  }
  .sl-dock a,
  .sl-dock button { width: 45px; height: 45px; border-radius: 13px; }
  .sl-dock__icon { width: 22px; height: 22px; }
  .sl-dock__symbol { font-size: 22px !important; }
}


/* v0.19 usability refinements */
.sl-window__left { display:flex; align-items:center; gap:9px; }
.sl-window__close--left {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,0,0,.16);
  background:rgba(255,255,255,.72);
  font-size:20px;
  line-height:1;
}
.sl-window__close--right { display:grid; place-items:center; }

/* Long About copy should read like editorial body copy, not a giant headline. */
.sl-panel[data-content="about"] .sl-lead {
  max-width:680px;
  font-size:clamp(16px,1.35vw,20px);
  line-height:1.48;
  letter-spacing:-.018em;
}
.sl-panel[data-content="about"] { max-height:68vh; overflow-y:auto; padding-right:8px; }

/* CV opens like a document viewer and fits in one viewport. */
.sl-window:has(.sl-panel--cv:not([hidden])) {
  width:min(1120px,92vw);
  height:min(92vh,980px);
}
.sl-window:has(.sl-panel--cv:not([hidden])) .sl-window__content {
  height:calc(100% - 46px);
  padding:24px clamp(24px,3vw,42px) 28px;
}
.sl-panel--cv {
  height:100%;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  min-height:0;
}
.sl-panel--cv h2 {
  margin-bottom:16px;
  font-size:clamp(34px,4vw,60px);
}
.sl-cvdocument {
  width:100%;
  min-height:0;
  height:100%;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
}
.sl-cvdocument img {
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
.sl-cvdocument__pdf {
  width:100%;
  height:100%;
  min-height:0;
  border:0;
  background:#fff;
}

@media (max-width:700px) {
  .sl-window:has(.sl-panel--cv:not([hidden])) { width:96vw; height:92vh; }
  .sl-panel[data-content="about"] .sl-lead { font-size:16px; line-height:1.5; }
}
.sl-panel--cv[hidden] { display:none; }

/* v0.21 — CV image always fits fully inside the document window. */
.sl-window:has(.sl-panel--cv:not([hidden])) {
  width:min(96vw,1500px);
  height:94vh;
  max-height:94vh;
}
.sl-window:has(.sl-panel--cv:not([hidden])) .sl-window__content {
  height:calc(100% - 46px);
  padding:18px clamp(18px,2.2vw,34px) 22px;
  overflow:hidden;
}
.sl-panel--cv {
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  overflow:hidden;
}
.sl-panel--cv .sl-kicker { margin-bottom:8px; }
.sl-panel--cv h2 {
  margin:0 0 10px;
  font-size:clamp(28px,3vw,48px);
  line-height:.95;
}
.sl-cvdocument {
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:#fff;
}
.sl-cvdocument img {
  display:block;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
  flex:0 1 auto;
}

@media (max-width:700px) {
  .sl-window:has(.sl-panel--cv:not([hidden])) { width:98vw; height:94vh; max-height:94vh; }
  .sl-window:has(.sl-panel--cv:not([hidden])) .sl-window__content { padding:14px 12px 16px; }
  .sl-panel--cv h2 { font-size:28px; }
}
