/* ABOUT — hero. The lit object of this page is his portrait: a tall glass frame, one key light from the left. Prefix ab- */
.ab-hero.hero{min-height:clamp(600px,calc(100svh - 88px),850px);padding:8px 0 72px}
.ab-hero .h1 .lit{animation:ab-word 1.6s var(--ease-out) .1s both}
@keyframes ab-word{from{opacity:.3;filter:blur(2px)}}

/* faint guide lines behind the frame, like the floor in the home hero */
.ab-hero::before{content:"";position:absolute;z-index:0;pointer-events:none;inset:-88px -40px 0 30%;
  background-image:linear-gradient(90deg,oklch(1 0 0 / .1) 1px,transparent 1px),linear-gradient(180deg,oklch(1 0 0 / .1) 1px,transparent 1px);
  background-size:130px 130px;background-position:50% 100%;
  mask-image:radial-gradient(ellipse 66% 74% at 56% 52%,#000 0%,rgb(0 0 0 / .55) 45%,transparent 88%)}

.ab-shot{position:relative;z-index:1;justify-self:center;width:min(100%,580px);--px:0;--py:0}  /* 11-25: 16:9 and smaller (was a tall 4:5 portrait) */

/* the room around the frame: the key light's haze on the left, the photo's own bloom, light on the floor */
.ab-haze{position:absolute;left:-52%;top:-16%;width:104%;height:92%;pointer-events:none;border-radius:50%;
  background:radial-gradient(closest-side,rgb(var(--L) / .3),rgb(var(--L) / .1) 46%,transparent 78%);filter:blur(24px);
  translate:calc(var(--px) * 26px) calc(var(--py) * 18px);animation:ab-on 2s var(--ease-out) .2s both}
.ab-bloom{position:absolute;inset:2% -4% 20% -8%;pointer-events:none;border-radius:40px;opacity:.62;
  background:url(../media/maciej-intro-still.jpg) 50% 40% / cover;filter:blur(64px) brightness(1.35);animation:ab-on 2.4s var(--ease-out) .3s both}
.ab-floor{position:absolute;left:-34%;right:-24%;bottom:-52px;height:104px;pointer-events:none;border-radius:50%;
  background:radial-gradient(closest-side,rgb(var(--L) / .2),rgb(var(--L) / .06) 55%,transparent);filter:blur(10px);animation:ab-on 2s var(--ease-out) .5s both}
@keyframes ab-on{from{opacity:0}}

/* the frame: a slab of dark glass with the photo set into it, like a tile and its stage */
.ab-frame{position:relative;isolation:isolate;padding:11px;border-radius:34px;
  background:linear-gradient(180deg,oklch(1 0 0 / .13) 0%,oklch(1 0 0 / .05) 40%,oklch(1 0 0 / .03) 100%);
  box-shadow:inset 0 1px 0 oklch(1 0 0 / .34),inset 0 0 0 1px oklch(1 0 0 / .08),inset 26px 0 40px -28px rgb(var(--L) / .3),0 70px 120px -50px #000,-36px 0 100px -44px rgb(var(--L) / .22)}
.ab-photo{position:relative;display:block;overflow:hidden;isolation:isolate;aspect-ratio:16/9;border-radius:20px;background:#0a0a0a;
  box-shadow:inset 0 0 0 1px oklch(1 0 0 / .06),0 1px 0 oklch(1 0 0 / .1)}
.ab-photo img{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%;
  filter:contrast(1.1) brightness(1.12);  /* 11-25: no oversize/parallax, so the film's lower third at the left edge stays whole */
  animation:ab-lamp 1.9s var(--ease-out) .15s both}
@keyframes ab-lamp{0%{filter:contrast(1.1) brightness(.16) blur(4px)}18%{filter:contrast(1.1) brightness(.5) blur(3px)}24%{filter:contrast(1.1) brightness(.3) blur(3px)}100%{filter:contrast(1.1) brightness(1.12) blur(0)}}
/* key light from the upper left; it follows the cursor a little */
.ab-key{position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:soft-light;
  background:radial-gradient(90% 74% at calc(14% + var(--px) * 12%) calc(20% + var(--py) * 10%),rgb(var(--L) / .85),rgb(var(--L) / .3) 46%,transparent 74%)}
/* shadow side and the fall into black */
.ab-shade{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,rgb(var(--L) / .1),transparent 16%),linear-gradient(98deg,transparent 52%,rgb(5 5 5 / .42) 100%),linear-gradient(180deg,transparent 70%,rgb(5 5 5 / .22) 100%)}
/* the cursor is a second, small light */
.ab-spot{position:absolute;inset:0;z-index:3;pointer-events:none;mix-blend-mode:soft-light;opacity:0;transition:opacity .6s var(--ease-out);
  background:radial-gradient(18em circle at calc(var(--mx,50%) - 11px) calc(var(--my,30%) - 11px),rgb(var(--L) / .55),transparent 62%)}
.ab-frame:is(:hover,.is-hover) .ab-spot{opacity:1}
/* rim: a 1px edge that is bright where the light hits and gone on the shadow side */
.ab-rim{position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;padding:1px;
  background:radial-gradient(80% 64% at calc(0% + var(--px) * 14%) calc(16% + var(--py) * 10%),#fff,rgb(var(--L) / .34) 42%,transparent 76%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  filter:drop-shadow(0 0 6px rgb(var(--L) / .6));animation:ab-on 1.6s var(--ease-out) .4s both}

/* caption chip: dark glass, flame live dot */
.ab-cap{position:absolute;z-index:5;left:29px;bottom:29px;display:inline-flex;align-items:center;gap:9px;height:42px;padding:0 18px 0 16px;border-radius:99px;font-size:14px;line-height:1;color:var(--dim);white-space:nowrap;
  background:linear-gradient(180deg,oklch(1 0 0 / .14),oklch(1 0 0 / .05));-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 oklch(1 0 0 / .26),inset 0 0 0 1px oklch(1 0 0 / .08),0 14px 30px -12px #000}
.ab-cap b{font-weight:500;color:var(--text)}
.ab-cap i{font-style:normal;color:var(--unlit)}
.ab-live{position:relative;width:7px;height:7px;margin-right:3px;border-radius:50%;background:var(--flame);box-shadow:0 0 6px rgb(var(--F) / .95),0 0 16px rgb(var(--F) / .6)}
.ab-live::after{content:"";position:absolute;inset:-5px;border-radius:50%;box-shadow:0 0 0 1px rgb(var(--F) / .6);animation:ab-ping 2.4s var(--ease-out) infinite}
@keyframes ab-ping{0%{scale:.5;opacity:1}70%,100%{scale:1.5;opacity:0}}

@media (max-width:960px){
  .ab-hero.hero{min-height:0;padding:28px 0 0;row-gap:40px}
  .ab-hero::before{inset:auto -20px 0 -20px;height:70%;background-size:88px 88px;mask-image:radial-gradient(ellipse 80% 70% at 50% 55%,#000 0%,rgb(0 0 0 / .5) 45%,transparent 90%)}
  .ab-shot{width:min(100%,460px);justify-self:start}
  .ab-haze{left:-30%;width:90%}
  .ab-frame{padding:8px;border-radius:26px}.ab-photo{border-radius:19px}
  .ab-cap{left:20px;bottom:20px;height:38px;padding:0 14px 0 13px;font-size:13px;gap:7px}
}
@media (max-width:380px){.ab-cap{font-size:12px;gap:6px}}
@media (prefers-reduced-motion:reduce){
  .ab-hero .h1 .lit,.ab-photo img,.ab-haze,.ab-bloom,.ab-floor,.ab-rim,.ab-live::after{animation:none}
}

/* a little more light on every card of this page (his ask 11-23) */
.ab-main .tile{background:linear-gradient(180deg,oklch(1 0 0 / .105) 0%,oklch(1 0 0 / .042) 46%,oklch(1 0 0 / .03) 100%);
  box-shadow:inset 0 1px 0 oklch(1 0 0 / .27),inset 0 0 0 1px oklch(1 0 0 / .075),inset 0 -40px 60px -40px rgb(0 0 0 / .5),0 40px 80px -40px #000}
.ab-main .tile:is(:hover,.is-hover){box-shadow:inset 0 1px 0 oklch(1 0 0 / .38),inset 0 0 0 1px oklch(1 0 0 / .09),inset 0 -40px 60px -40px rgb(0 0 0 / .5),0 50px 90px -40px #000}

/* 11-24 his ask: a play button on the portrait, opens the about-me film */
.ab-watch{position:absolute;z-index:6;left:71%;top:47%;translate:-50% -50%;display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--text);font-size:14px;font-weight:500;cursor:pointer}
.ab-watch i{position:relative;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;
  background:linear-gradient(180deg,#fff 0%,rgb(var(--L)) 50%,oklch(0.86 0.012 80) 100%);
  box-shadow:inset 0 1px 0 #fff,0 0 0 1px oklch(1 0 0 / .5),0 18px 50px -10px rgb(var(--L) / .55),0 0 0 10px oklch(1 0 0 / .06);transition:scale .5s var(--ease-out),box-shadow .5s var(--ease-out)}
.ab-watch i::before{content:"";margin-left:5px;border-left:20px solid #0a0a0a;border-top:12px solid transparent;border-bottom:12px solid transparent}
.ab-watch span{white-space:nowrap;padding:6px 14px;border-radius:99px;background:rgb(0 0 0 / .45);backdrop-filter:blur(8px);box-shadow:inset 0 1px 0 oklch(1 0 0 / .14)}
.ab-watch small{color:var(--dim);font-size:13px;margin-left:4px}
.ab-watch:hover i{scale:1.06;box-shadow:inset 0 1px 0 #fff,0 0 0 1px #fff,0 24px 70px -10px rgb(var(--L) / .75),0 0 0 14px oklch(1 0 0 / .08)}
.ab-frame:has(.ab-watch){cursor:pointer}
@media (max-width:600px){.ab-watch{gap:8px;font-size:13px}.ab-watch i{width:52px;height:52px}.ab-watch i::before{margin-left:4px;border-left-width:13px;border-top-width:8px;border-bottom-width:8px}.ab-watch span{padding:5px 11px}}
@media (min-width:601px) and (max-width:960px){.ab-watch i{width:68px;height:68px}.ab-watch i::before{border-left-width:16px;border-top-width:10px;border-bottom-width:10px}}
